I'm new at building kernals. (On RedHat)
Is there a HOWTO web site on Building Custom Kernels ?
What steps are involved ?
Any help will be greatly appreciated.
Thankyou in advance,
> I'm new at building kernals. (On RedHat)
> Is there a HOWTO web site on Building Custom Kernels ?
> What steps are involved ?
>
--
Systems admin.
ICQ: 1045670
ftp://skintwin.no-ip.com/
The complete procedure is carefully outlined in
"Linux for dummies" (no offense intended).
I suggest that you buy the book. It is intended
for Red Hat users, and you'll get the OS on a
cd together with the book (at least I did in -97
or -98).
make config
make bzImage
make modules
make modules_install
Regards,
Jon-Egil Korsvold
PS: I haven't been using Red Hat for a while,
so things might have changed.
First of all make sure the kernel sources are installed - I generally
install them not to /usr/src but to /home/myusername/src.
To install them there open a console and execute the following commands
cd /home/myusername/
mkdir src
cd src
tar zxvf /path/to/kernel/source
This should inflate the kernel source files into
/home/myusername/src/linux
cd to the linux dir and then use your favourite editor to edit the file
called Makefile.When this file opens up you will see a line like this
EXTRAVERSIONS =
I usually put this in mine
EXTRAVERSIONS = -myk
This will mean when you compile it will make modules in a dir called
/lib/modules/2.4.18-myk and leave your current kernel safe and untouched
( A VERY GOOD THING)
Once you've saved the Makefile then you can configure and compile in the
following sequence
cd /home/myusername/src/linux
make mrproper (this will clear out any left over garbage)
make xconfig or make menuconfig - it's up to you
make dep && make clean && make bzImage && make modules
That line will do all of these commands one after the other ONLY if each
command executes properly with no errors
For the next step you must be root so issue the su command and type in
the root password.
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.18-myk (if your using 2.4.18
kernel sources otherwise sub stitute for what you have okay?)
That's all for compiling if you want to get it to boot the kernel I
suggest you read the lilo howton and examine your /etc/lilo.conf file
(make a bckup of it BEFORE you change it though)
Long post I know but hope it helps
On Tue, 25 Jun 2002, Jon-Egil Korsvold wrote:
>
>make config
>make bzImage
>make modules
>make modules_install
>
`make install` is a good thing to do too, actually.
./Ruslan
And to be SURE you get a clean build:
mv .config /tmp/config
make mrproper
mv /tmp/config .config
before 'make config' to force rebuild of everything
--
bill davidsen <davi...@tmr.com> CTO, TMR Associates, Inc
Programming without software engineering is like sculpting with a chain
saw. The very talented can produce a work of art, the mediocre wind up with
a misshapen lump in a pile of rubble, and in neither case does the end
result have more than a passing resemblance to the original intent.