免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1187 | 回复: 0
打印 上一主题 下一主题

[proplems updating]porting linux-2.6.18_pro500 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-22 15:45 |只看该作者 |倒序浏览

[proplems updating]porting  movtavista linux-2.6.18.8_pro500 to evb3504

【problem 1】"__LINUX_ARM_ARCH__" is not defined
root@SHIP:/opt/Infomax_kernel/minimal_OS/linux-2.6.18_pro500# make uImage
scripts/kconfig/conf -s arch/arm/Kconfig
#
# configuration written to .config
#
  CHK     include/linux/version.h
  SYMLINK include/asm-arm/arch -> include/asm-arm/arch-evb3504
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CC      arch/arm/kernel/asm-offsets.s
In file included from include/asm/bitops.h:23,
                 from include/linux/bitops.h:9,
                 from include/linux/thread_info.h:20,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:85,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/system.h:167:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:173:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/irqflags.h:46,
                 from include/asm/system.h:214,
                 from include/asm/bitops.h:23,
                 from include/linux/bitops.h:9,
                 from include/linux/thread_info.h:20,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:85,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/bitops.h:23,
                 from include/linux/bitops.h:9,
                 from include/linux/thread_info.h:20,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:85,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/system.h:258:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:263:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/bitops.h:9,
                 from include/linux/thread_info.h:20,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:85,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/bitops.h:233:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:85,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/plist.h:77,
                 from include/linux/rtmutex.h:16,
                 from include/linux/rt_lock.h:13,
                 from include/linux/spinlock.h:114,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/processor.h:104:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/rt_lock.h:14,
                 from include/linux/spinlock.h:114,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/atomic.h:24:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/jiffies.h:4,
                 from include/linux/sched.h:49,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/calc64.h: In function ‘do_div_llr’:
include/linux/calc64.h:25: error: ‘__LINUX_ARM_ARCH__’ undeclared (first use in this function)
include/linux/calc64.h:25: error: (Each undeclared identifier is reported only once
include/linux/calc64.h:25: error: for each function it appears in.)
In file included from include/asm/semaphore.h:25,
                 from include/linux/sched.h:57,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/page.h:32,
                 from include/linux/sched.h:58,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/glue.h:110:2: error: #error Unknown data abort handler type
In file included from include/linux/sched.h:58,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/page.h:106:2: error: #error Unknown user operations model
include/asm/page.h:189:31: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/sched.h:60,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/mmu.h:7:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/mmu.h:13:5: warning: "__LINUX_ARM_ARCH__" is not defined
arch/arm/kernel/asm-offsets.c:87:5: warning: "__LINUX_ARM_ARCH__" is not defined
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
root@SHIP:/opt/Infomax_kernel/minimal_OS/linux-2.6.18_pro500#

【reason】
This is becasuse cpu ARM926T is not configured to support our board evb3504, that is to say, our board is not included into the range of supported development boards by cpu ARM926.
The cpu ARM926 supported borads are configured in “arch/arm/mm/Kconfig”

【method】
Add the support to evb3504 development board by ARM926.
Edit Kconfig: arch/arm/mm/Kconfig
# ARM926T
config CPU_ARM926T
       bool "Support ARM926T processor"
       depends on ARCH_INTEGRATOR || ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || MACH_REALVIEW_EB || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 || ARCH_AT91SAM9260 || ARCH_AT91SAM9261 || ARCH_EVB3504
       default y if ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 || ARCH_AT91SAM9260 || ARCH_AT91SAM9261 || ARCH_EVB3504
       select CPU_32v5
       select CPU_ABRT_EV5TJ
       select CPU_CACHE_VIVT
       select CPU_CP15_MMU
       select CPU_COPY_V4WB if MMU
       select CPU_TLB_V4WBI if MMU
       help
         This is a variant of the ARM920.  It has slightly different
         instruction sequences for cache and TLB operations.  Curiously,
         there is no documentation on it at the ARM corporate website.

         Say Y if you want support for the ARM926T processor.
         Otherwise, say N.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43047/showart_1008052.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP