Ax5soc Build linux image from scratch
From Terasic Wiki
(Difference between revisions)
Admin (Talk | contribs)
(Created page with "reference: rocket https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderForAgilex5 OS: Ubuntu-22.04 (PC or Windows WLS) ---- '''1. Setting Up Environment''' * In...")
Newer edit →
(Created page with "reference: rocket https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderForAgilex5 OS: Ubuntu-22.04 (PC or Windows WLS) ---- '''1. Setting Up Environment''' * In...")
Newer edit →
Revision as of 10:09, 18 October 2024
reference: rocket https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderForAgilex5
OS: Ubuntu-22.04 (PC or Windows WLS)
1. Setting Up Environment
- Install the required packages on Ubuntu:
sudo apt-get update sudo apt-get upgrade sudo apt install make bison flex python3-dev libssl-dev swig sudo apt install u-boot-tools sudo apt install qemu-user-static
- Create top folder:
mkdir ATUM_A5_V1.2.sdmmc cd ATUM_A5_V1.2.sdmmc export TOP_FOLDER=`pwd`
- Download and setup the the toolchain as follows:
cd $TOP_FOLDER wget https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel\ /gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz tar xf gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz rm -f gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz export PATH=`pwd`/gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu/bin:$PATH export ARCH=arm64 export CROSS_COMPILE=aarch64-none-linux-gnu-