Gentoo Archives: gentoo-embedded

From: YoYo Siska <yoyo@××××××.sk>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] gentoo installation on openmoko freerunner
Date: Wed, 15 Jun 2011 09:05:31
Message-Id: 20110615082722.GA25717@ksp.sk
In Reply to: Re: [gentoo-embedded] gentoo installation on openmoko freerunner by elmar bucher
1 On Wed, Jun 15, 2011 at 12:40:47AM +0300, elmar bucher wrote:
2 > Hi Andrej,
3 >
4 > Thank you for the fast reply.
5 >
6 > *** on SHR ***
7 > > # ip addr
8 > quite some output
9 > 1: lo (loopback at inet 127.0.0.1/8)
10 > 2: usb0 [...] inet 192.168.0.202/24 brd 192.168.0.255
11 > 3: eth0 [...] inet 192.168.0.42/24 brd 192.168.0.255
12
13 hmm, your wifi uses the same subnet as the usbconnection.
14 What does
15
16 route -n
17
18 show? I don't know if linux networking/routing can correctly handle such
19 situation... To be on the safe side you can delete the address on the
20 usb interface
21 ip addr del 192.168.0.202/24 dev usb0
22
23 >
24 > > What is in /etc/resolve.conf?
25 > cat /ect/reslov.conf
26 > nameserver 208.67.222.222
27 > nameserver 208.67.220.220
28 >
29 > > What say 'dig @8.8.8.8 gentoo.org'?
30 > /bin/sh: dig: not found
31 > (so the is no dig command)
32 >
33 > > What say ping 8.8.8.8?
34 > PING 8.8.8.8 (8.8.8.8): 56 data bites
35 > 74 packets transmitted, 0 packets received ,100% packet lost
36 >
37 > *** on the chrooted GENTOO environment ***
38 > > # ip addr
39 > sh: ip command not found
40 >
41 > > What is in /etc/resolv.conf?
42 > there is no resolv.conf file
43
44
45 copy (do not symlink) over the one from the normal system
46 (standard procedure for chrooted installs ;)
47
48
49 >
50 > > What say 'dig @8.8.8.8 gentoo.org'?
51 > /bin/sh: dig: not found
52 >
53 > > What say ping 8.8.8.8?
54 > PING 8.8.8.8 (8.8.8.8): 56(84) bytes of data
55 > From 192.168.0.202 icmp_seq=1 Destination Host Unreachable
56 > [...]
57 > 5 packets transmitted, 0 received , +3 errors, 100% packet lost, time
58 > 4027ms pipe 3
59 >
60 >
61 > *** if i do the same from my gNewSense desktop whit ethernet cable
62 > connection ***
63 > > # ip addr
64 > elm@firebolt:~$ ip addr
65 > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
66 > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
67 > inet 127.0.0.1/8 scope host lo
68 > inet6 ::1/128 scope host
69 > valid_lft forever preferred_lft forever
70 > 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 100
71 > link/ether 00:1d:72:92:d1:83 brd ff:ff:ff:ff:ff:ff
72 > inet 192.168.0.57/24 brd 192.168.0.255 scope global eth0
73 > inet6 fe80::21d:72ff:fe92:d183/64 scope link
74 > valid_lft forever preferred_lft forever
75 >
76 > > What is in /etc/resolv.conf?
77 > elm@firebolt:~$ cat /etc/resolv.conf
78 > ### BEGIN INFO
79 > #
80 > # Modified_by: NetworkManager
81 > # Process: /usr/bin/NetworkManager
82 > # Process_id: 4893
83 > #
84 > ### END INFO
85 >
86 > search Sauna
87 >
88 >
89 > nameserver 192.168.0.1
90 >
91 >
92 > > What say 'dig @8.8.8.8 gentoo.org'?
93 > elm@firebolt:~$ dig @8.8.8.8 gentoo.org
94 >
95 > ; <<>> DiG 9.4.2-P2.1 <<>> @8.8.8.8 gentoo.org
96 > ; (1 server found)
97 > ;; global options: printcmd
98 > ;; Got answer:
99 > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10108
100 > ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
101 >
102 > ;; QUESTION SECTION:
103 > ;gentoo.org. IN A
104 >
105 > ;; ANSWER SECTION:
106 > gentoo.org. 3323 IN A 89.16.167.134
107 >
108 > ;; Query time: 43 msec
109 > ;; SERVER: 8.8.8.8#53(8.8.8.8)
110 > ;; WHEN: Wed Jun 15 00:06:55 2011
111 > ;; MSG SIZE rcvd: 44
112 >
113 > > What say ping 8.8.8.8?
114 > elm@firebolt:~$ ping 8.8.8.8
115 > PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
116 > 64 bytes from 8.8.8.8: icmp_seq=1 ttl=53 time=43.7 ms
117 > 64 bytes from 8.8.8.8: icmp_seq=2 ttl=53 time=44.1 ms
118 > 64 bytes from 8.8.8.8: icmp_seq=3 ttl=53 time=43.4 ms
119 > 64 bytes from 8.8.8.8: icmp_seq=4 ttl=53 time=44.0 ms
120 > 64 bytes from 8.8.8.8: icmp_seq=5 ttl=53 time=44.0 ms
121 >
122 > --- 8.8.8.8 ping statistics ---
123 > 5 packets transmitted, 5 received, 0% packet loss, time 3998ms
124 > rtt min/avg/max/mdev = 43.466/43.871/44.118/0.306 ms
125 >
126 >
127 > *** questions ****
128 > should i copy the /etc/resolv.conf from the desktop to the phone? the
129 > name server form the provider (saunalathi) should be the same.
130 > 8.8.8.8 is the google DNS server - is this the better choice?
131 >
132 > I try to install qemu-user:
133 > # USE=static emerege -b1 app-emualtion/qemu-user
134 > [...]
135 > !!! All ebuilds that could satisfy "app-emulation/qemu-user" have been masked.
136 > [...]
137 >
138 > I guess I have first to get the wi-fi proper working in SHR and then
139 > try to install gentoo from scratch, then at the moment seems to be the
140 > biggest problem, that I have no internet access to the phone at all.
141 > What do you think?
142 >
143
144 Why not connect it through the usb? It might be slower than wifi, but
145 much more stable and predictable... It's on wiki:
146 http://wiki.openmoko.org/wiki/USB_Networking
147
148 but if you have working connection from desktop to neo, you just need to
149 run
150
151 iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
152 echo 1 >/proc/sys/net/ipv4/ip_forward
153
154 on the desktop, shr should be by default set up for the usb connection,
155 unless you start up some wifi connection app which would mess it up,
156 however this is what it looks like here (on the moko, wifi turned off):
157
158 root@om-gta02 ~ # cat /etc/resolv.conf
159 nameserver 208.67.222.222
160 nameserver 208.67.220.220
161
162 root@om-gta02 ~ # ip addr
163 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
164 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
165 inet 127.0.0.1/8 scope host lo
166 inet6 ::1/128 scope host
167 valid_lft forever preferred_lft forever
168 2: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
169 link/ether 00:1f:11:01:44:b3 brd ff:ff:ff:ff:ff:ff
170 inet 192.168.0.202/24 brd 192.168.0.255 scope global usb0
171 inet6 fe80::21f:11ff:fe01:44b3/64 scope link
172 valid_lft forever preferred_lft forever
173
174 root@om-gta02 ~ # route -n
175 Kernel IP routing table
176 Destination Gateway Genmask Flags Metric Ref Use Iface
177 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0
178 0.0.0.0 192.168.0.200 0.0.0.0 UG 8 0 0 usb0
179
180
181 root@om-gta02 ~ # ping -c3 www.google.com
182 PING www.google.com (209.85.149.103): 56 data bytes
183 64 bytes from 209.85.149.103: seq=0 ttl=54 time=31.947 ms
184 64 bytes from 209.85.149.103: seq=1 ttl=54 time=34.760 ms
185 64 bytes from 209.85.149.103: seq=2 ttl=54 time=34.034 ms
186
187
188 yoyo

Replies

Subject Author
Re: [gentoo-embedded] gentoo installation on openmoko freerunner elmar bucher <elmbeech@×××××.com>