<font size=2 face="sans-serif">Thanks for taking the time to help me</font>
<br>
<br><font size=2 face="sans-serif">I tried your approach but it does not
worked.</font>
<br>
<br><font size=2 face="sans-serif">I tell what I figured out so far:</font>
<br>
<br><font size=2 face="sans-serif">I.) checking the target system</font>
<br><font size=2 face="sans-serif">1.) When flashing the images into my
device and boot the system, the driver is not loaded.</font>
<br><font size=2 face="sans-serif">2.) lsmod shows that there is no driver
loaded</font>
<br><font size=2 face="sans-serif">3.) modprobe tells me that there is
no 'lib/modules' dir</font>
<br>
<br><font size=2 face="sans-serif">II.) checking yocto</font>
<br><font size=2 face="sans-serif">1.) Bitbake creates a package for my
machine ("sama5d3xek") -> there are several packages; all
are empty except the one with the "kernel-module-" prefix</font>
<br><font size=2 face="sans-serif">2.) checking the "deploy/images"
dir -> the module is not listed at the "*.manifest" file</font>
<br><font size=2 face="sans-serif">3.) checking the "modules-*.tgz"
file -> modules are in(like the ext4.ko) but not the ledmodule.ko</font>
<br>
<br><font size=2 face="sans-serif">As far as I understand yocto and the
meta-atmel layer there are "two" images build. One is the kernel
and it goes under the "work/sama5d3xek..." dir. The other one
is the rootfs and it goes under the "work/cortexahf..." dir.
By using the module class for my ledmodule recipe yocto is generating it
in the kernel dir.</font>
<br><font size=2 face="sans-serif">I think I need to tell yocto in some
way that it should include the module in the kernel(where the bb is placed)
or at the rootfs (where the recipe is missing).</font>
<br><font size=2 face="sans-serif">For me it seems that I have to rewrite
my recipe. I delete the module class reference and adjust the install path
to /lib/modules.</font>
<br><font size=2 face="sans-serif">But it looks for me more as an workaround,
because adding a own driver/module seems a common task which should be
supported my yocto. I like to know the common way how to do it.</font>
<br>
<br><font size=2 face="sans-serif">When checking the kernel package for
the module the path for it is "/lib/modules/4.1.0_linux4sam.../extra/ledmodule.ko".
The dir "/lib/modules/4.1.0_linux4sam.../" not exits at my target.</font>
<br>
<br><font size=2 face="sans-serif">Regards!<br>
<br>
Stefan Jaritz<br>
<br>
<br>
------------------------------------------------------------<br>
ESA Elektroschaltanlagen Grimma GmbH<br>
Broner Ring 30<br>
04668 Grimma<br>
Telefon: +49 3437 9211 176<br>
Telefax: +49 3437 9211 26<br>
E-Mail: s.jaritz@esa-grimma.de<br>
Internet: </font><a href="www.esa-grimma.de"><font size=2 face="sans-serif">www.esa-grimma.de</font></a><font size=2 face="sans-serif"><br>
<br>
<br>
Geschäftsführer:<br>
Dipl.-Ing. Jörg Gaitzsch<br>
Jörg Reinker<br>
<br>
Sitz der Gesellschaft: Grimma<br>
Ust.-ID: DE 141784437<br>
Amtsgericht: Leipzig, HRB 5159<br>
Steuernummer: 238/108/00755<br>
<br>
<br>
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
<br>
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
erhalten <br>
haben, informieren Sie bitte sofort den Absender und löschen Sie diese
<br>
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
Mail <br>
ist nicht gestattet.<br>
<br>
This e-mail may contain confidential and/or privileged information. If
you are <br>
not the intended recipient (or have received this e-mail in error) please
<br>
notify the sender immediately and destroy this e-mail. Any unauthorized
<br>
copying, disclosure or distribution of the material in this e-mail is strictly
<br>
forbidden.</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:
</font><font size=1 face="sans-serif">"Esponde, Joel"
<Joel.Esponde@Honeywell.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:
</font><font size=1 face="sans-serif">"S.Jaritz@esa-grimma.de"
<S.Jaritz@esa-grimma.de>, "yocto@yoctoproject.org" <yocto@yoctoproject.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:
</font><font size=1 face="sans-serif">13.05.2016 11:15</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:
</font><font size=1 face="sans-serif">RE: [yocto]
how to install a kernel module</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3 color=#400000 face="Calibri">Hi,</font>
<br><font size=3 color=#400000 face="Calibri"> </font>
<br><font size=3 color=#400000 face="Calibri">FYI, image recipes are in
<i>recipes-core/images</i> folders.</font>
<br><font size=3 color=#400000 face="Calibri">So if you created your own
image recipe, my previous mail should answer your need.</font>
<br><font size=3 color=#400000 face="Calibri"> </font>
<br><font size=3 color=#400000 face="Calibri">Otherwise, I don’t know
if you could just add this line to your local.conf file…</font>
<br><font size=3 face="Consolas"> </font>
<br><font size=3 face="Consolas">IMAGE_INSTALL_append = " ledmodule"</font>
<br><font size=3 color=#400000 face="Calibri"> </font>
<br><font size=3 color=#400000 face="Calibri">The best way to know that
your <i>IMAGE_INSTALL</i> variable is correctly set is to call this bitbake
command:</font>
<br><font size=3 color=#400000 face="Calibri"> </font>
<br><font size=3 face="Consolas">$ bitbake <image> -e</font>
<br><font size=3 color=#400000 face="Calibri"> </font>
<br><font size=3 color=#400000 face="Calibri">Bitbake will output all the
build environment variables and functions related to your image recipe.</font>
<br><font size=3 color=#400000 face="Calibri">So you will be able to check
with this command that <i>IMAGE_INSTALL</i> has effectively your module
name added to the list.</font>
<br><font size=3 face="Consolas"><b> </b></font>
<br><font size=3 face="Consolas"><b>bitbake -e</b></font><font size=3 color=#400000 face="Calibri">
is a very important command when working with Yocto.</font>
<br><font size=3 color=#400000 face="Calibri"> </font>
<br><font size=3 color=#400000 face="Calibri">Regards,</font>
<br><font size=3 color=#400000 face="Calibri"> </font>
<br><font size=3 color=#808080 face="Arial"><b>Joël Esponde</b></font>
<br><font size=3 color=#808080 face="Arial"><b>Honeywell </b>| Sensing
and Productivity Solutions</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Calibri"><b>De :</b> yocto-bounces@yoctoproject.org
[</font><a href="mailto:yocto-bounces@yoctoproject.org"><font size=3 face="Calibri">mailto:yocto-bounces@yoctoproject.org</font></a><font size=3 face="Calibri">]
<b>De la part de</b> S.Jaritz@esa-grimma.de<b><br>
Envoyé :</b> jeudi 12 mai 2016 16:32<b><br>
À :</b> yocto@yoctoproject.org<b><br>
Objet :</b> [yocto] how to install a kernel module</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Arial">Hej</font><font size=3 face="Times New Roman">
<br>
</font><font size=3 face="Arial"><br>
I created a recipe for a own modul. It's similar to the example given at:</font><font size=3 face="Times New Roman">
<br>
</font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-skeleton/recipes-kernel/hello-mod"><font size=3 color=blue face="Arial"><u>http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-skeleton/recipes-kernel/hello-mod</u></font></a><font size=3 face="Times New Roman">
<br>
</font><font size=3 face="Arial"><br>
I checked the bitbake process. A "kernel-module-<module name>"
package is created and filled with the ko-file.</font><font size=3 face="Times New Roman">
<br>
</font><font size=3 face="Arial"><br>
Actually I am failing to bring the module into my image and run it. Are
there a special command for the "local.conf" or so?</font><font size=3 face="Times New Roman">
<br>
</font><font size=3 face="Arial"><br>
How and where to include the module?</font><font size=3 face="Times New Roman">
<br>
</font><font size=3 face="Arial"><br>
Regards!<br>
<br>
Stefan Jaritz<br>
<br>
------------------------------------------------------------<br>
ESA Elektroschaltanlagen Grimma GmbH<br>
Broner Ring 30<br>
04668 Grimma<br>
Telefon: +49 3437 9211 176<br>
Telefax: +49 3437 9211 26<br>
E-Mail: </font><a href="mailto:s.jaritz@esa-grimma.de"><font size=3 color=blue face="Arial"><u>s.jaritz@esa-grimma.de</u></font></a><font size=3 face="Arial"><br>
Internet: </font><a href="www.esa-grimma.de"><font size=3 color=blue face="Arial"><u>www.esa-grimma.de</u></font></a><font size=3 face="Arial"><br>
<br>
<br>
Geschäftsführer:<br>
Dipl.-Ing. Jörg Gaitzsch<br>
Jörg Reinker<br>
<br>
Sitz der Gesellschaft: Grimma<br>
Ust.-ID: DE 141784437<br>
Amtsgericht: Leipzig, HRB 5159<br>
Steuernummer: 238/108/00755<br>
<br>
<br>
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
<br>
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
erhalten <br>
haben, informieren Sie bitte sofort den Absender und löschen Sie diese
<br>
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
Mail <br>
ist nicht gestattet.<br>
<br>
This e-mail may contain confidential and/or privileged information. If
you are <br>
not the intended recipient (or have received this e-mail in error) please
<br>
notify the sender immediately and destroy this e-mail. Any unauthorized
<br>
copying, disclosure or distribution of the material in this e-mail is strictly
<br>
forbidden.</font>
<br>