Skip to contentSkip to conversation

Intel Centrino Wireless-N 100 modules vs built-in

QUERY Nick Warne 2 participants 5 messages Jun 12, 2013

lore
Share & tools
lore

Nick Warne

author
#0 lore raw

Dear Devs,

I have a strange query. Building a custom kernel on my Samsung N145 notebook I came a cropper.

05:00.0 Network controller: Intel Corporation Centrino Wireless-N 100

If I select:

Device Drivers->Network Device Support->Wireless LAN

<M> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)
-M- Intel Wireless WiFi DVM Firmware support

all is hucky dory. But if I build-in these drivers into kernel (<*>), on boot dmesg reports:

[2.347954] iwlwifi 0000:05:00.0: request for firmware file 'iwlwifi-100-5.ucode' failed.
[2.351885] iwlwifi 0000:05:00.0: no suitable firmware found!

Am I missing something here - I don't quite understand why this happens?

Any help appricated please.

Please CC any replies please, I am not subscribed.

Nick

Signature · 2 lines
Free Software Foundation Associate Member 5508
http://linicks.net/
#1 lore raw

Nick,

Quoted 11 lines

Device Drivers->Network Device Support->Wireless LAN

<M> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)
-M- Intel Wireless WiFi DVM Firmware support

all is hucky dory. But if I build-in these drivers into kernel (<*>), on boot dmesg reports:

[2.347954] iwlwifi 0000:05:00.0: request for firmware file 'iwlwifi-100-5.ucode' failed.
[2.351885] iwlwifi 0000:05:00.0: no suitable firmware found!

Am I missing something here - I don't quite understand why this happens?

The driver has to request firmware when the device is bound to it, so it can then register correctly with mac80211. Newer versions of udev don't respond negatively if they don't have the firmware while running from initrd/initramfs, and will leave the driver's request pending to be answered once the real filesystem is mounted. You seem to not be running a version of udev with this logic.

To work around it, you could include the firmware in the initrd/initramfs.

Alternatively, you could unbind/re-bind the driver after the system has full booted, like this:

# echo 0000:05:00.0 > /sys/module/iwlwifi/drivers/pci\:iwlwifi/unbind
# echo 0000:05:00.0 > /sys/module/iwlwifi/drivers/pci\:iwlwifi/bind

This will force it to attempt to load the firmware from disk again.

johannes

#2 lore raw
Quoted 5 lines

Newer versions of udev don't
respond negatively if they don't have the firmware while running from initrd/initramfs, and will leave the driver's request pending to be answered once the real filesystem is mounted.

And by "newer", I really mean "anything not ancient", the version with the logic was 187, released almost a year ago :-)

johannes

author
#4 lore raw
In reply to Johannes Berg

Hi Johannes,

Quoted 24 lines · Johannes Berg

Nick,

Quoted 11 lines

Device Drivers->Network Device Support->Wireless LAN

<M> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)
-M- Intel Wireless WiFi DVM Firmware support

all is hucky dory. But if I build-in these drivers into kernel (<*>), on boot dmesg reports:

[2.347954] iwlwifi 0000:05:00.0: request for firmware file 'iwlwifi-100-5.ucode' failed.
[2.351885] iwlwifi 0000:05:00.0: no suitable firmware found!

Am I missing something here - I don't quite understand why this happens?

The driver has to request firmware when the device is bound to it, so it can then register correctly with mac80211. Newer versions of udev don't respond negatively if they don't have the firmware while running from initrd/initramfs, and will leave the driver's request pending to be answered once the real filesystem is mounted. You seem to not be running a version of udev with this logic.

To work around it, you could include the firmware in the initrd/initramfs.

Quoted 7 lines

Alternatively, you could unbind/re-bind the driver after the system has full booted, like this:

# echo 0000:05:00.0 > /sys/module/iwlwifi/drivers/pci\:iwlwifi/unbind
# echo 0000:05:00.0 > /sys/module/iwlwifi/drivers/pci\:iwlwifi/bind

This will force it to attempt to load the firmware from disk again.

Thank you very much for a comprehensive reply.

I am using Linux-Mint on this machines, so at the moment am using the 'debian fakeroot make-kpkg...' stuff, so the build is dumbed down for the user ('tis easy on my Slackware box!).

So, reading what you said, I think I will leave 'as is'.

Again, thank you for the reply, and 'sorry for the noise!'

Nick

Signature · 2 lines
Free Software Foundation Associate Member 5508
http://linicks.net/
author
#3 lore raw
In reply to Johannes Berg
Quoted 8 lines · Johannes Berg
Quoted 5 lines

Newer versions of udev don't
respond negatively if they don't have the firmware while running from initrd/initramfs, and will leave the driver's request pending to be answered once the real filesystem is mounted.

And by "newer", I really mean "anything not ancient", the version with the logic was 187, released almost a year ago :-)

I will have to wait for debian/ubuntu/mint to catch up then :)

Nick

Signature · 2 lines
Free Software Foundation Associate Member 5508
http://linicks.net/