Difference between revisions of "User:Alexmat/Manual CK Kernel Install"

From ArchWiki
Jump to: navigation, search
Line 12: Line 12:
 
  cd /usr/src/linux-2.6.13-ck5
 
  cd /usr/src/linux-2.6.13-ck5
 
  bzcat /usr/src/patch-2.6.13-ck5.bz2 | patch -p1
 
  bzcat /usr/src/patch-2.6.13-ck5.bz2 | patch -p1
 +
 +
(OPTIONAL) Copy over existing kernel config:
 +
 +
cp /proc/config.gz .
 +
gunzip config.gz
 +
mv config.gz .config
  
 
Build the kernel (where X is your number of CPUs + 1):
 
Build the kernel (where X is your number of CPUs + 1):

Revision as of 00:39, 18 September 2005

Grab the kernel from kernel.org (example uses 2.6.13, substitute the current stock release):

cd /usr/src
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.13.tar.bz2
tar jxf linux-2.6.13.tar.bz2
mv linux-2.6.13 linux-2.6.13-ck5

Grab the relevant patch.

Apply patches to kernel:

cd /usr/src/linux-2.6.13-ck5
bzcat /usr/src/patch-2.6.13-ck5.bz2 | patch -p1

(OPTIONAL) Copy over existing kernel config:

cp /proc/config.gz .
gunzip config.gz
mv config.gz .config

Build the kernel (where X is your number of CPUs + 1):

make menuconfig
make -jX && make modules_install

Install new kernel:

cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.13-ck5
cp System.map /boot/System.map-2.6.13-ck5

Update bootloader:

vi /boot/grub/menu.lst

Done!