Did they ever solve the slow bring up of wifi problem?

Did they ever solve the slow bring up of wifi problem?

Trying to get the iron storm up and running using the prebuilt binaries. The wlanX interface takes 3 minutes or more to come up. I did a lot of googleing and was able to get rid of the error message in the console but it was still very slow to come
up.

Did anyone ever solve this? If so can someone loan me a clue and point me to URL?

Re: Did they ever solve the slow bring up of wifi problem?

New to gumstix so this may be irrelevant, but I had some problems with wlan1 pulling a dhcp address, after it associated with the ap. The fix for me was to run networking restart (i dont recall the exact path to the script. ) from a new S99 script in rd5.d. now the overo boots and is accessible via wifi in about 60 seconds.

Trying to get the iron storm up and running using the prebuilt binaries. The wlanX interface takes 3 minutes or more to come up. I did a lot of googleing and was able to get rid of the error message in the console but it was still very slow to come
up.

Did anyone ever solve this? If so can someone loan me a clue and point me to URL?

Re: Did they ever solve the slow bring up of wifi problem?

On 01/05/12 02:16 PM, [hidden email] wrote:
> Trying to get the iron storm up and running using the prebuilt binaries.
> The wlanX interface takes 3 minutes or more to come up. I did a
> lot of googleing and was able to get rid of the error message in the
> console but it was still very slow to come up.

I don't have one in front of me, but I recall that something was not
right in /etc. My current recollection is that it's the ifstate file, or
something else that is written when an interface comes up. It may have
been a dangling symlink that prevented the state from being written and
this causes the timeout.

Re: Did they ever solve the slow bring up of wifi problem?

I have encountered the issue, too. I wrote down the following notice, which I got from some thread here. Maybe it can help

-----------------------------
There is a issue where the libertas_sdio driver does not start correctly, but delays bringing up the wireless interface wlan0 only after ~2 min. Then in most cases the wireless network does indeed connect. The following file can help:

>I have encountered the issue, too. I wrote down the following notice, which
>I
> got from some thread here. Maybe it can help
>
> -----------------------------
> There is a issue where the libertas_sdio driver does not start correctly,
> but delays bringing up the wireless interface wlan0 only after ~2 min.
> Then
> in most cases the wireless network does indeed connect. The following file
> can help:
>
> /etc/modprobe.d/modprobe.conf
>
> with the content:
>
> options libertas_sdio helper_name="sd8686_helper.bin"
> options libertas_sdio fw_name="sd8686.bin"
>
>
> --
> View this message in context:
> http://gumstix.8.n6.nabble.com/Did-they-ever-solve-the-slow-bring-up-of-wifi-problem-tp4944197p4954832.html> Sent from the Gumstix mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/> _______________________________________________
> gumstix-users mailing list
> [hidden email]> https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Did they ever solve the slow bring up of wifiproblem?

I'm having the same slow bring up of wifi as well. I tried using the 3.2 kernel commit that you posted with the omap3-console-image, but to no avail. Do you (or anyone else) know what could be causing this? I've been fighting this for awhile, but have been unsuccessful in my attempts to resolve it. I feel like it's a kernel/driver issue, but I'm not sure. Although, I read this gmane post that udev-175+ requires asynchronous firmware loading and the libertas hasn't been converted to that. I also stumbled across this link in my googling that looks like it might apply to this slow wifi bring up. Don't know if these changes apply to our Gumstix platform, but I'm looking into them.

Re: Did they ever solve the slow bring up of wifiproblem?

I did some work/searching last night and I believe that I have a solution for the slow WiFi bring-up problem that so many have been facing. As I had mentioned earlier, the latest udev being used in the any variant of the OpenEmbedded console/desktop image requires that all modules/firmware be loaded asynchronously. But, the libertas SDIO driver is synchronous, so it bogged down the boot process. I found some patches create by Daniel Drake at laptop.org that addressed this slow bringup issue, but his patches were for an older version of the libertas firmware. So, last night I went through and read the patches and generated new patches to match the libertas driver in this Sakoman 3.2 kernel commit (which is the commit dtran11 posted). I have attached the patch files, in addition to my modified virtual/kernel bitbake recipe, which are here: decl_h.patch, dev_h.patch, if_sdio_c.patch, main_c.patch, linux-omap3_git.bb.

This patch should probably work wit the Sakoman 3.0 kernel as well, but I haven't tested it. Currently, the asynchronous change has only been applied to the SDIO driver, which I fine for Overo use. But, I will apply the changes to the USB, GSPA and SPI interfaces later. I tested the patches this morning on my Overo FireSTORM w/ Tobi expansion board the bring-up time was within 2-3 seconds. So, hopefully others will have the same kind of results and will eliminate the need for any handcrafted workaround boot scripts to get our Linux COMs booting the way they should.

-Donald

Donny3000 wrote

I'm having the same slow bring up of wifi as well. I tried using the 3.2 kernel commit that you posted with the omap3-console-image, but to no avail. Do you (or anyone else) know what could be causing this? I've been fighting this for awhile, but have been unsuccessful in my attempts to resolve it. I feel like it's a kernel/driver issue, but I'm not sure. Although, I read this gmane post that udev-175+ requires asynchronous firmware loading and the libertas hasn't been converted to that. I also stumbled across this link in my googling that looks like it might apply to this slow wifi bring up. Don't know if these changes apply to our Gumstix platform, but I'm looking into them.

Re: Did they ever solve the slow bring up of wifiproblem?

Hi Ulih,

I actually made some changes to the patches for the libertas_sdio driver for the 3.2 kernel. Try these and let me know if they work for you. Previously, I was trying to minimize the number of files, but this time I just re-patched the entire driver so I wouldn't miss anything. I applied these patches and they seemed to work for me with a considerable decrease in the wait time (about 2-3 seconds).

Re: Did they ever solve the slow bring up of wifiproblem?

Hi,

thank you very much for your reply (and sorry for my delayed response). I tried your patches. When I load the module ("modprobe libertas_sdio"), the wait time is indeed very short, but the firmware is not found. After maybe 30 seconds, I get the error message:

I actually made some changes to the patches for the libertas_sdio driver for the 3.2 kernel. Try these and let me know if they work for you. Previously, I was trying to minimize the number of files, but this time I just re-patched the entire driver so I wouldn't miss anything. I applied these patches and they seemed to work for me with a considerable decrease in the wait time (about 2-3 seconds).

Re: Did they ever solve the slow bring up of wifiproblem?

Ulih,

What command are you using to load the module? I'm trying to figure out why it's trying to load all of the firmware versions. It should only be loading either the sd8686_v9_helper.bin, sd8686_v8_helper.bin or the sd8686_helper.bin. Can you post your contents of /lib/firmware or /lib/firmware/libertas again?

What command are you using to load the module? I'm
trying to figure out whyit's trying to load all of the firmware versions. It should only be loadingeither the sd8686_v9_helper.bin, sd8686_v8_helper.bin or thesd8686_helper.bin. Can you post your contents of /lib/firmware or/lib/firmware/libertas again?

Re: Did they ever solve the slow bring up of wifiproblem?

Hmm, try only executing modprobe libertas_sdio. I don't think you need to execute modprobe libertas to load the libertas module. It should get loaded automatically at the appropriate time after modprobe libertas_sdio is executed.

Hmm, try
only executing /modprobe libertas_sdio/. I don't think you need toexecute /modprobe libertas/ to load the /libertas/ module. It should getloaded automatically at the appropriate time after /modprobe libertas_sdio/is executed.