LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 01-08-2004, 05:36 PM   #1
nmoog
Member
 
Registered: Sep 2003
Location: Sydney
Distribution: Debian
Posts: 70

Rep: Reputation: 15
mkinitrd doesnt exist in slackware? Newbie kernel compile question!


I am just going about recompiling my 2.4.22 kernel and I just done a "make bzImage"
I have changed my EXTRAVERSION to -09Jan so that when I do a "make modules" the modules will be compiled to /lib/modules/2.4.22-09Jan (right?) Then once I am done I am supposed to to a "mkinitrd" to generate the initrd-2.4.22-09Jan.img file that I should put in LILO.

Well, thats what I was supposed to do in RedHat! But there is not a mkinitrd command in my slackware install. How do I tell LILO which modules version to use?

I did follow the guide in this forum, which did work, but I like the idea of having to copy all the files to the /boot directory etc yourself.

Thanks!
 
Old 01-08-2004, 05:58 PM   #2
poison
Member
 
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165

Rep: Reputation: 30
although there _is a_ kernel compile guide at the very top of this nice forum...

compile your kernel and modules ->
cd /usr/src/linux/
make dep clean bzImage modules modules_install

install your kernel image ->
cp System.map /boot/
cat arch/i386/boot/bzImage > /boot/vmlinuz

update lilo ->
lilo

no, to my knowlege make modules won't copy you're modules to /lib/modules/<version> ...
thats what make modules_install does...
your system knows what kernel to use from the lilo.conf ->
Code:
image = /boot/vmlinuz
  root = /dev/hda1
  label = slack
  read-only
your kernel knows it's version and of course which modules to load if I'm not wrong....
and by the way....I would use 2.4.24 since 2.4.22 and 2.4.23 have some serious security flaws ->
http://slackware.com/security/viewer...ecurity.757729

Last edited by poison; 01-08-2004 at 06:16 PM.
 
Old 01-08-2004, 06:56 PM   #3
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 535

Rep: Reputation: 30
Initrd image is not necessary unless you have some hardware for which you compiled the drivers as modules that must be used at boot.
ie you have a scsi hard disk on which you have your operating system installed and you have compiled the scsi drivers as modules, and of course they are not available at boot.
Slackware doesn't provide any automatic "generator" of initrd images.
You must set them up manually and trust me .... is a mess.
I had a list of the necessary files to set up an initrd image on Slack but I can't find it at the moment.
I will post it as soon as I catch it. (may be tomorrow if I can)
Ciao
 
Old 01-08-2004, 07:22 PM   #4
nmoog
Member
 
Registered: Sep 2003
Location: Sydney
Distribution: Debian
Posts: 70

Original Poster
Rep: Reputation: 15
Cool - I didnt really know what initrd.img file was! I dont think I need to worry about that then!

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tun interface does not exist in slackware 10.1 with kernel 2.6.11.10 antken Linux - Networking 1 05-29-2005 10:10 PM
kernel 2.6.8 compile error mkinitrd failed mcalizo Linux - Software 0 11-30-2004 02:58 AM
mkinitrd kernel-related question Tino27 Slackware 1 03-27-2004 12:14 AM
MLDonkey_gui doesnt exist fedivh Linux - Software 34 02-07-2004 05:40 PM
mkinitrd problem - kernel upgrade newbie irvken Linux - Newbie 31 12-23-2003 01:03 PM


All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
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