nix, shell, perl, php, mysql and mac os x tips and tricks

Saturday, November 15, 2003

Re-compile mandrake kernel

There are some tutorials out there and there is one provided with your
documents, but if you just want to recompile your current kernel it is so
easy, that I'm gpoing to tell you only what you need in order to have it run
1. Install the kernel-source package(with softwaremanager) if not already done

2. Open a konsole as root and type:

cd /usr/src/linux

3. cleanup the directory with command:

make mrproper

3. Configure the kernel:

make xconfigure

4. Now activate ACPI in the section General Setup, activate all modules if
possibvle mark with "y" y means to built into kernel, not as module. Don't
change anything else in the kernel config otherwise you have to do some more
things that I don't explain now.

5. Save and exit

6. Compile:

make dep && make bzImage && make modules && make modules_install

After that is done do the following:

cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.19-acpi

cp /usr/src/linux/ /boot/

7. Now you just need to either use drakboot to add that kernel to lilo.conf or
just add the lines for this kernel to lilo.conf manually with an editor of
your choice

for example you would add:

append="noquiet devfs=mount hdc=ide-scsi"

8. Now you rerun lilo with command, as root:


9. Don't forget to install the acpid script with command:

urpmi acpid

you can also do that with softwaremanager(rpmdrake)

10. Run command:


disable the apm daemon and enable acpid

11. Reboot select the kernel mared as 2.4.19-acpi test if everything works
fine if it does you can make it your default kernel.

No comments:

Post a Comment