Hi,
I want to build a module for Sitara Processor SDK 1.00.00.03 on Ubuntu PC. The make error message is as following:
uj@uj-7696:~/Documents/Linux_drv$ make make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C /home/u64rj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/linux-3.14.43+gitAUTOINC+875c69b2c3-g875c69b M=`pwd` modules -I/home/u64rj/AM335X_StarterWare_02_00_01_01/include/hw make[1]: Entering directory `/home/u64rj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/linux-3.14.43+gitAUTOINC+875c69b2c3-g875c69b' 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. WARNING: Symbol version dump /home/u64rj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/linux-3.14.43+gitAUTOINC+875c69b2c3-g875c69b/Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/u64rj/Documents/Linux_drv/hello_mdvr.o In file included from <command-line>:0:0: /home/u64rj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/linux-3.14.43+gitAUTOINC+875c69b2c3-g875c69b/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory compilation terminated. make[2]: *** [/home/u64rj/Documents/Linux_drv/hello_mdvr.o] Error 1 make[1]: *** [_module_/home/u64rj/Documents/Linux_drv] Error 2 make[1]: Leaving directory `/home/u64rj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/linux-3.14.43+gitAUTOINC+875c69b2c3-g875c69b' make: *** [all] Error 2 uj@uj-7696:~/Documents/Linux_drv$ ls -l total 12 -rw-rw-r-- 1 u64rj u64rj 2939 Sep 22 19:46 hello_mdvr.c -rw-rw-r-- 1 u64rj u64rj 593 Sep 22 20:25 Makefile -rw-rw-r-- 1 u64rj u64rj 592 Sep 22 20:23 Makefile~ uj@uj-7696:~/Documents/Linux_drv$
Sitara StarterWare is downloaded and its header file path is included in the Makefile:
#PATH=${PATH}:/home/uj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/linux-devkit/sysroots/i686-arago-linux/usr/bin obj-m += hello_mdvr.o INC=-I/home/u64rj/AM335X_StarterWare_02_00_01_01/include/hw all: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C /home/uj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/linux-3.14.43+gitAUTOINC+875c69b2c3-g875c69b M=`pwd` modules $(INC) clean: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C /home/uj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/linux-3.14.43+gitAUTOINC+875c69b2c3-g875c69b M=`pwd` clean
There are two header files missing from the error message. How can I fix it?
Thanks,