15 messages in com.googlegroups.android-internalsRe: Android on Freescale MX31: networ...| From | Sent On | Attachments |
|---|---|---|
| patrick | 03 Mar 2008 02:32 | |
| patrick | 03 Mar 2008 04:46 | |
| Liu Huadong | 04 Mar 2008 00:06 | |
| patrick | 05 Mar 2008 19:34 | |
| patrick | 05 Mar 2008 22:06 | |
| FengForky | 15 Mar 2008 05:19 | |
| patrick | 24 Mar 2008 19:51 | |
| fantazio | 25 Mar 2008 23:04 | |
| Stone Mirror | 29 Mar 2008 19:38 | |
| patrick | 30 Mar 2008 02:21 | |
| patrick | 30 Mar 2008 02:40 | |
| Jean-Baptiste Queru | 30 Mar 2008 07:03 | |
| patrick | 31 Mar 2008 21:51 | |
| ruckuus | 21 Apr 2008 04:17 | |
| patrick | 22 Apr 2008 20:31 |
| Subject: | Re: Android on Freescale MX31: network error, unknown host![]() |
|---|---|
| From: | FengForky (feng...@gmail.com) |
| Date: | 03/15/2008 05:19:41 AM |
| List: | com.googlegroups.android-internals |
I encounted the same problem of "unkown host". My PC is WindowsXP + android-sdk_m5-rc15_windows. I connected to the internet by ADSL. I'm in Beijing,China.
How to solve it?
On Mar 6, 2:06 pm, patrick <cha...@gmail.com> wrote:
Hi HuaDong: I made it work. I have edited the file /etc/init.rc, so that it wouldn't start any service and then a the folloing line to my android start script:
1. /init & 2. sleep 5 3. setprop net.eth0.dns1 192.168.1.250 4. setprop net.gprs.local-ip 192.168.1.122
For line 1, init has to put in the background, otherwise, it will stop there
For line 2, just make sure everything call by init is done before setprop
For line 3 and 4, setup the properties as you mentioned.
Really thanks for your hints.
BTW, have you ever tried the touchscreen? I am working on it now, but seems a long way to go, as android doesn't response when i click on the touchscreen.
patrick
On Mar 4, 4:07 pm, Liu Huadong <liuh...@gmail.com> wrote:
you need set a dns property, [net.eth0.dns1]: [10.0.2.3] [net.gprs.local-ip]: [10.0.2.15] the above is for emulator, for hardware "net.gprs.dns1"
good lucky
On Mar 3, 8:46 pm, patrick <cha...@gmail.com> wrote:
Dear All:
I have figured out the ping problem in the change root
environment, it was due to the missing libraries, after i copied the
libraries from the base system, it works fine. but it is strange,
because the busybox, i download it
fromhttp://benno.id.au/blog/2007/11/14/android-busybox,
is statically linked, it doesn't need any extra library.
For the browser, it still reports "Nework Erro, unknow host"
Can somebody help!
patrick
On Mar 3, 6:32 pm, patrick <cha...@gmail.com> wrote:
Dear All: I am trying to run android on my Freescale MX31 platform, it runs fine, but when I use the android browser to connect to the Internet, it complains about "network error, unknown host".
Android is run in a change root environment. Before running android, I have checked the network connection, it can access the Internet:
/mnt/usb/ramfs $ ifconfig eth0 Link encap:Ethernet HWaddr 00:90:FB:07:C6:00 inet addr:192.168.1.122 Bcast:192.168.1.255 Mask: 255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:201 errors:0 dropped:0 overruns:0 frame:0 TX packets:189 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:35243 (34.4 KiB) TX bytes:17755 (17.3 KiB) Interrupt:90
/mnt/usb/ramfs $ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 default xx.xxxxxxx.com 0.0.0.0 UG 0 0 0 eth0
/mnt/usb/ramfs $ ping yahoo.com PING yahoo.com (66.94.234.13): 56 data bytes 64 bytes from 66.94.234.13: icmp_seq=1 ttl=56 time=286.2 ms 64 bytes from 66.94.234.13: icmp_seq=2 ttl=55 time=187.2 ms 64 bytes from 66.94.234.13: icmp_seq=3 ttl=55 time=243.4 ms
After change root, it fails to ping yahoo.com, but it is fine to ping by using IP directly:
# /data/busybox/busybox ping yahoo.com ping: bad address 'yahoo.com'
# /data/busybox/busybox ping 66.94.234.13 PING 66.94.234.13 (66.94.234.13): 56 data bytes 64 bytes from 66.94.234.13: seq=0 ttl=56 time=187.703 ms 64 bytes from 66.94.234.13: seq=1 ttl=55 time=182.139 ms
I have tried to do the same things in the android emulator, it can't even ping the host by using the IP, but i can connect to the Internet by using the browser.
There is a resolv.conf file in the change root environment, which is the same as the one in the base file system.
I have check the boot up message by accessing the emulator's shell, there is not much information, it enables the IPv4 and GRE tunneling, which I think it maybe the reason, but it seems not, as I also enable the tunneling in my kernel, it fails too.
Does anybody know how to solve this problem, pls kindly let me know.
Thanks in advance.
patrick- Hide quoted text -




