new kernel module

cancel
Showing results for 
Search instead for 
Did you mean: 

new kernel module

484 Views
davidvescovi
Contributor V

I have a working iMX8m Linux build using the L4.14.92_2.0.0_ga yocto release on a Ubuntu 18 host.

I have extended the BSP using a meta-my-layer with a few tweaks.

I now want to add a new kernel module driver.

As a starting point I copied over the example from sources\poky\meta-skeleton\recipes-kernel\hello-mod to my-layer as recommended.

I would assumed I could just build this example as is but it does not appear so.

When I do bitbake -v hello-mod I see several errors:

The first errors seems to be in the do_compile phase:


  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

Not sure how to fix this.

0 Kudos
1 Reply

361 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello David Vescovi,

There are many variables at play even in simple recipes. I would recommend looking at the following document from Variscite’s wiki which may help as a starting point.

http://variwiki.com/index.php?title=Yocto_Hello_World

Regards,

0 Kudos