Discussion:
Blacklisting drivers in poky or in yocto project
Sudhangathan B S
2014-04-30 07:40:35 UTC
Permalink
Hi all,

I need to prevent my wifi drivers auto loading during boot time. How do we
do it in the Poky OS or in the Yocto project..?

I tried both the fedora way and debian way, neither worked.! this is as
given in this website..:
http://www.cyberciti.biz/tips/avoid-linux-kernel-module-driver-autoloading.html


I'm using gumstix overo hardware..! Poky version 9.0.2, Yocto Project 1.4
Reference Distro, 1.4.2 overo.


---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205
---------------------------------
Bruce Ashfield
2014-04-30 13:27:01 UTC
Permalink
Post by Sudhangathan B S
Hi all,
I need to prevent my wifi drivers auto loading during boot time. How do
we do it in the Poky OS or in the Yocto project..?
Are you actually seeing a confirmed auto load of modules ?

In a standard image kernel modules will not be autoloaded unless
specifically requested via a recipe with : module_autoload_<module name>.

I'm not talking about a usermode helper / on demand load, but
an explicit autoload + dependencies.

Bruce
Post by Sudhangathan B S
I tried both the fedora way and debian way, neither worked.! this is as
http://www.cyberciti.biz/tips/avoid-linux-kernel-module-driver-autoloading.html
I'm using gumstix overo hardware..! Poky version 9.0.2, Yocto Project
1.4 Reference Distro, 1.4.2 overo.
---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205
---------------------------------
--
Sudhangathan B S
2014-04-30 20:16:41 UTC
Permalink
Yes i confirm the loading of modules everytime using lsmod.

I'm using the standard installation of yocto project from Gumstix Repo, and
also the PM branch kernel from Kevin Hilman's repo. Kernel version is 3.4.
So i did not specify autoloading of modules anywhere.

A grep of module_autoload showed kernel-module-split.bbclass as a
reference. Is this the file you are talking about..? It will be good to
know if it is because this module_autoload..!!

And moreover I now have a doubt if the blaclisting is not working because
of the dependencies. I will reply again after blacklisting all related
drivers. Esp. the cfg802 driver.

Thanks Bruce,

Sudhangathan BS.

Working on a MMX Android 110.
--If you have not travelled, you have not lived.
Post by Bruce Ashfield
Post by Sudhangathan B S
Hi all,
I need to prevent my wifi drivers auto loading during boot time. How do
we do it in the Poky OS or in the Yocto project..?
Are you actually seeing a confirmed auto load of modules ?
In a standard image kernel modules will not be autoloaded unless
specifically requested via a recipe with : module_autoload_<module name>.
I'm not talking about a usermode helper / on demand load, but
an explicit autoload + dependencies.
Bruce
Post by Sudhangathan B S
I tried both the fedora way and debian way, neither worked.! this is as
http://www.cyberciti.biz/tips/avoid-linux-kernel-module-driver-autoloading.html
Post by Bruce Ashfield
Post by Sudhangathan B S
I'm using gumstix overo hardware..! Poky version 9.0.2, Yocto Project
1.4 Reference Distro, 1.4.2 overo.
---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205
---------------------------------
Sudhangathan B S
2014-05-01 18:24:06 UTC
Permalink
The Update:
I blacklisted all related drivers, i.e., libertas, libertas_sdio, cfg80211
and ipv6, but still all these driver modules got autoloaded..!!

The method I used: in the file /etc/modprobe.d/blacklist.conf, i added
these following lines:
blacklist ipv6
blacklist cfg80211
blacklist libertas
blacklist libertas_sdio

I also tried the same in /lib/modprobe.d/blacklist.conf, but to no avail.
Every time the modules were getting autoloaded..!!!

And also where can I look for this autoload feature..?

Best,



---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205
---------------------------------
Post by Sudhangathan B S
Yes i confirm the loading of modules everytime using lsmod.
I'm using the standard installation of yocto project from Gumstix Repo,
and also the PM branch kernel from Kevin Hilman's repo. Kernel version is
3.4. So i did not specify autoloading of modules anywhere.
A grep of module_autoload showed kernel-module-split.bbclass as a
reference. Is this the file you are talking about..? It will be good to
know if it is because this module_autoload..!!
And moreover I now have a doubt if the blaclisting is not working because
of the dependencies. I will reply again after blacklisting all related
drivers. Esp. the cfg802 driver.
Thanks Bruce,
Sudhangathan BS.
Working on a MMX Android 110.
--If you have not travelled, you have not lived.
Post by Bruce Ashfield
Post by Sudhangathan B S
Hi all,
I need to prevent my wifi drivers auto loading during boot time. How do
we do it in the Poky OS or in the Yocto project..?
Are you actually seeing a confirmed auto load of modules ?
In a standard image kernel modules will not be autoloaded unless
specifically requested via a recipe with : module_autoload_<module name>.
I'm not talking about a usermode helper / on demand load, but
an explicit autoload + dependencies.
Bruce
Post by Sudhangathan B S
I tried both the fedora way and debian way, neither worked.! this is as
http://www.cyberciti.biz/tips/avoid-linux-kernel-module-driver-autoloading.html
Post by Bruce Ashfield
Post by Sudhangathan B S
I'm using gumstix overo hardware..! Poky version 9.0.2, Yocto Project
1.4 Reference Distro, 1.4.2 overo.
---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205
---------------------------------
Bruce Ashfield
2014-05-02 04:47:19 UTC
Permalink
Post by Sudhangathan B S
I blacklisted all related drivers, i.e., libertas, libertas_sdio,
cfg80211 and ipv6, but still all these driver modules got autoloaded..!!
The method I used: in the file /etc/modprobe.d/blacklist.conf, i added
blacklist ipv6
blacklist cfg80211
blacklist libertas
blacklist libertas_sdio
I can't recall if yocto 1.4 had switched to kmod, or if it was still
the legacy mod-utils ? Can you confirm with one is in play here ?
Post by Sudhangathan B S
I also tried the same in /lib/modprobe.d/blacklist.conf, but to no
avail. Every time the modules were getting autoloaded..!!!
Have you looked for /etc/modules ? Or any other references to them
on the filesystem ?
Post by Sudhangathan B S
And also where can I look for this autoload feature..?
I'm not familiar with the kernel you are using, but have you confirmed
that either hotplug events or uevents and a helper are not being
triggered and loading the modules ?

Bruce
Post by Sudhangathan B S
Best,
---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205
---------------------------------
Yes i confirm the loading of modules everytime using lsmod.
I'm using the standard installation of yocto project from Gumstix
Repo, and also the PM branch kernel from Kevin Hilman's repo. Kernel
version is 3.4. So i did not specify autoloading of modules anywhere.
A grep of module_autoload showed kernel-module-split.bbclass as a
reference. Is this the file you are talking about..? It will be good
to know if it is because this module_autoload..!!
And moreover I now have a doubt if the blaclisting is not working
because of the dependencies. I will reply again after blacklisting
all related drivers. Esp. the cfg802 driver.
Thanks Bruce,
Sudhangathan BS.
Working on a MMX Android 110.
--If you have not travelled, you have not lived.
On 30-Apr-2014 6:57 PM, "Bruce Ashfield"
Post by Bruce Ashfield
Post by Sudhangathan B S
Hi all,
I need to prevent my wifi drivers auto loading during boot time.
How do
Post by Bruce Ashfield
Post by Sudhangathan B S
we do it in the Poky OS or in the Yocto project..?
Are you actually seeing a confirmed auto load of modules ?
In a standard image kernel modules will not be autoloaded unless
module_autoload_<module name>.
Post by Bruce Ashfield
I'm not talking about a usermode helper / on demand load, but
an explicit autoload + dependencies.
Bruce
Post by Sudhangathan B S
I tried both the fedora way and debian way, neither worked.!
this is as
http://www.cyberciti.biz/tips/avoid-linux-kernel-module-driver-autoloading.html
Post by Bruce Ashfield
Post by Sudhangathan B S
I'm using gumstix overo hardware..! Poky version 9.0.2, Yocto
Project
Post by Bruce Ashfield
Post by Sudhangathan B S
1.4 Reference Distro, 1.4.2 overo.
---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205 <tel:%28%2B91%29%209731-905-205>
---------------------------------
--
Khem Raj
2014-05-02 06:39:38 UTC
Permalink
On Thu, May 1, 2014 at 9:47 PM, Bruce Ashfield
Post by Bruce Ashfield
Post by Sudhangathan B S
The method I used: in the file /etc/modprobe.d/blacklist.conf, i added
blacklist ipv6
blacklist cfg80211
blacklist libertas
blacklist libertas_sdio
I can't recall if yocto 1.4 had switched to kmod, or if it was still
the legacy mod-utils ? Can you confirm with one is in play here ?
we use kmod but that should not affect anything since it is backward
compatible with m-i-t
I think the problem here could be one of following

there is another module which is not blacklisted dependent on the
blacklisted one. In this case kmod will have to load it.

Or you have initiramfs where its getting loaded in that case you have
to modiy initramfs any changes in /etc/modules* on main rootfs won't
help.

check if feature( e.g. ipv6) is built into kernel proper and not as a
module. if its builtin then kmod won't be able to help but I guess
this you might already have verified.
--

Loading...