<p>Compiling programs on the LinkStation (native compiling) can take a very, very long time. A much faster method is to [http://en.wikipedia.org/wiki/Cross-compilation cross-compile] programs using a cross-toolchain. A cross-toolchain allows you to compile code for the LinkStation on a faster computer with a different architecture, usually an i386/i686 desktop.</p>

<p>Compiling programs on the LinkStation (native compiling) can take a very, very long time. A much faster method is to [http://en.wikipedia.org/wiki/Cross-compilation cross-compile] programs using a cross-toolchain. A cross-toolchain allows you to compile code for the LinkStation on a faster computer with a different architecture, usually an i386/i686 desktop.</p>

<p>Please be aware the cross-toolchains only come with the glibc library. You may need to install additional libraries and headers to be able to compile some programs. You can grab the additional libraries and headers from the [[Projects/OpenLink|OpenLink]] filesystem or from the LinkStationWiki [[http://ipkg.linkstationwiki.net/ ipkg repository]]. The first architecture is the build system while the second architecture is the target system.</p>

+

<p>Please be aware the cross-toolchains only come with the glibc library. You may need to install additional libraries and headers to be able to compile some programs. You can grab the additional libraries and headers from the [[Projects/OpenLink|OpenLink]] filesystem or from the LinkStationWiki [[http://ipkg.nas-central.org/ ipkg repository]]. The first architecture is the build system while the second architecture is the target system.</p>

*[http://www.codesourcery.com/gnu_toolchains/arm/releases/2005q3-2 Codesourcery for Arm version 2005q3-2] is suggested. Please look at [http://forum.linkstationwiki.net/viewtopic.php?f=16&t=1535 Toolchain from codesourcery] for more information.

+

*[http://www.codesourcery.com/gnu_toolchains/arm/releases/2005q3-2 Codesourcery for Arm version 2005q3-2] is suggested. Please look at [http://forum.nas-central.org/viewtopic.php?f=16&t=1535 Toolchain from codesourcery] for more information.

'''Todo:''' Import information from forum.

'''Todo:''' Import information from forum.

Line 197:

Line 197:

===Native Toolchain===

===Native Toolchain===

−

*Yugi has managed to get a working native toolchain. It is available [http://downloads.linkstationwiki.net/uploads/LS_Pro_temporary/NativeToolchain/ls-gl-pro-native-toolchain.tar.gz here]

+

*Yugi has managed to get a working native toolchain. It is available [http://downloads.nas-central.org/uploads/LS_Pro_temporary/NativeToolchain/ls-gl-pro-native-toolchain.tar.gz here]

*An updated native toolchain containing gcc-4.1.1 is currently being developed.

*An updated native toolchain containing gcc-4.1.1 is currently being developed.

Line 206:

Line 206:

<h2>Build your own toolchain</h2>

<h2>Build your own toolchain</h2>

−

<p>You can build your own cross-toolchain using the appropriate source code and the configuration files I have posted in the [http://downloads.linkstationwiki.net/ downloads area]. Please see [[Build (and use) a cross-toolchain using Dan Kegel's crosstool 0.38]] for complete directions.</p>

+

<p>You can build your own cross-toolchain using the appropriate source code and the configuration files I have posted in the [http://downloads.nas-central.org/ downloads area]. Please see [[Build (and use) a cross-toolchain using Dan Kegel's crosstool 0.38]] for complete directions.</p>

Projects / Cross Toolchains

General Information

Compiling programs on the LinkStation (native compiling) can take a very, very long time. A much faster method is to cross-compile programs using a cross-toolchain. A cross-toolchain allows you to compile code for the LinkStation on a faster computer with a different architecture, usually an i386/i686 desktop.

Please be aware the cross-toolchains only come with the glibc library. You may need to install additional libraries and headers to be able to compile some programs. You can grab the additional libraries and headers from the OpenLink filesystem or from the LinkStationWiki [ipkg repository]. The first architecture is the build system while the second architecture is the target system.

ARM9-LS-GL

Cross Toolchain

ScratchBox

Scratchbox is a cross-compilation toolkit designed to make embedded Linux application development easier. This sandboxed environment allows you to do a simple ./configure; ./make; ./make install without specifying any additional --host or --target parameters when starting configure.
Please consult the ScratchBox installation manual for more information. Scratchbox makes use of the cross compiler mentioned above to compile and link ARM binaries for the LS Pro. Make sure to download the so called "legacy" version.

Native Toolchain

Yugi has managed to get a working native toolchain. It is available here

An updated native toolchain containing gcc-4.1.1 is currently being developed.