This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4376: 驱动编译报错

Part Number: AM4376


sdk版本 am437x- 07.03.00.005

当用make编译自己写的驱动时报错

make -C /d/sdk-am437x-07.03.00.005/board-support/linux-5.4.106+gitAUTOINC+023faefa70-g023faefa70 ARCH=arm CROSS_COMPILE=/d/sdk-am437x-07.03.00.005/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-none-linux-gnueabihf- M=/d/xie_module/glb_fpga modules
make[1]: Entering directory '/d/sdk-am437x-07.03.00.005/board-support/linux-5.4.106+gitAUTOINC+023faefa70-g023faefa70'
Makefile:632: include/config/auto.conf: No such file or directory

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:704: recipe for target 'include/config/auto.conf' failed
make[1]: *** [include/config/auto.conf] Error 1
make[1]: Leaving directory '/d/sdk-am437x-07.03.00.005/board-support/linux-5.4.106+gitAUTOINC+023faefa70-g023faefa70'
Makefile:21: recipe for target 'modules' failed
make: *** [modules] Error 2

而用sdk版本 sdk-am57xx-06.03.00.106编译却正常,请问是什么原因?

make -C /d/sdk-am57xx-06.03.00.106/board-support/linux-4.19.94+gitAUTOINC+be5389fd85-gbe5389fd85 ARCH=arm CROSS_COMPILE=/d/sdk-am57xx-06.03.00.106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- M=/d/xie_module/glb_fpga modules
make[1]: Entering directory '/d/sdk-am57xx-06.03.00.106/board-support/linux-4.19.94+gitAUTOINC+be5389fd85-gbe5389fd85'
make[2]: Circular /d/xie_module/glb_fpga/glbfpga.o <- /d/xie_module/glb_fpga/glbfpga.o dependency dropped.
CC [M] /d/xie_module/glb_fpga/glbfpga-dev.o
LD [M] /d/xie_module/glb_fpga/glbfpga.o
Building modules, stage 2.
MODPOST 2 modules
CC /d/xie_module/glb_fpga/glbfpga-dev.mod.o
LD [M] /d/xie_module/glb_fpga/glbfpga-dev.ko
CC /d/xie_module/glb_fpga/glbfpga.mod.o
LD [M] /d/xie_module/glb_fpga/glbfpga.ko
make[1]: Leaving directory '/d/sdk-am57xx-06.03.00.106/board-support/linux-4.19.94+gitAUTOINC+be5389fd85-gbe5389fd85'