From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QWm2V-00016K-Jb for garchives@archives.gentoo.org; Wed, 15 Jun 2011 09:05:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37DFA1C0A1 for ; Wed, 15 Jun 2011 09:05:31 +0000 (UTC) Received: from ksp.sk (element.ksp.sk [158.195.16.154]) by pigeon.gentoo.org (Postfix) with ESMTP id 38A341C015 for ; Wed, 15 Jun 2011 08:27:23 +0000 (UTC) Received: by ksp.sk (Postfix, from userid 1004) id 3B3494C1C3; Wed, 15 Jun 2011 10:27:22 +0200 (CEST) Date: Wed, 15 Jun 2011 10:27:22 +0200 From: YoYo Siska To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] gentoo installation on openmoko freerunner Message-ID: <20110615082722.GA25717@ksp.sk> References: <4DF729BE.5030204@udo.edu> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-YoYo: 47 X-Exotic-Header-Data: 47/2 User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 14cf1c5f7b13b6c7d9a30d3f18385cb1 On Wed, Jun 15, 2011 at 12:40:47AM +0300, elmar bucher wrote: > Hi Andrej, > > Thank you for the fast reply. > > *** on SHR *** > > # ip addr > quite some output > 1: lo (loopback at inet 127.0.0.1/8) > 2: usb0 [...] inet 192.168.0.202/24 brd 192.168.0.255 > 3: eth0 [...] inet 192.168.0.42/24 brd 192.168.0.255 hmm, your wifi uses the same subnet as the usbconnection. What does route -n show? I don't know if linux networking/routing can correctly handle such situation... To be on the safe side you can delete the address on the usb interface ip addr del 192.168.0.202/24 dev usb0 > > > What is in /etc/resolve.conf? > cat /ect/reslov.conf > nameserver 208.67.222.222 > nameserver 208.67.220.220 > > > What say 'dig @8.8.8.8 gentoo.org'? > /bin/sh: dig: not found > (so the is no dig command) > > > What say ping 8.8.8.8? > PING 8.8.8.8 (8.8.8.8): 56 data bites > 74 packets transmitted, 0 packets received ,100% packet lost > > *** on the chrooted GENTOO environment *** > > # ip addr > sh: ip command not found > > > What is in /etc/resolv.conf? > there is no resolv.conf file copy (do not symlink) over the one from the normal system (standard procedure for chrooted installs ;) > > > What say 'dig @8.8.8.8 gentoo.org'? > /bin/sh: dig: not found > > > What say ping 8.8.8.8? > PING 8.8.8.8 (8.8.8.8): 56(84) bytes of data > From 192.168.0.202 icmp_seq=1 Destination Host Unreachable > [...] > 5 packets transmitted, 0 received , +3 errors, 100% packet lost, time > 4027ms pipe 3 > > > *** if i do the same from my gNewSense desktop whit ethernet cable > connection *** > > # ip addr > elm@firebolt:~$ ip addr > 1: lo: mtu 16436 qdisc noqueue > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo > inet6 ::1/128 scope host > valid_lft forever preferred_lft forever > 2: eth0: mtu 1500 qdisc pfifo_fast qlen 100 > link/ether 00:1d:72:92:d1:83 brd ff:ff:ff:ff:ff:ff > inet 192.168.0.57/24 brd 192.168.0.255 scope global eth0 > inet6 fe80::21d:72ff:fe92:d183/64 scope link > valid_lft forever preferred_lft forever > > > What is in /etc/resolv.conf? > elm@firebolt:~$ cat /etc/resolv.conf > ### BEGIN INFO > # > # Modified_by: NetworkManager > # Process: /usr/bin/NetworkManager > # Process_id: 4893 > # > ### END INFO > > search Sauna > > > nameserver 192.168.0.1 > > > > What say 'dig @8.8.8.8 gentoo.org'? > elm@firebolt:~$ dig @8.8.8.8 gentoo.org > > ; <<>> DiG 9.4.2-P2.1 <<>> @8.8.8.8 gentoo.org > ; (1 server found) > ;; global options: printcmd > ;; Got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10108 > ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 > > ;; QUESTION SECTION: > ;gentoo.org. IN A > > ;; ANSWER SECTION: > gentoo.org. 3323 IN A 89.16.167.134 > > ;; Query time: 43 msec > ;; SERVER: 8.8.8.8#53(8.8.8.8) > ;; WHEN: Wed Jun 15 00:06:55 2011 > ;; MSG SIZE rcvd: 44 > > > What say ping 8.8.8.8? > elm@firebolt:~$ ping 8.8.8.8 > PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. > 64 bytes from 8.8.8.8: icmp_seq=1 ttl=53 time=43.7 ms > 64 bytes from 8.8.8.8: icmp_seq=2 ttl=53 time=44.1 ms > 64 bytes from 8.8.8.8: icmp_seq=3 ttl=53 time=43.4 ms > 64 bytes from 8.8.8.8: icmp_seq=4 ttl=53 time=44.0 ms > 64 bytes from 8.8.8.8: icmp_seq=5 ttl=53 time=44.0 ms > > --- 8.8.8.8 ping statistics --- > 5 packets transmitted, 5 received, 0% packet loss, time 3998ms > rtt min/avg/max/mdev = 43.466/43.871/44.118/0.306 ms > > > *** questions **** > should i copy the /etc/resolv.conf from the desktop to the phone? the > name server form the provider (saunalathi) should be the same. > 8.8.8.8 is the google DNS server - is this the better choice? > > I try to install qemu-user: > # USE=static emerege -b1 app-emualtion/qemu-user > [...] > !!! All ebuilds that could satisfy "app-emulation/qemu-user" have been masked. > [...] > > I guess I have first to get the wi-fi proper working in SHR and then > try to install gentoo from scratch, then at the moment seems to be the > biggest problem, that I have no internet access to the phone at all. > What do you think? > Why not connect it through the usb? It might be slower than wifi, but much more stable and predictable... It's on wiki: http://wiki.openmoko.org/wiki/USB_Networking but if you have working connection from desktop to neo, you just need to run iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE echo 1 >/proc/sys/net/ipv4/ip_forward on the desktop, shr should be by default set up for the usb connection, unless you start up some wifi connection app which would mess it up, however this is what it looks like here (on the moko, wifi turned off): root@om-gta02 ~ # cat /etc/resolv.conf nameserver 208.67.222.222 nameserver 208.67.220.220 root@om-gta02 ~ # ip addr 1: lo: mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: usb0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:1f:11:01:44:b3 brd ff:ff:ff:ff:ff:ff inet 192.168.0.202/24 brd 192.168.0.255 scope global usb0 inet6 fe80::21f:11ff:fe01:44b3/64 scope link valid_lft forever preferred_lft forever root@om-gta02 ~ # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0 0.0.0.0 192.168.0.200 0.0.0.0 UG 8 0 0 usb0 root@om-gta02 ~ # ping -c3 www.google.com PING www.google.com (209.85.149.103): 56 data bytes 64 bytes from 209.85.149.103: seq=0 ttl=54 time=31.947 ms 64 bytes from 209.85.149.103: seq=1 ttl=54 time=34.760 ms 64 bytes from 209.85.149.103: seq=2 ttl=54 time=34.034 ms yoyo