出错编译Linux内核为ARM [英] Error while compiling Linux kernel for ARM

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

问题描述

我克隆内核从

  https://github.com/torvalds/linux.git

然后试图如下编译它

 了#make menuconfig的

菜单配置界面显示出来。而不进行任何更改我省生成config文件的配置

 了#make ARCH =手臂CROSS_COMPILE =臂无-Linux的gnueabi-

我碰到下面的错误。请告知

20:0

 在文件从弓/ ARM /内核/ ASM-offsets.c包括:
/home/androiddev/linus/linux/arch/arm/include/asm/glue-df.h:107:2:错误:#ERROR未知数据中止处理程序类型
 #ERROR未知数据中止处理程序类型
  ^
21:0文件从弓/ ARM /内核/ ASM-offsets.c包括:
/home/androiddev/linus/linux/arch/arm/include/asm/glue-pf.h:54:2:错误:#ERROR未知prefetch中止处理程序类型
 #ERROR未知prefetch中止处理程序类型
  ^
使[1]:*** [弓/ ARM /内核/ ASM-offsets.s]错误1
使:*** [prepare0]错误2


解决方案

如果您

的make menuconfig

然后配置读取86不是ARM。首先,你需要采取默认configuartion看看@这

<一个href=\"http://stackoverflow.com/questions/21813667/are-kernel-headers-depend-on-processor-type-vendor-etc/21815412#21815412\">Are内核头文件依赖于处理器类型,厂商等?

HV看@ <一个href=\"http://stackoverflow.com/questions/20763344/just-black-screen-after-running-qemu/20779114#20779114\">Just运行后黑屏的Qemu

如果你不知道了/proc/config.gz

您可以从目标根文件系统的.config副本的配置

<一个href=\"http://stackoverflow.com/questions/21266404/cross-compiling-linux-arm-kernel-with-new-driver-module/21279185#21279185\">Cross编译Linux的ARM核与新的驱动模块

I cloned the kernel from

 https://github.com/torvalds/linux.git

Then tried to compile it as follows

#make menuconfig 

menu config screens shows up. Without making any changes I save the config that generated .config file

#make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

I get the following error. Please advise

In file included from arch/arm/kernel/asm-offsets.c:20:0:
/home/androiddev/linus/linux/arch/arm/include/asm/glue-df.h:107:2: error: #error Unknown data abort handler type
 #error Unknown data abort handler type
  ^
In file included from arch/arm/kernel/asm-offsets.c:21:0:
/home/androiddev/linus/linux/arch/arm/include/asm/glue-pf.h:54:2: error: #error Unknown prefetch abort handler type
 #error Unknown prefetch abort handler type
  ^
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

解决方案

If you do

make menuconfig

then configuration is read for x86 not for ARM. First you need to take default configuartion look @ this

Are kernel headers depend on processor type, vendor etc?

also

hv look @ Just black screen after running Qemu

if you dont know the configuration you can get copy of .config from target rootfs /proc/config.gz

Cross Compiling Linux Arm Kernel with new driver module

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

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