recomiling the kernel

Patrick O. Coffey pcoffey at twcny.rr.com
Thu Jul 8 18:59:56 UTC 2004


Hi,

  I noticed a few things in the list of what you did, after executing
make oldconfig, I believe you need "make bzImage modules" which will
build the kernel image and the modules for that image. Also you need to
make an initrd.img file for your new kernel using this command
"/sbin/mkinitrd /boot/initrd-2.6.5-1.358-custom.img 2.6.5-1.358" This
will create a new initrd.img file called initrd-2.6.5-1.358.img in the
/boot directory. The second part of the mkinitrd command "...
2.6.5-1.358" is pointing to the 2.6.5-1.358 directory containing your
modules for the new kernel in /lib/module. Then edit your grub.conf file
to reflect the new initrd.img file and try rebooting. Anyway this worked
for me, if I haven't explained this well feel free to let me know. HTH.

--Pat


On Thu, 2004-07-08 at 14:30, Marcelo Manzato wrote:
> Hi,
> 
> I recently tried to recompile the kernel on my FC2,
> but when I boot using the new one I get the following
> message: 
> "kernel panic: no init found. Try..."
> I used the source from the FC2, and executed the
> following commands:
> # ln -s linux-2.... linux
> # cp /boot/config... /usr/src/linux/.config
> # make oldconfig
> # make
> # make modules_install
> # cp arch/i386/boot/bzImage /boot
> # vi /etc/grub.conf 
> Here I let my grub.conf as the following:
> 
> default=0
> timeout=10
> splashimage=(hd0,0)/grub/splash.xpm.gz
> title Fedora Core (2.6.5-1.358)
>         root (hd0,0)
>         kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/
> rhgb quiet
>         initrd /initrd-2.6.5-1.358.img
>                                                       
>                          
> title Fedora Core Modified
>         root (hd0,0)
>         kernel /bzImage ro root=LABEL=/ rhgb quiet
>         initrd /initrd-2.6.5-1.358.img
> 
> I also have tried to comment the line "initrd ..."
> from Fedora Core Modified section, but even I got the
> message "kernel panic: unable to mount root fs.."
> (something like this).
> What did I do wrong?
> 
> 
> 
> 	
> 	
> 		
> _______________________________________________________
> Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
> http://br.info.mail.yahoo.com/
> 





More information about the users mailing list