当前位置: 技术问答>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
然后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什么的
你再找找make menuconfig 中的Machine Type 或者
Processor Type ,选中ARM926什么的
|
载入默认的配置看看?
不知道系统有没有你机器的默认配置?
arch/arm/configs/下面
不知道系统有没有你机器的默认配置?
arch/arm/configs/下面