You are not logged in.

#1 2012-05-25 16:12:29

RiHL
Member
Registered: 2011-11-12
Posts: 13

iwlwifi not working without udev

Hi, I am trying to make super-fast-booting system, so I disabled udev.
But now the wifi isn't detected. I have custom kernel, same as I use on my normal system with udev. I have both iwlagn and iwlwifi modules compiled in. I have read, that I must put some .ucode file in /usr/lib/firmware. But that is, when UDev is running. How does UDev inform iwlwifi module about that .ucode file? Do I have to cat something to /sys/somewhere ?


My poor English is fault of Google Translator.

Offline

#2 2012-05-25 16:37:58

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: iwlwifi not working without udev

Udev is required for loading firmware unless you want to write your own netlink subscriber to know when and what firmware to send back to the kernel.

Relevant kernel code is request_firmware(). The kernel asks.user space for a specific filename which it wants written to a node in sysfs.

Last edited by falconindy (2012-05-25 16:39:26)

Offline

#3 2012-05-25 23:03:39

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: iwlwifi not working without udev

You should be able to build your firmware into the kernel.

Failing that, this is how to make a user-space firmware helper: http://git.kernel.org/?p=linux/kernel/g … 9a;hb=HEAD and this is a sample script: http://git.kernel.org/?p=linux/kernel/g … d9;hb=HEAD .

Edit: using a script instead of udev is probably a bad idea. Actually, even if you compile all your modules and firmware into your kernel, using udev is probably still a good idea (as lots of stuff rely on it), and it should not slow down boot significantly (if you don't use "udevadm settle").

Last edited by tomegun (2012-05-25 23:06:39)

Offline

#4 2012-05-29 18:11:08

RiHL
Member
Registered: 2011-11-12
Posts: 13

Re: iwlwifi not working without udev

Thank you very much! I will try when I will have time.


My poor English is fault of Google Translator.

Offline

Board footer

Powered by FluxBB