/*************************** error 1 ******************************/ 在编译内核的过程中出现了如下的编译显示代码:
drivers/video/console/vgacon.c: In function 'vgacon_startup':
drivers/video/console/vgacon.c:510: error: 'PCIMEM_BASE' undeclared (first use in this function)
drivers/video/console/vgacon.c:510: error: (Each undeclared identifier is reported only once
drivers/video/console/vgacon.c:510: error: for each function it appears in.)
drivers/video/console/vgacon.c: In function 'vgacon_do_font_op':
drivers/video/console/vgacon.c:1068: error: 'PCIMEM_BASE' undeclared (first use in this function)
make[3]: *** [drivers/video/console/vgacon.o] Error 1
make[2]: *** [drivers/video/console] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
说明:配置单中对于控制台的配置有误,添加了多余的配置导致的。
解决方法:通过make menuconfig 进入配置界面,在Device Drivers->Graphics Support->Console display driver support中去掉VGA text console,保存设置后再编译就可以了
/************************************************* *****************/
/*************************** error 2 ******************************/
[root@localhost linux-2.6.29]# make uImage ARCH=arm CROSS_COMPILE=arm-linux-
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/irqflags.h:57,
from /home/mini2440/linux-2.6.29/arch/arm/include/asm/s ystem.h:61,
from /home/mini2440/linux-2.6.29/arch/arm/include/asm/b itops.h:27,
from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from include/linux/sched.h:52,
from arch/arm/kernel/asm-offsets.c:13:
/home/mini2440/linux-2.6.29/arch/arm/include/asm/i rqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from /home/mini2440/linux-2.6.29/arch/arm/include/asm/b itops.h:27,
from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from include/linux/sched.h:52,
from arch/arm/kernel/asm-offsets.c:13:
/home/mini2440/linux-2.6.29/arch/arm/include/asm/s ystem.h:111:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/mini2440/linux-2.6.29/arch/arm/include/asm/s ystem.h:117:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/mini2440/linux-2.6.29/arch/arm/include/asm/s ystem.h:121:35: warning: "__LINUX_ARM_ARCH__" is not defined
/home/mini2440/linux-2.6.29/arch/arm/include/asm/s ystem.h:241:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/mini2440/linux-2.6.29/arch/arm/include/asm/s ystem.h:246:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from include/linux/sched.h:52,
from arch/arm/kernel/asm-offsets.c:13:
/home/mini2440/linux-2.6.29/arch/arm/include/asm/b itops.h:237:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from /home/mini2440/linux-2.6.29/arch/arm/include/asm/t hread_info.h:16,
from include/linux/thread_info.h:55,
from include/linux/preempt.h:9, from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8, from include/linux/timex.h:56,
from include/linux/sched.h:54,
from arch/arm/kernel/asm-offsets.c:13:
/home/mini2440/linux-2.6.29/arch/arm/include/asm/f pstate.h:32:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/prefetch.h:14, from include/linux/list.h:6,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:56, from include/linux/sched.h:54, from arch/arm/kernel/asm-offsets.c:13: /home/mini2440/linux-2.6.29/arch/arm/include/asm/p rocessor.h:109:5: warning: "__LINUX_ARM_ARCH__" is not defined In file included from include/linux/spinlock.h:353, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:54, from arch/arm/kernel/asm-offsets.c:13: /home/mini2440/linux-2.6.29/arch/arm/include/asm/a tomic.h:24:5: warning: "__LINUX_ARM_ARCH__" is not defined In file included from include/linux/time.h:9, from include/linux/timex.h:56, from include/linux/sched.h:54, from arch/arm/kernel/asm-offsets.c:13: include/linux/math64.h: In function 'div_u64_rem': include/linux/math64.h:43: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function) include/linux/math64.h:43: error: (Each undeclared identifier is reported only once include/linux/math64.h:43: error: for each function it appears in.) In file included from /home/mini2440/linux-2.6.29/arch/arm/include/asm/p age.h:26, from include/linux/mm_types.h:14, from include/linux/sched.h:61, from arch/arm/kernel/asm-offsets.c:13: /home/mini2440/linux-2.6.29/arch/arm/include/asm/g lue.h:119:2: error: #error Unknown data abort handler type /home/mini2440/linux-2.6.29/arch/arm/include/asm/g lue.h:146:2: error: #error Unknown prefetch abort handler type In file included from include/linux/mm_types.h:14, from include/linux/sched.h:61, from arch/arm/kernel/asm-offsets.c:13: /home/mini2440/linux-2.6.29/arch/arm/include/asm/p age.h:108:2: error: #error Unknown user operations model make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 解决方法:出现这个错误的主要原因是相关的配置不完全,所以需要进入menuconfig配置界面,在这个界面里面选择System Type--->S3C2440 Machines(这个是根据你自身开发的需要来进行选择的,在这里面窝全选) --->
/************************************************* *****************/
发表评论
-
什么是组件以及为什么使用组件
2012-07-03 13:42 595因为在编程当中呢 ... -
什么是组件以及为什么使用组件
2012-07-03 12:18 554因为在编程当中呢 ... -
amchart的使用!~
2012-07-02 10:15 788最近公司开发项目 ... -
Mnogosearch
2012-07-02 10:15 723一。Mnogosearch是php的搜索引擎 同datep ... -
android ubuntu9.10 源码的编译 Eclipse工程 Contacts编译 应用加载
2012-07-02 10:15 731第一部分:编译环 ... -
用Lisp写网站程序的备忘
2012-07-02 10:14 5541。 使用 hunchentoot 作为网站框架,它的功能 ... -
如何使用registerClassAlias来解决module中使用RemoteObject---第一次访问正常、第二次出错
2012-07-01 09:37 539问题:今天我在Flex的module中使用RemoteOb ... -
Flex4 使用RemoteObject BlazeDS 连接JAVA对象获取数据
2012-07-01 09:36 689使用FLEX4 和 JAVA进行通讯 并和JAVA内置的对 ... -
Flex remoteobject工作原理探讨
2012-07-01 09:36 530Flex访问远程服务都是通过AbstractService ... -
一个用ArrayCollection作为数据格式 读取远程XML绑定到DropDownList例子
2012-07-01 09:36 550这个例子没有使用 XMLListCollection 而是 ... -
一个用ArrayCollection作为数据格式 读取远程XML绑定到DropDownList例子
2012-07-01 09:36 645这个例子没有使用 XMLListCollection 而是 ... -
VS调试项目出现"访问IIS元数据库失败"的267904错误解决方法
2012-06-30 17:53 1022今天重做系统后,新装了VS2008和IIS6.将原来的AS ... -
Linux下ODBC中文乱码解决方法
2012-06-30 17:53 891最近在做一个linux下的系统,基于移植性的考虑(该系统数 ... -
phpmyadmin链接表的附加功能尚未激活的解决方法
2012-06-30 17:53 530phpmyadmin链接表的附加功能尚未激活的解决方法 ... -
u-boot在S3C2440上的移植问题及解决方法集锦(二)
2012-06-30 17:53 662一、移植环境 ...
相关推荐
内核编译每个详细步骤 Linux内核编译 系统环境:Red Hat Enterprise Linux 6.1 内核版本:linux-3.1.1 新增功能:新增两个系统调用函数
这个内核编译文档我亲自试过两三次绝对可以编译成功!!
通过本实验,使学生掌握在Linux系统内核中单独编译、加载和卸载所需的模块的一般方法和过程。
2.MinGW中不带as86编译器,因而把boot目录下原先用as86编译的bootsect.s和setup.s两个程序修改成能用nasm编译的程序.并且更名为bootsect.asm和setup.asm. 3.在Makefile作的主要修改: 在LDFLAGS中加了--image-base ...
压缩包含两个文档: 《Linux设备驱动程序设计入门.doc...后者是我在2.6内核下编译的过程中,总结出的编译方法,和一些2.6内核下编译时候碰到的一些问题的解决方法。 曾经,我就是靠这个入门的。现在和新人们分享一下!
很好Linux内核休息书籍 第一层次修炼的内容包括了前三章, ...代码的工具,最后,突出强调了内核源码分析过程中极为重要的两个角色——Kconfig 和 Makefile,并以 USB 子系统为例,演示了如何利用这两个角色进行代码分析。
前面我们介绍模块编程的时候介绍了驱动进入内核有两种方式:模块和直接编译进内核,并介绍了模块的一种编译方式——在一...我们在进行linux内核配置的时候经常会执行make menuconfig这个命令,然后屏幕上会出现以下界面
将linux内核源码中list.h拿出来, 增删与遍历部分写了详细注释, 关于链表合并, 没用过所以没写. 源码版本是2.6.32, 不过链表的源码改动应该不是很大. 我的邮箱2253238252@qq.com, 代码有什么不对的欢迎发邮件给我
由于uClinux不支持模块动态加载,而且嵌入式Linux不能够象桌面Linux那样灵活的使用insmod/rmmod加载卸载设备驱动程序, 因而这里只介绍将设备驱动程序静态编译进uClinux内核的方法。本文以uClinux为例,介绍在一个以...
最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、Linux驱动开发人员、Linux系统工程师参考使用,也可以作为计算机及相关...
用于LXC技术在arm平台上移植的linux内核文件,已开启cgroup和命名空间等必要选项,已在zynq7045平台上成功使用 1、将uImage传输到路由器板子任意路径,如~/ 2、将EMMC加载到系统,命令: mount /dev/mmcblk0p1 /mnt ...
最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、Linux驱动开发人员、Linux系统工程师参考使用,也可以作为计算机及相关...
最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、Linux驱动开发人员、Linux系统工程师参考使用,也可以作为计算机及相关...
最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、Linux驱动开发人员、Linux系统工程师参考使用,也可以作为计算机及相关...
最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、Linux驱动开发人员、Linux系统工程师参考使用,也可以作为计算机及相关...
深入分析Linux内核源码 前言 第一章 走进linux 1.1 GNU与Linux的成长 1.2 Linux的开发模式和运作机制 1.3走进Linux内核 1.3.1 Linux内核的特征 1.3.2 Linux内核版本的变化 1.4 分析Linux内核的意义 ...
很多makefile范例都是对一个源文件的,这个是对多文件的一个模板
修改顶层 Makefile,直接在顶层 Makefile 文件里面定义 ARCH 和 CROSS_COMPILE 这两个的变量值为 arm 和 arm-linux-gnueabihf-,结果如图所示: 252 ARCH ?= arm 253 CROSS_COMPILE ?= arm-linux-gnueabihf- ...
Linux内核有3万多个文件,可以将v参数去掉,不显示解压信息。 2. 配置并编译 进入解压出的文件夹: cd linux-3.4.2/ 2.1. 配置架构和编译工作链 在根目录下的makefile中搜索ARCH,找到如图中的两项配置: ARCH:要
一般,在每个目录下,都有一个.depend文件和一个Makefile文件,这两个文件都是编译时使用的辅助文件,仔细阅读这两个文件对弄清各个文件这间的联系和依托关系很有帮助;而且,在有的目录下还有Readme文件,它是对该...