Origen Ethernet can't pass the "plug out & plug in" test.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Android |
Won't Fix
|
Medium
|
Unassigned | ||
linaro-landing-team-samsung |
Fix Released
|
Medium
|
Sangwook Lee |
Bug Description
With the USB Ethernet adapter - Linksys USB200M v2.1, chip model ASIX AX88772, the Samsung Origen board can't pass the "plug out & plug in" test.
You will get 2 issues if you try to do that:
1. The Ethernet icon on the upper right cornet will be gone.
2. "ping" command can't be executed at all or just can be executed once if you set DNS manually. And even it runs, there is error message in the output which wouldn't appear if you plug in the adapter all the time.
For more details, see below description. If any one who want to know the whole story, feel free to go the bug 863451: https:/
About the "plug-in and plug-out":
1. If the adapter is plugged in before the board boots up:
Disable and enable can be executed correctly, and "ping" command can be executed correctly.
2. If the adapter is plugged in after the board boots up:
Disable and enable can be executed correctly, but there is no "Ethernet" icon in the upper right corner. "ping" command can't be executed correctly except do a Ethernet "disable and enable" action then execute "setprop net.dns1 192.168.1.1" to set DNS first. But even set DNS manually, "ping" command doesn't always work, see log below:
#######
# ping www.google.com
ping: unknown host www.google.com
# setprop net.dns1 192.168.1.1
# ping www.google.com
PING www.l.google.com (74.125.71.103) 56(84) bytes of data.
64 bytes from hx-in-f103.
64 bytes from hx-in-f103.
ping: sendmsg: Network is unreachable
64 bytes from hx-in-f103.
64 bytes from hx-in-f103.
ping: sendmsg: Network is unreachable
64 bytes from hx-in-f103.
64 bytes from hx-in-f103.
ping: sendmsg: Network is unreachable
64 bytes from hx-in-f103.
64 bytes from hx-in-f103.
ping: sendmsg: Network is unreachable
^C
--- www.l.google.com ping statistics ---
12 packets transmitted, 8 received, 33% packet loss, time 11006ms
rtt min/avg/max/mdev = 231.590/
# ping www.google.com
ping: unknown host www.google.com
# ping www.google.com
ping: unknown host www.google.com
[init.svc.
[dhcp.eth0.result]: [ok]
[dhcp.eth0.pid]: [9361]
[dhcp.eth0.reason]: [BOUND]
[dhcp.eth0.dns1]: [211.147.6.3]
[dhcp.eth0.dns2]: [8.8.8.8]
[dhcp.eth0.dns3]: []
[dhcp.eth0.dns4]: []
[dhcp.eth0.
[dhcp.eth0.
[dhcp.eth0.mask]: [255.255.255.0]
[dhcp.eth0.
[dhcp.eth0.server]: [192.168.1.1]
[net.dns1]: [192.168.1.1]
#######
That means you can only run "ping" command 1 time after the manually DNS setting, but actually, after set DNS manually, this setting is always there. This is a defect. And there is "ping: sendmsg: Network is unreachable", this doesn't appear in situation 1.
3. If the adapter is plugged in before the board boots up, but after the board enters the Android idle screen, plug it out and plug it in again:
3.1 If the Ethernet status is enabled:
After plug it out and plug it in, although the Ethernet status in setting menu still shows "enabled", the adapter even can't get IP address, of course, the "ping" command can't be executed correctly. At this time, if do the disable and enable action, the adapter can get the IP address and DNS can also be set automatically, but still have "ping: sendmsg: Network is unreachable" which is not shown in situation 1. Another thing is you can run "ping" many times here, not only 1 time like situation 2.
3.2 If the Ethernet status is disabled:
After plug it out and plug it in, then enable the Ethernet, there is no "Ethernet" icon in the upper right corner. The adapter can get the IP address but can't execute "ping" command:
# ping www.google.com
ping: unknown host www.google.com
However, the DNS setting is already there:
[init.svc.
[dhcp.eth0.result]: [ok]
[dhcp.eth0.pid]: [3862]
[dhcp.eth0.reason]: [BOUND]
[dhcp.eth0.dns1]: [211.147.6.3]
[dhcp.eth0.dns2]: [8.8.8.8]
[dhcp.eth0.dns3]: []
[dhcp.eth0.dns4]: []
[dhcp.eth0.
[dhcp.eth0.
[dhcp.eth0.mask]: [255.255.255.0]
[dhcp.eth0.
[dhcp.eth0.server]: [192.168.1.1]
Even set DNS manually like situation 2, the ping command still can't be executed correctly:
# setprop net.dns1 192.168.1.1
# ping www.google.com
ping: unknown host www.google.com
In this situation, you have to do "disable and enable" Ethernet then set DNS manually, the "ping" command can be executed with "ping: sendmsg: Network is unreachable" message, but multiple times.
Above all are the tests I did in several different situations.
Changed in linaro-landing-team-samsung: | |
assignee: | nobody → Giridhar BM (giridhar-bm) |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: ethernet linaro-android |
Changed in linaro-android: | |
milestone: | 11.11 → none |
Changed in linaro-landing-team-samsung: | |
assignee: | Giridhar BM (giridhar-bm) → Sangwook Lee (sangwook) |
Changed in linaro-landing-team-samsung: | |
milestone: | none → 2012.03 |
Changed in linaro-landing-team-samsung: | |
status: | Fix Committed → Fix Released |
Changed in linaro-android: | |
assignee: | Botao Sun (botao-sun) → nobody |
Changed in linaro-android: | |
status: | Confirmed → Won't Fix |
The build I used for this bug is: https:/ /android- build.linaro. org/builds/ ~linaro- android/ staging- origen/ #build= 34