USB_STOR_DEBUG log: Hit any key to stop autoboot: 0 U-Boot> usb reset usb reset (Re)start USB... USB: scanning bus for devices... USB device not responding, giving up (status=20) 3 USB Device(s) found scanning bus for storage devices... i=0 i=1
USB Mass Storage device detected Transport: Bulk/Bulk/Bulk Endpoints In 1 Out 2 Int 0 BBB_reset BBB_reset result 0: status 0 reset BBB_reset result 0: status 0 clearing IN endpoint BBB_reset result 0: status 0 clearing OUT endpoint BBB_reset done address 2 COMMAND phase DATA phase STATUS phase inquiry returns 0 ISO Vers 2, Response Data 2 COMMAND phase STATUS phase FAILED COMMAND phase DATA phase STATUS phase Request Sense returned 06 28 00 COMMAND phase STATUS phase COMMAND phase DATA phase STATUS phase Read Capacity returns: 0xe80300, 0x20000 Capacity = 0x3e801, blocksz = 0x200 address 2 partype: 0 usb_read: dev 0 COMMAND phase STATUS phase usb_read: dev 0 startblk 0, blccnt 1 buffer 23edbbe4 read10: start 0 blocks 1 COMMAND phase DATA phase STATUS phase usb_read: end startblk 1, blccnt 1 buffer 23edbde4 partype: 2 i=2 i=3 1 Storage Device(s) found U-Boot> fatls usb 0:1 / fatls usb 0:1 / usb_read: dev 0 COMMAND phase STATUS phase usb_read: dev 0 startblk 0, blccnt 1 buffer 23edbbc8 read10: start 0 blocks 1 COMMAND phase DATA phase STATUS phase usb_read: end startblk 1, blccnt 1 buffer 23edbdc8 usb_read: dev 0 COMMAND phase STATUS phase usb_read: dev 0 startblk 0, blccnt 1 buffer 23edb998 read10: start 0 blocks 1 COMMAND phase DATA phase STATUS phase usb_read: end startblk 1, blccnt 1 buffer 23edbb98 usb_read: dev 0 COMMAND phase STATUS phase usb_read: dev 0 startblk 20, blccnt 1 buffer 23eda540 read10: start 20 blocks 1 COMMAND phase DATA phase STATUS phase usb_read: end startblk 21, blccnt 1 buffer 23eda740 usb_read: dev 0 COMMAND phase STATUS phase usb_read: dev 0 startblk fa2, blccnt 1 buffer 23f3ad78 read10: start fa2 blocks 1 COMMAND phase DATA phase STATUS phase usb_read: end startblk fa3, blccnt 1 buffer 23f3af78 9 00000000.txt 9 11111111.txt 9 22222222.txt 9 33333333.txt 9 44444444.txt 9 55555555.txt 9 66666666.txt 9 77777777.txt usb_read: dev 0 COMMAND phase STATUS phase usb_read: dev 0 startblk fa3, blccnt 1 buffer 23f3ad78 read10: start fa3 blocks 1 COMMAND phase DATA phase STATUS phase usb_read: end startblk fa4, blccnt 1 buffer 23f3af78 0 00000000. 9 file(s), 0 dir(s) U-Boot> > -----Original Message----- > From: michael [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 24, 2008 12:01 > To: Fuchs, Ken > Cc: u-boot-users@lists.sourceforge.net > Subject: Re: [U-Boot-Users] USB SUPPORT & get_vfatname > > > Hi, > [EMAIL PROTECTED] wrote: > > My include/fat.h is identical to the fat.h in both > > git repository u-boot and git repository u-boot-at91, > > except that I put the CHECKCLUST() macro in fat.c > > rather than fat.h. > > > > Ken > > > > Can you put in debug the fat.c file? > Try to align the temp buffer in fat.c to 32 bit and send to the list > a log file during the fatls command. > > To do the align just put the attribute keyword. > > fat/fat.c: __u8 tmpbuf[FS_BLOCK_SIZE] > __attribute__((aligned(4))); > fat/fat.c:__u8 get_vfatname_block[MAX_CLUSTSIZE] > __attribute__((aligned(4))); > fat/fat.c:__u8 get_dentfromdir_block[MAX_CLUSTSIZE] > __attribute__((aligned(4))); > fat/fat.c:__u8 do_fat_read_block[MAX_CLUSTSIZE] > __attribute__((aligned(4))); > > Your test in my CF card works without problem. > > Regards Michael > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users