Author Topic: Sl6000 Usbnet Hotplug  (Read 3003 times)

mimsmall

  • Newbie
  • *
  • Posts: 40
    • View Profile
Sl6000 Usbnet Hotplug
« on: January 05, 2005, 05:35:24 pm »
The Linux usb website "www.linux-usb.org" says if you have "usbnet.o" on a linux pc you should be able to talk to a Zaurus PDA. Well I do and I can't.

If it's connected during bootup or hotplugged, makes no difference. My printer and scanner respond when hot plugged but bluetooth dongle and 6000L do not.

I have the Sharp products id and the Zaurus 6000l id, I don't know where they belong, what file to edit, even if it would help.

Has this been covered before?

hatchetman

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Sl6000 Usbnet Hotplug
« Reply #1 on: January 05, 2005, 06:15:44 pm »
I think there's a couple websites, maybe even some howto's on this site on how to setup the USB connection. I don't know them off hand so I'll give a quick runthrough what I do on Debian.

Configure the host PC, edit /etc/network/interfaces
Code: [Select]
iface usb0 inet static
    address 192.168.129.1
    pointopoint 192.168.129.201
    netmask 255.255.255.255
Configure the PDA, change PC Link Settings
- select USB TCP/IP and set the IP to 192.168.129.201

1) Plug in the PDA (should show up in lsusb)
2) Type ifup usb0
3) ping 192.168.129.201 (does it work?)

mimsmall

  • Newbie
  • *
  • Posts: 40
    • View Profile
Sl6000 Usbnet Hotplug
« Reply #2 on: January 05, 2005, 10:49:20 pm »
typed ifup usb0 returned - usb0 already configured
ping 192.168.129.201 returned
PING 192.168.129.201  (192.168.129.201): 56 data bytes
and then the console locks-up

hatchetman

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Sl6000 Usbnet Hotplug
« Reply #3 on: January 05, 2005, 11:22:04 pm »
Well does the console really lock up, or does it just sit there with no responses. What happens if you type ifconfig usb0. Do you see the interface set up? How is /etc/network/interfaces setup? How is the interface setup on the zaurus? Is it plugged in? Make sure that both ends are setup with ip addresses and that they're physcially connected, then come back and post the actual setup that you have.

jonesy

  • Newbie
  • *
  • Posts: 2
    • View Profile
Sl6000 Usbnet Hotplug
« Reply #4 on: January 09, 2005, 12:45:31 am »
Quote
typed ifup usb0 returned - usb0 already configured
ping 192.168.129.201 returned
PING 192.168.129.201  (192.168.129.201): 56 data bytes
and then the console locks-up
This should help- http://www.ruault.com/Zaurus/ethernet-over-usb-howto.html
This is ethernet-usb, which worked for me.
Pinging from the zaurus you should limit the attempts, if the network is not found the shell will hang.
e.g. ping -c 3 192.168.129.1
If your PC distro is at all new it probably has hotplug setup.  If ifconfig returns status for usb0 with an ip etc., then you don't have to setup hotplug.
- ifconfig on PC you should see usb0 with an ip of 192.168.129.1
- ifconfig on Z you should see usbd0 with an ip of 192.168.129.201
With the stock Rom you might not be able to change these ip's, I used the defaults.
Last I set a  route on both PC and zaurus
- on PC do route add -host 192.168.129.201 usb0
- on Z do route add -host 192.168.129.1 usbd0
The link above covers this well- lots of luck.

mimsmall

  • Newbie
  • *
  • Posts: 40
    • View Profile
Sl6000 Usbnet Hotplug
« Reply #5 on: January 09, 2005, 10:32:32 am »
hatchetman, jonesy thank you. I have a lot of things to do. I'll get to them before the football games start.