[yocto] using module_autoload

Bruce Ashfield bruce.ashfield at windriver.com
Wed May 29 08:34:36 PDT 2013


On 13-05-29 11:32 AM, Katu Txakur wrote:
> Martin, Paul, thanks for your help.
> Yes, the recipe does inherit module.
> Any other problem that you can think off?

Note: if you are on master, Martin said "module-split", not
"module".

Cheers,

Bruce

>
> Thanks a lot in advance,
> Katu
>
>
> 2013/5/29 Paul Eggleton <paul.eggleton at linux.intel.com
> <mailto:paul.eggleton at linux.intel.com>>
>
>     On Wednesday 29 May 2013 16:39:48 Martin Jansa wrote:
>      > On Wed, May 29, 2013 at 02:01:11PM +0100, Katu Txakur wrote:
>      > > Hi,
>      > > I'm failing to load a kernel module named spike doing this:
>      > > 1) add the recipe (inherit module), based in a Makefile with
>      > > modules_install:
>      > > $(MAKE) INSTALL_MOD_DIR=kernel/drivers/spike -C $(KERNEL_SRC)
>     M=$(SRC)
>      > > modules_install
>      > > 2) Add the package to the image with IMAGE_INSTALL += "spike"
>     in the
>      > > local.conf file
>      > > 3) In the machine/mymachine.conf I've added
>      > >
>      > >         MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "spike"
>      > >         module_autoload_spike = "spike"
>      > >
>      > > The driver gets added to the image and I can load it with
>     insmod spike,
>      > > however, I would like to load it at boot time.
>      > > A workaround is to create a file with the name spike.conf and
>     write spike
>      > > inside. Copying that file to /etc/modules-load.d/spike.conf
>      > > loads the driver correctly, but I need to do it from a recipe.
>      > >
>      > > Can anyone spot what am I doing wrong?
>      >
>      > module_autoload won't work with external module unless you
>     inherit also
>      > kernel-module-split
>
>     Note that module.bbclass already does this, so if the external
>     module recipe
>     already does "inherit module" then that is not the problem.
>
>     Cheers,
>     Paul
>
>     --
>
>     Paul Eggleton
>     Intel Open Source Technology Centre
>
>
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>




More information about the yocto mailing list