LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 956|回复: 4

gentoo编译时出错?

[复制链接]
发表于 2006-11-25 16:17:54 | 显示全部楼层 |阅读模式
SUN UltraSPARC 5的机器,内存为256M 硬盘为HDD

1、按照手册光盘启动是2006.1的,核心是2.6.16,
安装后reboot,重启后停留在以下这里不动了,请帮忙看看,咋回事呢?

VFs: Mounted root(ext3 filesystem) readonly
Mounted devfs on /dev
FATAL: kernel too old
Unimplemented SPARC system call 188
Kernel panic: Attempted to kill init!
Press Li-Ato return to the boot prom

此编译内核版本为2.4.32

2、然后重新下载内核编译
#ererge gentoo-sources
重新下载2.6.17
在编译时出错
livecd linux # make dep && make vmlinux image modules modules_install
*** Warning: make dep is unnecessary now.
CHK include/linux/version.h
make[1]: Warning: File `/usr/include/sys/types.h' has modification time 3.5e+07 s in the future
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
make[1]: warning: Clock skew detected. Your build may be incomplete.
SPLIT include/linux/autoconf.h -> include/config/*
CC arch/sparc64/kernel/asm-offsets.s
GEN include/asm-sparc64/asm-offsets.h
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/pnmtologo
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:15,
from include/linux/percpu.h:4,
from include/linux/rcupdate.h:41,
from include/linux/pid.h:4,
from include/linux/sched.h:33,
from include/linux/module.h:10,
from init/main.c:16:
include/linux/mmzone.h:500:2: #error Allocator MAX_ORDER exceeds SECTION_SIZE
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2

请帮忙看看,如何解决?
发表于 2006-11-25 20:16:57 | 显示全部楼层
2.6.17的内核用2.4的命令去编?你是UltraSPARC的机子最好是看看sparc的手册:http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml?part=1&chap=7
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-27 23:39:17 | 显示全部楼层
谢谢楼上的,看了上面的网页了,就是按上面的步骤做的
换成2.6.17的内核也出同样的错误呀
还有其它办法吗?
回复 支持 反对

使用道具 举报

发表于 2006-11-28 00:36:40 | 显示全部楼层
找水深的大坛子去问,#gentoo-sparc on freenode,forums.gentoo.org,gentoo-user mailing list...
这里会有几个人玩过sparc呢?
回复 支持 反对

使用道具 举报

发表于 2006-11-28 01:31:28 | 显示全部楼层
FATAL: kernel too old
已经说明了问题了啊……

BTW,楼主编译的时候用make && make modules && make modules_install就可以了。

再BTW,其实照着SPARC的文档做就好。我在Ultra1上装过,没有问题的说
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表