dezertdawg / urukdroid

Automatically exported from code.google.com/p/urukdroid
0 stars 0 forks source link

Extend RNDIS support #78

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Describe feature you would like to see in future UrukDroid release. Please
be reasonable!

1. Describe feature
In my case the device is mobileWiMax dongle (Yota One) with Archos 101 IT. The 
id of CDC/RNDIS device idVendor=0525, idProduct=a4a2 shows that it uses common 
components I suppsoe. Right now the device constantly connects/disconnects, 
doesn't creates IP interface, while dongle indicated that it had connected to 
mobileWiMax network.

from dmesg:
usb 2-1: new high speed USB device using musb_hdrc and address 8
usb 2-1: skipped 3 descriptors after interface
usb 2-1: default language 0x0409
usb 2-1: New USB device found, idVendor=0525, idProduct=a4a2
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: RNDIS/Ethernet Gadget
usb 2-1: Manufacturer: Linux 2.6.23-uc1/vincent7-udc
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
usb 2-1: adding 2-1:1.1 (config #1, interface 1)
usb 2-1:1.1: uevent
drivers/usb/core/inode.c: creating file '008'
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1 enable change, status 00000503
musb_stage2_irq 801: unhandled DISCONNECT transition (a_wait_bcon)
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
usb 2-1: USB disconnect, address 8
usb 2-1: unregistering device
usb 2-1: usb_disable_device nuking all URBs
usb 2-1: unregistering interface 2-1:1.0
usb 2-1:1.0: uevent
usb 2-1: unregistering interface 2-1:1.1
usb 2-1:1.1: uevent
usb 2-1: uevent
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 2-1: new high speed USB device using musb_hdrc and address 9
usb 2-1: default language 0x0409
usb 2-1: New USB device found, idVendor=0525, idProduct=a4a5
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: File-backed Storage Gadget
usb 2-1: Manufacturer: Linux 2.6.23-uc1 with vincent7-udc
usb 2-1: SerialNumber: 3238204E6F76
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
usb-storage 2-1:1.0: usb_probe_interface
usb-storage 2-1:1.0: usb_probe_interface - got id
devdb: devpath usb-musb_hdrc-1 not found
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
drivers/usb/core/inode.c: creating file '009'
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1 enable change, status 00000503
scsi 3:0:0:0: Direct-Access     Linux    File-Stor Gadget 0300 PQ: 0 ANSI: 2
sd 3:0:0:0: [sda] 4096 512-byte hardware sectors: (2.09 MB/2.00 MiB)
sd 3:0:0:0: [sda] Write Protect is on
sd 3:0:0:0: [sda] Mode Sense: 0f 00 80 00
sd 3:0:0:0: [sda] Assuming drive cache: write through
sd 3:0:0:0: [sda] 4096 512-byte hardware sectors: (2.09 MB/2.00 MiB)
sd 3:0:0:0: [sda] Write Protect is on
sd 3:0:0:0: [sda] Mode Sense: 0f 00 80 00
sd 3:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 3:0:0:0: [sda] Attached SCSI removable disk
usb-storage: device scan complete
Configure McBSP for 1 phase
Configure McBSP TX FIFO threshold to 1260
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
usb 2-1: USB disconnect, address 9
usb 2-1: unregistering device
usb 2-1: usb_disable_device nuking all URBs
usb 2-1: unregistering interface 2-1:1.0
usb 2-1:1.0: uevent
usb 2-1: uevent
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 2-1: new high speed USB device using musb_hdrc and address 10
usb 2-1: default language 0x0409
usb 2-1: New USB device found, idVendor=0525, idProduct=a4a5
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: File-backed Storage Gadget
usb 2-1: Manufacturer: Linux 2.6.23-uc1 with vincent7-udc
usb 2-1: SerialNumber: 3238204E6F76
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
usb-storage 2-1:1.0: usb_probe_interface
usb-storage 2-1:1.0: usb_probe_interface - got id
devdb: devpath usb-musb_hdrc-1 not found
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 10
usb-storage: waiting for device to settle before scanning
drivers/usb/core/inode.c: creating file '010'
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1 enable change, status 00000503
FAT: Directory bread(block 32) failed
FAT: Directory bread(block 33) failed
FAT: Directory bread(block 34) failed
FAT: Directory bread(block 35) failed
FAT: Directory bread(block 36) failed
FAT: Directory bread(block 37) failed
FAT: Directory bread(block 38) failed
FAT: Directory bread(block 39) failed
FAT: Directory bread(block 40) failed
FAT: Directory bread(block 41) failed
FAT: Directory bread(block 42) failed
FAT: Directory bread(block 43) failed
FAT: Directory bread(block 44) failed
FAT: Directory bread(block 45) failed
FAT: Directory bread(block 46) failed
FAT: Directory bread(block 47) failed
FAT: Directory bread(block 48) failed
FAT: Directory bread(block 49) failed
FAT: Directory bread(block 50) failed
FAT: Directory bread(block 51) failed
FAT: Directory bread(block 52) failed
FAT: Directory bread(block 53) failed
FAT: Directory bread(block 54) failed
FAT: Directory bread(block 55) failed
FAT: Directory bread(block 56) failed
FAT: Directory bread(block 57) failed
FAT: Directory bread(block 58) failed
FAT: Directory bread(block 59) failed
FAT: Directory bread(block 60) failed
FAT: Directory bread(block 61) failed
FAT: Directory bread(block 62) failed
FAT: Directory bread(block 63) failed
scsi 3:0:0:0: rejecting I/O to dead device
musb_stage2_irq 801: unhandled DISCONNECT transition (a_wait_bcon)
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
usb 2-1: USB disconnect, address 10
usb 2-1: unregistering device
usb 2-1: usb_disable_device nuking all URBs
usb 2-1: unregistering interface 2-1:1.0
usb 2-1:1.0: uevent
usb 2-1: uevent
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 2-1: new high speed USB device using musb_hdrc and address 11
usb 2-1: skipped 4 descriptors after interface
usb 2-1: default language 0x0409
usb 2-1: New USB device found, idVendor=1076, idProduct=7708
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=10
usb 2-1: Product: RNDIS/Ethernet Gadget
usb 2-1: Manufacturer: Linux 2.6.23-uc1/vincent7-udc
usb 2-1: SerialNumber: 00000001
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #2 chosen from 1 choice
usb 2-1: adding 2-1:2.0 (config #2, interface 0)
usb 2-1:2.0: uevent
usb 2-1: adding 2-1:2.1 (config #2, interface 1)
usb 2-1:2.1: uevent
drivers/usb/core/inode.c: creating file '011'
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1 enable change, status 00000503
Configure McBSP for 1 phase
Configure McBSP TX FIFO threshold to 1260
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
usb 2-1: USB disconnect, address 11
usb 2-1: unregistering device
usb 2-1: usb_disable_device nuking all URBs
usb 2-1: unregistering interface 2-1:2.0
usb 2-1:2.0: uevent
usb 2-1: unregistering interface 2-1:2.1
usb 2-1:2.1: uevent
usb 2-1: uevent
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 2-1: new high speed USB device using musb_hdrc and address 12
usb 2-1: skipped 3 descriptors after interface
usb 2-1: default language 0x0409
usb 2-1: New USB device found, idVendor=0525, idProduct=a4a2
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: RNDIS/Ethernet Gadget
usb 2-1: Manufacturer: Linux 2.6.23-uc1/vincent7-udc
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
usb 2-1: adding 2-1:1.1 (config #1, interface 1)
usb 2-1:1.1: uevent
drivers/usb/core/inode.c: creating file '012'
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1 enable change, status 00000503
musb_stage2_irq 801: unhandled DISCONNECT transition (a_wait_bcon)
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
usb 2-1: USB disconnect, address 12
usb 2-1: unregistering device
usb 2-1: usb_disable_device nuking all URBs
usb 2-1: unregistering interface 2-1:1.0
usb 2-1:1.0: uevent
usb 2-1: unregistering interface 2-1:1.1
usb 2-1:1.1: uevent
usb 2-1: uevent
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 2-1: new high speed USB device using musb_hdrc and address 13
usb 2-1: default language 0x0409
usb 2-1: New USB device found, idVendor=0525, idProduct=a4a5
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: File-backed Storage Gadget
usb 2-1: Manufacturer: Linux 2.6.23-uc1 with vincent7-udc
usb 2-1: SerialNumber: 3238204E6F76
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
usb-storage 2-1:1.0: usb_probe_interface
usb-storage 2-1:1.0: usb_probe_interface - got id
devdb: devpath usb-musb_hdrc-1 not found
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 13
usb-storage: waiting for device to settle before scanning
drivers/usb/core/inode.c: creating file '013'
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1 enable change, status 00000503
scsi 5:0:0:0: Direct-Access     Linux    File-Stor Gadget 0300 PQ: 0 ANSI: 2
sd 5:0:0:0: [sda] 4096 512-byte hardware sectors: (2.09 MB/2.00 MiB)
sd 5:0:0:0: [sda] Write Protect is on
sd 5:0:0:0: [sda] Mode Sense: 0f 00 80 00
sd 5:0:0:0: [sda] Assuming drive cache: write through
sd 5:0:0:0: [sda] 4096 512-byte hardware sectors: (2.09 MB/2.00 MiB)
sd 5:0:0:0: [sda] Write Protect is on
sd 5:0:0:0: [sda] Mode Sense: 0f 00 80 00
sd 5:0:0:0: [sda] Assuming drive cache: write through sda: sda1
sd 5:0:0:0: [sda] Attached SCSI removable disk
usb-storage: device scan complete  
----

Interesting fact - in windows 7 and os x 10.6.8 it shows only RNDIS device. 
while in Uruk-droid it shows some usb-storage, even mounts it (there is some 
soft) but than also disconnects. 

3. Where we can read more?
The google gives alot links to the Linux stuff for idVendor=0525, 
idProduct=a4a2 but as I'm not developer I can't understand is it usefull or not.

Original issue reported on code.google.com by averse...@gmail.com on 10 Sep 2011 at 3:25

GoogleCodeExporter commented 8 years ago
Ok the Archos had released new firmware and issue now solved under original OS. 
Now my Archos 101 is fully mobileWiMax enabled pad.

Funny thing is I had contakted Archos support couple months ago - and they 
replie was that thay don't support 3rd party devices. But now thery do. ;)

Original comment by averse...@gmail.com on 11 Nov 2011 at 9:08