Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: YoYo Siska <yoyo@...>
Subject: Re: gentoo installation on openmoko freerunner
Date: Wed, 15 Jun 2011 10:27:22 +0200
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: <LOOPBACK,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <LOOPBACK,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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


Replies:
Re: gentoo installation on openmoko freerunner
-- elmar bucher
References:
gentoo installation on openmoko freerunner
-- elmar bucher
Re: gentoo installation on openmoko freerunner
-- Andrej Gelenberg
Re: gentoo installation on openmoko freerunner
-- elmar bucher
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: gentoo installation on openmoko freerunner
Next by thread:
Re: gentoo installation on openmoko freerunner
Previous by date:
Re: gentoo installation on openmoko freerunner
Next by date:
Best (US) carrier for eGentoo on Cell ?


Updated Jun 25, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.