OESF Portables Forum

Everything Else => Desktop Operating Systems Issues => Zaurus General Forums => Archived Forums => Linux Issues => Topic started by: naanu on May 12, 2004, 10:31:51 am

Title: cannot get usb0 in debian 2.6.3
Post by: naanu on May 12, 2004, 10:31:51 am
I went through all the documents related to connecting z with linux, but could not get the usb0 interface appear in debian 2.6.3 .

In the configuration file, I enabled \'Multi purpose USB Networking Framework(USB_USBNET)\" as module and Sharp Zaurus(Stock ROMs). I\'ve usb-core,usb-uhci as well.

What am i missing?
Title: cannot get usb0 in debian 2.6.3
Post by: lardman on May 12, 2004, 11:25:21 am
What do you get from dmesg when you plug in?
Title: cannot get usb0 in debian 2.6.3
Post by: slocaus on May 12, 2004, 11:42:34 am
There are many problems with USB in 2.6;  I lost usbnetworking from 2.6.3 until 2.6.6rc3.  Can you get an updated kernel?  Also make sure you have an updated hotplug since so much is changing so quickly with 2.6
Title: cannot get usb0 in debian 2.6.3
Post by: asmar on September 18, 2004, 07:20:15 pm
Hi,

Do the following with the default kernel installed (2.6.3-i-386)

Edit the /etc/hosts and add the line:
192.168.129.201 zaurus

then from a shell:

modprobe uhci_hcd
modprobe ohci_hcd
modprobe ehci_hcd
ifconfig usb0 192.168.129.1 up

then ssh -l root 192.168.129.201 and you are in  
Title: cannot get usb0 in debian 2.6.3
Post by: gramps on November 24, 2004, 09:32:34 pm
After following azmar's suggestions in the previous post I'm able to ping my Z. How would I get this to all happen when I turned the Z on in the cradle, I know I could write a script with all the commands in it but I would like it to just happen.

This is all pretty new to me.

Thanks
Allen
Title: cannot get usb0 in debian 2.6.3
Post by: MeaninglessNick on November 25, 2004, 12:57:29 pm
I use ifplugd, which you might need to install (apt-get install ifplugd should do it).
 Somebody can probably tell you how to do it with the builtin hotplug system.

From a previous post

2) added usb0 to /etc/default/ifplugd
INTERFACES="eth0 usb0"

ifplugd is an optional package for debian that configures network interfaces automatically when they show up.

3) added the following to /etc/network/interfaces
iface usb0 inet dhcp


That should do it.
I am using Debian Sarge (testing).  I think my kernel 2.6.8.1
Title: cannot get usb0 in debian 2.6.3
Post by: gramps on November 25, 2004, 06:20:13 pm
I found ifplugd last night while reading man pages and install it also. The only difference in the way that you did it and the way I did, I used a static IP address.

/etc/interfaces
# The network interface for the Zaurus
iface usb0 inet static
address 192.168.129.1
pointtopoint 192.168.129.201
netmask 255.255.255.0

When I turn the Z on or place it in the cradle on, the usb0 will come up within a few seconds, but for what ever reason it is using IPv6 so  the PC and Z will not communicate. If  I bring it up with ifconfig then everything is fine. Havent' figured that one out  yet.

Allen

Update; After several reboots it is now using ipv4 so the PC and the Zaurus are able to communicate. Not real sure how I fixed the ipv6 problem. Tried it on a new install of Ubuntu and at 1st had the same problem usb0 was ipv6, then while I was trying to resolve the problem it started showing up as ipv4 so I could comunicate. ???????