<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 30, 2013, at 1:49 AM, Katu Txakur <<a href="mailto:katutxakurra@gmail.com">katutxakurra@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Thanks again Martin,<div style="">I tried with that kernel-module-split.bbclass but although I got no errors, it didn't work :(</div><div style="">Can I create the file spike.conf and tell the recipe or the Makefile to copy it to /etc/modules-load.d ?</div>
<div style="">how can I do that?</div><div style=""><br></div></div></blockquote><div><br></div><div>Did you add the module_autoload_foo = "foo" where kernel-module-foo is the module you are interested in</div><div>to your recipe after inheriting module-split class ?</div><div>if not try that</div><br><blockquote type="cite"><div dir="ltr"><div style="">Thanks again, I would be completely stuck without your help</div><div style="">Katu</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/29 Martin Jansa <span dir="ltr"><<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, May 29, 2013 at 04:48:58PM +0100, Katu Txakur wrote:<br>
> Guys,<br>
> I'm using the gumstix repo<br>
> <a href="https://github.com/gumstix/Gumstix-YoctoProject-Repo" target="_blank">https://github.com/gumstix/Gumstix-YoctoProject-Repo</a> and I don't have any<br>
> module-split bbclass.<br>
> The module.bbclass inherits module-base.bbclass and module_strip.bbclass,<br>
> but the latest is empty.<br>
> Do you think my problem could be related with that? module_strip is also<br>
> inherited by kernel.bbclass<br>
<br>
</div>That looks like danny release, so you don't have this commit<br>
<a href="http://git.openembedded.org/openembedded-core/commit/meta/classes/kernel-module-split.bbclass?id=51928b6b5ca0a46a9dcd754483a19af58b95fa18" target="_blank">http://git.openembedded.org/openembedded-core/commit/meta/classes/kernel-module-split.bbclass?id=51928b6b5ca0a46a9dcd754483a19af58b95fa18</a><br>
<br>
You can backport it if you want, but without this module_autoload won't<br>
work for external modules.<br>
<div class="im"><br>
> 2013/5/29 Bruce Ashfield <<a href="mailto:bruce.ashfield@windriver.com">bruce.ashfield@windriver.com</a>><br>
><br>
> > On 13-05-29 11:32 AM, Katu Txakur wrote:<br>
> ><br>
> >> Martin, Paul, thanks for your help.<br>
> >> Yes, the recipe does inherit module.<br>
> >> Any other problem that you can think off?<br>
> >><br>
> ><br>
> > Note: if you are on master, Martin said "module-split", not<br>
> > "module".<br>
> ><br>
> > Cheers,<br>
> ><br>
> > Bruce<br>
> ><br>
> ><br>
> >> Thanks a lot in advance,<br>
> >> Katu<br>
> >><br>
> >><br>
> >> 2013/5/29 Paul Eggleton <<a href="mailto:paul.eggleton@linux.intel.com">paul.eggleton@linux.intel.com</a><br>
</div>> >> <mailto:<a href="mailto:paul.eggleton@linux.">paul.eggleton@linux.</a>**<a href="http://intel.com/" target="_blank">intel.com</a> <<a href="mailto:paul.eggleton@linux.intel.com">paul.eggleton@linux.intel.com</a>>>><br>
<div class="im">> >><br>
> >><br>
> >> On Wednesday 29 May 2013 16:39:48 Martin Jansa wrote:<br>
> >> > On Wed, May 29, 2013 at 02:01:11PM +0100, Katu Txakur wrote:<br>
> >> > > Hi,<br>
> >> > > I'm failing to load a kernel module named spike doing this:<br>
> >> > > 1) add the recipe (inherit module), based in a Makefile with<br>
> >> > > modules_install:<br>
</div>> >> > > $(MAKE) INSTALL_MOD_DIR=kernel/**drivers/spike -C $(KERNEL_SRC)<br>
<div class="im">> >> M=$(SRC)<br>
> >> > > modules_install<br>
> >> > > 2) Add the package to the image with IMAGE_INSTALL += "spike"<br>
> >> in the<br>
> >> > > local.conf file<br>
> >> > > 3) In the machine/mymachine.conf I've added<br>
> >> > ><br>
</div>> >> > > MACHINE_ESSENTIAL_EXTRA_**RRECOMMENDS += "spike"<br>
<div class="im">> >> > > module_autoload_spike = "spike"<br>
> >> > ><br>
> >> > > The driver gets added to the image and I can load it with<br>
> >> insmod spike,<br>
> >> > > however, I would like to load it at boot time.<br>
> >> > > A workaround is to create a file with the name spike.conf and<br>
> >> write spike<br>
> >> > > inside. Copying that file to /etc/modules-load.d/spike.conf<br>
> >> > > loads the driver correctly, but I need to do it from a recipe.<br>
> >> > ><br>
> >> > > Can anyone spot what am I doing wrong?<br>
> >> ><br>
> >> > module_autoload won't work with external module unless you<br>
> >> inherit also<br>
> >> > kernel-module-split<br>
> >><br>
> >> Note that module.bbclass already does this, so if the external<br>
> >> module recipe<br>
> >> already does "inherit module" then that is not the problem.<br>
> >><br>
> >> Cheers,<br>
> >> Paul<br>
> >><br>
> >> --<br>
> >><br>
> >> Paul Eggleton<br>
> >> Intel Open Source Technology Centre<br>
> >><br>
> >><br>
> >><br>
> >><br>
</div>> >> ______________________________**_________________<br>
> >> yocto mailing list<br>
> >> <a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
> >> <a href="https://lists.yoctoproject./" target="_blank">https://lists.yoctoproject.</a>**org/listinfo/yocto<<a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a>><br>
<div class="im HOEnZb">> >><br>
> >><br>
> ><br>
<br>
> _______________________________________________<br>
> yocto mailing list<br>
> <a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
> <a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">--<br>
Martin 'JaMa' Jansa jabber: <a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a><br>
</div></div></blockquote></div><br></div>
_______________________________________________<br>yocto mailing list<br><a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>https://lists.yoctoproject.org/listinfo/yocto<br></blockquote></div><br></body></html>