LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-14-2004, 09:42 PM   #1
fenice1976
Member
 
Registered: May 2004
Distribution: MDK 9.2 - Kernel 2.4.22mdk
Posts: 108

Rep: Reputation: 15
Compiling a new kernel: why these final steps?


I have just read DrOZZ's guide to compiling a new kernel and I wonder why I should make the last steps I have never done before.
I mean THESE ONES:

Remove the following links:
rm -rf /boot/System.map
rm -rf /boot/vmlinuz

Why deleting System.map? What's its use?
I have never deleted System.map before.

Then copy the newly created kernel and system.map to /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-x.x.x
cp /usr/src/linux/System.map /boot/System.map-x.x.x

I have always and onley copied the new kernel renaming it to preserve the old ones, but never copied the new System.map...and again...what is System.map?

Make the new links:
ln -s /boot/vmlinuz-x.x.x /boot/vmlinuz
ln -s /boot/System.map-x.x.x /boot/System.map

Never created such these links.....

Next remove existing initrd.img file:
rm -rf /boot/initrd.x.x.x.img

What's the use of initrd.x.x.x.img? And why deleting it?

..And create the new one:
/sbin/mkinitrd /boot/initrd-x.x.x.img x.x.x

Why should I create a new initrd.x.x.x.img ?

Well....sorry if these questions have already been made...it's deep night here...I'm tired and....excuse me in the case :-D

Night!
(Note: )
The last set of x.x.x is the eqivalent to your new kernel version and it looks to /lib/modules for that version.
 
Old 05-14-2004, 10:26 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
-System.map contains the listing of locations where different kernel internals are pysically located in the kernelfile/memory. The listing is unique to the compiled kernel and used probably by modprobe, some debugging tools, kernel dump/panic analyzer, etc.

-Idea of the removing the old one is to not to mix up it with the new.

-Idea of the links is that you don't have to modify your lilo.conf (or grub configs) every time you upgrade your kernel; /boot/vmlinuz contains allways the newest one.

-initrd is an initial ramdisk passed to the kernel by boot loader (lilo/grub) containing kernel modules needed access the root system (hard-disk, nfs, raid-arrays, scsi-devices, cdrom[eg. in knoppix], where ever your system is configured to run itself in).
-You need to create it again if your system structure is changed or if your kernel modules are changed (eg. new kernel version). (This of course applies only if you use initrd).
 
Old 05-15-2004, 07:41 AM   #3
fenice1976
Member
 
Registered: May 2004
Distribution: MDK 9.2 - Kernel 2.4.22mdk
Posts: 108

Original Poster
Rep: Reputation: 15
So what happens if I do not change/upgrade System.map and/or initdr.img?
 
Old 05-15-2004, 11:46 AM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
See Peter's notes about the System.map file for few more words about the system map.

And for the initrd:
if you don't use it, nothing.
And if you use it, your system fails to boot because of version mismatch on the modules.
 
Old 05-15-2004, 10:03 PM   #5
fenice1976
Member
 
Registered: May 2004
Distribution: MDK 9.2 - Kernel 2.4.22mdk
Posts: 108

Original Poster
Rep: Reputation: 15
Tonit. I have read the document. Very clear. Thanks! :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Final steps for installing Gaim with ssl support dev8080 Slackware 37 07-21-2007 01:35 PM
Almost installed my MA111 Adapter, final steps? Riggzy Linux - Wireless Networking 1 02-13-2005 11:15 AM
kernel reconfigure does'nt seem to affect the final kernel apax Linux - Newbie 2 11-10-2003 11:06 AM
Final Steps for Conexant HCF modem's driver installation and dialup configuretion mobassir Linux - Hardware 3 10-17-2003 07:05 PM
Kernel Upgrade Steps smartes Linux - Newbie 3 01-09-2003 08:05 PM


All times are GMT -5. The time now is 07:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration