OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: jancici on April 18, 2005, 07:03:29 am
-
network over USB is still not working
PC
gentoo linux with 2.6.11-gentoo-r5 kernel
I have this configuration of kernel
CONFIG_USB_USBNET=m
CONFIG_USB_ALI_M5632=y
CONFIG_USB_ARMLINUX=y
CONFIG_USB_ZAURUS=y
CONFIG_USB_GADGET=m
CONFIG_USB_GADGET_NET2280=y
CONFIG_USB_NET2280=m
CONFIG_USB_GADGET_DUALSPEED=y
CONFIG_USB_ETH=m
CONFIG_USB_ETH_RNDIS=y
Zaurus SL-6000L
flashed with OZ 3.5.3 from openzaurus.org + opie
uname -a
2.4.18-rmk7-pxa3-embedix
modprobe -l
not any output
what I have done
- configuring usbd0 on Z using graphical interface settins -> Network -> usbd0
I did used static ip, and switch on automatical bring up on boot
- I did restart Z
- I did configure usb0 on PC, set up with static IP
what is working
when I plug Z tu the gadget :
1. I can see it on PC, using lsub
2. usbd0 is UP on Z if it is not down
not working
on PC usb0 is not UP, I did check and find out that hotplug did not load module usbnet, this was working nicely with SharpROM
what is happening during pluging Z
tail -f /var/log/messages
Apr 18 12:58:43 abraham hub 5-0:1.0: state 5 ports 8 chg 0000 evt 0100
Apr 18 12:58:43 abraham ehci_hcd 0000:00:10.4: GetStatus port 8 status 001803 POWER sig=j CSC CONNECT
Apr 18 12:58:43 abraham hub 5-0:1.0: port 8, status 0501, change 0001, 480 Mb/s
Apr 18 12:58:43 abraham hub 5-0:1.0: debounce: port 8: total 100ms stable 100ms status 0x501
Apr 18 12:58:43 abraham ehci_hcd 0000:00:10.4: port 8 full speed --> companion
Apr 18 12:58:43 abraham ehci_hcd 0000:00:10.4: GetStatus port 8 status 003001 POWER OWNER sig=se0 CONNECT
Apr 18 12:58:44 abraham uhci_hcd 0000:00:10.3: wakeup_hc
Apr 18 12:58:44 abraham hub 4-0:1.0: state 5 ports 2 chg 0000 evt 0004
Apr 18 12:58:44 abraham uhci_hcd 0000:00:10.3: port 2 portsc 0093,00
Apr 18 12:58:44 abraham hub 4-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
Apr 18 12:58:44 abraham hub 4-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
Apr 18 12:58:44 abraham usb 4-2: new full speed USB device using uhci_hcd and address 14
Apr 18 12:58:44 abraham usb 4-2: ep0 maxpacket = 16
Apr 18 12:58:44 abraham usb 4-2: skipped 4 descriptors after interface
Apr 18 12:58:44 abraham usb 4-2: new device strings: Mfr=1, Product=2, SerialNumber=0
Apr 18 12:58:44 abraham usb 4-2: default language 0x0409
Apr 18 12:58:44 abraham usb 4-2: Product: SL-6000
Apr 18 12:58:44 abraham usb 4-2: Manufacturer: Sharp
Apr 18 12:58:44 abraham usb 4-2: hotplug
Apr 18 12:58:44 abraham usb 4-2: adding 4-2:1.0 (config #1, interface 0)
Apr 18 12:58:44 abraham usb 4-2:1.0: hotplug
Apr 18 12:58:44 abraham hub 4-0:1.0: state 5 ports 2 chg 0000 evt 0004
any tip will help
thanks
-
try these http://gentoo-wiki.com/HOWTO_Synchronize_P...C_and_Evolution (http://gentoo-wiki.com/HOWTO_Synchronize_PocketPC_and_Evolution)
-
well it saying that I will used serial connection between Z <> PC
but it was working with original SharpROM so I would like to get it working with usbnet, another people using that, so why I am not able to use that ?
EDIT:
okay, I did kompile new modules on PC for USB serial, this is new in my config
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_IPAQ=m
so I did restart hotplug on PC, plug Z but nothing happend, still same problem
they are saying :
Connecting the PocketPC via USB should result in a log like
Feb 5 18:34:37 [kernel] usb 2-2: new full speed USB device using uhci_hcd and a ddress 4
Feb 5 18:34:37 [kernel] ipaq 2-2:1.0: PocketPC PDA converter detected
Feb 5 18:34:37 [kernel] usb 2-2: PocketPC PDA converter now attached to ttyUSB0
but it is NOT happening on my PC
and on Z usbd0 is UP
-
CONFIG_USB_SERIAL_IPAQ=m
there should be option for zaurus
PocketPC PDA converter now attached to ttyUSB0 - means you are trying to use serial over USB, you need IP over USB
show /proc/bus/usb/devices
-
yes, I wolud like to IP over USB, but I did try that possibilities of serial over USB, but that is not working either.
T: Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
P: Vendor=04dd ProdID=9032 Rev= 0.00
S: Manufacturer=Sharp
S: Product=SL-6000
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=02(comm.) Sub=0a Prot=00 Driver=(none)
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=85(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
and this is another way
lsusb -v -s 004:003
Bus 004 Device 003: ID 04dd:9032 Sharp Corp. Zaurus SL-6000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 16
idVendor 0x04dd Sharp Corp.
idProduct 0x9032 Zaurus SL-6000
bcdDevice 0.00
iManufacturer 1 Sharp
iProduct 2 SL-6000
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 84
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 3
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 2 Communications
bInterfaceSubClass 10 Mobile Direct Line
bInterfaceProtocol 0
iInterface 4 MDLM Network Communication Interface
unknown descriptor type: 05 24 00 10 01
unknown descriptor type: 15 24 12 00 01 5d 34 cf 66 11 18 11 d6 a2 1a 00 01 02 ca 9a 7f
unknown descriptor type: 06 24 13 00 00 03
unknown descriptor type: 0d 24 0f 05 00 00 00 00 ea 05 00 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 64
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 64
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 10
Language IDs: (length=4)
0409 English(US)
-
I: If#= 0 Alt= 0 #EPs= 3 Cls=02(comm.) Sub=0a Prot=00 Driver=(none)
you dont have usbnet driver loaded
-
well, I allready discusing this in getoo forum, seems that its bug in usbnet, but I am not sure, for me it is looks like bug in hotplug or I am something missing in hotplug
-
There does seem to be a bug in the 2.6.11 kernel. It has caught a couple of us (other topic (https://www.oesf.org/forums/index.php?showtopic=11982&hl=)). I have checked the changelog for 2.6.12.RC2 and there is passing mention of an usbnet problem with the Zaurus being fixed. This was working in 2.6.10 fine.
-
jancici: if you would do 'modprobe usbnet' you would not need hotplug, just put config into your /etc/conf.d/net for iface_usb0 and ln -s net.lo net.usb0; /etc/init.d/net.usb0 restart
dunno about 2.6.11, im running 2.6.10
-
I did using IP over USB with original SharpROM without any problem, so I have already configured usb0 and symlink.
yes I did try to load that module but after that there is NOT usb0 device so there is a error during bringing usb0 UP
I think that HOTPLUG is doing something more that just loading modules