[U-Boot] [U-BOOT] operate on a udisk with fat32 fs, and 2048 block size will cause system to restart

2010-07-19 Thread wesley xie
I have a udisk(My MP3), which is fat32 format, and the fs block size is 4096(report by u-boot). enable USB and FAT support for u-boot. do usb start cause the system to restart. after looking into the u-boot code, I find that the DEFAULT_SECTOR_SIZE in disk/part_dos.h is too small(512) to fit a

Re: [U-Boot] [U-BOOT] operate on a udisk with fat32 fs, and 2048 block size will cause system to restart

2010-07-19 Thread wesley xie
sorry, typo in the title, it is 4096 On Mon, Jul 19, 2010 at 4:44 PM, wesley xie elelon...@gmail.com wrote: I have a udisk(My MP3), which is fat32 format, and the fs block size is 4096(report by u-boot). enable USB and FAT support for u-boot. do usb start cause the system to restart. after

Re: [U-Boot] [U-BOOT] operate on a udisk with fat32 fs, and 2048 block size will cause system to restart

2010-07-19 Thread wesley xie
or, may be we need to detect the buffer size in usb_stor_read, to prevent it from out of range ? On Mon, Jul 19, 2010 at 4:45 PM, wesley xie elelon...@gmail.com wrote: sorry, typo in the title, it is 4096 On Mon, Jul 19, 2010 at 4:44 PM, wesley xie elelon...@gmail.com wrote: I have a