linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to request firmware during module init?
@ 2011-09-06  8:40 Kalle Valo
  2011-09-06  8:44 ` Johannes Berg
  2011-09-06  8:50 ` Tony Vroon
  0 siblings, 2 replies; 4+ messages in thread
From: Kalle Valo @ 2011-09-06  8:40 UTC (permalink / raw)
  To: linux-wireless

Hi,

ath6kl needs to request the firmware from user space during module init
(or to be exact from sdio probe, but it's almost the same thing) and
boot hardware to get some settings etc before it registers itself to
cfg80211. What's the proper way to handle this?

I noticed that when I compile ath6kl into kernel boot fails on my x86
box as firmware is not available because user space is not ready.

Kalle

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to request firmware during module init?
  2011-09-06  8:40 How to request firmware during module init? Kalle Valo
@ 2011-09-06  8:44 ` Johannes Berg
  2011-09-06  8:48   ` Kalle Valo
  2011-09-06  8:50 ` Tony Vroon
  1 sibling, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2011-09-06  8:44 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless

On Tue, 2011-09-06 at 11:40 +0300, Kalle Valo wrote:
> Hi,
> 
> ath6kl needs to request the firmware from user space during module init
> (or to be exact from sdio probe, but it's almost the same thing) and
> boot hardware to get some settings etc before it registers itself to
> cfg80211. What's the proper way to handle this?
> 
> I noticed that when I compile ath6kl into kernel boot fails on my x86
> box as firmware is not available because user space is not ready.

We do an async request, once it comes back we register with mac80211.

johannes


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to request firmware during module init?
  2011-09-06  8:44 ` Johannes Berg
@ 2011-09-06  8:48   ` Kalle Valo
  0 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2011-09-06  8:48 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

On 09/06/2011 11:44 AM, Johannes Berg wrote:
> On Tue, 2011-09-06 at 11:40 +0300, Kalle Valo wrote:
>> Hi,
>>
>> ath6kl needs to request the firmware from user space during module init
>> (or to be exact from sdio probe, but it's almost the same thing) and
>> boot hardware to get some settings etc before it registers itself to
>> cfg80211. What's the proper way to handle this?
>>
>> I noticed that when I compile ath6kl into kernel boot fails on my x86
>> box as firmware is not available because user space is not ready.
> 
> We do an async request, once it comes back we register with mac80211.

I take it you mean request_firmware_nowait(). I'll use that also.

Thanks!

Kalle

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to request firmware during module init?
  2011-09-06  8:40 How to request firmware during module init? Kalle Valo
  2011-09-06  8:44 ` Johannes Berg
@ 2011-09-06  8:50 ` Tony Vroon
  1 sibling, 0 replies; 4+ messages in thread
From: Tony Vroon @ 2011-09-06  8:50 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/09/11 09:40, Kalle Valo wrote:
> I noticed that when I compile ath6kl into kernel boot fails on my
> x86 box as firmware is not available because user space is not
> ready.

Provided CONFIG_FIRMWARE_IN_KERNEL=y you could add this firmware to
the kernel image with CONFIG_EXTRA_FIRMWARE. That's how I successfully
operate monolithic kernels on X86 laptops.
As an example:
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="iwlwifi-6000g2a-5.ucode"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

Regards,
- -- 
Tony Vroon
UNIX systems administrator
London Internet Exchange Ltd, Trinity Court, Trinity Street,
Peterborough, PE1 1DA
Registered in England number 3137929
E-Mail: tony@linx.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5l3sIACgkQp5vW4rUFj5qIdgCbBD0fzZc+DB8qCxt7UVn4SXYK
THoAoKzKOg/hIpDV4+54KXCWRQu/ziPa
=DREw
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-06  8:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-06  8:40 How to request firmware during module init? Kalle Valo
2011-09-06  8:44 ` Johannes Berg
2011-09-06  8:48   ` Kalle Valo
2011-09-06  8:50 ` Tony Vroon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).