当前位置: 技术问答>linux和unix
【在线讨论】针对arm板编译内核出现问题
来源: 互联网 发布时间:2017-02-15
本文导语: [root@localhost linux-2.6.22.1]# make zImage HOSTLD scripts/kconfig/conf scripts/kconfig/conf -s arch/arm/Kconfig CHK include/linux/version.h UPD include/linux/version.h SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c2410 Gener...
[root@localhost linux-2.6.22.1]# make zImage
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c2410
Generating include/asm-arm/mach-types.h
CHK include/linux/utsrelease.h
UPD 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:46,
from include/asm/system.h:78,
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:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
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:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/system.h:153:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:159:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:163:35: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:293:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:298: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:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
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:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
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/spinlock.h:326,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/atomic.h:25: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/wait.h:22,
from include/asm/semaphore.h:9,
from include/linux/sched.h:59,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/semaphore.h:13,
from include/linux/sched.h:59,
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:60,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/glue.h:119:2: #error Unknown data abort handler type
In file included from include/linux/sched.h:60,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/page.h:106:2: #error Unknown user operations model
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c2410
Generating include/asm-arm/mach-types.h
CHK include/linux/utsrelease.h
UPD 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:46,
from include/asm/system.h:78,
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:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
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:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/system.h:153:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:159:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:163:35: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:293:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:298: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:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
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:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
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/spinlock.h:326,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/atomic.h:25: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/wait.h:22,
from include/asm/semaphore.h:9,
from include/linux/sched.h:59,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/semaphore.h:13,
from include/linux/sched.h:59,
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:60,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/glue.h:119:2: #error Unknown data abort handler type
In file included from include/linux/sched.h:60,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/page.h:106:2: #error Unknown user operations model
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
|
那在make menuconfig 的时候应该有先选择vendor,cpu的,你看看是不是这个选择的的有问题,不行的话到你用的芯片对应的arch目录下查看下,不知道你用的是不是s3c2410,如果不是肯定是你配置有问题了
|
include/asm/glue.h:119:2: #error Unknown data abort handler type
include/asm/page.h:106:2: #error Unknown user operations model
这两处的源代码是怎样的,看看有没有和平台相关的一些判断或者宏定义之类
include/asm/page.h:106:2: #error Unknown user operations model
这两处的源代码是怎样的,看看有没有和平台相关的一些判断或者宏定义之类
|
编译有没有先make menuconfig 过
|
用标准的config配置看看
只选择你需要的项
只选择你需要的项
|
缺省的config试试