Dear All ,
I am trying to configure the Usb0 (in Ethernet gadget mode) and Usb1 (in Host mode)
I have gone through the instructions found at:
http://processors.wiki.ti.com/index.php/Usbgeneralpage#Introduction
The below is the steps i followed:-
a. Insert the g_zero.ko driver
b. Insert the pendrive (This is properly mounted on /media directory )
c. remove the PD (The drive is properly unmounted from /media )
d. Insert the pendrive again (without doing an rmmod of g_zero.ko)-
-> The PD is not detected this time.
e. Do an rmmod of g_zero.ko and insert the driver again
-> The PD is detected properly .
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~# insmod g_
g_ether.ko g_file_storage.ko g_serial.ko g_zero.ko
root@dm816x-evm:~# insmod g_
g_ether.ko g_file_storage.ko g_serial.ko g_zero.ko
root@dm816x-evm:~# insmod g_ether.ko
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC 92:79:6a:25:89:b7
usb0: HOST MAC d6:07:5b:a9:8d:11
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
musb-hdrc musb-hdrc.0: MUSB HDRC host driver
musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
usb usb1: SerialNumber: musb-hdrc.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
root@dm816x-evm:~# ADDRCONF(NETDEV_UP): usb0: link is not ready
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~# ls
-p g_ether.ko g_zero.ko
NTP g_file_storage.ko ntpdate
Settings g_serial.ko ntpq
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~# insmod g_zero.ko
zero gadget: Gadget Zero, version: Cinco de Mayo 2008
zero gadget: zero ready
musb-hdrc musb-hdrc.1: MUSB HDRC host driver
musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
usb usb2: SerialNumber: musb-hdrc.1
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~# usb 2-1: new high speed USB device using musb-hdrc and address 2
usb 2-1: device v058f p6387 is not supported
usb 2-1: New USB device found, idVendor=058f, idProduct=6387
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: Mass Storage
usb 2-1: Manufacturer: Generic
usb 2-1: SerialNumber: 73452E28
scsi2 : usb-storage 2-1:1.0
scsi 2:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] 8028160 512-byte logical blocks: (4.11 GB/3.82 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
FAT: invalid media value (0x00)
VFS: Can't find a valid FAT filesystem on dev sda.
root@dm816x-evm:~# usb 2-1: USB disconnect, address 2