<div class="gmail_quote">On Thu, Feb 5, 2009 at 5:56 AM, Al Johnson <span dir="ltr">&lt;<a href="mailto:openmoko@mazikeen.demon.co.uk">openmoko@mazikeen.demon.co.uk</a>&gt;</span> wrote:<br><div>&gt; &#39;SetResourcePolicy WiFi enabled&#39; tells FSO to power up the WiFi irrespective<br>

&gt; of whether any apps have issued &#39;RequestResource WiFi&#39;. Before I do this I<br>&gt; 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 &quot;ifup: interface eth0 already configured&quot;<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&#39;re talking about, I definitely had to do this with past images as well.&nbsp; However, with M5, there&#39;s still no luck with the second ifup eth0.<br>&nbsp;</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.&nbsp; It&#39;s good to know if I revert to an older image.<br>&nbsp;</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 &#39;help&#39; command to tell you what other options it<br>
has.<br>
<br>
This has worked for me on everything I&#39;ve tried since 2007.2, but I&#39;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&#39;t ask me how though ;-)<br>
<div><div></div><div class="Wj3C7c"><br></div></div></blockquote><div><br>I&#39;ll poke at this when I have more time after the weekend. <br></div></div><br>