Page 1 of 1

WIKI: Wrong buildroot kernel Path

Posted: 2025-03-22 8:49
by peti634
Hi,

I wanted to compile the kernel module that I found in this link:
https://wiki.luckfox.com/Luckfox-Pico/L ... x-Pico-SDK

I changed the KDIR to:
<my-path>/luckfox-pico/sysdrv/source/kernel

But the compiler give this error:

Code: Select all


  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.

Makefile:672: include/config/auto.conf: No such file or directory
make: *** [Makefile:758: include/config/auto.conf] Error 1
After a short investigation I suppose this is the correct path:
<my-path>/luckfox-pico/sysdrv/source/objs_kernel/

With this path the compile was successful and the .KO worked fine!
I'll leave this information for others, maybe you will fix the Wiki.
Thanks!

Re: WIKI: Wrong buildroot kernel Path

Posted: 2025-03-26 1:43
by Crocodile
Hello, here is a new note, https://wiki.luckfox.com/Luckfox-Pico/L ... -Pico-SDK/ in the compilation of the method to generate helloworld.ko needs to be built in the complete compiled image or executed./ build.sh kernel and ./build.sh driver.