<div class="gmail_quote">On Thu, Feb 5, 2009 at 5:56 AM, Al Johnson <span dir="ltr"><<a href="mailto:openmoko@mazikeen.demon.co.uk">openmoko@mazikeen.demon.co.uk</a>></span> wrote:<br><div>> 'SetResourcePolicy WiFi enabled' tells FSO to power up the WiFi irrespective<br>
> of whether any apps have issued 'RequestResource WiFi'. Before I do this I<br>> have no eth0 available.<br><br>Yeah, but it seems to also configure eth0 because after I SetResourcePolicy, If I do ifup eth0 right away I get "ifup: interface eth0 already configured"<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">To get dhcp working I would often have to do:<br>
<br>
ifup eth0<br>
ifdown eth0<br>
ifup eth0<br>
</blockquote><div><br>I know what you're talking about, I definitely had to do this with past images as well. However, with M5, there's still no luck with the second ifup eth0.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
On the second ifup the association often completes a little quicker so dhcp<br>
has a chance of completing before timeout. Another method is to manually start<br>
dhcp after the first ifup using something like:<br>
<br>
udhcpc -i eth0<br>
<br>
</blockquote><div><br>Yeah, this suffers the same fate is ifup, ifdown, ifup. It's good to know if I revert to an older image.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This assumes wpa_supplicant is making the association fine. You can check that<br>
with wpa_cli which accepts a 'help' command to tell you what other options it<br>
has.<br>
<br>
This has worked for me on everything I've tried since 2007.2, but I've not<br>
tried it on the recent SHR or MS5 yet. SHR, and probably MS5, have the added<br>
complication of connman running. This tries to manage the network connections,<br>
but at least for usb0 it is overridden by the ifup and ifdown commands.<br>
Assuming connman actually works, the other option would be to use the connman<br>
dbus interface to set the network parameters. Don't ask me how though ;-)<br>
<div><div></div><div class="Wj3C7c"><br></div></div></blockquote><div><br>I'll poke at this when I have more time after the weekend. <br></div></div><br>