Re: can't connect to internet after ASU upgrade

2008-08-08 Thread Rorschach
Can it be that your /etc/resolv.conf is empty? Checkout the Known Issues: 
http://wiki.openmoko.org/wiki/Om_2008.8#Known_Issues


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: can't connect to internet after ASU upgrade

2008-08-08 Thread Daniel Benoy
Actually it's saying Packets: X, Errors: Y (0 errors on the output you pasted)

Also, I'm not sure about what ASU does by default, but have you checked the 
default route?  The 'gateway 192.168.0.200' line in /etc/network/interfaces 
should be under usb0, and you should see it when you run 'ip route show' 
(default via ADDRESS dev usb0).  Google should also be able to provide you more 
information about how to set and examine default routes.

If it's a freerunner, you may also want to consider getting it on a wireless 
network for simplicity's sake.

On Friday 08 August 2008 13:00:27 Dimitri wrote:
 
 I installed official ASU, but it can't connect to the internet (it connected
 fine, prior to ASU upgrade).
 
 To establish usb networking I run this script as sudo in Ubuntu:
 
 #!/bin/bash
 
 iptables -F
 ifconfig usb0 192.168.0.200 netmask 255.255.255.0
 route add 192.168.0.202 usb0
 iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT
 iptables -I OUTPUT 1 -s 192.168.0.200 -j ACCEPT
 iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
 bash -c echo '1  /proc/sys/net/ipv4/ip_forward'
 
 
 This allows me to ssh into the phone:
 ssh [EMAIL PROTECTED]
 
 But after I log in, I try
 ping google.com
 and it says it's a bad address.
 
 And if I go to the Installer gui, it says there's a problem with my network.
 
 ifconfig shows the following:
 
 loLink encap:Local Loopback
   inet addr:127.0.0.1  Mask:255.0.0.0
   inet6 addr: ::1/128 Scope:Host
   UP LOOPBACK RUNNING  MTU:16436  Metric:1
   RX packets:372 errors:0 dropped:0 overruns:0 frame:0
   TX packets:372 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:30168 (29.4 KiB)  TX bytes:30168 (29.4 KiB)
 
 usb0  Link encap:Ethernet  HWaddr 26:89:D4:D8:38:1C
   inet addr:192.168.0.202  Bcast:192.168.0.255  Mask:255.255.255.0
   inet6 addr: fe80::2489:d4ff:fed8:381c/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:388 errors:0 dropped:0 overruns:0 frame:0
   TX packets:186 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:46744 (45.6 KiB)  TX bytes:23237 (22.6 KiB)
 
 
 I see a lot of RX/TX packet errors. Could that be a clue? What am I doing
 wrong?
 
 Dimitri



-- 
Daniel Benoy
http://daniel.benoy.name


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: can't connect to internet after ASU upgrade

2008-08-08 Thread Dimitri


Daniel Benoy wrote:
 
 have you checked the default route?  The 'gateway 192.168.0.200' line in
 /etc/network/interfaces should be under usb0, and you should see it when
 you run 'ip route show' (default via ADDRESS dev usb0).
 

I think it's set up properly. I get the following when I run: ip route show

192.168.0.0/24 dev usb0  src 192.168.0.202
default via 192.168.0.200 dev usb0

And, I get the following when I run: cat /etc/network/interfaces

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
iface atml0 inet dhcp

# Wired or wireless interfaces
iface eth0 inet dhcp
iface eth1 inet dhcp

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
auto usb0
iface usb0 inet static
address 192.168.0.202
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.200

# Bluetooth networking
iface bnep0 inet dhcp


Daniel Benoy wrote:
 
 If it's a freerunner, you may also want to consider getting it on a
 wireless network for simplicity's sake.
 

Under settings, it says WiFi but doesn't say on OR off. It's just
blank. And if I click it, it says WiFi   unknown.

Anyway... one problem at a time, right? :)

Dimitri
-- 
View this message in context: 
http://n2.nabble.com/can%27t-connect-to-internet-after-ASU-upgrade-tp681131p681236.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: can't connect to internet after ASU upgrade

2008-08-08 Thread Tick Chen
Hi Dimitri, 
For USB connection you may try 
http://svn.openmoko.org/developers/tick/Test_env_script_GTA02A5/setneo

If you want wifi connection, you may try to reference:
http://wiki.openmoko.org/wiki/Om2008.8_Installer#Add_repository_manually
for geek part. :-)
in WEP please assign the key
e.g. iwconfig eth0 essid X key [1] 987654310
That works for me. 

Cheers, 
Tick

On Fri, Aug 08, 2008 at 10:00:27AM -0700, Dimitri wrote:
 
 I installed official ASU, but it can't connect to the internet (it connected
 fine, prior to ASU upgrade).
 
 To establish usb networking I run this script as sudo in Ubuntu:
 
 #!/bin/bash
 
 iptables -F
 ifconfig usb0 192.168.0.200 netmask 255.255.255.0
 route add 192.168.0.202 usb0
 iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT
 iptables -I OUTPUT 1 -s 192.168.0.200 -j ACCEPT
 iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
 bash -c echo '1  /proc/sys/net/ipv4/ip_forward'
Skip
 
 I see a lot of RX/TX packet errors. Could that be a clue? What am I doing
 wrong?
 
 Dimitri
 -- 
 View this message in context: 
 http://n2.nabble.com/can%27t-connect-to-internet-after-ASU-upgrade-tp681131p681131.html
 Sent from the Openmoko Community mailing list archive at Nabble.com.
 
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


signature.asc
Description: Digital signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: can't connect to internet after ASU upgrade

2008-08-08 Thread Andy Green
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| I installed official ASU, but it can't connect to the internet (it
connected
| fine, prior to ASU upgrade).

|   inet6 addr: fe80::2489:d4ff:fed8:381c/64 Scope:Link

ipv6 is up, does it make trouble on you local network?

Otherwise, eyeball

dmesg

and see if there is any clue.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkicogcACgkQOjLpvpq7dMqnvgCeKveh6LxrFp01HLyR3lZzxHaA
CKsAn2FWggbprnQqtelWxQZZagIrJ1Qx
=Cth6
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: can't connect to internet after ASU upgrade

2008-08-08 Thread Dimitri

Thank you for everyone's help. Indeed, I was no longer able to connect to the
internet because of an empty /etc/resolv.conf

This script that was suggested worked perfectly:
http://svn.openmoko.org/developers/tick/Test_env_script_GTA02A5/setneo

Cheers.
Dimitri


Dimitri wrote:
 
 I installed official ASU, but it can't connect to the internet (it
 connected fine, prior to ASU upgrade).
 
 To establish usb networking I run this script as sudo in Ubuntu:
 
 #!/bin/bash
 
 iptables -F
 ifconfig usb0 192.168.0.200 netmask 255.255.255.0
 route add 192.168.0.202 usb0
 iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT
 iptables -I OUTPUT 1 -s 192.168.0.200 -j ACCEPT
 iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
 bash -c echo '1  /proc/sys/net/ipv4/ip_forward'
 
 
 This allows me to ssh into the phone:
 ssh [EMAIL PROTECTED]
 
 But after I log in, I try
 ping google.com
 and it says it's a bad address.
 
 And if I go to the Installer gui, it says there's a problem with my
 network.
 
 ifconfig shows the following:
 
 loLink encap:Local Loopback
   inet addr:127.0.0.1  Mask:255.0.0.0
   inet6 addr: ::1/128 Scope:Host
   UP LOOPBACK RUNNING  MTU:16436  Metric:1
   RX packets:372 errors:0 dropped:0 overruns:0 frame:0
   TX packets:372 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:30168 (29.4 KiB)  TX bytes:30168 (29.4 KiB)
 
 usb0  Link encap:Ethernet  HWaddr 26:89:D4:D8:38:1C
   inet addr:192.168.0.202  Bcast:192.168.0.255  Mask:255.255.255.0
   inet6 addr: fe80::2489:d4ff:fed8:381c/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:388 errors:0 dropped:0 overruns:0 frame:0
   TX packets:186 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:46744 (45.6 KiB)  TX bytes:23237 (22.6 KiB)
 
 
 I see a lot of RX/TX packet errors. Could that be a clue? What am I doing
 wrong?
 
 Dimitri
 

-- 
View this message in context: 
http://n2.nabble.com/can%27t-connect-to-internet-after-ASU-upgrade-tp681131p682324.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community