Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need help with building kernels

2 views
Skip to first unread message

Ross Alampi

unread,
Jun 13, 2002, 10:33:58 PM6/13/02
to

Hi,

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,

Yaroslav Klyukin

unread,
Jun 14, 2002, 2:55:57 PM6/14/02
to
rpm --rebuild *.src.rpm

> 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/

Jon-Egil Korsvold

unread,
Jun 25, 2002, 6:47:14 PM6/25/02
to
Ross Alampi wrote:

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.

Rogue 9

unread,
Jul 3, 2002, 5:15:43 AM7/3/02
to

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

Rouslan

unread,
Jul 31, 2002, 10:15:09 PM7/31/02
to

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

bill davidsen

unread,
Aug 2, 2002, 9:53:50 AM8/2/02
to
In article <Pine.LNX.4.21.02073...@localhost.localdomain>,

Rouslan <rou...@localnet.com> wrote:
|
|
| On Tue, 25 Jun 2002, Jon-Egil Korsvold wrote:
| >
| >make config
-> make clean
-> make dep

| >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.

0 new messages