`
meikanbao
  • 浏览: 14879 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
最近访客 更多访客>>
社区版块
存档分类
最新评论

linux内核编译过程中出现两个错误的解决方法~!

 
阅读更多

  /*************************** 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(这个是根据你自身开发的需要来进行选择的,在这里面窝全选) --->
  /************************************************* *****************/
分享到:
评论

相关推荐

    linux 3.1.1 内核编译

    内核编译每个详细步骤 Linux内核编译 系统环境:Red Hat Enterprise Linux 6.1 内核版本:linux-3.1.1 新增功能:新增两个系统调用函数

    linux-2.6.18内核编译全过程

    这个内核编译文档我亲自试过两三次绝对可以编译成功!!

    Linux内核模块编译及加载

    通过本实验,使学生掌握在Linux系统内核中单独编译、加载和卸载所需的模块的一般方法和过程。

    windows上可编译Linux内核

    2.MinGW中不带as86编译器,因而把boot目录下原先用as86编译的bootsect.s和setup.s两个程序修改成能用nasm编译的程序.并且更名为bootsect.asm和setup.asm. 3.在Makefile作的主要修改: 在LDFLAGS中加了--image-base ...

    Linux设备驱动程序设计入门 及其 2.6内核下的编译方法

    压缩包含两个文档: 《Linux设备驱动程序设计入门.doc...后者是我在2.6内核下编译的过程中,总结出的编译方法,和一些2.6内核下编译时候碰到的一些问题的解决方法。 曾经,我就是靠这个入门的。现在和新人们分享一下!

    Linux内核修炼之道

    很好Linux内核休息书籍 第一层次修炼的内容包括了前三章, ...代码的工具,最后,突出强调了内核源码分析过程中极为重要的两个角色——Kconfig 和 Makefile,并以 USB 子系统为例,演示了如何利用这两个角色进行代码分析。

    linux 内核配置机制

    前面我们介绍模块编程的时候介绍了驱动进入内核有两种方式:模块和直接编译进内核,并介绍了模块的一种编译方式——在一...我们在进行linux内核配置的时候经常会执行make menuconfig这个命令,然后屏幕上会出现以下界面

    linux内核链表提取与使用

    将linux内核源码中list.h拿出来, 增删与遍历部分写了详细注释, 关于链表合并, 没用过所以没写. 源码版本是2.6.32, 不过链表的源码改动应该不是很大. 我的邮箱2253238252@qq.com, 代码有什么不对的欢迎发邮件给我

    把设备驱动程序编译进嵌入式Linux内核

    由于uClinux不支持模块动态加载,而且嵌入式Linux不能够象桌面Linux那样灵活的使用insmod/rmmod加载卸载设备驱动程序, 因而这里只介绍将设备驱动程序静态编译进uClinux内核的方法。本文以uClinux为例,介绍在一个以...

    Linux2.6内核标准教程(共计8-- 第1个)

    最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、Linux驱动开发人员、Linux系统工程师参考使用,也可以作为计算机及相关...

    用于LXC技术在arm平台上移植的linux内核文件

    用于LXC技术在arm平台上移植的linux内核文件,已开启cgroup和命名空间等必要选项,已在zynq7045平台上成功使用 1、将uImage传输到路由器板子任意路径,如~/ 2、将EMMC加载到系统,命令: mount /dev/mmcblk0p1 /mnt ...

    Linux2.6内核标准教程(共计8--第6个)

    最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、Linux驱动开发人员、Linux系统工程师参考使用,也可以作为计算机及相关...

    Linux2.6内核标准教程(共计8--第8个)

    最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、Linux驱动开发人员、Linux系统工程师参考使用,也可以作为计算机及相关...

    Linux2.6内核标准教程(共计8--第3个)

    最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、Linux驱动开发人员、Linux系统工程师参考使用,也可以作为计算机及相关...

    Linux2.6内核标准教程(共计8--第7个)

    最后讲解了Linux内核中常见的同步机制,使读者掌握每处理器变量和RCU这两种新的 同步机制。 《Linux2.6内核标准教程》适合Linux内核爱好者、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内核的意义 ...

    linux 两个编译多文件驱动的Makefile范例.rar (2.4内核)

    很多makefile范例都是对一个源文件的,这个是对多文件的一个模板

    移植成功的Linux内核源码,适用于imxull芯片

    修改顶层 Makefile,直接在顶层 Makefile 文件里面定义 ARCH 和 CROSS_COMPILE 这两个的变量值为 arm 和 arm-linux-gnueabihf-,结果如图所示: 252 ARCH ?= arm 253 CROSS_COMPILE ?= arm-linux-gnueabihf- ...

    Linux内核移植笔记 | 01 – 移植Linux 3.4.2 内核到JZ2440(配置编译内核,设置machid启动内核)

    Linux内核有3万多个文件,可以将v参数去掉,不显示解压信息。 2. 配置并编译 进入解压出的文件夹: cd linux-3.4.2/ 2.1. 配置架构和编译工作链 在根目录下的makefile中搜索ARCH,找到如图中的两项配置: ARCH:要

    Linux操作系统内核技术详细解读

    一般,在每个目录下,都有一个.depend文件和一个Makefile文件,这两个文件都是编译时使用的辅助文件,仔细阅读这两个文件对弄清各个文件这间的联系和依托关系很有帮助;而且,在有的目录下还有Readme文件,它是对该...

Global site tag (gtag.js) - Google Analytics