Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Embedded (http://www.linux-archive.org/gentoo-embedded/)
-   -   gentoo installation on openmoko freerunner (http://www.linux-archive.org/gentoo-embedded/539510-gentoo-installation-openmoko-freerunner.html)

elmar bucher 06-14-2011 08:05 AM

gentoo installation on openmoko freerunner
 
Dear gentoo-embedded list members,

I try to get gentoo installed on the openmoko freerunner phone,
following the instruction at
http://gentoo.mindzoo.de/index.cgi/wiki/native-compiling .
(Last post on this prj page is about a year ago, but I still hoped to
get it running.)

I manged to:
+ fdisk the microSD card
+ format the root partition
+ format the swap partition
+ download the latest stage3 tarball and extract it on the root partition
+ download the latest portage tree and extract i to the root partition
+ set zoneinfo
+ set host name
+ uncomment unnecessary terminal in /ect/fstab
+ set locale-gen in inittab
+ chroot to the system
+ update environment (source /etc/profile && env-update)
+ set root passwd
+ enable sshd on startup (rc-update add sshd default)
+ set up usb networking (http://gentoo.mindzoo.de/index.cgi/wiki/USB_Networking)
+ remove consolefont from boot runlevel

But now, by trying to installing layman (to choose a profile) I run
into troubles:
If I try to emerge layman on the chrooted environment the phone can
not get an working internet connection.
Am I supposed to have a working internet connection?
I tried ping from the chrooted environment:
ping gentoo.org
ping: unknown host gentoo.org

At the moment the phone have the latest version of shr installed.
I can start wi-fi over "Iliwi" in shr. according to the message on the
screen get wifi CONNECTED.
how ever, if i try to ping from the non chrooted environment I get this:
ping gentoo.org
ping: bad address 'gentoo.org'

The latest I tried: I plugged the microSD card into my desktop, where
I tied to chroot to the environment. Without success. (Which somehow
makes sense to me, since the kernel on the microSD card is not packed
for the desktop hardware. But I am not sure if I am right.)

So this two question remains:
Do I need internet access on the phone (over wifi or the simcard) to
be able to finish the gentoo installation?
How can I install layman, that i can choose a profiles for openmoko?

I'm grateful for any hints.
So long, Elmar


--
Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?8754.

Peter Volkov 06-14-2011 09:09 AM

gentoo installation on openmoko freerunner
 
В Втр, 14/06/2011 в 11:05 +0300, elmar bucher пишет:
> At the moment the phone have the latest version of shr installed.
> I can start wi-fi over "Iliwi" in shr. according to the message on the
> screen get wifi CONNECTED.
> how ever, if i try to ping from the non chrooted environment I get this:
> ping gentoo.org
> ping: bad address 'gentoo.org'

Probably /etc/resolv.conf inside chroot does not have valid DNS servers.
Try to
cp /etc/resolv.conf /chroot/path/etc/ .

--
Peter.

Andrej Gelenberg 06-14-2011 09:28 AM

gentoo installation on openmoko freerunner
 
Hi,
to chroot on desktop, you need quemu-user
(http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=5).

Get your phone an ip address?
# ip addr

What is in /etc/resolve.conf? What say 'dig @8.8.8.8 gentoo.org'? What
say ping 8.8.8.8?

Regards,
Andrej Gelenberg


On 06/14/2011 10:05 AM, elmar bucher wrote:
> Dear gentoo-embedded list members,
>
> I try to get gentoo installed on the openmoko freerunner phone,
> following the instruction at
> http://gentoo.mindzoo.de/index.cgi/wiki/native-compiling .
> (Last post on this prj page is about a year ago, but I still hoped to
> get it running.)
>
> I manged to:
> + fdisk the microSD card
> + format the root partition
> + format the swap partition
> + download the latest stage3 tarball and extract it on the root partition
> + download the latest portage tree and extract i to the root partition
> + set zoneinfo
> + set host name
> + uncomment unnecessary terminal in /ect/fstab
> + set locale-gen in inittab
> + chroot to the system
> + update environment (source /etc/profile && env-update)
> + set root passwd
> + enable sshd on startup (rc-update add sshd default)
> + set up usb networking (http://gentoo.mindzoo.de/index.cgi/wiki/USB_Networking)
> + remove consolefont from boot runlevel
>
> But now, by trying to installing layman (to choose a profile) I run
> into troubles:
> If I try to emerge layman on the chrooted environment the phone can
> not get an working internet connection.
> Am I supposed to have a working internet connection?
> I tried ping from the chrooted environment:
> ping gentoo.org
> ping: unknown host gentoo.org
>
> At the moment the phone have the latest version of shr installed.
> I can start wi-fi over "Iliwi" in shr. according to the message on the
> screen get wifi CONNECTED.
> how ever, if i try to ping from the non chrooted environment I get this:
> ping gentoo.org
> ping: bad address 'gentoo.org'
>
> The latest I tried: I plugged the microSD card into my desktop, where
> I tied to chroot to the environment. Without success. (Which somehow
> makes sense to me, since the kernel on the microSD card is not packed
> for the desktop hardware. But I am not sure if I am right.)
>
> So this two question remains:
> Do I need internet access on the phone (over wifi or the simcard) to
> be able to finish the gentoo installation?
> How can I install layman, that i can choose a profiles for openmoko?
>
> I'm grateful for any hints.
> So long, Elmar
>
>

elmar bucher 06-14-2011 09:40 PM

gentoo installation on openmoko freerunner
 
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

> 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

> 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?

So long, Elmar



/*****
On 14 June 2011 12:28, Andrej Gelenberg <andrej.gelenberg@udo.edu> wrote:

> Hi,
> to chroot on desktop, you need quemu-user
> (http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=5).
>
> Get your phone an ip address?
> # ip addr
>
> What is in /etc/resolve.conf? What say 'dig @8.8.8.8 gentoo.org'? What
> say ping 8.8.8.8?
>
> Regards,
> Andrej Gelenberg
>
>
> On 06/14/2011 10:05 AM, elmar bucher wrote:
>> Dear gentoo-embedded list members,
>>
>> I *try to get gentoo installed on the openmoko freerunner phone,
>> following the instruction at
>> http://gentoo.mindzoo.de/index.cgi/wiki/native-compiling .
>> (Last post on this prj page is about a year ago, but I still hoped to
>> get it running.)
>>
>> I manged to:
>> + fdisk the microSD card
>> + format the root partition
>> + format the swap partition
>> + download the latest stage3 tarball and extract it on the root partition
>> + download the latest portage tree and extract i to the root partition
>> + set zoneinfo
>> + set host name
>> + uncomment *unnecessary terminal in /ect/fstab
>> + set locale-gen in inittab
>> + chroot to the system
>> + update environment (source /etc/profile && env-update)
>> + set root passwd
>> + enable sshd on startup (rc-update add sshd default)
>> + set up usb networking (http://gentoo.mindzoo.de/index.cgi/wiki/USB_Networking)
>> + remove consolefont from boot runlevel
>>
>> But now, by trying to installing layman (to choose a profile) I run
>> into troubles:
>> If I try to emerge layman on the chrooted environment the phone can
>> not get an working internet connection.
>> Am I supposed to have a working internet connection?
>> I tried ping from the chrooted environment:
>> *ping gentoo.org
>> *ping: unknown host gentoo.org
>>
>> At the moment the phone have the latest version of shr installed.
>> I can start wi-fi over "Iliwi" in shr. according to the message on the
>> screen get wifi CONNECTED.
>> how ever, if i try to ping from the non chrooted environment I get this:
>> * ping gentoo.org
>> * ping: bad address 'gentoo.org'
>>
>> The latest I tried: I plugged the microSD card into my desktop, where
>> I tied to chroot to the environment. Without success. (Which somehow
>> makes sense to me, since the kernel on the microSD card is not packed
>> for the desktop hardware. But I am not sure if I am right.)
>>
>> So this two question remains:
>> Do I need internet access on the phone (over wifi or the simcard) to
>> be able to finish the gentoo installation?
>> How can I install layman, that i can choose a profiles for openmoko?
>>
>> I'm grateful for any hints.
>> So long, Elmar
>>
>>
>
>



--
Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?8754.

elmar bucher 06-14-2011 09:41 PM

gentoo installation on openmoko freerunner
 
Hi Peter,

Thank you as well for the fast reply.
I guess you have seen my longer answer to Andrej.
Your answer make me optimistic to use the DNS names server information
that works on my desktop in my phone.
lets see what happens...

So long, Elmar


On 14 June 2011 12:09, Peter Volkov <pva@gentoo.org> wrote:
> В Втр, 14/06/2011 в 11:05 +0300, elmar bucher пишет:
>> At the moment the phone have the latest version of shr installed.
>> I can start wi-fi over "Iliwi" in shr. according to the message on the
>> screen get wifi CONNECTED.
>> how ever, if i try to ping from the non chrooted environment I get this:
>> * ping gentoo.org
>> * ping: bad address 'gentoo.org'
>
> Probably /etc/resolv.conf inside chroot does not have valid DNS servers.
> Try to
> cp /etc/resolv.conf /chroot/path/etc/ .
>
> --
> Peter.
>
>
>
>



--
Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?8754.

elmar bucher 06-14-2011 10:15 PM

gentoo installation on openmoko freerunner
 
Hi Peter and Andrej,

It did not help. I get the same errors, using the reslov.conf file
from the desktop in the shr and gentoo environment on the phone.

Have a good night, all of you, Elmar


On 15 June 2011 00:41, elmar bucher <elmbeech@gmail.com> wrote:
> Hi Peter,
>
> Thank you as well for the fast reply.
> I guess you have seen my longer answer to Andrej.
> Your answer make me optimistic to use the DNS names server information
> that works on my desktop in my phone.
> lets see what happens...
>
> So long, Elmar
>
>
> On 14 June 2011 12:09, Peter Volkov <pva@gentoo.org> wrote:
>> В Втр, 14/06/2011 в 11:05 +0300, elmar bucher пишет:
>>> At the moment the phone have the latest version of shr installed.
>>> I can start wi-fi over "Iliwi" in shr. according to the message on the
>>> screen get wifi CONNECTED.
>>> how ever, if i try to ping from the non chrooted environment I get this:
>>> * ping gentoo.org
>>> * ping: bad address 'gentoo.org'
>>
>> Probably /etc/resolv.conf inside chroot does not have valid DNS servers.
>> Try to
>> cp /etc/resolv.conf /chroot/path/etc/ .
>>
>> --
>> Peter.
>>
>>
>>
>>
>
>
>
> --
> Using Gmail? Please read this important notice:
> http://www.fsf.org/campaigns/jstrap/gmail?8754.
>



--
Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?8754.

Andrej Gelenberg 06-15-2011 06:27 AM

gentoo installation on openmoko freerunner
 
Hi,


> 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?

yes, it is.

You can get list of urls which you need with 'emerge -pvf layman'. Place
downloaded files into /usr/portage/distfiles and install layman.

Regards,
Andrej Gelenberg

YoYo Siska 06-15-2011 08:27 AM

gentoo installation on openmoko freerunner
 
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

elmar bucher 06-15-2011 09:48 PM

gentoo installation on openmoko freerunner
 
Hi Yoyo,

At least a step I cam further...

> 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

I followed the USB Networking instruction.
elm@firebolt:~$ sudo ip address add 192.168.0.200/24 dev eth1
elm@firebolt:~$ sudo ip link set dev eth1 up
elm@firebolt:~$ sudo route add -host 192.168.0.202 dev eth1

*** form the desktop ping and ssh to the phone works YEAH!***
elm@firebolt:~$ ping 192.168.0.202
PING 192.168.0.202 (192.168.0.202) 56(84) bytes of data.
64 bytes from 192.168.0.202: icmp_seq=1 ttl=64 time=1.15 ms
64 bytes from 192.168.0.202: icmp_seq=2 ttl=64 time=1.20 ms
64 bytes from 192.168.0.202: icmp_seq=3 ttl=64 time=1.26 ms
64 bytes from 192.168.0.202: icmp_seq=4 ttl=64 time=1.57 ms
64 bytes from 192.168.0.202: icmp_seq=5 ttl=64 time=1.62 ms

--- 192.168.0.202 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3997ms
rtt min/avg/max/mdev = 1.150/1.365/1.627/0.197 ms

elm@firebolt:~$ ssh root@192.168.0.202
root@192.168.0.202's password:
Last login: Tue Jan 4 12:33:47 2000 from 192.168.0.200
root@om-gta02 ~ #


*** form the phone ping to the phone works too (even the time looks
freaking fast), but ssh to the desktop does not work, even I'm sure
the firewall is down ***
root@om-gta02 ~ # ping 192.168.0.200
PING 192.168.0.200 (192.168.0.200): 56 data bytes
64 bytes from 192.168.0.200: seq=0 ttl=64 time=0.000 ms
64 bytes from 192.168.0.200: seq=1 ttl=64 time=0.000 ms
64 bytes from 192.168.0.200: seq=2 ttl=64 time=0.000 ms
64 bytes from 192.168.0.200: seq=3 ttl=64 time=0.000 ms
64 bytes from 192.168.0.200: seq=4 ttl=64 time=0.000 ms
^C
--- 192.168.0.200 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.000/0.000/0.000 ms
root@om-gta02 ~ #

root@om-gta02 ~ # ssh elm@192.168.0.200
ssh: connect to host 192.168.0.200 port 22: Connection refused



>> > # 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.

surprisingly this have change:
root@om-gta02 ~ # ip addre
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:a9:a5 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:a9a5/64 scope link
valid_lft forever preferred_lft forever

> What does
> route -n
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


> 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):

Do I still have to run
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE echo 1
>/proc/sys/net/ipv4/ip_forward ?

Still wonder if the problem is in the shr installation. I just flashed
freerunner whit shr, to be able to install gentoo. I never properly
used it to phone or something. The pre-flashed os (om2008?) have not
even had a command line. But there the phone was working. That I
tested.

Well, that's it for today.
Thanks! And good night.

So long, Elmar

David Ford 06-15-2011 10:08 PM

gentoo installation on openmoko freerunner
 
is sshd running?

On 06/15/2011 05:48 PM, elmar bucher wrote:
> root@om-gta02 ~ # ssh elm@192.168.0.200
> ssh: connect to host 192.168.0.200 port 22: Connection refused

--
8=====> } two guys inside { <=====8

-Linux: freedom to build is good
-Please top-post and trim when replying to my messages. I most often read mail on a small device.
-Firefox; enable spell checking in forms too: in the address bar enter about:config, filter for layout.spellcheckDefault, change value to 2


All times are GMT. The time now is 11:58 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.