OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: speculatrix on July 21, 2006, 09:00:28 am

Title: Usbnet Tosa Oz 3.5.4.1 K2.6 To Linux Desktop
Post by: speculatrix on July 21, 2006, 09:00:28 am
can anyone explain this odd usbnet behaviour. At work I am running suse10.0 with kernel
2.6.13-15.10-default, and usbnetworking "just works"...  I think all I had to do with "modprobe g_ether" on the Z (I added this to the interfaces file as a pre-up).

at work I get this message:
Jul 18 10:18:39 it-padm kernel: usb0: register usbnet at usb-0000:00:1d.7-3.4, pseudo-MDLM (BLAN) device, 46:86:4c:36:fb:a7
Jul 18 10:18:39 it-padm kernel: usbcore: registered new driver usbnet
Jul 18 10:18:50 it-padm kernel: usb0: no IPv6 routers present

at home I am running opensuse 10.1 with kernel 2.6.16.13-4-default, and when I plug in the Z the usb0 network device doesn't appear on the PC, thus:
Jul 17 22:24:08 palin kernel: usb 2-2: new full speed USB device using ohci_hcd and address 6
Jul 17 22:24:13 palin kernel: usb 2-2: new device found, idVendor=04dd, idProduct=9032
Jul 17 22:24:13 palin kernel: usb 2-2: new device strings: Mfr=1, Product=2, SerialNumber=0
Jul 17 22:24:13 palin kernel: usb 2-2: Product: SL-6000
Jul 17 22:24:13 palin kernel: usb 2-2: Manufacturer: Sharp
Jul 17 22:24:13 palin kernel: usb 2-2: configuration #1 chosen from 1 choice
Jul 17 22:24:14 palin kernel: usbcore: registered new driver cdc_ether
Jul 17 22:24:14 palin kernel: usb0: register 'zaurus' at usb-0000:00:02.1-2, pseudo-MDLM (BLAN) device, 32:4a:b6:37:95:7e
Jul 17 22:24:14 palin kernel: usbcore: registered new driver zaurus
Jul 17 22:24:14 palin ifup:     usb0
Jul 17 22:24:14 palin ifup:               No configuration found for usb0


Although the error message implies usb0 should be there, it isn't, and there is a /etc/sysconfig/network/ifcfg-usb0 configuration.

Any thoughts? I must admit, I don't know as much about usb networking as I should.
Title: Usbnet Tosa Oz 3.5.4.1 K2.6 To Linux Desktop
Post by: koen on July 21, 2006, 09:22:23 am
Quote
can anyone explain this odd usbnet behaviour. At work I am running suse10.0 with kernel
2.6.13-15.10-default, and usbnetworking "just works"...  I think all I had to do with "modprobe g_ether" on the Z (I added this to the interfaces file as a pre-up).

at work I get this message:
Jul 18 10:18:39 it-padm kernel: usb0: register usbnet at usb-0000:00:1d.7-3.4, pseudo-MDLM (BLAN) device, 46:86:4c:36:fb:a7
Jul 18 10:18:39 it-padm kernel: usbcore: registered new driver usbnet
Jul 18 10:18:50 it-padm kernel: usb0: no IPv6 routers present

at home I am running opensuse 10.1 with kernel 2.6.16.13-4-default, and when I plug in the Z the usb0 network device doesn't appear on the PC, thus:
Jul 17 22:24:08 palin kernel: usb 2-2: new full speed USB device using ohci_hcd and address 6
Jul 17 22:24:13 palin kernel: usb 2-2: new device found, idVendor=04dd, idProduct=9032
Jul 17 22:24:13 palin kernel: usb 2-2: new device strings: Mfr=1, Product=2, SerialNumber=0
Jul 17 22:24:13 palin kernel: usb 2-2: Product: SL-6000
Jul 17 22:24:13 palin kernel: usb 2-2: Manufacturer: Sharp
Jul 17 22:24:13 palin kernel: usb 2-2: configuration #1 chosen from 1 choice
Jul 17 22:24:14 palin kernel: usbcore: registered new driver cdc_ether
Jul 17 22:24:14 palin kernel: usb0: register 'zaurus' at usb-0000:00:02.1-2, pseudo-MDLM (BLAN) device, 32:4a:b6:37:95:7e
Jul 17 22:24:14 palin kernel: usbcore: registered new driver zaurus
Jul 17 22:24:14 palin ifup:     usb0
Jul 17 22:24:14 palin ifup:               No configuration found for usb0


Although the error message implies usb0 should be there, it isn't, and there is a /etc/sysconfig/network/ifcfg-usb0 configuration.

Any thoughts? I must admit, I don't know as much about usb networking as I should.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135986\"][{POST_SNAPBACK}][/a][/div]

Does 'ifconfig -a' report anything usefull?
Title: Usbnet Tosa Oz 3.5.4.1 K2.6 To Linux Desktop
Post by: speculatrix on July 21, 2006, 10:09:05 am
Quote
Does 'ifconfig -a' report anything usefull?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135990\"][{POST_SNAPBACK}][/a][/div]

usb0 is up in both cases on the Z and in both cases I can ping the interface's address, but for the SuSE10.1 usb0 doesn't appear in "ifconfig -a" at all.

I am guessing there's something that's supposed to happen when SuSE10.1 sees the usb ether gadget appear and doesn't load the right usb module. "lsmod" reports that usbnet is loaded, so I am a bit stuck.
Title: Usbnet Tosa Oz 3.5.4.1 K2.6 To Linux Desktop
Post by: speculatrix on July 24, 2006, 04:13:31 pm
hm... hotplug seems to be completely different in kernel 2.6.16 on suse10.1, and there's no obvious place here the one-time /etc/hotplug usb maps would have been. sigh. there is /etc/sysconfig/hardware but nothing obvious there.

I now also find that my laptop running damnsmalllinux with kernel 2.4 doesn't recognise the Tosa running kernel 2.6, and despite my best efforts to hack the /etc/hotplug/usb.*map files it won't recognise it either.
Title: Usbnet Tosa Oz 3.5.4.1 K2.6 To Linux Desktop
Post by: speculatrix on July 24, 2006, 04:35:24 pm
after almost tearing my hair out, I found a comment in a  footnote to a handhelds.org entry on usbnet.. basically, yes, 2.6.16 and later are different.

http://handhelds.org/moin/moin.cgi/UsbNet (http://handhelds.org/moin/moin.cgi/UsbNet)

the suse10.1 machine had loaded usbnet and cdc_ether but NOT cdc_subset, and so couldn't do whatever it does to create a network device for usb. did "modprobe cdc_subset", plugged in the Z, and it worked.

now for an entry in the wiki...