Setting Up Development Environment*
All SDKs for GX8009 and GX8010 chips need to be compiled in a Linux environment. This document primarily explains how to set up the SDK development and compilation environment.
Note
For Windows developers, you can use VirtualBox virtualization software to install Ubuntu and then follow the steps below to install the necessary tools for SDK development.
1. Install ARM Toolchain*
- Install the required packages:
sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev unzip texinfo device-tree-compiler dosfstools libusb-1.0-0-dev
- Download the ARM toolchain: Click the link http://yun.nationalchip.com:10000/l/3Fj5eN and save it locally in
~/Downloads/
. - Installation steps:
-
Create an installation directory folder:
$ sudo mkdir -p /opt/gxtools/ $ cd /opt/gxtools
- Extract the downloaded toolchain package in the current directory:
$ sudo tar xvf ~/Downloads/arm-openwrt-linux_5.3.0-12009.tar.gz
- Edit the ~/.bashrc file and add the following two lines at the end:
export PATH="/opt/gxtools/arm-openwrt-linux_5.3.0-12009/bin:$PATH" export STAGING_DIR="/opt/gxtools/arm-openwrt-linux_5.3.0-12009/bin"
-
Check if the toolchain installation was successful:
$ arm-openwrt-linux-gcc -v
Reading specs from /opt/gxtools/arm-openwrt-linux_5.3.0-12009/bin/../lib/gcc/arm-openwrt-linux-gnueabi/5.3.0/specs
COLLECT_GCC=arm-openwrt-linux-gnueabi-gcc.bin
COLLECT_LTO_WRAPPER=/opt/gxtools/arm-openwrt-linux_5.3.0-12009/bin/../libexec/gcc/arm-openwrt-linux-gnueabi/5.3.0/lto-wrapper
Target: arm-openwrt-linux-gnueabi
Configured with: /home/ptd/xukai/robotos/openwrt/build_dir/toolchain-arm_cortex-a7+neon_gcc-5.3.0_glibc-2.22_eabi/gcc-5.3.0/configure --with-bugurl=https://dev.openwrt.org/ --with-pkgversion='OpenWrt GCC 5.3.0 12009' --prefix=/home/ptd/xukai/robotos/openwrt/staging_dir/toolchain-arm_cortex-a7+neon_gcc-5.3.0_glibc-2.22_eabi --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-openwrt-linux-gnueabi --with-gnu-ld --enable-target-optspace --disable-libgomp --disable-libmudflap --disable-multilib --disable-nls --without-isl --without-cloog --with-host-libstdcxx=-lstdc++ --with-gmp=/home/ptd/xukai/robotos/openwrt/staging_dir/host --with-mpfr=/home/ptd/xukai/robotos/openwrt/staging_dir/host --with-mpc=/home/ptd/xukai/robotos/openwrt/staging_dir/host --disable-decimal-float --with-diagnostics-color=auto-if-env --enable-libssp --enable-__cxa_atexit --with-arch=armv7-a --with-float=hard --with-headers=/home/ptd/xukai/robotos/openwrt/staging_dir/toolchain-arm_cortex-a7+neon_gcc-5.3.0_glibc-2.22_eabi/include --disable-libsanitizer --enable-languages=c,c++ --enable-shared --enable-threads --with-slibdir=/home/ptd/xukai/robotos/openwrt/staging_dir/toolchain-arm_cortex-a7+neon_gcc-5.3.0_glibc-2.22_eabi/lib --enable-lto --with-libelf=/home/ptd/xukai/robotos/openwrt/staging_dir/host
Thread model: posix
gcc version 5.3.0 (OpenWrt GCC 5.3.0 12009)
2. MCU Toolchain Installation*
Please refer to MCU Toolchain Installation for instructions.
3. DSP Toolchain Installation*
Please refer to DSP Toolchain Installation for instructions.