2001-11-23 21:51:53

by pocm

[permalink] [raw]
Subject: Kernel Compilation Basics

Hi all,

I'm trying to compile 2.4.15.
I've read Kernel Howto and I've done the quick compilation steps:
make xconfig
make dep
make clean
make bzImage
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.15
make modules
make modules_install

What about now?
How do I create system map and modules info?
What are they for?
I feel that kernel howto is not explicit with this questions.
Is there any place where can I get insight about these questions?

Best regards,

--
Paulo J. Matos aka PDestroy : pocm(_at_)rnl.ist.utl.pt
Instituto Superior Tecnico - Lisbon
Software & Computer Engineering - A.I.
- > http://www.rnl.ist.utl.pt/~pocm
---
Yes, God had a deadline...
So, He wrote it all in Lisp!


2001-11-23 22:12:56

by Robert Love

[permalink] [raw]
Subject: Re: Kernel Compilation Basics

On Fri, 2001-11-23 at 16:57, Paulo J. Matos aka PDestroy wrote:
> I'm trying to compile 2.4.15.
> I've read Kernel Howto and I've done the quick compilation steps:
> make xconfig
> make dep
> make clean
> make bzImage
> cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.15
> make modules
> make modules_install
>
> What about now?
> How do I create system map and modules info?
> What are they for?
> I feel that kernel howto is not explicit with this questions.
> Is there any place where can I get insight about these questions?

You already have a System.map, it is in the root of your linux source
directory. Thus, as you copied vmlinuz over, do the same for
System.map:

cp System.map /boot/System.map-2.4.15

modules-info is something specific to RedHat which you do not need.
`make modules_install' is all that is required. Now, edit your
bootloader (lilo, grub, etc) and reboot. Enjoy.

Robert Love

2001-11-24 00:17:09

by David Relson

[permalink] [raw]
Subject: Re: Kernel Compilation Basics

At 04:57 PM 11/23/01, Paulo J. Matos aka PDestroy wrote:
>Hi all,
>
>I'm trying to compile 2.4.15.
>I've read Kernel Howto and I've done the quick compilation steps:
>make xconfig
>make dep
>make clean
>make bzImage
>cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.15
>make modules
>make modules_install
>
>What about now?
>How do I create system map and modules info?
>What are they for?
>I feel that kernel howto is not explicit with this questions.
>Is there any place where can I get insight about these questions?

Rather than "cp ... /boot/..." use "make install". If I remember
correctly, "make install" will even add the proper entry to
/etc/lilo.conf. Assuming you are using lilo, you will also need to run it
after "make modules_install".

David


2001-11-24 00:23:08

by Mike Dresser

[permalink] [raw]
Subject: Re: Kernel Compilation Basics



On Fri, 23 Nov 2001, David Relson wrote:

> At 04:57 PM 11/23/01, Paulo J. Matos aka PDestroy wrote:
> >Hi all,
> >
> >I'm trying to compile 2.4.15.
> >I've read Kernel Howto and I've done the quick compilation steps:
> >make xconfig
> >make dep
> >make clean
> >make bzImage
> >cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.15
> Rather than "cp ... /boot/..." use "make install". If I remember
> correctly, "make install" will even add the proper entry to
> /etc/lilo.conf. Assuming you are using lilo, you will also need to run it
> after "make modules_install".
>
> David

I've always done a make bzlilo after the dep clean, is this wrong?
Updates my lilo for me just fine.

Mike