Gentoo Archives: gentoo-dev

From: Bob Phan <bob@××××××××××××××××.net>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Zaurus connecting to Gentoo...
Date: Fri, 04 Apr 2003 22:23:11
Message-Id: 20030404172412.GC3596@endlessrecursion.net
In Reply to: Re: [gentoo-dev] Zaurus connecting to Gentoo... by Matthew Walker
1 * [Apr 04, 2003] Matthew Walker <mwalker@×××××××.net>:
2 > Bob Phan said:
3 > > * [Apr 03, 2003] Matthew Walker <mwalker@×××××××.net>:
4 > > > I've been playing with getting my Zaurus hooked up to my Gentoo
5 > > > box, and I'm very close. It actually does connect now, but only
6 > > > for a short time. After some random short (minutes) interval of
7 > > > time, it stops responding to pings. To fix it, I have to
8 > > > disconnect it from the cradle, and the put it back in and
9 > > > re-configure the network device on my Gentoo box. Then it works
10 > > > for a couple more minutes. Does anyone have any ideas?
11 > > Are you using the standard sharp roms or OZ?
12 > Standard sharp ROMs.
13 Have you considered using openzaurus? Personally, I find it much much
14 better than the standard ROM. Opie is also a much better environment to
15 work with than QPE. check out www.openzaurus.org and opie.handhelds.org
16 (that was off the top of my head, may be incorrect)
17
18 > > Check your light and power settings and make sure that the zaurus
19 > > does NOT go into suspend mode when connected to a powersource.
20 > > Going into sleep mode _will_ break a network connection. Also, make
21 > > sure that when cradled, your zaurus is connected to a powersource,
22 > > because the aforementioned option should be set correctly by
23 > > default.
24 > It's cradled with the power source connected. It sits turned on quite
25 > happily all day long while I'm at work.
26 > > Also, I had a lot of problems with the 2.4.19 kernel, but the 2.4.20
27 > > gentoo-sources worked perfectly for the zaurus right out of the box
28 > > (no patch needed).
29 > I'm running 2.4.20-gentoo-r2.
30 > > Let me know if you have any more info, and I'll see what I can do
31 > > for you.
32 > Let's see... My Zaurus is set up with 10.0.0.2 in the USB Sync IP
33 > field...
34 >
35 > Here's my script to configure the network for it:
36 >
37 > ifconfig usb0 10.0.0.1 netmask 255.0.0.0 up route add -host 10.0.0.2 usb0
38 Try this with a netmask: 255.255.255.255
39
40 Just for your reference, this is what I'm using:
41
42 #!/bin/sh
43 ifconfig usb0 192.168.129.200 netmask 255.255.255.255 up
44 route add -host 192.168.129.201 usb0
45 echo "Zaurus network interface up."
46
47 echo "Activating forwarding on host ..."
48 echo "1" > /proc/sys/net/ipv4/ip_forward
49
50 echo "Activating NAT on host for zaurus ..."
51 iptables -t nat -A POSTROUTING -j SNAT -o eth0 --to (my computer's outside ip)
52
53 I'm not sure why that's not working for you, but it's a few things to
54 try out and see if you get any further.
55
56 > I've tried adding devfs lines to get it to autorun that script, but
57 > I've failed. I always have to run them by hand.
58 I always run them by hand myself, but I've heard along the way that if
59 you want this to happen automatically that the path lies in usb hotplug
60 and not with devfs. Some googling might be needed.
61
62 > *thinks* I set the correct values for the configuration of usbdnet in
63 > the kernel...
64 It would have never made it as far as you said it went with the wrong
65 values. So those must be correct.
66
67 Sorry I couldn't be more helpful. If all else fails, try out OZ.
68
69 Oh yeah, also, try out the different usb host interfaces as well. I
70 always use usb-uhci.
71
72
73 --
74 /*
75 * Bob Phan <bob@××××××××××××××××.net,rphan@××××.com>
76 * Computational Chemistry Informatics
77 * Neurogen Corporation
78 * (203)488-8201 x4645
79 *
80 * To understand recursion, you must first understand recursion.
81 * http://www.endlessrecursion.net/
82 */
83
84 --
85 gentoo-dev@g.o mailing list