mkinitrd and a vanilla kernel 2.6

General support questions including new installations

mkinitrd and a vanilla kernel 2.6

Postby markcc » 2006/11/24 16:06:28

Where can I find centos docs on creating an initrd img file for a vanila 2.6.18.3 kernel i've compiled?

I'm a bit stumped on how to create it at the moment. (only really done 2.4 kernels in the past)
markcc
 
Posts: 29
Joined: 2006/11/23 13:16:46
Location: Leeds

Re: mkinitrd and a vanilla kernel 2.6

Postby Lenard » 2006/11/24 17:18:07

These are the steps in order to use when building a new kernel (does not matter if vanilla or supplied kernel sources) for the Red hat family;

make mrpoper (the first time building the kernel if not then use 'make clean' here instead)
make menuconfig
make
make modules_install
make install

No need for using the mkinitrd command it is covered by the 'make install' command above along with the copying and updating the /boot/grub/grub.conf file. Yes I know this differs from the kernel rebuild guide but they work just fine;

$ uname -a
Linux Aspire5000 2.6.19-rc6-git4 #2 SMP Tue Nov 21 11:55:02 EST 2006 x86_64 x86_64 x86_64 GNU/Linux



If building from the supplied kernel source one need to "prep the kernel source" before starting, but since you build a vanilla kernel I will skip this.
Lenard
 
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: mkinitrd and a vanilla kernel 2.6

Postby markcc » 2006/11/26 23:42:12

Thanks, that worked a treat.

*grumbles about in the old days you didn't need to worry about making a virtual mem filesystem to boot from etc*

I tried it under 64bit centos too, it brings up a weird kernel error on bootup (if you use kernel 2.6.18.3);

"kernel direct mapping tables up to 100000000 @ 8000-d000"


I've actually gotten it to boot fine, but it always displays that.. there are a few mentions of it on google.
Think i'll stick to the 32bit version for now.

By the way, is there any known issues with Centos 4.4 and the 2.4 series kernel? I'm going to give it a go tomorrow, so any heads up would be nice.
markcc
 
Posts: 29
Joined: 2006/11/23 13:16:46
Location: Leeds

Re: mkinitrd and a vanilla kernel 2.6

Postby Lenard » 2006/11/27 00:45:51

Plenty, the 2.4 kernel will not work. The module-init-tools no longer has support for the kernel for one. Also almost everything else has been built with the 2.6 kernel in mind. Do so at your own risk!!!

Make a backup before starting you will need it.
Lenard
 
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: mkinitrd and a vanilla kernel 2.6

Postby markcc » 2006/11/27 09:21:34

Lenard wrote:
Plenty, the 2.4 kernel will not work. The module-init-tools no longer has support for the kernel for one. Also almost everything else has been built with the 2.6 kernel in mind. Do so at your own risk!!!

Make a backup before starting you will need it.


Oh...

*grumbles even more*

In the old days you could use the 2.2 kernel on a distro that used 2.4 by default without any problems, heck.. you could even use 2.0 if you wanted. I remember the days when yast for suse was good and computers were hand cranked. (everything is true, apart from the hand cranked remark)

I'll stick to the 2.6 series then, this is all going to be for a new fileserver i'm going to put together so stability is kind of important. (i've always been of the school of thought that a vanilla kernel from a previous version is about the most stable version you can get)

Funny how nowadays I only use linux distros once everytime I build a server, in the old days I used it like mad. The obsession with technology and youth I guess.
markcc
 
Posts: 29
Joined: 2006/11/23 13:16:46
Location: Leeds


Return to CentOS 4 - General Support

Who is online

Users browsing this forum: No registered users and 0 guests