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

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

问题描述

我从

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

然后尝试编译如下

#make menuconfig 

菜单配置屏幕出现.没有做任何更改,我保存了生成 .config 文件的配置

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

推荐答案

如果你这样做

make menuconfig

然后为 x86 而不是为 ARM 读取配置.首先,您需要采用默认配置查看@ this

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

内核头文件是否取决于处理器类型、供应商等?

还有

hv look @ 运行 Qemu 后只是黑屏

如果您不知道配置,您可以从目标 rootfs/proc/config.gz 获取 .config 的副本

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

使用 new 交叉编译 Linux Arm 内核驱动模块

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

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