当前位置: 技术问答>linux和unix
这里就没有高手吗?
来源: 互联网 发布时间:2016-10-12
本文导语: 下载2.6.36内核代码,首先执行了 make mx27_defconfig, 然后make menuconfig配置了我待移植的mx27目标板。 编译内核有下面的错误,急求高手指点 from arch/arm/kernel/asm-offsets.c:13: include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RAT...
下载2.6.36内核代码,首先执行了 make mx27_defconfig,
然后make menuconfig配置了我待移植的mx27目标板。
编译内核有下面的错误,急求高手指点
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: 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: 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: division by zero in #if
include/linux/jiffies.h:257:31: division by zero in #if
In file included from /usr/src/linux-2.6.36/arch/arm/include/asm/page.h:26,
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/glue.h:119:2: #error Unknown data abort handler type
/usr/src/linux-2.6.36/arch/arm/include/asm/glue.h:160:2: #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 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: In function `virt_to_phys':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: error: for each function it appears in.)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `phys_to_virt':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:198: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `virt_to_bus':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:223: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `bus_to_virt':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:228: error: `PHYS_OFFSET' undeclared (first use in this function)
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: In function `pmd_page_vaddr':
/usr/src/linux-2.6.36/arch/arm/include/asm/pgtable.h:354: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h: In function `virt_to_head_page':
include/linux/mm.h:328: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h: In function `lowmem_page_address':
include/linux/mm.h:603: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/dma-mapping.h:7,
from arch/arm/kernel/asm-offsets.c:15:
include/linux/scatterlist.h: In function `sg_set_buf':
include/linux/scatterlist.h:112: error: `PHYS_OFFSET' undeclared (first use in this function)
include/linux/scatterlist.h: In function `sg_phys':
include/linux/scatterlist.h:184: error: `PHYS_OFFSET' undeclared (first use in this function)
然后make menuconfig配置了我待移植的mx27目标板。
编译内核有下面的错误,急求高手指点
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: 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: 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: division by zero in #if
include/linux/jiffies.h:257:31: division by zero in #if
In file included from /usr/src/linux-2.6.36/arch/arm/include/asm/page.h:26,
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/glue.h:119:2: #error Unknown data abort handler type
/usr/src/linux-2.6.36/arch/arm/include/asm/glue.h:160:2: #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 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: In function `virt_to_phys':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:193: error: for each function it appears in.)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `phys_to_virt':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:198: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `virt_to_bus':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:223: error: `PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h: In function `bus_to_virt':
/usr/src/linux-2.6.36/arch/arm/include/asm/memory.h:228: error: `PHYS_OFFSET' undeclared (first use in this function)
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: In function `pmd_page_vaddr':
/usr/src/linux-2.6.36/arch/arm/include/asm/pgtable.h:354: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h: In function `virt_to_head_page':
include/linux/mm.h:328: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h: In function `lowmem_page_address':
include/linux/mm.h:603: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/dma-mapping.h:7,
from arch/arm/kernel/asm-offsets.c:15:
include/linux/scatterlist.h: In function `sg_set_buf':
include/linux/scatterlist.h:112: error: `PHYS_OFFSET' undeclared (first use in this function)
include/linux/scatterlist.h: In function `sg_phys':
include/linux/scatterlist.h:184: error: `PHYS_OFFSET' undeclared (first use in this function)
|
如果你的操作正确,之前同样的环境有成功案例,有的移植就是要参照已成功移植的目标板来自己修改替换源码喝配置,之后重新make menuconfig,成功率不定
比如比较常见的要注意指定System Type、Processor Type、Machine Type
比如比较常见的要注意指定System Type、Processor Type、Machine Type
|
make menuconfig改太多了吧,一点一点改
|
make menuconfig配置不对吧?看看是否其它的依赖项没有选上。重新配置吧。
|
在make menuconfig中按/键,搜索相应的选项,只能自己去研究啦,没搞过mx27.
|
/usr/src/linux-2.6.36/arch/arm/include/asm/glue.h:119:2: #error Unknown data abort handler type
/usr/src/linux-2.6.36/arch/arm/include/asm/glue.h:160:2: #error Unknown prefetch abort handler type
warning信息一般可以忽略,但是error就要自己分析处理。
/usr/src/linux-2.6.36/arch/arm/include/asm/glue.h:160:2: #error Unknown prefetch abort handler type
warning信息一般可以忽略,但是error就要自己分析处理。