LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-18-2010, 03:04 PM   #1
dbeck
LQ Newbie
 
Registered: May 2006
Location: MN State Univ., Mankato
Distribution: Slackware 12.2, CentOS 5.4
Posts: 22

Rep: Reputation: 15
How to insert a different kernel into installation media


Hi - I would like to be able to install a kernel I built and have that available on a DVD or USB installation media from which I can boot and have my devices available.

It seems like this should be possible. If it is and there are any information about doing please let me know.

Denis Becker
 
Old 05-19-2010, 02:04 AM   #2
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
I'm curious to know what's missing from the installation kernel.

Adding and/or replacing the default installation boot kernel is quite trivial. I've done this to add virtiro support for KVM installations. I'll assume you already have mirrored a Slackware tree, and know how to create a bootable disc. Read README.TXT in isolinux/ if not.
Kernel images go in kernels/ Study the isolinux/ and kernels/ directories, and you'll get a feel for how things are done.

We'll call the new kernel cust. So you'll create a directory kernels/cust, and place your kernel in that directory.

You also need to modify at least isolinux/isolinux.cfg. It might be wise to edit isolinux/message.txt to drop a reminder for yourself
Bold part is what I added to isolinux/isolinux.cfg.
Code:
default huge.s
prompt 1
timeout 1200
display message.txt
F1 message.txt
F2 f2.txt
label huge.s
  kernel /kernels/huge.s/bzImage
  append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 rw SLACK_KERNEL=huge.s
label speakup.s
  kernel /kernels/speakup.s/bzImage
  append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 rw SLACK_KERNEL=speakup.s
label cust
   kernel /kernels/cust/bzImage
   append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 rw
SLACK_KERNEL=cust
I've only done this on a Slackware system which has the exact same tool chain as that on the installation DVD. initrd.img is the meat of the installation. Includes busybox and the other applications needed to perform installation and rescue operations. You can modify initrd.img as well, but it requires a few extra steps.

Last edited by disturbed1; 05-19-2010 at 02:08 AM.
 
Old 05-19-2010, 05:07 PM   #3
dbeck
LQ Newbie
 
Registered: May 2006
Location: MN State Univ., Mankato
Distribution: Slackware 12.2, CentOS 5.4
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the information. I have a couple of Dell Poweredge servers that have the LSI internal scsi and the mpt driver doesn't work so the drivers aren't available without an initrd of some sort. To do the initrd (to my limited knowledge) requires another control and disk.

So, I was concidering creating kernel that would work and then use that on the CD/DVD instead of the ones that haven't been working straight off the DVD.

Denis...
 
  


Reply



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
To connect to pppoe KDE wants me to insert installation download dvd into my cd rom? Majere Linux - Newbie 2 10-01-2005 04:12 PM
Cannot read package data from installation media. Media error? </m0r1arty> SUSE / openSUSE 2 01-26-2005 07:57 PM
Insert Bootable Media.......... smiorgian Linux - General 8 10-02-2004 04:56 PM
Mandrake 10.0. Insert Installation CD4??? Z3RatuL Mandriva 6 03-29-2004 06:11 AM
laptop with docking -- does not boot new kernel, redhat 9 installation media timpie Linux - Laptop and Netbook 0 06-22-2003 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:15 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
Open Source Consulting | Domain Registration