按照官方文档编译内核失败

我的机器是3A-2000,操作系统是Loongnix,按照官方文档:
http://www.loongnix.org/index.php/Loongson_Kernel编译与使用
编译内核失败.

首先文档中的这句有问题:
cp arch/mips/configs/loongson3a2000_defconfig .config
并没有loongson3a2000_defconfig文件,改为loongson3_defconfig后,编译失败,错误显示为:

CC arch/mips/vdso/gettimeofday-o32.o
In file included from ./arch/mips/include/asm/io.h:31:0,
from ./arch/mips/include/asm/page.h:176,
from arch/mips/vdso/vdso.h:26,
from arch/mips/vdso/gettimeofday.c:11:
./arch/mips/include/asm/mach-loongson64/ioremap.h: 在函数‘plat_ioremap’中:
./arch/mips/include/asm/mach-loongson64/ioremap.h:27:5: 错误:“CONFIG_64BIT”未定义 [-Werror=undef]
#if CONFIG_64BIT
^
cc1: all warnings being treated as errors
arch/mips/vdso/Makefile:107: recipe for target 'arch/mips/vdso/gettimeofday-o32.o' failed
make[2]: *** [arch/mips/vdso/gettimeofday-o32.o] Error 1
scripts/Makefile.build:403: recipe for target 'arch/mips/vdso' failed
make[1]: *** [arch/mips/vdso] Error 2
Makefile:961: recipe for target 'arch/mips' failed
已邀请:

iapcmloongson

赞同来自: zzz19760225

我也遇到了同样的问题,正准备去问问,就看到了这个帖子。多谢楼主的问题,也谢谢lemote1的回复!

admin

赞同来自: zzz19760225


cp ./arch/mips/configs/loongson3_defconfig .config //kernel3.10内核
然后在进行编译。

wenheping - 老师

赞同来自:

谢谢啊!

wenheping - 老师

赞同来自:

刚才编译了4.4分支的内核,USB键盘可用,初步测试工作正常.

要回复问题请先登录注册