LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 10.1 installation with custom build kernel (http://www.linuxquestions.org/questions/slackware-14/slackware-10-1-installation-with-custom-build-kernel-351087/)

zWaR 08-08-2005 06:55 AM

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?).

satinet 08-08-2005 08:13 AM

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....

GlowGlow 08-08-2005 08:40 AM

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.

satinet 08-08-2005 09:16 AM

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...

zWaR 08-08-2005 07:34 PM

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?

DaHammer 08-09-2005 03:29 AM

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. :)


All times are GMT -5. The time now is 07:31 PM.