Skip to main content

[LEGO nxt] Build up the cross compiler on Ubuntu 64bits 14.04 in 2015

After settling up everything, I think it is beneficial to share the experience on the internet.
I have reappeared all the mentioned steps in VirtualBOX with the same environment.

TODO: What is OSEK? How is OSEK on NXT?

I will revise the original tutorial and update all the out-date information/urls in the following concept.
In fact, this article is also for me to record what I did within this suffering day...
Refer from here -> Build and Install GNU ARM

Install the required packages:
~$ sudo apt-get install tk-dev ncurses-dev libmpfr-dev texinfo
And use the script file to build up the tool chain of cross compiler (ARMv7)
wget http://lejos-osek.sourceforge.net/installation_linux_files/build_arm_toolchain.sh
~$ sh ./build_am_toolchain.sh
You may need to use texinfo-4.13 to get rid of the error.
wget http://ftp.gnu.org/gnu/texinfo/texinfo-4.13.tar.gz
tar -xvf texinfo-4.13.tar.gz
cd texinfo-4.13
./configure 
sudo make install
Afterwards, you can test the new gcc :
"This should be the output of arm-elf-gcc -print-multi-lib (hard and soft float support)"

~$ ./gnuarm/bin/arm-elf-gcc -print-multi-lib
.;
thumb;@mthumb
fpu;@mhard-float
interwork;@mthumb-interwork
fpu/interwork;@mhard-float@mthumb-interwork
thumb/interwork;@mthumb@mthumb-interwork 
Now we have ARM cross complier!

Comments