LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-08-2005, 05:55 AM   #1
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
Slackware 10.1 installation with custom build kernel


Hello!

For some reason i need to install Slackware 10.1 with custom build kernel, but i don't know exactly how to manage that. Can somebody give me a hint or something? Where could i find more info on that topic? At most i'm interested in procedure of building kernel image, which can go on one floppy. What can i leave out in kernel configuration, tricks which make the image small and still useful... Furthermore how to create fully functional *.i IDE bootdisk (is this just an ordinary bootdisk or not?).
 
Old 08-08-2005, 07:13 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
Are you saying that you want to use a pre built custom kernel during the installation phase? i seem to remember this is possible - but slack being slack i haven't installed for 2 years or more :-)

Or would it be okay to install slackware with the default kernel and then build your new one? which is not really that hard....

You can leave out anything you don't need for your machine. Which can be a lot if you don't have a lot of hardware etc.... Don't forget to compille in reiserfs support tho....
 
Old 08-08-2005, 07:40 AM   #3
GlowGlow
Member
 
Registered: Jun 2005
Posts: 111

Rep: Reputation: 15
Yes, that is certainly possible. Use the same kernel version as on the installation CDs, and grab the kernel configuration from kernels/bare.i/config:

cp /cdrom/kernels/bare.i/config /usr/src/linux/.config

Make your changes in the kernel configuration. If there aren't too many changes (like adding support for a disk controller) you can use the existing modules in Slackware. After that, you can copy arch/i386/bzImage (the compiled kernel) to the CD image you are creating as, e.g.:

kernels/custom.i/bzImage

You should then edit isolinux/isolinux.cfg on the distribution media, to add a line for your new kernel. You can use the existing lines as an example, e.g.:

Code:
label custom.i
  kernel /kernels/custom.i/bzImage
  append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=6464 rw root=/dev/ram SLACK_KERNEL=custom.i
During the installation you will be able to select this kernel.

I have done this quite many times, and it always works as a charm for me.
 
Old 08-08-2005, 08:16 AM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
well there you go!

Interesting post. I might do this in future. I love slack but i don't want a standard kernel. Certainly not a 2.4.x kernel with some of my hardware...

Cool...
 
Old 08-08-2005, 06:34 PM   #5
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Original Poster
Rep: Reputation: 35
GlowGlow 10x!! That's exactly what i need!!!
But i still have one question. You say i should use one of the pre-exsisting kernels which slackware has with it. But i have to use 2.6.x kernel patched with one of the ac patches to get IT8212 raid controller support. Do you think it will work?
 
Old 08-09-2005, 02:29 AM   #6
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Quote:
Originally posted by zWaR
GlowGlow 10x!! That's exactly what i need!!!
But i still have one question. You say i should use one of the pre-exsisting kernels which slackware has with it. But i have to use 2.6.x kernel patched with one of the ac patches to get IT8212 raid controller support. Do you think it will work?
Sure it will work, but it will require lots more work to do. You'd need to build custom module packages for your specific kernel, if you use kernel modules, and replace the ones on the CD. Same thing with the modules in the initrd.gz if you need any of those. Easiest way to get it going would be to just configure and build your custom kernel with everything you need during the install process, as well as to get you booted up after the install, into the kernel. Place any modules you need in the initrd and you could install them manually after installing SLackware but prior to rebooting. That way you don't have to worry with the kernel modules at all and can just rebuild the kernel once your up and going. That would be a hack though.
 
  


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
Boot process stops after custom kernel build FuzzyDuc Debian 3 11-28-2004 06:47 AM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM
What do i need to build custom kernel!! no noob_slacker Slackware 20 11-20-2003 07:57 PM
how to make modifications to a custom kernel build? h/w Linux - Newbie 2 11-09-2003 03:47 PM
build custom slackware iso Zeratool Box Slackware 1 05-11-2003 01:28 AM


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