1 |
Hi Yoyo, |
2 |
|
3 |
At least a step I cam further... |
4 |
|
5 |
> Why not connect it through the usb? It might be slower than wifi, but |
6 |
> much more stable and predictable... It's on wiki: |
7 |
> http://wiki.openmoko.org/wiki/USB_Networking |
8 |
|
9 |
I followed the USB Networking instruction. |
10 |
elm@firebolt:~$ sudo ip address add 192.168.0.200/24 dev eth1 |
11 |
elm@firebolt:~$ sudo ip link set dev eth1 up |
12 |
elm@firebolt:~$ sudo route add -host 192.168.0.202 dev eth1 |
13 |
|
14 |
*** form the desktop ping and ssh to the phone works YEAH!*** |
15 |
elm@firebolt:~$ ping 192.168.0.202 |
16 |
PING 192.168.0.202 (192.168.0.202) 56(84) bytes of data. |
17 |
64 bytes from 192.168.0.202: icmp_seq=1 ttl=64 time=1.15 ms |
18 |
64 bytes from 192.168.0.202: icmp_seq=2 ttl=64 time=1.20 ms |
19 |
64 bytes from 192.168.0.202: icmp_seq=3 ttl=64 time=1.26 ms |
20 |
64 bytes from 192.168.0.202: icmp_seq=4 ttl=64 time=1.57 ms |
21 |
64 bytes from 192.168.0.202: icmp_seq=5 ttl=64 time=1.62 ms |
22 |
|
23 |
--- 192.168.0.202 ping statistics --- |
24 |
5 packets transmitted, 5 received, 0% packet loss, time 3997ms |
25 |
rtt min/avg/max/mdev = 1.150/1.365/1.627/0.197 ms |
26 |
|
27 |
elm@firebolt:~$ ssh root@192.168.0.202 |
28 |
root@192.168.0.202's password: |
29 |
Last login: Tue Jan 4 12:33:47 2000 from 192.168.0.200 |
30 |
root@om-gta02 ~ # |
31 |
|
32 |
|
33 |
*** form the phone ping to the phone works too (even the time looks |
34 |
freaking fast), but ssh to the desktop does not work, even I'm sure |
35 |
the firewall is down *** |
36 |
root@om-gta02 ~ # ping 192.168.0.200 |
37 |
PING 192.168.0.200 (192.168.0.200): 56 data bytes |
38 |
64 bytes from 192.168.0.200: seq=0 ttl=64 time=0.000 ms |
39 |
64 bytes from 192.168.0.200: seq=1 ttl=64 time=0.000 ms |
40 |
64 bytes from 192.168.0.200: seq=2 ttl=64 time=0.000 ms |
41 |
64 bytes from 192.168.0.200: seq=3 ttl=64 time=0.000 ms |
42 |
64 bytes from 192.168.0.200: seq=4 ttl=64 time=0.000 ms |
43 |
^C |
44 |
--- 192.168.0.200 ping statistics --- |
45 |
5 packets transmitted, 5 packets received, 0% packet loss |
46 |
round-trip min/avg/max = 0.000/0.000/0.000 ms |
47 |
root@om-gta02 ~ # |
48 |
|
49 |
root@om-gta02 ~ # ssh elm@192.168.0.200 |
50 |
ssh: connect to host 192.168.0.200 port 22: Connection refused |
51 |
|
52 |
|
53 |
|
54 |
>> > # ip addr |
55 |
>> quite some output |
56 |
>> 1: lo (loopback at inet 127.0.0.1/8) |
57 |
>> 2: usb0 [...] inet 192.168.0.202/24 brd 192.168.0.255 |
58 |
>> 3: eth0 [...] inet 192.168.0.42/24 brd 192.168.0.255 |
59 |
> |
60 |
> hmm, your wifi uses the same subnet as the usbconnection. |
61 |
|
62 |
surprisingly this have change: |
63 |
root@om-gta02 ~ # ip addre |
64 |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN |
65 |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 |
66 |
inet 127.0.0.1/8 scope host lo |
67 |
inet6 ::1/128 scope host |
68 |
valid_lft forever preferred_lft forever |
69 |
2: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast |
70 |
state UP qlen 1000 |
71 |
link/ether 00:1f:11:01:a9:a5 brd ff:ff:ff:ff:ff:ff |
72 |
inet 192.168.0.202/24 brd 192.168.0.255 scope global usb0 |
73 |
inet6 fe80::21f:11ff:fe01:a9a5/64 scope link |
74 |
valid_lft forever preferred_lft forever |
75 |
|
76 |
> What does |
77 |
> route -n |
78 |
root@om-gta02 ~ # route -n |
79 |
Kernel IP routing table |
80 |
Destination Gateway Genmask Flags Metric Ref Use Iface |
81 |
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0 |
82 |
0.0.0.0 192.168.0.200 0.0.0.0 UG 8 0 0 usb0 |
83 |
|
84 |
|
85 |
> but if you have working connection from desktop to neo, you just need to run |
86 |
> iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE echo 1 >/proc/sys/net/ipv4/ip_forward |
87 |
> |
88 |
> on the desktop, shr should be by default set up for the usb connection, |
89 |
> unless you start up some wifi connection app which would mess it up, |
90 |
> however this is what it looks like here (on the moko, wifi turned off): |
91 |
|
92 |
Do I still have to run |
93 |
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE echo 1 |
94 |
>/proc/sys/net/ipv4/ip_forward ? |
95 |
|
96 |
Still wonder if the problem is in the shr installation. I just flashed |
97 |
freerunner whit shr, to be able to install gentoo. I never properly |
98 |
used it to phone or something. The pre-flashed os (om2008?) have not |
99 |
even had a command line. But there the phone was working. That I |
100 |
tested. |
101 |
|
102 |
Well, that's it for today. |
103 |
Thanks! And good night. |
104 |
|
105 |
So long, Elmar |