错误编译内核 [英] Error compilation kernel

查看:86
本文介绍了错误编译内核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Ubuntu 16.04上为嵌入式板编译linux内核,并且在make时遇到此错误:

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.

我使用的板是集成了OMAPL138的TMDSLCDK138.我从此处 http://software-dl安装了SDK .ti.com/sdoemb/sdoemb_public_sw/mcsdk/latest1/index_FDS.html ,并且在安装文件夹中有一个自定义linux SDK,名为"linux-3.3-psp03.22.00.06.sdk".这是我到目前为止所做的:
sudo make O=/home/BOB/omapbuild/omap_linux/ menuconfig
为我的主板配置内核.

接下来::
sudo make O=/home/BOB/omapbuild/omap_linux/ 这是我收到错误的地方.

我的所有标头都是最新的.

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.

推荐答案

感谢注释,我可以通过设置良好的环境来编译内核:

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-

,然后再打开TMDSLCDK138板:

and then for the TMDSLCDK138 board :

make tisdk_omapl138-lcdk_defconfig
make uImage

这篇关于错误编译内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆