Conceptronic offers a CH3HNAS SDK for GNU-GPL for development purposes. When installed correctly, this SDK will provide a working buildroot environment. As this environment is outdated, I won’t recommend using this download but build your cross compiler from scratch using the latest version of buildroot.

However, if you want to compile this SDK, this is the way I compiled their toolkit.

Install debian

You should start by installing a dedicated OS based upon Debian for compilation. This version of Debian requires an old version of gcc as your default compiler.

Install required packages

Open a terminal and issue the following commands:

hfp@lenny:~$ sudo apt-get -y install make gcc-4.1 g++-4.1
hfp@lenny:~$ sudo apt-get -y install bison flex
hfp@lenny:~$ sudo apt-get -y install libncurses5-dev
hfp@lenny:~$ sudo apt-get -y install gettext
hfp@lenny:~$ sudo apt-get -y install tofrodos

After installing the packages, issue the following commands:

lenny:~$ cd /usr/bin
lenny:/usr/bin$ sudo rm -f gcc
lenny:/usr/bin$ sudo ln -s gcc-4.1 gcc
lenny:/usr/bin$ sudo rm -f g++
lenny:/usr/bin$ sudo ln -s g++-4.1 g++
lenny:/usr/bin$ sudo rm -f cpp
lenny:/usr/bin$ sudo ln -s ccp-4.1 ccp

As the toolchain uses the unknown -n option when invoking unix2dos and dos2unix, we also should create two small wrapper programs:

lenny:/usr/bin$ sudo vi /usr/local/bin/unix2dos
if [ "x$1" = "x-n" -a $# -eq 3 ]
then
    exec cat $2 | /usr/bin/unix2dos > $3
else
    exec /usr/bin/unix2dos $*
fi
lenny:/usr/bin$ sudo chmod +755 /usr/local/bin/unix2dos
lenny:/usr/bin$ sudo vi /usr/local/bin/dos2unix
if [ "x$1" = "x-n" -a $# -eq 3 ]
then
    exec cat $2 | /usr/bin/dos2unix > $3
else
    exec /usr/bin/dos2unix $*
fi
lenny:/usr/bin$ sudo chmod +755 /usr/local/bin/dos2unix

Compile ths SDK

Open a terminal and issue the following commands:

hfp@lenny:/usr/bin$ cd
hfp@lenny:~$ wget http://download.conceptronic.net/GNU-GPL/CH3HNAS/CH3HNAS-SDK.tar.gz
hfp@lenny:~$ tar zxf CH3HNAS-SDK.tar.gz
hfp@lenny:~$ cd OXNAS810
hfp@lenny:~/OXNAS810$ mkdir -p output/log
hfp@lenny:~/OXNAS810$ cd src
hfp@lenny:~/OXNAS810/src$ make

Compilation will take a while. When it’s done, you should have a working cross compiler, buildroot environment, etc.