Chinaunix首页 | 论坛 | 博客
  • 博客访问: 633817
  • 博文数量: 75
  • 博客积分: 7001
  • 博客等级: 少将
  • 技术积分: 1465
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-11 17:39
文章分类

全部博文(75)

文章存档

2010年(1)

2009年(25)

2008年(49)

我的朋友

分类: LINUX

2008-06-22 15:45:04

[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.

阅读(2459) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~