BRN:Dev:Kernel

From
Jump to navigation Jump to search

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/...