编译hello world模块*.ko文件出错make zImage报错
来源:互联网 发布:网络象棋比赛 编辑:程序博客网 时间:2024/06/05 16:23
[root@wolf linux-2.6.38]# make zImage
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
cc1: 错误:无法识别的命令行选项“-mlittle-endian”
cc1: 错误:无法识别的命令行选项“-mapcs”
cc1: 错误:无法识别的命令行选项“-mno-sched-prolog”
cc1: 错误:无法识别的命令行选项“-mabi=apcs-gnu”
kernel/bounds.c:1: 错误:-march= 所带参数(armv4t)不正确
kernel/bounds.c:1: 错误:-mtune= 所带参数(arm9tdmi)不正确
make[1]: *** [kernel/bounds.s] 错误 1
make: *** [prepare0] 错误
/opt/FriendlyARM/mini6410/linux/linux-2.6.38下面有很多的配置文件找到跟自己板子配套的,拷贝成.config,然后在执行make zImage指令。同时要注意是否指定了CPU类型,参见下面的意见
这个简单。你.config文件配置对以后。你输入make zImage ARCH=arm CROSS_COMPILE=arm-linux- 肯定对。
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
cc1: 错误:无法识别的命令行选项“-mlittle-endian”
cc1: 错误:无法识别的命令行选项“-mapcs”
cc1: 错误:无法识别的命令行选项“-mno-sched-prolog”
cc1: 错误:无法识别的命令行选项“-mabi=apcs-gnu”
kernel/bounds.c:1: 错误:-march= 所带参数(armv4t)不正确
kernel/bounds.c:1: 错误:-mtune= 所带参数(arm9tdmi)不正确
make[1]: *** [kernel/bounds.s] 错误 1
make: *** [prepare0] 错误
问题出在*.config上
/opt/FriendlyARM/mini6410/linux/linux-2.6.38下面有很多的配置文件找到跟自己板子配套的,拷贝成.config,然后在执行make zImage指令。同时要注意是否指定了CPU类型,参见下面的意见
这个简单。你.config文件配置对以后。你输入make zImage ARCH=arm CROSS_COMPILE=arm-linux- 肯定对。
- 编译hello world模块*.ko文件出错make zImage报错
- hello world 编译出错
- hello world 模块编译
- hello world 模块编译
- LDD3-HELLO world.ko
- 编译某一个ko模块make modules SUBDIRS=drivers/xxx/
- 编译某一个ko模块make modules SUBDIRS=drivers/xxx/
- Android编译环境--- 编译hello world模块
- 编写hello.ko文件
- 编译Native C的hello,world模块
- Hello World模块的编译和运行
- 编译内核模块Hello World V1.0
- 编译内核模块Hello World V2.0
- 编译内核模块Hello World V3.0
- 编译内核模块Hello World V4.0
- linux内核外部驱动模块编译报错ERROR: "******" [drivers/**.ko] undefined!
- linux内核外部驱动模块编译报错ERROR—drivers/*.ko] undefined
- Helloworld模块编译.ko
- Struts2学习笔记2--输入校验
- 文件的复制、移动与删除
- shell scripts for 循环中变量赋值 以及 shell中sed的使用
- 第6周实验指导4
- 第3章 运算符、表达式和流程控制
- 编译hello world模块*.ko文件出错make zImage报错
- windows下读取一个文件夹下面所有文件的名字
- Linux 汇编语言开发指南
- 1、lucene 简介
- jquery-accordion
- loadrunner中的响应时间
- 通过查询注册表,枚举所有串口,并加载到下拉列表中
- cookie
- (转) linux网络编程常用头文件