Compile U-Boot; Compile The Linux Kernel - Cherry JAGUAR SBC-RK3588-AMR User Manual

Single board computer for autonmous mobile robots featuring the rockchip rk3588 cutting-edge processor
Hide thumbs Also See for JAGUAR SBC-RK3588-AMR:
Table of Contents

Advertisement

# Tag
linux-5.10-gen-rkr4.1
git checkout
"1356c978"
export
RKBIN_FOLDER=$PWD
export
BL31=$RKBIN_FOLDER/bin/rk35/rk3588_bl31_v1.38.elf
export
BL32=$RKBIN_FOLDER/bin/rk35/rk3588_bl32_v1.13.bin
export
TPL=$RKBIN_FOLDER/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.11.bin
cd
..
# Make the baudrate match our U-Boot
sed -i
's/uart baudrate=/uart baudrate=115200/'
rkbin/tools/ddrbin_tool rkbin/tools/ddrbin_param.txt
This step should take under 1 minute total.

5.3 Compile U-Boot

Note: Variables BL31, BL32, TPL must be already set as described in Section 5.2 Get 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/jaguar-u-boot.git
cd
jaguar-u-boot
# Load u-boot config
make jaguar-rk3588_defconfig
# Build idbloader.img
make spl/u-boot-spl.bin
./tools/mkimage -n rk3588 -T rksd -d "$TPL":spl/u-boot-spl.bin idbloader.img
# Build u-boot.dtb/u-boot.itb
cp
"$BL31"
bl31.elf
cp
"$BL32"
tee.bin
make u-boot.dtb u-boot.itb
# Make the resulting file available to later steps
export
JAGUAR_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/jaguar-linux.git
cd
jaguar-linux
v1.0.1
Page 16
-j$(nproc)
-j$(nproc)
rkbin/tools/ddrbin_param.txt
"$TPL"
(continued from previous page)
(continues on next page)

Advertisement

Table of Contents
loading

Table of Contents