Kejun has done a great job with ECM. In case anything goes wrong the relevant commits are:
<kejun-zhou> http://review.android.git.linaro.org/#change,1371 <kejun-zhou> http://review.android.git.linaro.org/#change,1372 <kejun-zhou> http://review.android.git.linaro.org/#change,1373
Kicked off landing-snowball, staging-origen, tracking-panda, staging-imx53 and staging-vexpress-a9.
Abhishek and Amit, would you test the builds once they're done?
On Wed, 2012-01-11 at 20:48 -0600, Zach Pfeffer wrote:
Kejun has done a great job with ECM.
Yes, thanks Kejun. :-) I have a question though...
I can see the Settings menu has options for Ethernet now, and it defaults to DHCP, which is good. However, after booting my vexpress it doesn't have an active network connection. I also tried changing the config and enabling/disabling ethernet. Is there some more plumbing that needs adding, or something I need to add to my device config to get ethernet working?
(Additional info, I can still bring up a network from the commandline with "netcfg eth0 dhcp", but DSN resolving doesn't work, and the UI doesn't recognise there being a network. This was the situation before ECM was added.)
Thanks
Hi Jon,
I'm afraid that you need to run this command in console to enable the DNS:
setprop net.dns1 192.168.1.1 (192.168.1.1 is my wireless router)
Please refer to the comment #10 of this bug: https://bugs.launchpad.net/linaro-android/+bug/894502 FYI.
BR Botao Sun
On Thu, Jan 12, 2012 at 6:31 PM, Jon Medhurst (Tixy) tixy@linaro.orgwrote:
On Wed, 2012-01-11 at 20:48 -0600, Zach Pfeffer wrote:
Kejun has done a great job with ECM.
Yes, thanks Kejun. :-) I have a question though...
I can see the Settings menu has options for Ethernet now, and it defaults to DHCP, which is good. However, after booting my vexpress it doesn't have an active network connection. I also tried changing the config and enabling/disabling ethernet. Is there some more plumbing that needs adding, or something I need to add to my device config to get ethernet working?
(Additional info, I can still bring up a network from the commandline with "netcfg eth0 dhcp", but DSN resolving doesn't work, and the UI doesn't recognise there being a network. This was the situation before ECM was added.)
Thanks
-- Tixy
linaro-android mailing list linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android
On Thu, 2012-01-12 at 18:36 +0800, Botao Sun wrote:
I'm afraid that you need to run this command in console to enable the DNS:
setprop net.dns1 192.168.1.1 (192.168.1.1 is my wireless router)
Please refer to the comment #10 of this bug: https://bugs.launchpad.net/linaro-android/+bug/894502 FYI.
Thanks, that's useful for our testing, but I was hoping for a solution for our end users that would just-work TM.
Hi Jon, Ethernet should be auto enabled after entering android word. The green LED on the Ethernet port should be blinking if the cable is plugin before the Linux booting (This is not related with the ECM). The yellow LED should be on if the Ethernet is enabled by checking the ECM setting box.
If the cable is not plugin before the Linux booting, you need to disable then enable the Ethernet by unchecking then checking the ECM box. Once the green LED has blinked, unplug then plugin the cable can make the green LED off then blinking.
BRs, Kejun ZHOU
There is not special config for other devices.
On 12 January 2012 18:31, Jon Medhurst (Tixy) tixy@linaro.org wrote:
On Wed, 2012-01-11 at 20:48 -0600, Zach Pfeffer wrote:
Kejun has done a great job with ECM.
Yes, thanks Kejun. :-) I have a question though...
I can see the Settings menu has options for Ethernet now, and it defaults to DHCP, which is good. However, after booting my vexpress it doesn't have an active network connection. I also tried changing the config and enabling/disabling ethernet. Is there some more plumbing that needs adding, or something I need to add to my device config to get ethernet working?
(Additional info, I can still bring up a network from the commandline with "netcfg eth0 dhcp", but DSN resolving doesn't work, and the UI doesn't recognise there being a network. This was the situation before ECM was added.)
Thanks
-- Tixy
On Thu, 2012-01-12 at 18:52 +0800, Kejun Zhou wrote:
Ethernet should be auto enabled after entering android word.
Actually, checking again, the network is enabled but DNS lookups don't work.
Logcat shows EthernetStateMachine successfully doing a DHCP lookup and getting a DNS server address, but I guess this doesn't get fed into the net.dns1 property.
On Gingerbread, I notice that it's EthernetStateTracker which drives the DHCP lookup, and this works for me.
Both EthernetStateMachine and EthernetStateTracker seem to do similar jobs and have similar code, and both are running on ICS and Gingerbread.
I'll try and find some time to do some investigation.
On 12 January 2012 07:55, Jon Medhurst (Tixy) tixy@linaro.org wrote:
On Thu, 2012-01-12 at 18:52 +0800, Kejun Zhou wrote:
Ethernet should be auto enabled after entering android word.
Actually, checking again, the network is enabled but DNS lookups don't work.
Logcat shows EthernetStateMachine successfully doing a DHCP lookup and getting a DNS server address, but I guess this doesn't get fed into the net.dns1 property.
On Gingerbread, I notice that it's EthernetStateTracker which drives the DHCP lookup, and this works for me.
Both EthernetStateMachine and EthernetStateTracker seem to do similar jobs and have similar code, and both are running on ICS and Gingerbread.
I'll try and find some time to do some investigation.
Tixy, if you disable and re-enable Ethernet does it work?
Kejun, where is the net.dns1 property getting written.
This should work out of the box.
Mathieu, did you run into this issue?
-- Tixy
linaro-android mailing list linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android
On 12 January 2012 08:46, Jon Medhurst (Tixy) tixy@linaro.org wrote:
On Thu, 2012-01-12 at 08:32 -0600, Zach Pfeffer wrote:
Tixy, if you disable and re-enable Ethernet does it work?
It doesn't.
K, thanks for checking. We can modify it to write that prop. Kejun, can you take a look? Tixy, would you mind filing a bug?
Hi Zach, I will check and fix this issue ASAP.
On 12 January 2012 22:56, Zach Pfeffer zach.pfeffer@linaro.org wrote:
On 12 January 2012 08:46, Jon Medhurst (Tixy) tixy@linaro.org wrote:
On Thu, 2012-01-12 at 08:32 -0600, Zach Pfeffer wrote:
Tixy, if you disable and re-enable Ethernet does it work?
It doesn't.
K, thanks for checking. We can modify it to write that prop. Kejun, can you take a look? Tixy, would you mind filing a bug?
-- Zach Pfeffer Android Platform Team Lead, Linaro Platform Teams Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#%21/linaroorg - http://www.linaro.org/linaro-blog
Thanks Kejun!
On 12 January 2012 09:33, Kejun Zhou kejun.zhou@linaro.org wrote:
Hi Zach, I will check and fix this issue ASAP.
On 12 January 2012 22:56, Zach Pfeffer zach.pfeffer@linaro.org wrote:
On 12 January 2012 08:46, Jon Medhurst (Tixy) tixy@linaro.org wrote:
On Thu, 2012-01-12 at 08:32 -0600, Zach Pfeffer wrote:
Tixy, if you disable and re-enable Ethernet does it work?
It doesn't.
K, thanks for checking. We can modify it to write that prop. Kejun, can you take a look? Tixy, would you mind filing a bug?
-- Zach Pfeffer Android Platform Team Lead, Linaro Platform Teams Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#%21/linaroorg - http://www.linaro.org/linaro-blog
On Thu, 2012-01-12 at 08:56 -0600, Zach Pfeffer wrote:
K, thanks for checking. We can modify it to write that prop. Kejun, can you take a look? Tixy, would you mind filing a bug?
I created a bug: https://bugs.launchpad.net/linaro-landing-team-arm/+bug/915434
I notice that configureInterface() triggers DHCP for ETHERNET_CONN_MODE_DHCP else it sets static IP values which includes:
SystemProperties.set("net.dns1", info.getDnsAddr())
At least in frameworks/base, the only other place which I can find which might set DNS is updateDns() in frameworks/base/services/java/com/android/server/ConnectivityService.java which gets called from handleConnectivityChange().
I have never looked at Android code or programmed in Java before, so I'll stop looking there and get on with other things for the moment.
On 12 January 2012 10:34, Jon Medhurst (Tixy) tixy@linaro.org wrote:
On Thu, 2012-01-12 at 08:56 -0600, Zach Pfeffer wrote:
K, thanks for checking. We can modify it to write that prop. Kejun, can you take a look? Tixy, would you mind filing a bug?
I created a bug: https://bugs.launchpad.net/linaro-landing-team-arm/+bug/915434
Cool. I assigned the bug to Kejun.
I notice that configureInterface() triggers DHCP for ETHERNET_CONN_MODE_DHCP else it sets static IP values which includes:
SystemProperties.set("net.dns1", info.getDnsAddr())
At least in frameworks/base, the only other place which I can find which might set DNS is updateDns() in frameworks/base/services/java/com/android/server/ConnectivityService.java which gets called from handleConnectivityChange().
I have never looked at Android code or programmed in Java before, so I'll stop looking there and get on with other things for the moment.
Java is fun! Its like being in a warm, someone else handles your memory blanket!
-- Tixy
linaro-android@lists.linaro.org