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

在mx27开发板上移植Linux2.6.36,make menuconfig后的编译错误

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

    本文导语:  下载了2.6.36内核代码,首先执行了 make mx27_defconfig, 然后make menuconfig配置了我待移植的mx27目标板。 但编译有下面的错误,看上去内核代码不应该有这样的错误,是不是还有什么配置没有配呢? 请大家指点指点,谢...

下载了2.6.36内核代码,首先执行了 make mx27_defconfig,
然后make menuconfig配置了我待移植的mx27目标板。
但编译有下面的错误,看上去内核代码不应该有这样的错误,是不是还有什么配置没有配呢?
请大家指点指点,谢谢!

[root@localhost linux-2.6.36]# make zImage
  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
/usr/src/linux-2.6.36/arch/arm/include/asm/system.h:255:5: warning: "__LINUX_ARM_ARCH__" is not defined
/usr/src/linux-2.6.36/arch/arm/include/asm/system.h:262:5: warning: "__LINUX_ARM_ARCH__" is not defined
/usr/src/linux-2.6.36/arch/arm/include/asm/system.h:330:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included 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/bitops.h:237:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/swab.h:6,
                 from include/linux/byteorder/little_endian.h:12,
                 from /usr/src/linux-2.6.36/arch/arm/include/asm/byteorder.h:21,
                 from include/linux/kernel.h:21,
                 from include/linux/sched.h:54,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/swab.h:25:28: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/cache.h:5,
                 from include/linux/time.h:7,
                 from include/linux/timex.h:56,
                 from include/linux/sched.h:56,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/cache.h:22:31: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from /usr/src/linux-2.6.36/arch/arm/include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:56,
                 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:56,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/fpstate.h:32:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 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:56,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/processor.h:94:5: warning: "__LINUX_ARM_ARCH__" is not defined
/usr/src/linux-2.6.36/arch/arm/include/asm/processor.h:114:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:386,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/timex.h:56,
                 from include/linux/sched.h:56,
                 from arch/arm/kernel/asm-offsets.c:13:
/usr/src/linux-2.6.36/arch/arm/include/asm/atomic.h:30: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:56,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/math64.h: 在函数‘div_u64_rem’中:
include/linux/math64.h:43: 错误:‘__LINUX_ARM_ARCH__’未声明 (在此函数内第一次使用)
include/linux/math64.h:43: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
include/linux/math64.h:43: 错误:所在的函数内也只报告一次。)
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: error: 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: error: 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: error: division by zero in #if
include/linux/jiffies.h:257:31: error: 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: error: 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: error: 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

/usr/src/linux-2.6.36/arch/arm/include/asm/glue.h:119:2: error: #error Unknown data abort handler type
/usr/src/linux-2.6.36/arch/arm/include/asm/glue.h:160:2: error: #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: #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: 在函数‘virt_to_phys’中:
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: 在函数‘phys_to_virt’中:
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:198: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: 在函数‘virt_to_bus’中:
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:223: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: 在函数‘bus_to_virt’中:
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:228: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
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: 在函数‘pmd_page_vaddr’中:
/usr/src/linux-2.6.36/arch/arm/include/asm/pgtable.h:354: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h: 在函数‘virt_to_head_page’中:
include/linux/mm.h:328: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h: 在函数‘lowmem_page_address’中:
include/linux/mm.h:603: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
In file included from include/linux/dma-mapping.h:7,
                 from arch/arm/kernel/asm-offsets.c:15:
include/linux/scatterlist.h: 在函数‘sg_set_buf’中:
include/linux/scatterlist.h:112: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
include/linux/scatterlist.h: 在函数‘sg_phys’中:
include/linux/scatterlist.h:184: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
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: 在函数‘page_to_dma’中:
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h:20: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h: 在函数‘dma_to_page’中:
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h:25: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h: 在函数‘dma_to_virt’中:
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h:30: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h: 在函数‘virt_to_dma’中:
/usr/src/linux-2.6.36/arch/arm/include/asm/dma-mapping.h:35: 错误:‘PHYS_OFFSET’未声明 (在此函数内第一次使用)
make[1]: *** [arch/arm/kernel/asm-offsets.s] 错误 1
make: *** [prepare0] 错误 2

|
iMX.27 基于ARM926EJ-S
你再找找make menuconfig 中的Machine Type 或者
Processor Type ,选中ARM926什么的

|
载入默认的配置看看?
不知道系统有没有你机器的默认配置?
arch/arm/configs/下面

    
 
 

您可能感兴趣的文章:

  • mx27开发板Linux移植问题请教
  • iptables移植到开发板
  • linphone如何移植到ARM开发板?
  • 请问wxWindows 和Qt随用来移植MFC开发的程序比较好?
  • 内核移植到开发板怎样支持v4l2驱动?
  • 请问在Windows 2000下开发的基于WebSphere的应用,移植到商用Unix下要注意什么?
  • 请问谁知道网上哪里有跨平台软件开发或者是开发可移植性软件的资源?给高分!
  • smbfs移植到arm开发板上的问题??
  • 求关于Konqueror/Embedded的移植开发的资料
  • linux移植到开发板上无法切换到root用户,这是为什么?
  • JBuilder7开发java应用程序,其移植性如何?
  • windows下vb开发的版本的软件,现在移植到linux下,一系列问题,大家帮忙,谢谢
  • jb5开发的应用工具栏中的图标显示正常,但移植到linux上运行,则图标大小不一。为何?
  • 把Win平台的服务端移植到Linux,开发测试用哪个系统比较好?
  • mini2440开发板移植DM9000网卡驱动,提示ifconfig: SIOCSIFFLAGS: Cannot assign requested address
  • 用JB开发的Applet,在JB中正常运行,但移植到Apache服务器上时,无法显示并出错
  • 有谁做过minigui的移植?求助。。。(用的mini2440开发板)
  • linphone3.4.3移植到arm开发板可以运行呼叫显示connect,可以发送信息,但是不能通话?
  • 怎么向arm开发板上移植linux设备驱动上的helloworld驱动模块
  • 开发板内核移植时出现很多bad block
  • PROC开发时 //注释编译不通过 如何设置使用cpp编译。
  • 嵌入式linux开发:一段代码在windows平台用VC编译运行正常,在linux平台用gcc编译运行正常,但是用arm-linux-gcc编译在嵌入式板子上运行就不正常.
  • 各位在Unix下开发,使用哪种c++编译器?
  • vc编写dll动态连接库(编译过的)能在unix上开发使用吗?
  • 现在主要有哪些java的开发平台和编译器?
  • 如何在SCO UNIX 上搭建C的编译和开发环境???
  • 关于嵌入式linux开发时内核编译
  • 在redhat开发驱动时,需要下载一个linux源码,编译,替掉原有的内核吗?
  • 初次在liunx下做开发,编译出错`
  • linux集成编译器开发问题
  • 在sun solaris 8系统下有没有具编辑、编译、调试一体的集成C(C++)开发工具?谢谢!
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • VS2012+MySQL+SilverLight5的MVVM开发模式介绍
  • linux 嵌入式开发用不用买开发板,买什么样的开发板?
  • ios app 开发中ipa重新签名步骤介绍
  • 请问shell 开发能开发什么样的程序?硬件的驱动程序是否能够开发呢?
  • 几个windows平台C++开发错误举例
  • 请问在Linux 下用C开发移动增值软件都有什么开发工具啊,我以前一直在Windows下用VC开发
  • IOS开发:UIScrollView类介绍及如何简单地截获touch事件
  • 我常未开发过Linux下的程序,请问Linux下可以使用那些开发工具,最好的开发工具是什么版本?
  • nginx最新主线开发版1.5.4发布及下载地址
  • 我是学习web开发的,主要是java开发SSH开发框架和ajax等。我想知道有没有必要学习一下linux相关知识。
  • Web前端开发如何利用css样式来控制Html中的h1/h2/h3标签不换行
  • 各位设备驱动开发的朋友,请问,linux设备驱动开发和网络编程开发哪一样工资比较高呀?
  • ​基于Docker的大数据开发实践
  • Linux Kernel/Network 技术QQ群14888802,只加有内核开发、TCP/IP协议栈开发的程序员,不加新手和做应用开发的程序员。
  • Android及andriod无线网络Wifi开发的几点注意事项
  • 驱动程序开发和嵌入式开发有什么联系吗?
  • Linux 下c++开发error while loading shared libraries问题解决
  • linux 嵌入式开发用买开发板吗?
  • Android开发需要的几点注意事项总结
  • web开发和嵌入式开发哪个更有挑战
  • IOS开发之socket网络编程(基于SimpleNetworkStreams的c/s程序)
  • 请问在哪下载嵌入式Linux开发平台???想学嵌入式开发!!!


  • 站内导航:


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

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

    浙ICP备11055608号-3