| View previous topic :: View next topic |
| Author |
Message |
shaddack

Joined: Mon Mar 17, 2008 6:03 pm Posts: 70 Location: Gothenburg, Sweden
|
Posted: Mon Jun 25, 2012 10:38 am Post subject: Trouble to mount USB on embedded device |
|
|
Hi
I'm working on a customized built embedded system board. We are having some problem to mount a USB stick. I wonder, general terms, what might be wrong.
So. The USB device (stick) is recognized by the kernel. If I do cat /proc/bus/devices/usb I get the information about the stick like this:
| Code: | T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=125f ProdID=c82a Rev=11.00
S: Manufacturer=ADATA
S: Product=ADATA USB Flash Drive
S: SerialNumber=11A181320224004D
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=31875us |
I understand that this is as expected.
However, if I run fdisk -l it is not shown there. So, it seems that the kernel detects the stick but it is not possible to mount it. Manually or otherwise.
We are running a 3.2 kernel and busybox.
I understand that this might be tough one to answer but does anyone have any general ideas of what must be fullfilled to make it possible to mount this device?
best regards |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 7999 Location: Warrington, UK
|
Posted: Mon Jun 25, 2012 10:53 am Post subject: |
|
|
Your problem is at a lower level than mounting if fdisk shows nothing for it.
What does syslog show when the stick is plugged in?
What partitions and filesystems does the stick contain. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
shaddack

Joined: Mon Mar 17, 2008 6:03 pm Posts: 70 Location: Gothenburg, Sweden
|
Posted: Mon Jun 25, 2012 11:05 am Post subject: |
|
|
Hi again. Thanks for your reply.
The dmesg says the following when a stick is inserted:
| Code: | [ 111.715087] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 111.720977] hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 111.886779] hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 112.006805] usb 2-1: new high-speed USB device number 3 using musb-hdrc
[ 112.167816] usb 2-1: default language 0x0409
[ 112.173095] usb 2-1: udev 3, busnum 2, minor = 130
[ 112.178161] usb 2-1: New USB device found, idVendor=125f, idProduct=c82a
[ 112.185211] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 112.192749] usb 2-1: Product: ADATA USB Flash Drive
[ 112.197875] usb 2-1: Manufacturer: ADATA
[ 112.201995] usb 2-1: SerialNumber: 11A181320224004D
[ 112.215301] usb 2-1: usb_probe_device
[ 112.219238] usb 2-1: configuration #1 chosen from 1 choice
[ 112.226837] usb 2-1: adding 2-1:1.0 (config #1, interface 0)
[ 112.241180] usb-storage 2-1:1.0: usb_probe_interface
[ 112.246459] usb-storage 2-1:1.0: usb_probe_interface - got id
[ 112.263305] scsi1 : usb-storage 2-1:1.0
[ 112.403289] drivers/usb/core/inode.c: creating file '003'
[ 112.409393] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 112.415222] hub 2-0:1.0: port 1 enable change, status 00000503 |
The USB drive is formatted to FAT32. Support for vfat is compiled into the kernel. It detects our SD card wich is also formatted as FAT32.
regards |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 7999 Location: Warrington, UK
|
Posted: Mon Jun 25, 2012 12:40 pm Post subject: |
|
|
No mention of a sd? device, let alone any partitions on it. I suspect your kernel may be missing support for one or more options needed to access usb-storage devices. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
shaddack

Joined: Mon Mar 17, 2008 6:03 pm Posts: 70 Location: Gothenburg, Sweden
|
Posted: Mon Jun 25, 2012 12:48 pm Post subject: |
|
|
| nelz wrote: | | No mention of a sd? device, let alone any partitions on it. I suspect your kernel may be missing support for one or more options needed to access usb-storage devices. |
Might be that. It kind of misses the "glue". Since the device itself is detected but no device nodes are created. I will have to double check the config of the kernel. |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|