All of lore.kernel.org
 help / color / mirror / Atom feed
* Blacklisting drivers in poky or in yocto project
@ 2014-04-30  7:40 Sudhangathan B S
  2014-04-30 13:27 ` Bruce Ashfield
  0 siblings, 1 reply; 6+ messages in thread
From: Sudhangathan B S @ 2014-04-30  7:40 UTC (permalink / raw)
  To: yocto@yoctoproject.org, General mailing list for gumstix users.

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

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
---------------------------------

[-- Attachment #2: Type: text/html, Size: 798 bytes --]

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

* Re: Blacklisting drivers in poky or in yocto project
  2014-04-30  7:40 Blacklisting drivers in poky or in yocto project Sudhangathan B S
@ 2014-04-30 13:27 ` Bruce Ashfield
  2014-04-30 20:16   ` Sudhangathan B S
  0 siblings, 1 reply; 6+ messages in thread
From: Bruce Ashfield @ 2014-04-30 13:27 UTC (permalink / raw)
  To: Sudhangathan B S, yocto@yoctoproject.org,
	General mailing list for gumstix users.

On 14-04-30 03:40 AM, Sudhangathan B S wrote:
> 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



>
> 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
> ---------------------------------
>
>



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

* Re: Blacklisting drivers in poky or in yocto project
  2014-04-30 13:27 ` Bruce Ashfield
@ 2014-04-30 20:16   ` Sudhangathan B S
  2014-05-01 18:24     ` Sudhangathan B S
  0 siblings, 1 reply; 6+ messages in thread
From: Sudhangathan B S @ 2014-04-30 20:16 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto, General mailing list for gumstix users.

[-- Attachment #1: Type: text/plain, Size: 1854 bytes --]

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" <bruce.ashfield@windriver.com>
wrote:
>
> On 14-04-30 03:40 AM, Sudhangathan B S wrote:
>>
>> 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
>
>
>
>
>>
>> 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
>> ---------------------------------
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 2498 bytes --]

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

* Re: Blacklisting drivers in poky or in yocto project
  2014-04-30 20:16   ` Sudhangathan B S
@ 2014-05-01 18:24     ` Sudhangathan B S
  2014-05-02  4:47       ` Bruce Ashfield
  0 siblings, 1 reply; 6+ messages in thread
From: Sudhangathan B S @ 2014-05-01 18:24 UTC (permalink / raw)
  To: General mailing list for gumstix users., yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 2709 bytes --]

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
---------------------------------


On Thu, May 1, 2014 at 1:46 AM, Sudhangathan B S <sudhangathan@gmail.com>wrote:

> 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" <bruce.ashfield@windriver.com>
> wrote:
> >
> > On 14-04-30 03:40 AM, Sudhangathan B S wrote:
> >>
> >> 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
> >
> >
> >
> >
> >>
> >> 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
> >> ---------------------------------
> >>
> >>
> >
>

[-- Attachment #2: Type: text/html, Size: 3910 bytes --]

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

* Re: Blacklisting drivers in poky or in yocto project
  2014-05-01 18:24     ` Sudhangathan B S
@ 2014-05-02  4:47       ` Bruce Ashfield
  2014-05-02  6:39         ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Bruce Ashfield @ 2014-05-02  4:47 UTC (permalink / raw)
  To: Sudhangathan B S, General mailing list for gumstix users.,
	yocto@yoctoproject.org

On 2014-05-01, 2:24 PM, Sudhangathan B S wrote:
> 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 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 ?

>
> 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 ?

>
> 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

>
> Best,
>
>
>
> ---------------------------------
> Sudhangathan BS
> Ph:(+91) 9731-905-205
> ---------------------------------
>
>
> On Thu, May 1, 2014 at 1:46 AM, Sudhangathan B S <sudhangathan@gmail.com
> <mailto:sudhangathan@gmail.com>> wrote:
>
>     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"
>     <bruce.ashfield@windriver.com <mailto:bruce.ashfield@windriver.com>>
>     wrote:
>      >
>      > On 14-04-30 03:40 AM, Sudhangathan B S wrote:
>      >>
>      >> 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
>      >
>      >
>      >
>      >
>      >>
>      >> 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 <tel:%28%2B91%29%209731-905-205>
>      >> ---------------------------------
>      >>
>      >>
>      >
>
>
>
>



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

* Re: Blacklisting drivers in poky or in yocto project
  2014-05-02  4:47       ` Bruce Ashfield
@ 2014-05-02  6:39         ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2014-05-02  6:39 UTC (permalink / raw)
  To: Bruce Ashfield
  Cc: yocto@yoctoproject.org, General mailing list for gumstix users.

On Thu, May 1, 2014 at 9:47 PM, Bruce Ashfield
<bruce.ashfield@windriver.com> wrote:
>>
>> 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 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.


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

end of thread, other threads:[~2014-05-02  6:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30  7:40 Blacklisting drivers in poky or in yocto project Sudhangathan B S
2014-04-30 13:27 ` Bruce Ashfield
2014-04-30 20:16   ` Sudhangathan B S
2014-05-01 18:24     ` Sudhangathan B S
2014-05-02  4:47       ` Bruce Ashfield
2014-05-02  6:39         ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.