[iPAQ] Re: [Familiar] usb networking

From: Ben Fitzgerald <ben_m_f_at_yahoo.co.uk>
Date: Mon, 25 Oct 2004 22:01:51 +0100

On Thu, Oct 21, 2004 at 08:29:53PM +0200, Aaron wrote:
> Hi all,
> I have been trying to get usb networking up on my ipaq 3630 and can't
> seem to get it working.
>
> One issue I am facing is that the howto I found mentions using a cradle
> with both serial and usb connections at the same time.
>
> I have a serial cradle and a usb plug seperately.
>
> I can't figure out how to start usb networking on from the serial cradle
> I can't do usb.
>
> I had usb up and running when I was using xandros but now with regular
> debian I haven't succeeded.
>
> I run ifconfig and usb0 doesn't appear but if I do ifconfig -a then usb0
> appears.

Hi Aaron,

I just hashed this out myself.

If you can see usb0 on your pc with ifconfig -a but _not_ ifconfig
then you need to configure the interface and bring it up.

What I describe below is true for familiar-0.7.2:

First work on the ipaq side of things...

-bash-2.05b# lsmod | grep usb
usb-eth 5996 1 (autoclean)
sa1100usb_core 16344 0 (autoclean) [usb-eth]

If usb-eth is not loaded, load it and check again:
-bash-2.05b# modprobe usb-eth

Now check your ipaq network settings:

-bash-2.05b# tail -7 /etc/network/interfaces
# usb network
# (192.168.0.202 is the iPAQ's IP, 192.168.0.200 is the host's IP)
iface usbf inet static
        address 192.168.1.15
        netmask 255.255.255.0
        network 192.168.1.0
        gateway 192.168.1.14

In the above you are stating that you want the usbf interface on
your ipaq to have the ip 192.168.1.15. As this is only a point to
point connection your gateway (192.168.1.14) is also the ip of
the other end (in this case your PC's usb network interface).

Having set that up, put your ipaq in your usb cradle. It should
automatically configure the usbf interface. Your ipaq may appear
to hang at this point. This is because the other side of the
point-to-point connection is awaiting configuration. Go to your
pc now and check you can see your usb0 interface:

ben_at_slack-tv$ /sbin/ifconfig usb0
... your unconfigured usb0 details here

Now you want to configure your usb0 interface:

ben_at_slack-tv$ /sbin/ifconfig usb0 192.168.1.14/32 up
ben_at_slack-tv$ /sbin/route add 192.168.1.15 dev usb0

This adds a route to the ipaq. Now ping the ipaq's
usb interface to make sure you can see it:

ben_at_slack-tv$ ping 192.168.1.15
PING 192.168.1.15 (192.168.1.15) 56(84) bytes of data.
64 bytes from 192.168.1.15: icmp_seq=1 ttl=64 time=1.77 ms
64 bytes from 192.168.1.15: icmp_seq=2 ttl=64 time=1.25 ms
^C

Success! Now ssh into it from your pc:

ben_at_slack-tv$ root_at_192.168.1.15

Hope that helps you out. You can make life easier by getting
hotplug to recognise the interface has come up and configure
it automagically for you. I haven't got this rock steady
myself yet so I'll hold fire on that one.

HTH,

Ben
Received on Mon Oct 25 2004 - 17:06:22 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 18:33:26 EDT