Author Topic: cannot get usb0 in debian 2.6.3  (Read 4501 times)

naanu

  • Newbie
  • *
  • Posts: 25
    • View Profile
cannot get usb0 in debian 2.6.3
« 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?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cannot get usb0 in debian 2.6.3
« Reply #1 on: May 12, 2004, 11:25:21 am »
What do you get from dmesg when you plug in?
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

slocaus

  • Full Member
  • ***
  • Posts: 243
    • View Profile
    • http://
cannot get usb0 in debian 2.6.3
« Reply #2 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
Handheld:. Sl-5500 tkcROM 1.0 (defunct) * apps on ext2 Lexar 256 SD
Desktop:. Mandrakelinux 10.2 Cooker * kernel 2.6.11
Both computers run linux, proud to be MS Free

asmar

  • Newbie
  • *
  • Posts: 9
    • View Profile
cannot get usb0 in debian 2.6.3
« Reply #3 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  

gramps

  • Newbie
  • *
  • Posts: 13
    • View Profile
cannot get usb0 in debian 2.6.3
« Reply #4 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

MeaninglessNick

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
cannot get usb0 in debian 2.6.3
« Reply #5 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

gramps

  • Newbie
  • *
  • Posts: 13
    • View Profile
cannot get usb0 in debian 2.6.3
« Reply #6 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. ???????
« Last Edit: November 29, 2004, 09:07:40 pm by gramps »