Author Topic: Usb Connection Z <-> Gentoo Linux  (Read 4924 times)

jancici

  • Newbie
  • *
  • Posts: 11
    • View Profile
Usb Connection Z <-> Gentoo Linux
« 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
Code: [Select]
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
Code: [Select]
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
Code: [Select]
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
« Last Edit: April 18, 2005, 07:17:10 am by jancici »

gentoosiastix

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • http://
Zaurus SL 5600 rom OZ 3.5.3 (hentges ROM)
Linksys WCF12 SD-kingmax 512
Gentoo 2006.0 HP- nx5000 1.5 Centrino
Palencia Spain

jancici

  • Newbie
  • *
  • Posts: 11
    • View Profile
Usb Connection Z <-> Gentoo Linux
« Reply #2 on: April 18, 2005, 07:26:59 am »
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
Code: [Select]
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 :
Code: [Select]
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
« Last Edit: April 18, 2005, 08:46:44 am by jancici »

gfdsa

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Usb Connection Z <-> Gentoo Linux
« Reply #3 on: April 18, 2005, 10:44:17 am »
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
« Last Edit: April 18, 2005, 10:45:03 am by gfdsa »

jancici

  • Newbie
  • *
  • Posts: 11
    • View Profile
Usb Connection Z <-> Gentoo Linux
« Reply #4 on: April 18, 2005, 11:39:51 am »
yes, I wolud like to IP over USB, but I did try that possibilities of serial over USB, but that is not working either.

Code: [Select]
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
Code: [Select]
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)
« Last Edit: April 18, 2005, 12:29:11 pm by jancici »

gfdsa

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Usb Connection Z <-> Gentoo Linux
« Reply #5 on: April 18, 2005, 06:42:47 pm »
I:  If#= 0 Alt= 0 #EPs= 3 Cls=02(comm.) Sub=0a Prot=00 Driver=(none)
you dont have usbnet driver loaded

jancici

  • Newbie
  • *
  • Posts: 11
    • View Profile
Usb Connection Z <-> Gentoo Linux
« Reply #6 on: April 19, 2005, 02:50:38 am »
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

Optogeek

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://optogeek.homelinux.net
Usb Connection Z <-> Gentoo Linux
« Reply #7 on: April 19, 2005, 04:58:14 am »
There does seem to be a bug in the 2.6.11 kernel.  It has caught a couple of us (other topic).  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.
« Last Edit: April 19, 2005, 04:59:26 am by Optogeek »
SL-C860 running Cacko 1.23
SL-5500UK with 3.13 Sharp ROM + Cacko Kernel
Origo WLAN and BlueMonkey BT CFs
1GB Crucial SD
1GB Crucial CF

gfdsa

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Usb Connection Z <-> Gentoo Linux
« Reply #8 on: April 19, 2005, 12:51:44 pm »
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

jancici

  • Newbie
  • *
  • Posts: 11
    • View Profile
Usb Connection Z <-> Gentoo Linux
« Reply #9 on: April 19, 2005, 04:24:51 pm »
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