[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] USB & Hotplug
Raúl Rodríguez Canales wrote:
Making cat /proc/devices I get this:
Character devices:
1 mem
2 pty/m%d
3 pty/s%d
4 ttyS
5 console
10 misc
90 mtd
162 raw
180 usb
254 de3
Block devices:
1 ramdisk
31 mtdblock
254 System ACE
You need to enable the SCSI subsystem, and usb-storage
So I changed make file adding this line:
DEVICES =+ sda,c,180,0 sda1,c,180,1
These should be block devices ('b'), not char ('c')
Then: mount -t vfat /dev/sda1 /var/pendrive
mount: Mounting /dev/sda1 on /var failed: Block device required
If I make: mount -t usbdevfs /proc/bus/usb:
# ls /proc/bus/usb
001 002 devices drivers
# cat drivers
usbdevfs
hub
usb-storage
# cat devices
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 1
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB CY7C67200/300 Root Hub
S: SerialNumber=1
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 1
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB CY7C67200/300 Root Hub
S: SerialNumber=0
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
I think I'm very near from my target...but I don't find a solution :-(
Enable SCSI device support - it implements the block device interface
for usb-storage. That will get you a bit closer.
I'm not sure why your USB drive is not appearing in the list of
/proc/bus/usb/devices - but take one thing at a time.
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/