Hi,
This problem is similar to another (unresolved) question:
http://www.linuxquestions.org/questi...s-vfat-413719/
I have two USB Flash drives. One is recognised by U-Boot, and the other is not. I'm trying to determine what is different between them so that I can sort out why U-Boot is not reading the "Bad" one. Both have been formatted FAT32 in windows.
For the "Good" one, I can read the usb device from U-Boot.
> fatls usb 0
4165864 jffs2.wrap
1726520 kernel.wrap
3285730 romfs_1beta.tar.gz
3 file(s), 0 dir(s)
For the "Bad" one, I get an error message from U-Boot.
> fatls usb 0
No Fat FS detected
Both are recognised in linux, but they appear differently in /dev.
I am running Linux Kernel 3.5.3 using Snapgear distribution on Atemel ARM SAM9260 processor.
The "Good" one gets:
/dev/sda
/dev/sda1
/dev/sg0
The "Bad" one gets
/dev/sda
/dev/sg0
I can mount them both. For the "Good" one, I issue " mount /dev/sda1 /mnt/usb", and it mounts OK. For the "Bad" one I issue "mount /dev/sda /mnt/usb" , and it mounts OK.
< Plug in "Good" USB drive" >
scsi 3:0:0:0: Direct-Access Verbatim STORE N GO 5.00 PQ: 0 ANSI: 0 CCS
sd 3:0:0:0: Attached scsi generic sg0 type 0
sd 3:0:0:0: [sda] 3913728 512-byte logical blocks: (2.00 GB/1.86 GiB)
sd 3:0:0:0: [sda] Write Protect is off
sd 3:0:0:0: [sda] No Caching mode page present
sd 3:0:0:0: [sda] Assuming drive cache: write through
sd 3:0:0:0: [sda] No Caching mode page present
sd 3:0:0:0: [sda] Assuming drive cache: write through
sd 3:0:0:0: [sda] No Caching mode page present
sd 3:0:0:0: [sda] Assuming drive cache: write through
sd 3:0:0:0: [sda] Attached SCSI removable disk
# mount /dev/sda /mnt/usb
mount: mounting /dev/sda on /mnt/usb failed: Invalid argument
# mount /dev/sda1 /mnt/usb
# mount
....
/dev/sda1 on /mnt/usb type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
< Plug in "Bad" USB drive" >
scsi 5:0:0:0: Direct-Access Verbatim STORE N GO 1.00 PQ: 0 ANSI: 2
sd 5:0:0:0: [sda] 3913728 512-byte logical blocks: (2.00 GB/1.86 GiB)
sd 5:0:0:0: Attached scsi generic sg0 type 0
sd 5:0:0:0: [sda] Write Protect is off
sd 5:0:0:0: [sda] No Caching mode page present
sd 5:0:0:0: [sda] Assuming drive cache: write through
sd 5:0:0:0: [sda] No Caching mode page present
sd 5:0:0:0: [sda] Assuming drive cache: write through
sd 5:0:0:0: [sda] No Caching mode page present
sd 5:0:0:0: [sda] Assuming drive cache: write through
sd 5:0:0:0: [sda] Attached SCSI removable disk
# mount /dev/sda1 /mnt/usb
mount: mounting /dev/sda1 on /mnt/usb failed: No such file or directory
# mount /dev/sda /mnt/usb
# mount
....
/dev/sda on /mnt/usb type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
When I look at dmesg output, I get the following output ("Good" drive first).
usb 1-1: new full-speed USB device number 9 using at91_ohci
usb 1-1: New USB device found, idVendor=13fe, idProduct=3623
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: STORE N GO
usb 1-1: Manufacturer: Verbatim
usb 1-1: SerialNumber: 07A90908151B36A7
scsi7 : usb-storage 1-1:1.0
scsi 7:0:0:0: Direct-Access Verbatim STORE N GO 5.00 PQ: 0 ANSI: 0 CCS
sd 7:0:0:0: Attached scsi generic sg0 type 0
sd 7:0:0:0: [sda] 3913728 512-byte logical blocks: (2.00 GB/1.86 GiB)
sd 7:0:0:0: [sda] Write Protect is off
sd 7:0:0:0: [sda] Mode Sense: 03 41 00 00
sd 7:0:0:0: [sda] No Caching mode page present
sd 7:0:0:0: [sda] Assuming drive cache: write through
sd 7:0:0:0: [sda] No Caching mode page present
sd 7:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 7:0:0:0: [sda] No Caching mode page present
sd 7:0:0:0: [sda] Assuming drive cache: write through
sd 7:0:0:0: [sda] Attached SCSI removable disk
usb 1-1: USB disconnect, device number 9
usb 1-1: new full-speed USB device number 10 using at91_ohci
usb 1-1: New USB device found, idVendor=18a5, idProduct=0302
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: STORE N GO
usb 1-1: Manufacturer: Verbatim
usb 1-1: SerialNumber: 10V13000000034F0
scsi8 : usb-storage 1-1:1.0
scsi 8:0:0:0: Direct-Access Verbatim STORE N GO 1.00 PQ: 0 ANSI: 2
sd 8:0:0:0: [sda] 3913728 512-byte logical blocks: (2.00 GB/1.86 GiB)
sd 8:0:0:0: Attached scsi generic sg0 type 0
sd 8:0:0:0: [sda] Write Protect is off
sd 8:0:0:0: [ense: 03 00 00 00
sd 8:0:0:0: [sda] No Caching mode page present
sd 8:0:0:0: [sda] Assuming drive cache: write through
sd 8:0:0:0: [sda] No Caching mode page present
sd 8:0:0:0: [sda] Assuming drive cache: write through
sda:
sd 8:0:0:0: [sda] No Caching mode page present
sd 8:0:0:0: [sda] Assuming drive cache: write through
sd 8:0:0:0: [sda] Attached SCSI removable disk
Any explanation of the difference between these two drives much appreciated. Hopefully It will get me closer to working out why U-Boot only recognises one of them.
Thanks,