-
extract
- cd <source dir>
- gtar zxvf <archive dir>/binutils-2.10.1.tar.gz
-
build
- mkdir <tool dir>/host
- mkdir <tool dir>/host/sparc-sun-solaris
- mkdir <object dir>/binutils-2.10.1
- cd <object dir>/binutils-2.10.1
- <source dir>/binutils-2.10.1/configure --host=sparc-sun-solaris --target=powerpc-linux --prefix=<tool dir>/host/sparc-sun-solaris
- gmake
-
install
- gmake install
- gmake install-info
-
access
subsequent build steps will need to use the tools created by this step. as such, the path to these tools will need to be added to your environment's path variable:
- path=${path}":<tool dir>/host/sparc-sun-solaris/bin"
- export path
-
extract
- cd <source dir>
- gtar zxvf <archive dir>/gcc-core-2.95.2.tar.gz
-
build
- mkdir <object dir>/gcc-2.95.2
- cd <object dir>/gcc-2.95.2
- <source dir>/gcc-2.95.2/configure --host=sparc-sun-solaris --target=powerpc-linux --prefix=<tool dir>/host/sparc-sun-solaris --with-newlib
- gmake
-
install
- gmake install
the 2.4.0 kernel contains powerpc support; however, it may not contain the absolute latest bleeding-edge changes to accomodate various powerpc architectures. such changes are maintained elsewhere.
-
extract
- cd <source dir>
- gtar zxvf <archive dir>/linux-2.4.0.tar.gz
-
build
- cd <source dir>/linux
- edit the makefile
- comment out the existing "arch :=" line and add a new line with "arch := ppc". line.
- find the "cross_compile =" line and append 'powerpc-linux-' so that it reads "cross_compile = powerpc-linux-"
- if you have tcl/tk installed, then "gmake xconfig", or if you have the gnu ncurses library installed, then "gmake menuconfig", otherwise "gmake config" .
- gmake dep
- gmake clean
- gmake zimage
the zimage build process does not have to complete successfully; only the headers are required.
-
verify
verify that the headers were created.
- find ./include/. -name "version.h"
you should see output similar to: "./include/./linux/version.h".
if you do not have the appropriate headers, use the "gmake distclean" command and repeat the steps for this section again.