LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Does anyone have a good step by step on compiling a Kernel? (https://www.linuxquestions.org/questions/linux-hardware-18/does-anyone-have-a-good-step-by-step-on-compiling-a-kernel-100523/)

Kramer 10-05-2003 01:33 PM

Does anyone have a good step by step on compiling a Kernel?
 
Im going to try to compile the 2.6 kernel, get rid of what I dont need and see if I can add in the ACPI support and get it working. Anyone have a good how-to?

Brian1 10-05-2003 01:48 PM

Check out:
http://www.redhat.com/docs/manuals/l...om-kernel.html

Kramer 10-05-2003 10:46 PM

Is it pretty much the same procedure for Mandrake?

Brian1 10-06-2003 03:12 PM

Kernel compiling is kernel compiling no matter which distro for linux.

Hope this helps
Brian1

Skyline 10-06-2003 05:02 PM

Well - I did this with 2.6.0-test4 with no probs under Mandrake 9.1 with LILO.

Get hold of the kernel source.

Download either to /usr/src or home directory – you can always extract to a directory in /home then use the mv command to move the newly extracted directory to /usr/src – change into that directory with cd - once youve cd'd into the extracted directory (or symlink to extracted directory) then do

make xconfig
make clean
make bzImage
make modules
make modules_install

cp System.map /boot/System.map-2.6.0-test4

cp arch/i386/boot/bzImage /boot/bzImage-2.6.0-test4

kedit /etc/lilo.conf

Copy the whole normal entry for your distro then change 2 things – the image path and the label name – save it

/sbin/lilo

Dr Ozz's guide is worth checking out for more info.

(remember with 2.6........... you dont need to make dep anymore)

nrunge 10-06-2003 05:51 PM

If you use bzlilo instead of bzimage it will make entries in lilo for you. But you still have to move the files to /boot.


All times are GMT -5. The time now is 08:34 AM.