To build the toolchain we need the latest source for:
Binutils | Debian version with HPPA patches |
Glibc | Debian version with HPPA patches |
GCC | Debian version with HPPA patches |
Linux Kernel | PARISC working version from CVS |
Getting binutils and glibc from the debian pool:
At ftp://ftp.debian.org/debian/pool/main/b/binutils/ get the latest binutils_X.Y.Z.A.B.C.orig.tar.gz and updates
Currently (as of publishing) it resides in the archive as:
At ftp://ftp.debian.org/debian/pool/main/g/glibc/ get the latest glibc.X.Y.Z.orig.tar.gz and updates
cd orig
wget ftp://ftp.debian.org/debian/pool/main/b/binutils/\
binutils_2.13.90.0.4.orig.tar.gz
wget ftp://ftp.debian.org/debian/pool/main/b/binutils/\
binutils_2.13.90.0.4-1.diff.gz
Right now it resides in the archive as:
wget ftp://ftp.debian.org/debian/pool/main/g/glibc/\
glibc_2.2.5.orig.tar.gz
wget ftp://ftp.debian.org/debian/pool/main/g/glibc/\
glibc_2.2.5-15.diff.gz
By the time this howto was written, only gcc version 3.0.X is able to produce a working kernel on hppa.
At ftp://ftp.debian.org/debian/pool/main/g/gcc-3.0/ get the latest gcc-3.0_3.0.X.orig.tar.gz and updates
Right now it resides in the archive as:
wget ftp://ftp.debian.org/debian/pool/main/g/gcc-3.0/\
gcc-3.0_3.0.4ds3.orig.tar.gz
wget ftp://ftp.debian.org/debian/pool/main/g/gcc-3.0/\
gcc-3.0_3.0.4ds3-13.diff.gz
Next we'll need the linux kernel and palo from the parisc-linux CVS server.
export CVSROOT=:pserver:anonymous@cvs.parisc-linux.org:/var/cvs
Make sure you have the following in your ~/.cvsrc
cvs -z3 -q
diff -uNp
update -Pd
remove -f
checkout -P
Then run the following at your shell prompt:
cvs login
Logging in to :pserver:anonymous@cvs.parisc-linux.org:2401/var/cvs
CVS password: [hit enter]
Go into your src directory, since the CVS download is already unpacked source files.
cd $ST/src
cvs co linux-2.4
Now you have all the source required to build the cross-compiler.