usbnet: Zaurus C860 doesn't connect any more

Bug #156581 reported by Jens Getreu
14
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
linux-source-2.6.22 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Hello,

after migration to ubuntu 0710 my PDA Zaurus C860 doesn't connect any more:

1) this is the log how it was with ubuntu 0704:

Oct 19 10:31:20 leon1 kernel: [15967.208000] usb 1-2: new full speed USB device using uhci_hcd and address 6
Oct 19 10:31:20 leon1 kernel: [15967.436000] usb 1-2: configuration #1 chosen from 1 choice
Oct 19 10:31:20 leon1 kernel: [15967.444000] usb0: register 'zaurus' at usb-0000:00:1d.0-2, pseudo-MDLM (BLAN) device, de:54:0d:31:d0:3a

>lshal
udi = '/org/freedesktop/Hal/devices/usb_device_ffffffff_ffffffff_noserial'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_ffffffff_ffffffff_noserial' (string)
  linux.subsystem = 'usb' (string)
  linux.hotplug_type = 1 (0x1) (int)
  info.product = 'USB Interface' (string)
  info.linux.driver = 'zaurus' (string)
  usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0' (string)
  usb.configuration_value = 1 (0x1) (int)
  usb.num_configurations = 1 (0x1) (int)
  usb.num_interfaces = 1 (0x1) (int)
  usb.device_class = 2 (0x2) (int)
  usb.device_subclass = 0 (0x0) (int)
  usb.device_protocol = 0 (0x0) (int)
  usb.vendor_id = 1245 (0x4dd) (int)
  usb.product_id = 36913 (0x9031) (int)
  usb.vendor = 'Sharp' (string)
  usb.product = 'USB Interface' (string)
  usb.device_revision_bcd = 0 (0x0) (int)
  usb.max_power = 2 (0x2) (int)
  usb.num_ports = 0 (0x0) (int)
  usb.linux.device_number = 6 (0x6) (int)
  usb.speed_bcd = 4608 (0x1200) (int)
  usb.version_bcd = 512 (0x200) (int)
  usb.is_self_powered = true (bool)
  usb.can_wake_up = false (bool)
  usb.bus_number = 1 (0x1) (int)
  info.bus = 'usb' (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_4dd_9031_noserial' (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0' (string)

2) now with ubuntu 0710 and the same configuration I get only this :

Oct 19 09:59:40 gojun1 kernel: [ 437.849490] usb 3-1: new full speed USB device using uhci_hcd and address 4
Oct 19 09:59:41 gojun1 kernel: [ 438.028317] usb 3-1: configuration #1 chosen from 1 choice

/etc/network/interfaces
----------------------------------------------
auto usb0

mapping hotplug
        script grep
        map usb0

iface usb0 inet static
        address 192.168.129.2
        network 192.168.129.0
        netmask 255.255.255.0
--------------------------------------

root@gojun1:~# ifup usb0
usb0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
usb0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
usb0: ERROR while getting interface flags: No such device
Failed to bring up usb0.

What changed in ubuntu 07010?
Thanks in advance

yens

Revision history for this message
Basilio Kublik (sourcercito) wrote :

Hi there
Please include the following additional information:

1. Please include the output of the command "uname -a" in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command "dmesg > dmesg.log" after a fresh boot and attach the resulting file "dmesg.log" to this bug report.
3. Please run the command "sudo lsusb -v > lsusb-v.log" and attach the resulting file "lsusb-v.log" to this bug report.
4. Please run the command "lsmod > lsmod.log" and attach the resulting file "lsmod.log" to this bug report.

For your reference, the full description of procedures for kernel-related bug reports is available at [WWW] http://wiki.ubuntu.com/KernelTeamBugPolicies. Thanks in advance!

Revision history for this message
Jens Getreu (getreu) wrote :

Hello,

here the requested infomation:

1.
uname -a
Linux gojun1 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686
GNU/Linux

2.-4. See attached docs

Regards

Y

Revision history for this message
Jens Getreu (getreu) wrote :

Hello,

here the requested infomation:

1.
uname -a
Linux gojun1 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686
GNU/Linux

2.-4. See attached docs

Regards

Y

Revision history for this message
Jens Getreu (getreu) wrote :
Revision history for this message
Jens Getreu (getreu) wrote :
Revision history for this message
Steven Walter (stevenrwalter) wrote :

I'm seeing a similar issue with a Zaurus 5500. It appears that CONFIG_USB_NET_ZAURUS is disabled in the kernel config now. Was this explicitly changed, or did this setting just get missed in the kernel upgrade somehow? I can't imagine what trouble it could cause, since the code would only be run for devices with the Zaurus USB id.

Revision history for this message
Jens Getreu (getreu) wrote :

So what to do? Recompile the kernel?

Changed in linux-source-2.6.22:
status: Incomplete → Confirmed
Revision history for this message
Steven Walter (stevenrwalter) wrote :

To fix it for yourself, you can try the following:

$ apt-get source linux-image-2.6.22-14-generic (or whichever kernel package you are using)
$ vi debian/config/i386/config.generic
Change "# CONFIG_USB_NET_ZAURUS is not set" to "CONFIG_USB_NET_ZAURUS=y" (this must be exact!)
$ make drivers/net/usb/zaurus.ko
$ sudo insmod drivers/net/usb/zaurus.ko

At that point you ought to get a usb0 interface for your zaurus.

Revision history for this message
Jens Getreu (getreu) wrote :

Steven,

thanks a lot, it worked for me.

Here a more detailed version of your solution, it may help somebody:

// you need to be root (at some point)

>sudo bash -l

// get libcurses need for make menuconfig

#apt-get install libncurses5-dev

// get the kernel sources

#cd /usr/src/

#apt-get source linux-image-2.6.22-14-generic

// make some changes

#cd linux-source-2.6.22-2.6.22

// my kernelversion is 2.6.22-14, but
// the downloaded patchfile has a wrong subversion
// number, so correct this:
#vi Makefile

   replace
      EXTRAVERSION = .9
   with
      EXTRAVERSION = .14

#vi /usr/src/linux-source-2.6.22-2.6.22/debian/config/i386/config.generic

   replace
      CONFIG_USB_NET_ZAURUS is not set
   with
      CONFIG_USB_NET_ZAURUS=m

//get original configuration
#cp/boot/config-2.6.22-14-generic /usr/src/linux-source-2.6.22-2.6.22/

#mv /usr/src/linux-source-2.6.22-2.6.22/config-2.6.22-14-generic /usr/src/linux-source-2.6.22-2.6.22/.config

//change in .config
        CONFIG_USB_NET_ZAURUS is not set
     to
        CONFIG_USB_NET_ZAURUS=m

//compile the module

#mkdir /usr/src/linux-source-2.6.22-2.6.22/.tmp_versions

#cd /usr/src/linux-source-2.6.22-2.6.22/

# make drivers/net/usb/zaurus.ko

//install it

# cp /usr/src/linux-source-2.6.22-2.6.22/drivers/net/usb/zaurus.ko /lib/modules/2.6.22-14-generic/kernel/drivers/net/usb

# depmod -a

Revision history for this message
Jens Getreu (getreu) wrote :

here the compiled zaurus.ko module for kernel 2.6.22-14

Revision history for this message
Brian Murray (brian-murray) wrote :

I am assigning this bug to the 'ubuntu-kernel-team' per their bug policy. For future reference you can learn more about their bug policy at https://wiki.ubuntu.com/KernelTeamBugPolicies .

Changed in linux-source-2.6.22:
assignee: nobody → ubuntu-kernel-team
Revision history for this message
John Rose (johnaaronrose) wrote :

Same problem with Hardy using kernel 2.6.24.16. Not able to re-compile zaurus.ko as downloaded linux-source-2.6.24.16.tar.bz2 generates linux-source-2.6.24.16.tar which is not acceptable to tar (message 'tar: This does not look like a tar archive').

Revision history for this message
John Rose (johnaaronrose) wrote :

Compiled zaurus.ko OK and 'activated' it. Still doesn't show usb0 using lsusb. So problem is same as bug 196288.

Revision history for this message
John Rose (johnaaronrose) wrote :

This is going to seem a silly message, but it does have a point. I've clean installed Hardy due to the usb mouse & keyboard problems, which are now fixed. However, I forgot to take a backup of my email immediately beforehand. So I've lost the first 2 weeks of May's emails. I compiled zaurus.ko for 2.6.24-16 kernel Ok after advice from some one on this thread (yens or Steven Walter?). Could the person who corresponded with me send their last message (sent to me) again please? My email id is <email address hidden>.

Yours foolishly!

Revision history for this message
John Rose (johnaaronrose) wrote :

Laptop doesn't communicate to Zaurus C860 on 2.6.24-19. lsusb & lspci do not show Zaurus. Compiled zaurus.ko doesn't load. I can modprobe it to load but still no communication. Can't ping Zaurus from laptop or laptop from Zaurus. ifconfig shows eth0 (on laptop) as 192.168.0.72. Router is 192.168.0.1. All usb sockets on laptop Ok and can operate mouse & memory sticks on them.

sudo ifup usb0 gives:
usb0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
usb0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFDSTADDR: No such device
usb0: ERROR while getting interface flags: No such device
SIOCSIFMTU: No such device
usb0: ERROR while getting interface flags: No such device
Failed to bring up usb0.

/etc/network/interfaces:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.72
netmask 255.255.255.0
gateway 192.168.0.1

mapping hotplug
script grep
map usb0
auto usb0
iface usb0 inet static
address 192.168.129.1
pointopoint 192.168.129.2
netmask 255.255.255.0
mtu 1494

Revision history for this message
John Rose (johnaaronrose) wrote :

zaurus.ko compiled & installed OK. But still can't connect to Zaurus SL-C860 from laptop (get usb0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device etc etc).

lsusb &lspci don't show zaurus on usb. I've tried zaurus connection on a desktop just in case it's usb hardware faulty or usb funny on laptop: I had to put acpi=noirq pci=noacpi into kernel line of /boot/grub/menu.lst in order to get usb wired & wireless mice working: only on laptop i.e. not on desktop!

I've also compiled & installed zaurus.ko using procedure suggested in www.motorolafans.com forum, which involves use of gconfig. I think that problem is nothing to do with zaurus.ko. gconfig stated that it is not needed with 2.6 kernels on zaurus pdas. I'm using Angstrom 2.6 Console Release which uses module g_ether as stated on http://blog.hentges.net/?page_id=37.

Revision history for this message
CharlieBrooks (chas-brooks) wrote :

I'm having the same problem with a Zaurus SL-5500. However, I'm not able to successfully load the zaurus module.
I've downloaded the linux-source-2.6.24 module, played the .config game, and compiled the zaurus module (as "make drivers/net/usb/zaurus.ko"). Two things: I get a .o file, not a .ko file, and it refuses to load into the running kernel (2.4.16-19-generic) with the following error:
insmod: error inserting 'drivers/net/usb/zaurus.ko': -1 Invalid module format

Revision history for this message
Jens Getreu (getreu) wrote : Re: [Bug 156581] Re: usbnet: Zaurus C860 doesn't connect any more

this is how it worked for me :

// you need to be root (at some point)

>sudo bash -l

// get the kernel sources

#cd /usr/src/

#apt-get source linux-image-2.6.24-16-generic

//unpack the gzip-files
gunzip linux_2.6.24-16.30.diff.gz
// you will get a dir : linux_2.6.24-16.30.diff
tar -xzf linux_2.6.24.orig.tar.gz
// you will get a dir : linux-2.6.24.2

// set a symbolic link before applying the patch
ln -s linux-2.6.24.2 linux-2.6.24

// then patch
patch -p0 <linux_2.6.24-16.30.diff

// make some changes

#cd linux-2.6.24

// my kernelversion is 2.6.24-16, but
// the downloaded patchfile has a wrong subversion
// number, so correct this:
#vi Makefile

   replace
      EXTRAVERSION = .9
   with
      EXTRAVERSION = .14

// this is probably not necessary
#vi /usr/src/linux-2.6.24/debian/config/i386/config.generic

   replace
      CONFIG_USB_NET_ZAURUS is not set
   with
      CONFIG_USB_NET_ZAURUS=m

//get original configuration
#cp /boot/config-2.6.24-16-generic /usr/src/linux-2.6.24/

#mv /usr/src/linux-2.6.24/config-2.6.24-16-generic /usr/src/linux-2.6.24/.config

//change in .config
        CONFIG_USB_NET_ZAURUS is not set
     to
        CONFIG_USB_NET_ZAURUS=m

//compile the module
#mkdir /usr/src/linux-2.6.4/.tmp_versions

#cd /usr/src/linux-2.6.4/

# make drivers/net/usb/zaurus.ko

//install it

#
cp /usr/src/linux-2.6.4/drivers/net/usb/zaurus.ko /lib/modules/2.6.24-16-generic/kernel/drivers/net/usb

# depmod -a

regards

Jens Getreu

Revision history for this message
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this bug to the new "linux" package. However, development has already began for the upcoming Intrepid Ibex 8.10 release. It would be helpful if you could test the upcoming release and verify if this is still an issue - http://www.ubuntu.com/testing . If the issue still exists, please update this report by changing the Status of the "linux" task from "Incomplete" to "New". We appreciate your patience and understanding as we make this transition. Thanks!

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
John Rose (johnaaronrose) wrote :

I've compiled & installed zaurus kernel module on my Ubuntu Hardy
laptop with kernel 2.6.24.19. When I keyed the 'patch -p-2.6.24-19.41, there were loads of pairs of messages 'Reversed previously applied patch detected [n]' and 'Apply anway [n]'. I pressed Enter in response to everyone of them. Also, I didn't change the EXTRAVERSION parameter in Makefile as I didn't know what to change it to.

However, connection to the zaurus gives unknown device usb0. Is this due to zaurus.ko being duff or is it because my zaurus uses Angstrom which has a 2.6.24 kernel or is it another reason?

Revision history for this message
John Rose (johnaaronrose) wrote :

I'm using a Zaurus SL-C860 with a 2.6.24 kernel using the Angstrom distro. I'm using Ubuntu Hardy (with all updates) on laptop.

Zaurus has necessary g_ether loaded. Relevant section of its /etc/network/interfaces is:
iface usb0 inet static
address 192.168.129.2
netmask 255.255.255.0
network 192.168.129.0
gateway 192.168.129.1

Laptop has cdc_ether & usbnet loaded (by using modprobe). Relevant section of /etc/network/interfaces is:
auto usb0
mapping hotplug
script grep
map usb0
iface usb0 inet static
address 192.168.129.1
pointopoint 192.168.129.2
network 192.168.129.0
netmask 255.255.255.0
broadcast 192.168.129.255

ifconfig on laptop does not show usb0. 'ifup usb0' gives:
auto usb0
mapping hotplug
script grep
map usb0
iface usb0 inet static
address 192.168.129.1
pointopoint 192.168.129.2
network 192.168.129.0
netmask 255.255.255.0
broadcast 192.168.129.255

dmesg onlaptop shows:
[14698.201904] usb 1-1: new full speed USB device using ohci_hcd and address 2
[14698.393729] usb 1-1: device descriptor read/64, error -62
[14698.689505] usb 1-1: device descriptor read/64, error -62
[14698.977282] usb 1-1: new full speed USB device using ohci_hcd and address 3
[14699.171599] usb 1-1: device descriptor read/64, error -62
[14699.464873] usb 1-1: device descriptor read/64, error -62
[14699.756641] usb 1-1: new full speed USB device using ohci_hcd and address 4
[14700.164313] usb 1-1: device not accepting address 4, error -62
[14700.348179] usb 1-1: new full speed USB device using ohci_hcd and address 5
[14700.755857] usb 1-1: device not accepting address 5, error -62

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Jim Lieb (lieb) wrote :

CONFIG_USG_NET_ZAURUS is enabled (module) in current Ubuntu kernels.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.