Difference between revisions of "Using a custom kernel and loader.o"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
coming soon
+
'''''Note:''''' This is just groundwork and is nothing more than JavaScouts quick guide to his patch set.
 +
 
 +
Plenty of other people have already written how to's
 +
 
 +
How to apply a kernel patch
 +
http://linuxheadquarters.com/howto/tuning/kernelpatch.shtml
 +
 
 +
Article on compling a kernel
 +
http://linkstationwiki.org/Articles/GeneralKernelBuild
 +
 
 +
Basically its
 +
 
 +
cd /usr/src
 +
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.tar.bz2
 +
tar xvjf linux-2.6.15.tar.bz2
 +
cd linux-2.6.15
 +
wget http://webpages.charter.net/trevorpowdrell/kurobox-sources-2.6.15.patch.bz2
 +
bunzip2 kurobox-sources-2.6.15.patch.bz2
 +
patch -p1 < kurobox-sources-2.6.15.patch
 +
cp config_kuroboxhg to .config
 +
make oldconfig
 +
make vmlinux modules modules_install
 +
objcopy -O binary vmlinux /boot/vmlinux-2.6.15-kurobox
 +
cd /boot
 +
sync;insmod loader.o kernel=vmlinux-2.6.15-kurobox
 +
 
 +
If you need to change the kernel config replace make oldconfig with make menuconfig

Revision as of 03:03, 16 March 2006

Note: This is just groundwork and is nothing more than JavaScouts quick guide to his patch set.

Plenty of other people have already written how to's

How to apply a kernel patch http://linuxheadquarters.com/howto/tuning/kernelpatch.shtml

Article on compling a kernel http://linkstationwiki.org/Articles/GeneralKernelBuild

Basically its

cd /usr/src
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.tar.bz2
tar xvjf linux-2.6.15.tar.bz2
cd linux-2.6.15
wget http://webpages.charter.net/trevorpowdrell/kurobox-sources-2.6.15.patch.bz2
bunzip2 kurobox-sources-2.6.15.patch.bz2
patch -p1 < kurobox-sources-2.6.15.patch
cp config_kuroboxhg to .config
make oldconfig
make vmlinux modules modules_install
objcopy -O binary vmlinux /boot/vmlinux-2.6.15-kurobox
cd /boot
sync;insmod loader.o kernel=vmlinux-2.6.15-kurobox

If you need to change the kernel config replace make oldconfig with make menuconfig