Compile U-Boot; Compile The Linux Kernel - Cherry RINGNECK SOM-PX30-uQ7 User Manual

Power efficient system-on-module with quad-core arm featuring the rockchip px30 application processor
Table of Contents

Advertisement

# Fix for aarch64-linux-gnu-ld 2.39+ and TF-A prior to v2.9
# Fix available in commit 1f49db5f25cd ("feat(build): add support for new binutils versions")
if
"${CROSS_COMPILE}ld"
TF_LDFLAGS="-z noexecstack --no-warn-rwx-segments"
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.embedded.cherry.de/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.embedded.cherry.de/ringneck-linux.git
cd
ringneck-linux
# Compile
make ringneck-px30_defconfig
make
-j$(nproc)
RINGNECK SOM-PX30-uQ7 User Manual
© Cherry Embedded Solutions GmbH
--no-warn-rwx-segments -v >/dev/null 2>&1;
make PLAT=px30 bl31
(continued from previous page)
then
(continues on next page)
v1.3.1
Page 21

Advertisement

Table of Contents
loading

Table of Contents