Re-compiling Kernel
I am running slackware current using the 2.6.29.6-smp kernel. I am using an HP Compaq 6910p laptop with 4GB of RAM. I would like to continue using the kernel that I have but add HIGHMEM support. I have found many directions on how to compile a new kernel but I would prefer to continue using the version I'm on now. Is there any difference between compiling a new kernel and recompiling my current kernel? I have never need to compile a kernel before and I want to make sure that I do it right as this is my primary computer for work. Sorry if this has already been discussed.
|
Here's what I did recently to do something similar (EDAC rather than HIMEM) and building a kernel for the first time -- so I am no expert and others may correct the steps below or have better ideas. The most helpful web page was Alien BOB's WIKI.
The key step is zcat /proc/config.gz > .config to create a config file that will replicate your current kernel. My user name is c, the old kernel had CONFIG_LOCALVERSION="-smp" and the new CONFIG_LOCALVERSION="-smp-c1". Code:
root:/usr/src# cp -pR linux-2.6.29.6 ~c/src After booting the new kernel for the first time, reinstalled the nvidia driver by running the nividia *.run file as root and the VirtualBox modules by /etc/rc.d/rc.vboxdrv setup as root. Used startx after boot and logon as c to get GUI. After testing GUI OK, Changed default run level in /etc/inittab from 3 to 4. On reverting to the old kernel, found /lib/modules/2.6.29.6-smp/kernel/drivers/video/nvidia.ko was missing (why?) so restored it from /lib/modules/2.6.29.6-smp.bu/kernel/drivers/video/nvidia.ko. |
All times are GMT -5. The time now is 11:36 PM. |