From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: "Hans Beckérus" <hans.beckerus@gmail.com>
Cc: "<yocto@yoctoproject.org>" <yocto@yoctoproject.org>
Subject: Re: How do I control what kernel modules are being loaded?
Date: Fri, 8 Mar 2013 12:45:01 -0500 [thread overview]
Message-ID: <513A239D.1090201@windriver.com> (raw)
In-Reply-To: <D967AA79-E5DE-44D1-9268-D47506B6BD21@gmail.com>
On 13-03-08 12:40 PM, Hans Beckérus wrote:
>
>
> 8 mar 2013 kl. 18:12 skrev Bruce Ashfield <bruce.ashfield@windriver.com>:
>
>> On 13-03-08 07:08 AM, Hans Beckérus wrote:
>>> Hi. I have built some custom kernel modules (.ko) using a .bb that
>>> inherits from the module.bbclass. There is one main kernel module and
>>> the rest are dependent on the first. Building and installing the
>>> modules to the rootfs works fine. Next question is how do I control
>>> what actual modules are loaded at boot, or actually how do I control
>>> this through Yocto? To my surprise one of the kernel module loaded
>>> automatically!? How could this happen? I did not have an entry for it
>>> in /etc/modules. And what do I need to do to actually add entries to
>>> /etc/modules? Or is there some other mechanism that I should use. I
>>> tried going through the module.bbclass but must admit I lost it
>>> somewhere in the middle ;) Any guidance would be appreciated.
>>
>> module_autoload_<module package name>, in your module recipe, will
>> trigger the load on boot.
>>
>> Cheers,
>>
>> Bruce
>>
> Great! But there must be a catch? My actual module package builds six modules. One mandatory and the rest are optional. How can it know which modules that should actually be loaded? For some to me unknown reason the mandatory one was loaded on boot even though I did nothing to my .bb?
I'd assume that udev or some other kernel -> userspace event triggered
the load of the required module.
If you need more advanced logic than modprobe or udev/systemd can provide,
then custom startup scripts for the services would be in order.
Cheers,
Bruce
>
> Hans
>
>>>
>>> Hans
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>
next prev parent reply other threads:[~2013-03-08 17:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-08 12:08 How do I control what kernel modules are being loaded? Hans Beckérus
2013-03-08 17:12 ` Bruce Ashfield
2013-03-08 17:40 ` Hans Beckérus
2013-03-08 17:45 ` Bruce Ashfield [this message]
2013-03-08 18:12 ` Eric Bénard
2013-03-08 19:00 ` Hans Beckerus
2013-03-08 23:45 ` Bruce Ashfield
[not found] ` <CAFyqS9rT=amDBNTO_awzXL3zNS-vCx1+0ERCspXTps8u_VpHwA@mail.gmail.com>
2013-03-11 13:28 ` Hans Beckérus
2013-03-11 13:37 ` Bruce Ashfield
2013-03-11 13:46 ` Eric Bénard
2013-03-11 13:49 ` Bruce Ashfield
2013-03-11 13:49 ` Eric Bénard
2013-03-11 18:36 ` Hans Beckerus
2013-03-08 21:11 ` Hans Beckerus
2013-03-08 19:16 ` Trevor Woerner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=513A239D.1090201@windriver.com \
--to=bruce.ashfield@windriver.com \
--cc=hans.beckerus@gmail.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.