Openssi: compile your own kernel

From SOFTICE

Jump to: navigation, search


This page contains notes that helped me follow the official document on compiling your own open SSI kernel. --alessio

Important remark: DO NOT rely on just compiling the debian package of the open ssi kernel which you can obtain by apt-get install kernel-source-2.6.10-ssi-smp-i386.deb

Steps to follow

  • su -
  • apt-get install kernel-source-2.6.10-ssi-686-smp

install it in /usr/src

  • cd /usr/src/
  • bzip2 -d kernel-source-2.6.10-ssi-686-smp.tar.bz2
  • tar oxf kernel-source-2.6.10-ssi-686-smp.tar

just making a link so that we can access the source thru /usr/src/linux/ usefull if other scripts from open ssi assume it to be there

  • ln -s /usr/src/kernel-source-2.6.10-686-smp /usr/src/linux

get debian cvs tree

  • cd /usr/src
  • mkdir cvs-deb
  • cd cvs-dev
  • cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ci-linux co -r OPENSSI-DEBIAN ci
  • cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ssic-linux co -r OPENSSI-DEBIAN openssi

we are going to fish the .config file recommended by open SSI

  • cd /usr/src
  • mkdir kernel.configs
  • cp /usr/src/cvs-deb/openssi/kernel.configs/kernel-ssi-i686-smp.config /usr/src/linux/kernel.configs/

get the build script

  • cd /usr/src/linux/
  • cp /usr/src/cvs-deb/openssi/kernel-package/build-kernel .
  • sh ./build-kernel nondebug


the script will compile everything for us and prepare .deb packages:

kernel-headers-2.6.10-ssi-i686-mp_1.9.1-0_i386.deb
kernel-image-2.6.10-ssi-i686-smp_1.9.1-0_i386.deb
kernel-source-2.6.10-ssi-i686-smp_1.9.1-0_i386.deb

to install the deb packages, let's go for a:

  • dpkg -i kernel-image-2.6.10-ssi-i686-smp_1.9.1-0_i386.deb