icezerg 发表于 2003-10-10 20:05:35

编译2.6.0-test6内核出错

重启动系统,加载2.6.0-test6内核到:


VFS:Mounted root (ext2 filesystem)
Red Hat nash version 3.4.42 starting
Mounting /proc file system
Creating block devices
Creating root devices
Mounting root filesystem
mount : error 19 mounting ext3
pivotroot : pivot_root ( /sysroot , /sysroot/initrd )    failed : 2
umount /initrd/proc   failed : 2
Freeing unused kernel memory : 144Kfreed
kernel panic : No init found . Try passing init = option to kernel



到这里就有动了

qing 发表于 2003-10-10 20:11:30

mount : error 19 mounting ext3
pivotroot : pivot_root ( /sysroot , /sysroot/initrd )    failed : 2
umount /initrd/proc   failed : 2
Freeing unused kernel memory : 144Kfreed
kernel panic : No init found . Try passing init = option to kernel


http://www.linuxsir.org/bbs/showthread.php?s=&threadid=64964

icezerg 发表于 2003-10-10 20:36:24


编译test7产生

kernel panic: no init found try passing init=option to kernel


原因是:


选中了
Security Options
Root plug support




Code:
# sed -e "s/EXTRAVERSION =/EXTRAVERSION = -selfcompiled/" Makefile > new.Makefile
# mv new.Makefile Makefile


我是不是还要重新编译???怎样重新编译啊!!

icezerg 发表于 2003-10-11 00:50:59

不知道,我准备从新编译内核,看看对底怎么回事。另外:
http://www.linuxsir.com/bbs/showthread.php?s=&threadid=35988&highlight=panic
往后看

将init进程转化为用户进程,调用函数execve,重新装入init进程的执行映像(脚本程序或shell等)。新装入的映像会替换掉init进程现有的虚拟内存空间。
如果在命令行中指定了init程序,则装入并执行它:
execve(execute_command,argv_init,envp_init);
如果/sbin/init存在,则装入并执行它:
execve("/sbin/init",ragv_init,envp_init);
如果/etc/init存在,则装入并执行它:
execve("/etc/init",ragv_init,envp_init);
如果/bin/init存在,则装入并执行它:
execve("/bin/init",ragv_init,envp_init);
如果/bin/sh存在,则装入并执行它:
execve("/bin/sh",ragv_init,envp_init);
如果所有要执行的用户初始程序都不存在,则报错:
panic("No init found. Try passing init=option to kernel.");



这个地方,值得注意

qing 发表于 2003-10-11 11:33:01

pivot root: pivot_root (/sysroot, /sysroot/initrd) failed:2
说明内核mount不上/initrd目录,果然我的/initrd目录不见了,mkdir /initrd重启
成功了!

qing 发表于 2003-10-11 11:35:27

是的,root plug我不太了解,但我试验过,选了,内核就

是的,root plug我不太了解,但我试验过,选了,内核就出现错误


编译test7产生

kernel panic: no init found try passing init=option to kernel


原因是:


选中了
Security Options
Root plug support




Code:
# sed -e "s/EXTRAVERSION =/EXTRAVERSION = -selfcompiled/" Makefile > new.Makefile
# mv new.Makefile Makefile


我是不是还要重新编译???怎样重新编译啊!!
页: [1]
查看完整版本: 编译2.6.0-test6内核出错