strange qtopia wifi connectivity

Al Johnson openmoko at
Wed Aug 13 10:57:30 CEST 2008

On Wednesday 13 August 2008, Dimitri wrote:
> I've installed the latest version of Qtopia on my Freerunner, and
> configured it to auto-connect to my wifi network, on startup.
> I can ssh into it. No problem. But, I can't connect out to the internet.
> In the phone's terminal, if I type: ping
> I get the error: ping: bad address ''
> But, if I connect the usb cable, run the script below, in Ubuntu, and then
> DISCONNECT the cable, my outbound wifi connectivity suddenly works!:
> -----------------------
> #!/bin/bash
> sudo ifconfig usb0
> if (( `cat /proc/sys/net/ipv4/ip_forward` == 0 )); then
> 	echo 1 | sudo tee  /proc/sys/net/ipv4/ip_forward
> 	sudo iptables -t nat -A POSTROUTING -s -j MASQUERADE
> fi
> scp /etc/resolv.conf root at
> -----------------------
> What could be the problem? Any suggestions would be appreciated.
> Dimitri

By default the /etc/resolv.conf on 2008.8 is empty so the Freerunner can't 
resolve names. This is why you can't access the internet. The last line of 
your script copies the /etc/resolv.conf from your ubuntu box to the 
Freerunner, so internet connections start working.

More information about the support mailing list