MCProxy

Version 26 (modified by woelke, 13 years ago) (diff)

--

Kernel Compilation Walkthrough

This script is an example how to kompile the Linux kernel 3.0.0-13. To use an other kernel version you have to change the version numbers.

  1. You need the following tools.
      apt-get install fakeroot build-essential kernel-package libncurses5-dev
    
  2. At first you have to download a linux-image.
      versn="3.0.0"
      vers="13"
      ktype="variante"
      apt-get source linux-image-$versn-$vers-$ktype
    
  apt-get source linux-image-$(uname -r)
  1. Go into the new Directory and copy your current kernel config file and configurate it.
      cd "linux-$versn"
      cp /boot/config-$(uname -r) .config
      make menuconfig
    
  • You have to select the IPv6 multicast routing modul.
      Networking support --->  
        Networking options ---> 
          The IPv6 protocol ---> 
            IPv6: multicast routing (EXPERIMENTAL)
    
  1. Generate your own kernel variante and edit some files.
      cp debian.master/abi/$versn-$vers/amd64/generic debian.master/abi/$versn-$vers/amd64/variante
      cp debian.master/abi/$versn-$vers/amd64/generic.modules debian.master/abi/$versn-$vers/amd64/variante.modules
      cp debian.master/control.d/vars.generic debian.master/control.d/vars.variante 
      vi debian.master/etc/getabis 
      vi debian.master/rules.d/amd64.mk
    
  • In the file gatabis is a line which start with "getall amd64 ...". Add "variante" at the end of the line.
      --debian.master/etc/getabis
      getall amd64 generic server virtual ==> getall amd64 generic server virtual variante
    
  • In the file amd64.mk is a line which start with "flavours ...". Add "variante" at the end of the line.
      --debian.master/rules.d/amd64.mk
      flavours = generic server virtual ==> flavours = generic server virtual variante
    
  1. Apply the kernel Configuration.
      mv .config debian.master/config/amd64/config.flavour.variante 
      rm -r include/config/
      chmod +x debian/scripts/*
      chmod +x debian/scripts/misc/* 
      fakeroot debian/rules clean
      debian/rules updateconfigs 
    
  1. Compile the kernel.
      AUTOBUILD=1 NOEXTRAS=1 skipabi=true skipmodule=true fakeroot debian/rules binary-variante 
    
  1. Install the Kernel.
        dpkg -i linux-headers-3.0.0-13_3.0.0-13.22_all.deb linux-headers-3.0.0-13-variante_3.0.0-13.22_amd64.deb linux-image-3.0.0-13-variante_3.0.0-13.22_amd64.deb