当前位置: 技术问答>linux和unix
Linux内核编译
来源: 互联网 发布时间:2016-10-04
本文导语: 各位大侠,小弟在编译Linux内核的时候总是出现这个问题: drivers/block/block.o: In function `ramdisk_updatepage': drivers/block/block.o(.text+0x2840): undefined reference to `cpu_CPU_NAME_cache_ clean_invalidate_range' drivers/block/block.o: In function ...
各位大侠,小弟在编译Linux内核的时候总是出现这个问题:
drivers/block/block.o: In function `ramdisk_updatepage':
drivers/block/block.o(.text+0x2840): undefined reference to `cpu_CPU_NAME_cache_
clean_invalidate_range'
drivers/block/block.o: In function `rd_blkdev_pagecache_IO':
drivers/block/block.o(.text+0x29f8): undefined reference to `cpu_CPU_NAME_cache_
clean_invalidate_range'
make: *** [vmlinux] Error 1
这是怎么回事啊?研究了半天没弄清楚,麻烦大伙儿支个招啊!谢啦!
drivers/block/block.o: In function `ramdisk_updatepage':
drivers/block/block.o(.text+0x2840): undefined reference to `cpu_CPU_NAME_cache_
clean_invalidate_range'
drivers/block/block.o: In function `rd_blkdev_pagecache_IO':
drivers/block/block.o(.text+0x29f8): undefined reference to `cpu_CPU_NAME_cache_
clean_invalidate_range'
make: *** [vmlinux] Error 1
这是怎么回事啊?研究了半天没弄清楚,麻烦大伙儿支个招啊!谢啦!
|
Linux-2.6.28移植
移植Linux2.6.28到 亿道公司的EELIOD xsbase270开发板的资料,搂主看下有帮助不?
1、修改linux-2.6.28目录下的Makefile
将
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
改为
ARCH ?= arm
CROSS_COMPILE ?=/opt/arm-linux-4.2.1/bin/arm-linux-
//这里的/opt/arm-linux-4.2.1/bin/arm-linux-为编译器的绝对地址
移植Linux2.6.28到 亿道公司的EELIOD xsbase270开发板的资料,搂主看下有帮助不?
1、修改linux-2.6.28目录下的Makefile
将
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
改为
ARCH ?= arm
CROSS_COMPILE ?=/opt/arm-linux-4.2.1/bin/arm-linux-
//这里的/opt/arm-linux-4.2.1/bin/arm-linux-为编译器的绝对地址