LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-20-2005, 12:46 PM   #1
lemmy_kilmister
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Rep: Reputation: 0
Howto: Make a bootable install CD with kernel 2.6


Hi everyone,

last week I bought a new mainboard with an Intel ICH5 sata-controller onboard. Unfortunately Slackware comes with 2.4 kernel as default (for installation), which does not support my hardware well (sata-drives become /dev/hdx and run really slow).

So I've prepared a custom slackware-10.1-install-d1.iso with kernel 2.6 as default. LQ-member "BoneCrusher" did something similar for Slackware 10.0 and kernel 2.4 with extended sata-support. It's bit of work but really simple at the end.

Here's the step-by-step-howto:

1. Compile a 2.6 kernel with all the drivers you need built in.

2. Copy slackware-10.1-install-d1.iso to your harddisk.

3. Replace one of the Slackware installation kernels with your own: Copy System.map.gz, bzImage and config to /kernels/sata.i (for example) overwriting the existing files.

4. In /slackware/a replace the package “kernel-ide-2.4.29-i486-1” with “kernel-generic-2.6.10-i486-1” and “kernel-modules-2.4.29-i486-1” with “kernel-modules-2.6.10-i486-1” from /testing/packages/linux-2.6.10.

Edit /slackware/a/tagfile: write “kernel-generic” instead of “kernel-ide”.

5. In /slackware/d replace “kernel-headers-2.4.29-i386-1” with “kernel-headers-2.6.10-i386-1” from /testing.

This package is only needed if you don't want to compile your own kernel after the Slackware installation but have to compile a driver for your own (for DSL or something?! Read Pat's warning in about that: /testing/packages/linux-2.6.10/kernel-headers.WARNING.

6. In /slackware/k replace “kernel-source-2.4.29-noarch-1” with “kernel-source-2.6.10-noarch-1” from /testing.

7. In /slackware/l replace “alsa-driver-1.0.8_2.4.29-i486-1” with “alsa-driver-1.0.8_2.6.10-i486-1” from /testing.

8. Make your custom Slackware-10.1-install-d1.iso:
Quote:
mkisofs -l -o /<target>/<path>/slackware-2.6.iso \
-R -J -V "Slackware 2.6" \
-x ./bootdisks \
-x ./extra \
-x ./slackware/gnome \
-x ./slackware/kde \
-x ./slackware/kdei \
-x ./pasture \
-x ./patches \
-x ./rootdisks \
-x ./source \
-x ./zipslack \
-hide-rr-moved \
-v -d -N -no-emul-boot -boot-load-size 4 -boot-info-table \
-sort isolinux/iso.sort \
-b isolinux/isolinux.bin \
-c isolinux/isolinux.boot \
-A "Slackware Install CD" .
Burn your install-iso and boot up using the custom 2.6 kernel ("sata.i" for example). Follow the setup as usual.

Note: During package selection install "kernel-generic" and "kernel-modules" from the "a"-series and (optional) "kernel-source" from "k"-series. When the installer asks which kernel to install choose the last option: "Skip and use default kernel: /boot/vmlinuz" or something like that. This means that you are going to use Slackware's 2.6 kernel out of the "kernel-generic"-package.

Finish installation. Before you reboot, make sure your system is bootable! I had to build the initrd following Pat's mini howto. Read /testing/packages/linux-2.6.10/README.initrd.

For my ICH5-sata controller and ext2 filesystems on the /root- and a separate /boot-partition I did the following:
Quote:
mkdir -p /mnt/tmp
mount /dev/<root partition> /mnt/tmp
chroot /mnt/tmp
mount /proc
mount /<other partitions>
cd /boot
mkinitrd -c -k 2.6.10 -m libata:ata_piix -r /dev/sda2
Edit /etc/lilo.conf and run
Quote:
lilo
Unmount filesystems:
Quote:
umount /<other partitions>
umount /proc
Press Ctrl+Alt+Del to reboot.

I've tested my custom install CD on two computers and found no flaws using this procedere. I'd like to read further hints and comments from you.

Greetings
Lemmy

Update 2005/04/15: Updated the last section for correct unmounting.
Update 2006/05/19: Small cleanups: Checksum adjustments not needed.

Last edited by lemmy_kilmister; 05-18-2006 at 03:41 PM.
 
Old 09-14-2005, 07:23 AM   #2
mazebane
Member
 
Registered: Aug 2004
Location: UK
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
at last i found the post i have been looking for for ages!

looking at slack current in the kernels i notice there is a test26.
what i was wondering about was if i followed the above instructions on changing to the 2.6 kernel and making the boot disk could i just type test26.s at the prompt and that would be all done?

Last edited by mazebane; 09-14-2005 at 07:25 AM.
 
Old 09-14-2005, 08:35 AM   #3
lemmy_kilmister
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Hi mazebane,

as far as I know it is still true for the upcoming Slackware 10.2 release that you have customize the first installation disc if you want a kernel 2.6 out of the box.

But with test26.s as an optionial kernel to boot up the system during the installation it's more easy / less work to do now: You can skip step 1 as test26.s is already there.

Quote:
could i just type test26.s at the prompt and that would be all done?
Yes! And I'll do all this for myself when Slackware 10.2 is released. I'll report back.

Greetings
Lemmy

Last edited by lemmy_kilmister; 09-14-2005 at 08:48 AM.
 
Old 09-14-2005, 09:47 AM   #4
mazebane
Member
 
Registered: Aug 2004
Location: UK
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
thaks for getting back so soon, i will have a try at this tonight
 
Old 03-30-2006, 04:55 PM   #5
mazebane
Member
 
Registered: Aug 2004
Location: UK
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
well i did it in the end, worked a treat using the test26.s kernel with the other parts made on the disk, works a treat
 
Old 04-01-2006, 02:45 AM   #6
lemmy_kilmister
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Hi mazebane,

that's good to hear!

I found out that it isn't necessary to correct the md5sums in /slackware/CHECKSUMS.md5 and /CHECKSUMS.md5. It's less work this way.

Regards,
lemmy
 
  


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
Bootable cd howto server-solution Linux - Software 2 10-13-2005 09:21 AM
howto install an old kernel on FC3 umutkarahan Fedora 5 04-10-2005 10:11 AM
Howto deinstall tar.gz after an make install cyberbull Linux - Newbie 3 02-03-2004 11:46 AM
howto install new kernel in 9.2 r2 thethinker101 Mandriva 3 12-18-2003 03:43 AM
when i burn my cd's for install do i make a dos bootable 1's? ifreborn Linux - Software 7 12-14-2003 12:14 AM

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

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