Using a custom kernel and loader.o
From NAS-Central Buffalo - The Linkstation Wiki
m |
|||
| Line 1: | Line 1: | ||
'''''Note:''''' This is just groundwork and is nothing more than JavaScouts quick guide to his patch set ATT. | '''''Note:''''' This is just groundwork and is nothing more than JavaScouts quick guide to his patch set ATT. | ||
| - | Plenty of other people have already written how to's | + | Plenty of other people have already written how to's. You must have udev installed or the 2.6 kernel will not work. Check out this page on [http://www.gentoo.org/doc/en/migration-to-2.6.xml Migrating to the 2.6 kernel]. |
| - | + | Other useful pages are [http://linuxheadquarters.com/howto/tuning/kernelpatch.shtml How to apply a kernel patch] and [http://linkstationwiki.org/Articles/GeneralKernelBuild this article on compling a kernel] | |
| - | http://linuxheadquarters.com/howto/tuning/kernelpatch.shtml | + | |
| - | + | ||
| - | + | ||
| - | http://linkstationwiki.org/Articles/GeneralKernelBuild | + | |
Basically its | Basically its | ||
| Line 15: | Line 11: | ||
tar xvjf linux-2.6.15.tar.bz2 | tar xvjf linux-2.6.15.tar.bz2 | ||
cd linux-2.6.15 | cd linux-2.6.15 | ||
| + | Note: The following patch does not work with the standard Kurobox. Use the patch located | ||
| + | [http://www.kurobox.com/downloads/gentoo/kurobox-sources-2.6.15.2.patch.bz2 here] for the standard Kurobox. | ||
| + | |||
wget http://webpages.charter.net/trevorpowdrell/kurobox-sources-2.6.15.patch.bz2 | wget http://webpages.charter.net/trevorpowdrell/kurobox-sources-2.6.15.patch.bz2 | ||
| + | |||
| + | Whatever patch you use, you need to unzip it and apply it. | ||
| + | |||
bunzip2 kurobox-sources-2.6.15.patch.bz2 | bunzip2 kurobox-sources-2.6.15.patch.bz2 | ||
patch -p1 < kurobox-sources-2.6.15.patch | patch -p1 < kurobox-sources-2.6.15.patch | ||
| - | cp config_kuroboxhg | + | |
| + | Next we need to configure the kernel. There is a basic configuration with each patch. for the Kurobox HG do this: | ||
| + | |||
| + | cp config_kuroboxhg .config | ||
| + | |||
| + | For the standard Kurobox do this: | ||
| + | |||
| + | cp config_kurobox .config | ||
| + | |||
| + | If you want to use the standard kernel type this: | ||
| + | |||
make oldconfig | make oldconfig | ||
| + | |||
| + | If you want to customize your kernel type this: | ||
| + | |||
| + | make menuconfig | ||
| + | |||
| + | Make the kernel and make and install the modules | ||
| + | |||
make vmlinux modules modules_install | make vmlinux modules modules_install | ||
| + | |||
| + | Loader.o needs a binary of the new kernel. We'll convert our new kernel and put the new kernel in /boot | ||
| + | |||
objcopy -O binary vmlinux /boot/vmlinux-2.6.15-kurobox | objcopy -O binary vmlinux /boot/vmlinux-2.6.15-kurobox | ||
| + | |||
| + | Change to /boot | ||
| + | |||
cd /boot | cd /boot | ||
| + | |||
| + | If you don't have a copy of loader.o in /boot you should download a copy from the Gentoo downloads area | ||
| + | |||
| + | wget http://www.kurobox.com/downloads/gentoo/loader.o | ||
| + | |||
| + | Sync the drive, load the kernel into memory, and jump to the new kernel. | ||
| + | |||
sync;insmod loader.o kernel=vmlinux-2.6.15-kurobox | sync;insmod loader.o kernel=vmlinux-2.6.15-kurobox | ||
| - | + | ||
| + | |||
| + | [[Category:Gentoo]] | ||
| + | [[Category:HowTo]] | ||
Revision as of 04:23, 20 March 2006
Note: This is just groundwork and is nothing more than JavaScouts quick guide to his patch set ATT.
Plenty of other people have already written how to's. You must have udev installed or the 2.6 kernel will not work. Check out this page on Migrating to the 2.6 kernel.
Other useful pages are How to apply a kernel patch and this article on compling a kernel
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
Note: The following patch does not work with the standard Kurobox. Use the patch located here for the standard Kurobox.
wget http://webpages.charter.net/trevorpowdrell/kurobox-sources-2.6.15.patch.bz2
Whatever patch you use, you need to unzip it and apply it.
bunzip2 kurobox-sources-2.6.15.patch.bz2 patch -p1 < kurobox-sources-2.6.15.patch
Next we need to configure the kernel. There is a basic configuration with each patch. for the Kurobox HG do this:
cp config_kuroboxhg .config
For the standard Kurobox do this:
cp config_kurobox .config
If you want to use the standard kernel type this:
make oldconfig
If you want to customize your kernel type this:
make menuconfig
Make the kernel and make and install the modules
make vmlinux modules modules_install
Loader.o needs a binary of the new kernel. We'll convert our new kernel and put the new kernel in /boot
objcopy -O binary vmlinux /boot/vmlinux-2.6.15-kurobox
Change to /boot
cd /boot
If you don't have a copy of loader.o in /boot you should download a copy from the Gentoo downloads area
wget http://www.kurobox.com/downloads/gentoo/loader.o
Sync the drive, load the kernel into memory, and jump to the new kernel.
sync;insmod loader.o kernel=vmlinux-2.6.15-kurobox

