Compile U-Boot; Compile The Linux Kernel - Cherry Theobroma PX30-mQ7 User Manual

System-on-module quad-core arm cortex-a35
Hide thumbs Also See for Theobroma PX30-mQ7:
Table of Contents

Advertisement

fi
# Compile
TF_LDFLAGS="$TF_LDFLAGS"
# Make the resulting file available to later steps
export
BL31=$PWD/build/px30/release/bl31/bl31.elf
cd
..
This step should take under 1 minute total.

5.3 Compile U-Boot

Note: The variable BL31 must be already set as described in Section 5.2 Compile the ATF .
Get the source code and compile the U-Boot bootloader as follows:
# Set up cross-compilation
export
ARCH=arm64
export
CROSS_COMPILE=aarch64-linux-gnu-
# Download the source code
git clone https://git.theobroma-systems.com/ringneck-u-boot.git
cd
ringneck-u-boot
# Compile
make ringneck-px30_defconfig
make
-j$(nproc)
# Make the resulting file available to later steps
export
RINGNECK_UBOOT_DIR=$PWD
cd
..
This step should take about 1 minute total.

5.4 Compile the Linux kernel

Get the source code and compile the Linux kernel as follows:
# Set up cross-compilation
export
ARCH=arm64
export
CROSS_COMPILE=aarch64-linux-gnu-
# Download the source code
git clone https://git.theobroma-systems.com/ringneck-linux.git
cd
ringneck-linux
# Compile
make ringneck-px30_defconfig
make
-j$(nproc)
# Make the resulting files available to later steps
export
RINGNECK_LINUX_DIR=$PWD
cd
..
The time required for this step heavily depends on your internet connection and CPU power. On a quad-core 2.9GHz machine
with an 1Gb/s internet connection, it takes about 20 minutes total.
PX30-uQ7 User Manual
© Theobroma Systems Design und Consulting GmbH
make PLAT=px30 bl31
(continued from previous page)
v1.2.0-1-g5ccabb6
Page 21

Advertisement

Table of Contents
loading

Table of Contents