当前位置:  技术问答>linux和unix

编过2.6.36内核的先驱们请帮忙看看

    来源: 互联网  发布时间:2016-10-12

    本文导语:  2.6.36内核代码,首先执行了 make mx27_defconfig, 然后make menuconfig配置了我待移植的mx27目标板。 编译有下面的错误,请大家指点指点,谢谢! [root@localhost linux-2.6.36]# make ARCH=arm CROSS_COMPILE=arm-linux- uImage   CHK     ...

2.6.36内核代码,首先执行了 make mx27_defconfig,
然后make menuconfig配置了我待移植的mx27目标板。
编译有下面的错误,请大家指点指点,谢谢!


[root@localhost linux-2.6.36]# make ARCH=arm CROSS_COMPILE=arm-linux- uImage
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: “include/generated/mach-types.h”是最新的。
  CC      arch/arm/kernel/asm-offsets.s
In file included from include/linux/irqflags.h:57,
                 from /usr/src/linux-2.6.36/arch/arm/include/asm/system.h:61,
                 from /usr/src/linux-2.6.36/arch/arm/include/asm/bitops.h:27,
                 from include/linux/bitops.h:22,
                 from include/linux/kernel.h:17,
                 from include/linux/sched.h:54,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from /usr/src/linux-2.6.36/arch/arm/include/asm/bitops.h:27,
                 from include/linux/bitops.h:22,
                 from include/linux/kernel.h:17,
                 from include/linux/sched.h:54,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/system.h:112:5: warning: "__LINUX_ARM_ARCH__" is not defined
/usr/src/linux-2.6.36/arch/arm/include/asm/system.h:118:5: warning: "__LINUX_ARM_ARCH__" is not defined
/usr/src/linux-2.6.36/arch/arm/include/asm/system.h:122:35: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/sched.h:57,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: division by zero in #if
include/linux/jiffies.h:257:31: division by zero in #if
In file included from /usr/src/linux-2.6.36/arch/arm/include/asm/page.h:26,
                 from include/linux/mm_types.h:15,
                 from include/linux/sched.h:63,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/glue.h:119:2: #error Unknown data abort handler type
/usr/src/linux-2.6.36/arch/arm/include/asm/glue.h:160:2: #error Unknown prefetch abort handler type
In file included from include/linux/mm_types.h:15,
                 from include/linux/sched.h:63,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/page.h:116:2: #error Unknown user operations model
In file included from /usr/src/linux-2.6.36/arch/arm/include/asm/page.h:202,
                 from include/linux/mm_types.h:15,
                 from include/linux/sched.h:63,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `virt_to_phys':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: error: for each function it appears in.)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `phys_to_virt':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:198: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `virt_to_bus':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:223: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `bus_to_virt':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:228: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/mm.h:40,
                 from arch/arm/kernel/asm-offsets.c:14:
/usr/src/linux-2.6.36/arch/arm/include/asm/pgtable.h: In function `pmd_page_vaddr':
/usr/src/linux-2.6.36/arch/arm/include/asm/pgtable.h:354: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h: In function `virt_to_head_page':
include/linux/mm.h:328: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h: In function `lowmem_page_address':
include/linux/mm.h:603: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/dma-mapping.h:7,
                 from arch/arm/kernel/asm-offsets.c:15:
include/linux/scatterlist.h: In function `sg_set_buf':
include/linux/scatterlist.h:112: error: `PHYS_OFFSET' undeclared (first use in this function)
include/linux/scatterlist.h: In function `sg_phys':
include/linux/scatterlist.h:184: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/dma-mapping.h:93,
                 from arch/arm/kernel/asm-offsets.c:15:
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h: In function `page_to_dma':
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h:20: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h: In function `dma_to_page':
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h:25: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h: In function `dma_to_virt':
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h:30: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h: In function `virt_to_dma':
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h:35: error: `PHYS_OFFSET' undeclared (first use in this function)
make[1]: *** [arch/arm/kernel/asm-offsets.s] 错误 1


|
arch/arm/mm/Kconfig里有几个地方要添加|| ARCH_MX27
那再试试
make clean distclean
make ARCH=arm CROSS_COMPILE=arm-linux- mx27_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux- menuconfig
make ARCH=arm CROSS_COMPILE=arm-linux-

|
你生成.config文件了吗?

|
有没有把 || ARCH_MX27添加到arch/arm/mm/Kconfig对应的处理器中
或试试make menuconfig菜单里选择架构和编译器

    
 
 

您可能感兴趣的文章:

  • 作内核开发的前辈们能否帮忙解释一下什么是内核开发?
  • 关于linux裁剪内核,越小越好。大家多多帮忙。
  • 新手求救,关于内核makefile,请帮忙!
  • 请大家帮忙看看,编译内核后无法挂载root fs, 机器无法启动
  • 帮忙解决一道关于Linux内核模块的问题
  • 编译内核出错,有没有人帮忙阿
  • 关于linux2.6.x内核使用RPM 包的提问,100分,请大侠帮忙!!!!!!!!!!!
  • 开发板串口与实际内核中的串口文件的对应关系怎么回事?谢谢帮忙
  • LINUX内核高手帮帮忙
  • linux出现内核错误,请各位前辈帮忙分析
  • linux2.6.12内核 驱动 浮点 请帮忙!! 谢谢!!
  • 大侠帮忙!模块调试(非内核模块)
  • 在编译内核时候出现问题,大家来帮忙看看是什么问题?怎么解决?
  • :(关于用户态和内核态不懂,帮帮忙啊。
  • 内核升级失败,帮帮忙。。。
  • 请大侠帮忙,linux-2.6.39.1内核编译报错
  • (只剩十几分了),嵌入式 linux2.4.27内核编译错误,请帮忙看看,谢谢
  • 请大家帮忙分析下Linux内核烧写后启动出错?
  • 请大家帮帮忙:编译内核时make bzImage出错。(100分)
  • 编译内核源码出现问题~~先谢谢大家帮忙
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Linux内核中影响tcp三次握手的一些协议配置
  • Fedora Core 2自带的内核升级程序下载下来内核后,要不要再编译一遍内核?
  • TCP协议四次断连过程介绍及Linux内核协议栈中相关设置项
  • 进程内核栈和操作系统内核栈的关系
  • CentOS 6内核升级:下载编译启用新内核版本详细过程
  • Linux中内核线程不访问内核态地址空间?
  • Linux进程的内核栈和用户栈概念,相互关系及切换过程
  • 2.6内核下编译2.4内核
  • linux内核中的likely宏和unlikely宏介绍及用法
  • 谁能提供kgdb内核补丁内核模块的下载
  • CentOS 6.5 下载地址及如何升级内核(kernel)版本到 3.10.28
  • 编译新内核后怎么进入原来内核
  • Linux下c/c++开发之程序崩溃(Segment fault)时内核转储文件(core dump)生成设置方法
  • 请问linux中如何判断内核是否已经启动。(在内核中写程序)
  • docker使用的技术之Container内核原理介绍
  • 内核模块跟内核版本不匹配????????
  • 请教:如何安装新内核(rpm包)而不同原来得内核冲突?? 在线等待!!
  • linux为什么要升级内核?升级内核有何作用?
  • 内核升级后,如何在新的内核中加载显卡驱动?
  • 内核源码和结果make过的内核源码有什么区别
  • 不重新编译内核能修改内核函数吗?


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3