<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.sharpfin.org/index.php?action=history&amp;feed=atom&amp;title=Toolchain</id>
	<title>Toolchain - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.sharpfin.org/index.php?action=history&amp;feed=atom&amp;title=Toolchain"/>
	<link rel="alternate" type="text/html" href="https://www.sharpfin.org/index.php?title=Toolchain&amp;action=history"/>
	<updated>2026-04-23T13:12:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.4</generator>
	<entry>
		<id>https://www.sharpfin.org/index.php?title=Toolchain&amp;diff=189&amp;oldid=prev</id>
		<title>Philipp: Created page with &quot;== Cheat ==  If you want to cheat, and want to do your development under Cygwin, you can download a pre-compiled cross-compiler toolchain for the Cygwin environment on the Releases page.  == Download Crosstool ==  Crosstool is a collection of scripts which can help you building a cross compiler toolchain without pain. Get the latest version from [http://kegel.com/crosstool/]  == Build the toolchain ==  Reciva uses two different toolchains to build the radio software....&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.sharpfin.org/index.php?title=Toolchain&amp;diff=189&amp;oldid=prev"/>
		<updated>2025-06-08T12:27:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Cheat ==  If you want to cheat, and want to do your development under Cygwin, you can download a pre-compiled cross-compiler toolchain for the Cygwin environment on the &lt;a href=&quot;/index.php?title=Releases&quot; title=&quot;Releases&quot;&gt;Releases&lt;/a&gt; page.  == Download Crosstool ==  Crosstool is a collection of scripts which can help you building a cross compiler toolchain without pain. Get the latest version from [http://kegel.com/crosstool/]  == Build the toolchain ==  Reciva uses two different toolchains to build the radio software....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Cheat ==&lt;br /&gt;
&lt;br /&gt;
If you want to cheat, and want to do your development under Cygwin, you can download a pre-compiled cross-compiler toolchain for the Cygwin environment on the [[Releases]] page.&lt;br /&gt;
&lt;br /&gt;
== Download Crosstool ==&lt;br /&gt;
&lt;br /&gt;
Crosstool is a collection of scripts which can help you building a cross compiler toolchain without pain. Get the latest version from [http://kegel.com/crosstool/]&lt;br /&gt;
&lt;br /&gt;
== Build the toolchain ==&lt;br /&gt;
&lt;br /&gt;
Reciva uses two different toolchains to build the radio software. gcc 3.3.4 is used for the kernel, and 4.1.0 is used for the userspace applications.&lt;br /&gt;
&lt;br /&gt;
The following creates the 4.1.0 toolchain in /opt.&lt;br /&gt;
&lt;br /&gt;
*First check that you have &amp;#039;&amp;#039;flex&amp;#039;&amp;#039; and &amp;#039;&amp;#039;bison&amp;#039;&amp;#039; as they are required but the toolchain builder doesn&amp;#039;t check for them.&lt;br /&gt;
*unpack crosstool into /opt and rename it. (You will probably need to be root to do this):&lt;br /&gt;
&lt;br /&gt;
  cd /opt &lt;br /&gt;
  tar -zxvf crosstool-&amp;lt;version&amp;gt;.tgz&lt;br /&gt;
  mv crosstool-&amp;lt;version&amp;gt; crosstool&lt;br /&gt;
&lt;br /&gt;
*The crosstool builder won&amp;#039;t run if you are root but normal users can&amp;#039;t write to /opt so set the permissions on the crosstool directory.&lt;br /&gt;
&lt;br /&gt;
  chown -R &amp;lt;normal-user&amp;gt; crosstool&lt;br /&gt;
&lt;br /&gt;
*Log in as a normal user and go to /opt&lt;br /&gt;
*choose the right flavour and build&lt;br /&gt;
&lt;br /&gt;
  export RESULT_TOP=/opt/crosstool&lt;br /&gt;
  eval `cat arm9tdmi.dat gcc-4.1.0-glibc-2.3.2.dat` sh all.sh --notest&lt;br /&gt;
&lt;br /&gt;
This might take some time. If all goes well, you&amp;#039;ll end up with a fresh cross compiler in /opt/crosstool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally check if the development package of libc is installed (otherwise [[Crosscompiling]] will most probably fail afterwards):&lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install libc6-dev&lt;br /&gt;
&lt;br /&gt;
== Configure Your Shell ==&lt;br /&gt;
&lt;br /&gt;
The sharpfin build scripts look for &amp;#039;arm-9tdmi-linux-gnu-gcc&amp;#039; and other cross-compiling programs in the path.  If you add the following lines to your .bashrc file, any cross-tools programs you build will automatically be added to your path:&lt;br /&gt;
&lt;br /&gt;
 export RESULT_TOP=/opt/crosstool&lt;br /&gt;
 COMPILERS=`find $RESULT_TOP -type d -name bin|tr &amp;#039;\n&amp;#039; &amp;#039;:&amp;#039;`&lt;br /&gt;
 export PATH=$PATH:$COMPILERS&lt;br /&gt;
 alias cc=arm-9tdmi-linux-gnu-gcc&lt;/div&gt;</summary>
		<author><name>Philipp</name></author>
	</entry>
</feed>