DevelopmentToolsInstallation

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search

Check which Linkstation model you have. Currently there are 3 different architectures ARM (LSPro), PowerPC (LS1, HG, HS, Terastation, Terastation Pro) and MIPSel (LS2).

These should install all the development tools without asking, you will now have a working toolchain on your box!

Contents

ARM (LSPROv1, LSPROv2, LSLIVEv1, LSLIVEv2, TSPRO2, TSLIVE)

Kurobrick.png
WARNING!

There is a possibility that you could brick your NAS with these instructions. Please make sure that you read the entire page carefully. Not for regular users, developers and experienced users only. You may brick your box!!!


Nuvola apps important.png 
WARNING!

This version is an alpha version and thus may have many bugs. For those who want to test this package, please untar to root and test the binaries. Also, please list, and possibly update the package with any missing binaries.


arm-tools-0_16-8.tgz

 mkdir tmp
 cd tmp
 wget http://downloads.nas-central.org/LSPro_ARM9/DevelopmentTools/NativeToolchains/arm-tools-0_16-8.tgz
 tar -C / -xzvf arm-tools-0_16-8.tgz


The tools awk and sed included by the LSPROv2 are "busyboxed" versions with minimal functionality. This will break some source builds, f.ex. the latest Apache2 (httpd-2.2.9), causing much annoyance.

To fix this one can install sed: http://directory.fsf.org/project/sed.

 mkdir /mnt/disk1/tmp
 cd /mnt/disk1/tmp  
 wget http://ftp.gnu.org/pub/gnu/sed/sed-4.1.5.tar.gz
 tar -zxvf sed-4.1.5.tar.gz
 cd sed-4.1.5
 ./configure
 make
 su root 
 password:<root's password>
 mv /bin/sed /bin/sed.bak
 make install
 ln -s /usr/local/bin/sed /bin/sed
 exit

(The symlink is probably not necessary because /usr/local/bin is on the path but it is better to be sure). Be aware that building 'sed' requires a working 'sed' so we leave the original version until we have the upgrade ready.

Once that is out of the way we can continue with 'awk', or rather 'gawk', the GNU version of awk: http://directory.fsf.org/project/gawk

Again this is a straight-forward build:

 mkdir /mnt/disk1/tmp
 cd /mnt/disk1/tmp  
 wget http://ftp.gnu.org/gnu/gawk/gawk-3.1.5.tar.gz
 tar -zxvf gawk-3.1.5.tar.gz
 ./configure
 make
 su root
 password:<root's password>
 mv /usr/bin/awk /usr/bin/awk.bak
 make install
 ln -s /usr/local/bin/awk /usr/bin/awk
 exit

Now the system should be able to build 'autoconf'-based source trees reliably.

PowerPC (LS1)

ppc-tools-2_1.tgz

 mkdir tmp
 cd tmp
 wget http://downloads.nas-central.org/ALL_PPC/ppc-tools-2_1.tgz 
 mkdir devtools
 cd devtools
 tar -xzvf ../ppc-tools-2_1.tgz
 ./install.sh

PowerPC (HG)

ppc-tools-2_1.tgz

Please use the latest ppc-tools package but replace the included kernel headers with the HG LinkStation kernel headers ! Do not delete the kernel-headers from the package before execute the install script, also if there are not needed anymore, because e.g. the kernel 2.6.x is running. In the kernel-headers 2.4.x are also the gcc and g++ header included and must be installed.

kernel-headers-2.4.20_hglan_htgl-2.0.tar.bz2

 mkdir tmp
 cd tmp
 wget http://downloads.nas-central.org/ALL_PPC/ppc-tools-2_1.tgz 
 mkdir devtools
 cd devtools
 tar -xzvf ../ppc-tools-2_1.tgz
 ./install.sh
 wget http://downloads.nas-central.org/LSHG_PPC/Kernel/Headers/kernel-headers-2.4.20_hglan_htgl-2.0.tgz
 tar -C / -xvzf kernel-headers-2.4.20_hglan_htgl-2.0.tgz

PowerPC (TS , TSHS)

Installation like LS1, you only need to install different kernel-headers.

PowerPC (TSPRO1)

Installation like LS1, you only need to install different kernel-headers.

MIPSel (LS2)

mipsel-tools-2_1.tgz

 mkdir tmp
 cd tmp
 wget http://downloads.nas-central.org/LS2_MIPSel/DevelopmentTools/NativeToolchains/mipsel-tools-2_1.tgz
 mkdir devtools
 cd devtools
 tar -xzvf ../mipsel-tools-2_1.tgz
 ./install.sh