[CentOS] Compile a kernel

Wed Dec 9 12:53:21 UTC 2009
Eero Volotinen <eero.volotinen at iki.fi>

Quoting gilberto nunes <gilberto.nunes at selbetti.com.br>:

> Hi buddies
>
> I attempt to compile a kernel on CentOS 5.3.
> The kernel version is 2.6.31.6.
>
> All make procedure is running ok.
> I can generate initrd image with no problem too.
> But, when I try booting this kernel, I get Kernel panic:
>
> Setting up other filesystems.
> Setting up new root fs
> setuproot: moving /dev failed: No such file or directory
> no fstab.sys, mounting internal defaults
> setuproot: error mounting /proc: No such file or directory
> setuproot: error mounting /sys: No such file or directory
> Switching to new root and running init.
> unmounting old /dev
> unmounting old /proc
> unmounting old /sys
> switchroot: mount failed: No such file or directory
> [    1.732772] init used greatest stack depth: 5168 bytes left
> [    1.733029] Kernel panic - not syncing: Attempted to kill init!
> [    1.733291] Pid: 1, comm: init Not tainted 2.6.31.6 #2
>
>
> I don't know what is going on here!!
>

Something critical is missing from kernel? Proc fs support?

Can you paste your .config to mailinglist or pastebin.ca ..
--
Eero,
RHCE