Terastation Kernel

Aus MvOWiki
Wechseln zu: Navigation, Suche

Cross Tool Chain[Bearbeiten]

To build a kernel for the Terastation it is of course recommended to do that on a more powerful station than the Terastation. It needs several hours to build a kernel on the Terastation while it takes a quarter of a hour on a normal PC system.

You'll need a so called Cross Tool Chain to build a kernel on another platform.

The following kernel suite seems to build the kernel well: crosstool-gcc-4.1.1-glibc-2.3.6-powerpc-603-linux-gnu.tar.bz2 It was built under a Debian Etch running on a normal Intel Notebook and normally should run under most PC Linux systems. To rebuild it, you need the crosstool utility which is provided with many Linux distributions. Here was used the most current version crosstool-0.43 downloaded directly from the crosstool web site.

Installing the Cross Tool Chain[Bearbeiten]

The Cross Tool Chain could be installed into /opt directory. If you choose another directory you have to change the path in the following commands.

 $ sudo aptitude install wget bzip2
 $ wget http://www.von-oppen.com/download/ts/crosstool-gcc-4.1.1-glibc-2.3.6-powerpc-603-linux-gnu.tar.bz2
 $ sudo mkdir /opt
 $ sudo mkdir /opt/crosstool
 $ sudo chown <youruser>:<yourgroup> /opt/crosstool
 $ tar xvj -C / -f crosstool-gcc-4.1.1-glibc-2.3.6-powerpc-603-linux-gnu.tar.bz2

You need some other packages installed for your build platform to build the kernel.

 $ sudo aptitude install make gcc ncurses-dev libncurses5-dev

Kernel Build[Bearbeiten]

You could use a basic kernel configuration for the Terastation from here.

 $ cd linux-2.6.25
 $ wget -O .config http://www.von-oppen.com/download/ts/config-2.6.25-ts-mvo-2.03

To configure your kernel:

 $ PATH=/opt/crosstool/gcc-4.1.1-glibc-2.3.6/powerpc-603-linux-gnu/bin:$PATH \
 CROSS_COMPILE=powerpc-603-linux-gnu- \
 ARCH=ppc \
 make menuconfig

To build the kernel:

 $ PATH=/opt/crosstool/gcc-4.1.1-glibc-2.3.6/powerpc-603-linux-gnu/bin:$PATH \
 CROSS_COMPILE=powerpc-603-linux-gnu- \
 ARCH=ppc \
 make vmlinux modules modules_install