BRN:Dev:Kernel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (→Preparations) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
= Preparations = |
= Preparations = |
||
You will need a toolchain to compile the kernel. So it will be assumed that you read [[BRN: |
You will need a toolchain to compile the kernel. So it will be assumed that you read [[BRN:Dev:Toolchain]]! |
||
= Kernel 2.6 = |
= Kernel 2.6 = |
Latest revision as of 10:03, 8 March 2006
Preparations
You will need a toolchain to compile the kernel. So it will be assumed that you read BRN:Dev:Toolchain!
Kernel 2.6
Sources
- Get the kernel sources from SVN repository
cd svn co svn://merkur/brn/archives/linux-kernel-2.6.12-rc3 cd linux-kernel-2.6.12-rc3
- If you want to have NFS-boot support, apply the following patch:
patch -i nfsboot.patch
Compiling
- Set the path to your toolchain (~/openwgt-dev/buildroot/build_mipsel/staging_dir/bin/ in this case)
export PATH=$PATH:~/openwgt-dev/buildroot/build_mipsel/staging_dir/bin
- Compile the kernel
sh build.sh
Installing
- The kernel can be found in the main directory, called vmlinux.
- The kernel modules can be installed with:
make modules_install INSTALL_MOD_PATH=/tmp
So you will find the modules in /tmp/lib/modules/...