FreeRTOS for r528, forked from official auto-t113-linux-V1.0 SDK release.
Create Xtensa install root:
cd freertos
LICHEE_TOP_DIR=/opt
LICHEE_XTENSATOOLS=$LICHEE_TOP_DIR/RI-2020.4-linux
XTENSA_SYSTEM=$LICHEE_XTENSATOOLS/XtensaTools/config
sudo mkdir -p $LICHEE_XTENSATOOLS
sudo chown -Rf $(id -u):$(id -g) $LICHEE_XTENSATOOLS
mkdir -p $LICHEE_XTENSATOOLS/XtensaTools/Tools/licSet up the configuration-independent Xtensa Tool:
tar zxvf XtDevTools/downloads/XtensaTools_RI_2020_4_linux.tgz -C $LICHEE_TOP_DIRSet up the configuration-specific core files:
tar zxvf XtDevTools/downloads/aw_axi_cfg0_linux.tgz -C $LICHEE_TOP_DIRInstall a license for Xtensa tools (need XT_XCC_TIE entitlement):
/opt/RI-2020.4-linux/XtensaTools/Tools/lic/license.dat
Install the Xtensa development toolchain:
$LICHEE_XTENSATOOLS/aw_axi_cfg0/install \
--xtensa-tools $LICHEE_XTENSATOOLS/XtensaTools \
--registry $XTENSA_SYSTEMConfigure the build:
./build.sh configYou will be prompted with the following questions:
Welcome to mkscript setup progress
All available xtensatools:
0. RI-2020.4-linux
Choice [RI-2020.4-linux]:
All available core:
0. XtensaTools
1. aw_axi_cfg0
Choice [XtensaTools]: 1
All available kernel:
0. FreeRTOS_xtensa_v1.7
Choice [FreeRTOS_xtensa_v1.7]:
All available ic:
0. r528
Choice [r528]:
All available dsp_core:
0. dsp0
Choice [dsp0]:
INFO: Prepare executive of tools ...
Then, update the build configuration:
sed -re 's|^(.*XTENSA_SYSTEM)=.*$|\1=/opt/RI-2020.4-linux/XtensaTools/config|' -i .buildconfigSet up the environment:
. build/envsetup.shThe output will be:
Invoke . build/envsetup.sh from your shell to add the following functions to your environment:
croot - Changes directory to the top of the tree.
cproject - Changes directory to the project
carch - Changes directory to the arch
clsp - Changes directory to the lsp
cout - Changes directory to the out
Invoke . build/envsetup.sh from your shell to add the following functions to your environment:
env_xcc - use xcc env
env_host - use host env
run envsetup finish.
Activate the cross-compiler environment:
env_xccFinally, build the project:
makeLicense for the included FreeRTOS is MIT, scripts and orchestration from Allwinner appears to be GPLv2 based on comments in script and header files.