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 1QWyEP-0004Qe-Dv for garchives@archives.gentoo.org; Wed, 15 Jun 2011 22:06:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0EB181C146 for ; Wed, 15 Jun 2011 22:06:36 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 13E001C056 for ; Wed, 15 Jun 2011 21:48:52 +0000 (UTC) Received: by wwj40 with SMTP id 40so831018wwj.10 for ; Wed, 15 Jun 2011 14:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=hSGYOXadO9lh9OMLRc9lGQe04R39o/rd7l8wuW4/8Mc=; b=duuvJBs5KPeTwGb6AggyrMjsSymhEL/QT8OxQTl+CPWRDXLDt3vOXQOzHWtyCGLrEz TnrfmhTBL0GojoIMRsdmwM5oPi71GfHSjIFyEOQ9pQ/VLfAGqG17D6iclYqfttiOQmZ8 +KQbAb5uX+4Hf7GJBtDdgtD+arDzEtvo9XzQQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=cXgWyKADR4H94+TCqA8FBMtxjxR9Lzj8Zu+y0kpFCe9EWfgGAL0mUraFV60TPwCzGo lmwzHu0En1yvxdUGCQQRXRI77zy9W8A3qm5ibvF6yuHmCAjP7hSrBdyDX62VfZs1kRRT gWtX9vQAPA/tKsfnsbybya/I3zQeGn/OZFxwo= 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 Received: by 10.216.69.196 with SMTP id n46mr93339wed.86.1308174532186; Wed, 15 Jun 2011 14:48:52 -0700 (PDT) Received: by 10.216.172.146 with HTTP; Wed, 15 Jun 2011 14:48:51 -0700 (PDT) In-Reply-To: <20110615082722.GA25717@ksp.sk> References: <4DF729BE.5030204@udo.edu> <20110615082722.GA25717@ksp.sk> Date: Thu, 16 Jun 2011 00:48:51 +0300 Message-ID: Subject: Re: [gentoo-embedded] gentoo installation on openmoko freerunner From: elmar bucher To: gentoo-embedded@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: X-Archives-Hash: f5537c8ef040842f2c41e62d668c7158 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: 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: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