LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-20-2003, 09:07 AM   #1
trouby
Member
 
Registered: Sep 2003
Posts: 59

Rep: Reputation: 15
kernel modules...


Hello,

Is there a way to create an initrd file in Slackware?
I have some RAID controller which is not supported by the kernel itsself,
I understood that the right way to enable support for raid devices that are not supported by the kernel is to create an initrd image that contains the module itsself, but unfortunately, it seems like that Slackware doesn't come with mkinitrd,

Is there any other way to create an initrd image with Slackware?


Thanks.
 
Old 12-20-2003, 10:38 AM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,508

Rep: Reputation: 176Reputation: 176
"Is there a way to create an initrd file in Slackware?"

mkinitrd is a script. You could download the mkinitrd for some other distribution and then create an initrd by hand using the mkinitrd script as a guide.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-22-2003, 07:28 AM   #3
trouby
Member
 
Registered: Sep 2003
Posts: 59

Original Poster
Rep: Reputation: 15
Ye, it's just that Slackware lacks a little bit with old packages

mktemp(which is required by mkinitrd) comes with Slack as an old version so mkinitrd doesn't work properly and other packages should be upgraded) but ye, it's fine, at the end..


thanks.
 
Old 12-22-2003, 04:30 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,752

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
See a good HOWTO on the RUNT linux site. RUNT is a ZipSlack-based network diagnostics distro that boots from a USB thumb drive, but he has a very good and simple HOWTO for making an initrd. Or you canm modify his by gunzip-ing it, mounting it and changing the modules then rezipping it. It goes something like this:
gunzip initrd.gz
mount -o loop initrd /mnt/point
cd /mnt/point
then take out or add what you need and then:
gzip initrd
 
Old 12-22-2003, 04:38 PM   #5
trouby
Member
 
Registered: Sep 2003
Posts: 59

Original Poster
Rep: Reputation: 15
ye, after you mount the initrd file you can simply do whatever you want with it, the problem goes with how to create the initrd file, which usually done by using mkinitrd and for some reason Slackware doesn't come with it
 
Old 12-23-2003, 02:31 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,752

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
The last line gzip initrd creates initrd.gz which is the initrd file. See the RUNT homepage for how, and what to put there. or just takes his and modify it along with syslinux.cfg to make it do whatever you want. Whatever commands you use can be made into a bash script an you'll have your own mkintrd.
 
Old 12-23-2003, 04:21 AM   #7
trouby
Member
 
Registered: Sep 2003
Posts: 59

Original Poster
Rep: Reputation: 15
Already managed, but I'll be glad to see how to create an initrd file without mkinitrd (although it's great, you just specify the modules you want, the kernels' version and it build everything for you)

Thanks!
 
Old 04-20-2004, 03:26 PM   #8
monz
Member
 
Registered: Apr 2004
Location: Cph, dk
Distribution: Gentoo, Slackware, RHEL. Debian/Ubuntu, FreeBSD, Solaris, OSX, MS
Posts: 57

Rep: Reputation: 15
Quote:
Originally posted by trouby
Already managed, but I'll be glad to see how to create an initrd file without mkinitrd (although it's great, you just specify the modules you want, the kernels' version and it build everything for you)

Thanks!
Don't really need mkinitrd, but was thinking about it after going back - correction, coming home - again to Slackware after some frustrating yrs with RH.

So I copied mkinitrd from RH 7.2 and changed modules.conf to modprobe.conf for kernel 2.6.4/5. Next, needs to copy /sbin/nash (script interpretor to interpret linuxrc images) from RH as well.
Now mkinitrd makes trouble, since the version on Slackware (9.1) doesn't support the BSD flag -d for creating unique dirs, wierd, since man(3) mkdtemp shows the underlying code is present.

A bit busy right now, but seems I only need to work my way around the missing -d switch, either by compiling a proper (BSD style) mktemp, or changing the way unique dirs are created.

Dunno about legalities copying/modifying/distributing RH's mkinitrd + nash, else I wouldn't mind uploading it as a tgz package somewhere, like slackfiles?

I'll be back with more info 2morr hopefully. At least I'll describe exactly what needs to be done to the RH stuff, for those who can't live WO it.

Ehh, haven't had probs myself, but someone claims diskIO is faster compiling the ness stuff into the kernel then using a module... Anyone care to enlighten me?


"The early bird gets the worm. If you want
something else for breakfast, get up later."
-- unknown
 
  


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
kernel: No module symbols loaded - kernel modules not enabled. Qucho Debian 9 05-26-2004 02:50 AM
Kernel Modules and modules.conf init Linux - General 0 02-20-2004 06:51 PM
new kernel (2.4.22 up from 2.4.20-6) - missing modules - use old modules? Simon Bridge Linux - Software 1 02-04-2004 05:52 AM
How to keep modules/drivers across kernel recompiles and kernel versions? Pisces107 Linux - General 5 01-21-2004 08:29 PM
Kernel modules: why are some kernel modules zipped? hampel Slackware 3 06-30-2003 06:33 AM


All times are GMT -5. The time now is 12:16 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