Compiling ko Driver Module
Posted: 2024-10-31 6:34
Hi,
I tried to compile your sample file of Load.ko-driver.zip available on
https://wiki.luckfox.com/Luckfox-Pico/L ... x-Pico-SDK
for Luckfox pico mini B with buildroot SDK1.4
It gaves me this error:
lll@lll-VB:~/luckfox-work/ko-driver$ export ARCH=arm
lll@lll-VB:~/luckfox-work/ko-driver$ export CROSS_COMPILE=/home/lll/Luckfox-Pico/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-
lll@lll-VB:~/luckfox-work/ko-driver$ make
make -C /home/lll/luckfox-pico/sysdrv/source/kernel M=/home/lll/luckfox-work/ko-driver modules
make[1]: Entering directory '/home/lll/luckfox-pico/sysdrv/source/kernel'
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[1]: *** [Makefile:758: include/config/auto.conf] Error 1
make[1]: Leaving directory '/home/lll/luckfox-pico/sysdrv/source/kernel'
make: *** [Makefile:5: all] Error 2
Please help me to solve this problem.
Thanks
I tried to compile your sample file of Load.ko-driver.zip available on
https://wiki.luckfox.com/Luckfox-Pico/L ... x-Pico-SDK
for Luckfox pico mini B with buildroot SDK1.4
It gaves me this error:
lll@lll-VB:~/luckfox-work/ko-driver$ export ARCH=arm
lll@lll-VB:~/luckfox-work/ko-driver$ export CROSS_COMPILE=/home/lll/Luckfox-Pico/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-
lll@lll-VB:~/luckfox-work/ko-driver$ make
make -C /home/lll/luckfox-pico/sysdrv/source/kernel M=/home/lll/luckfox-work/ko-driver modules
make[1]: Entering directory '/home/lll/luckfox-pico/sysdrv/source/kernel'
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[1]: *** [Makefile:758: include/config/auto.conf] Error 1
make[1]: Leaving directory '/home/lll/luckfox-pico/sysdrv/source/kernel'
make: *** [Makefile:5: all] Error 2
Please help me to solve this problem.
Thanks