Zaurus pda won't connect in Hardy's 2.6.24-16 kernel

Asked by John Rose

Hardy's 2.6.24-16 kernel does not include zaurus.ko (necessary for connection to a Zaurus pda). So I'm trying to compile a zaurus.ko. I downloaded linux-source-2.6.24.tar.bz2 (using Synaptic) and extracted the linux-source-2.6.24 directory. However, there is no debian/config/i386/config.generic or .config file (in /usr/src/linux-source-2.6.24) which need changing to 'include Zaurus' as per bug 156581 workaround.

Therefore, cd /usr/src/linux-source-2.6.24 followed by make drivers/net/usb/zaurus.ko results in:
scripts/kconfig/conf -s arch/x86/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel .config file)
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.

Anybody any ideas?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
John Rose
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Gerry (gsker) said :
#1

John,
# After getting the kernel source:
cd /usr/src/
apt-get source linux-image-2.6.22-14-generic

# get your current config file (this is what you skipped)
cp /boot/config-2.6.24-16-generic ./.config
make oldconfig

# edit the .config file:
# change CONFIG_USB_NET_ZAURUS is not set
# to
  # CONFIG_USB_NET_ZAURUS=m

# compile the module and put it in place
cd /usr/src/linux-2.6.24
make drivers/net/usb/zaurus.ko
cp drivers/net/usb/zaurus.ko /lib/modules/2.6.24-16-generic/kernel/drivers/net/usb/
depmod -a

That seemed to work perfectly for me for the Zaurus SL-6000.
Wish they'd put it back into the standard distro. It's a pain.

Revision history for this message
John Rose (johnaaronrose) said :
#2

Gerry,

I've done the cp of the config file but doing the make oldconfig gives:
administrator@JohnLaptop:/usr/src$ sudo make oldconfig
make: *** No rule to make target `oldconfig'. Stop.

Help please!

Revision history for this message
Gerry (gsker) said :
#3

Argh! My fault. cd to the source directory before doing the sudo make oldconfig
cd /usr/src/linux-2.6.24
sudo make oldconfig
Then edit the .config file and do the compile.
I don't know why I had to do a make oldconfig BEFORE the edit, but when I edited it first it got overwritten. I clearly did something wrong, but it's right now and I have the module installed and working.

Revision history for this message
John Rose (johnaaronrose) said :
#4

Thanks for the instructions. Compiled zaurus.ko OK & it's now in the /lib/modules/2.6.24-16-generic/kernel/drivers/net/usb/ directory. depmod -a worked. I then rebooted. However, ifconfig still didn't show usb0. So I did modprobe zaurus.ko, followed by lsmod which showed zaurus.ko as loaded. ifconfig still didn't show usb0. So I rebooted. ifconfig still didn't show usb0.

Any ideas?

dmesg|grep shows:
896.467121] usb 3-1: new full speed USB device using ohci_hcd and address 17
[ 896.874801] usb 3-1: device not accepting address 17, error -62
But this could be due to my wireless keyboard & mouse not working (due to known bug on laptops).

Revision history for this message
John Rose (johnaaronrose) said :
#5

Oops! I clicked the 'Solved' button.

PS lsusb doesn't show the Zaurus

Revision history for this message
Gerry (gsker) said :
#6

Yup. If you're not seeing the zaurus as a usb device, then the usb connection isn't working. I would unplug all the usb device you had ( and could live without ) and then I'd tail -f /var/log/messages while plugging the zaurus into each usb port on your system.
So, time to sorta step back -- not a kernel problem, a usb or hardware problem.

Revision history for this message
John Rose (johnaaronrose) said :
#7

Gerry,

Thanks for the advice. I agree with you about it being a usb problem: hardware problem it is not as I've tried 2 Zauruses with the same result & I don't think it is hardware on the laptop causing the problem on all usb connections.

Tried the tail after plugging into each usb connection. The tail shows:
May 5 16:59:36 JohnLaptop kernel: [27720.218568] usb 1-1: new full speed USB device using ohci_hcd and address 2
May 5 16:59:37 JohnLaptop kernel: [27720.993960] usb 1-1: new full speed USB device using ohci_hcd and address 3
May 5 16:59:37 JohnLaptop kernel: [27721.765338] usb 1-1: new full speed USB device using ohci_hcd and address 4
May 5 16:59:38 JohnLaptop kernel: [27722.356881] usb 1-1: new full speed USB device using ohci_hcd and address 5

But lsusb shows no Zaurus. I've tried another Zaurus with same result. Therefore I think that this is due to bug 196288: this bug has a few duplicates. I'm astonished that Ubuntu's fixers seem to be ignoring this bug as it affects laptops with usb devices such as keyboards, mice & possibly all pda's connected by ethernet over usb.

Revision history for this message
John Rose (johnaaronrose) said :
#8

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

Help please!

Revision history for this message
John Rose (johnaaronrose) said :
#9

My Zaurus went kaput.