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 wrote: > sorry, typo in the title, it is 4096 > > > On Mon, Jul 19, 2010 at 4:44 PM, wesley xie wrote: > >> I have

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 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 syst

[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

[U-Boot] S3C2440 "usb start" and then "usb stop" cause nand operate failure.

2010-07-18 Thread wesley xie
Hi, guys here. for u-boot-2010.03(also u-boot-2010.05 I belive) on s3c2440, if I "usb start" and then "usb stop", all of the nand operate will report failure. I look into the u-boot code, and found that it seems something wrong in s3c24x0 usb code, see below. >From s3c2440 and s3c2410 datasheet