Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
242 views
in Technique[技术] by (71.8m points)

Error compilation kernel

Trying to compile a linux kernel on Ubuntu 16.04 for an embedded board and I have this error during make :

fatal error: mach/cputype.h: No such file or directory
compilation terminated.

The board I use is the TMDSLCDK138 integrating the OMAPL138. I installed the TI SDK from here http://software-dl.ti.com/sdoemb/sdoemb_public_sw/mcsdk/latest1/index_FDS.html and in the installation folder there is a custom linux SDK called "linux-3.3-psp03.22.00.06.sdk". This is what I did so far :
sudo make O=/home/BOB/omapbuild/omap_linux/ menuconfig
To configure the kernel for my board.

And next :
sudo make O=/home/BOB/omapbuild/omap_linux/ And it is here where I got the error.

All my headers are up to date.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Thanks to the comments I could compile the kernel by setting up the good environment:

export ARCH=arm
export PATH=/home/bob/ti/mcsdk_1_01_00_02/linux-devkit/sysroots/i686-arago-linux/usr/bin/:$PATH
export CROSS_COMPILE=arm-arago-linux-gnueabi-

and then for the TMDSLCDK138 board :

make tisdk_omapl138-lcdk_defconfig
make uImage

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...