HOW TO PREPARE A WORK ENVIRONMENT FOR FRESHTOMATO-AX COMPILATION
-
Base is FreshTomato ARM - see https://bitbucket.org/pedro311/freshtomato-arm/src/arm-master/README.md
-
Toolchain (--> adjust to your path/folder)
sudo ln -s ~/[your_folder]/freshtomato-ax/release/src-rt-5.04axhnd.675x/toolchains/brcm /opt/toolchains
Example:
sudo ln -s ~/freshtomato-repos/freshtomato-ax/release/src-rt-5.04axhnd.675x/toolchains/brcm /opt/toolchains
-
Packages
sudo apt-get install liblzo2-dev uuid-dev docbook-xsl libtool-bin bc rsync gdisk xxd
-
Compiling for Asus TUF-AX3000_V2 (Note: bash as the default shell - required by the build system for the HND router models)
cd ~/[your_folder]/freshtomato-ax/release/src-rt-5.04axhnd.675x/ export PATH=$PATH:/opt/toolchains/crosstools-aarch64-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/usr/bin export PATH=$PATH:/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/usr/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/usr/lib make tuf-ax3000_v2 SHELL=/bin/bash