board: theobroma-systems: update instructions for newer Rockchip rkbin

The instructions are regularly out of date because the generated or
prebuilt binaries are updated and the filename doesn't match our
instructions anymore.

Additionally, since commit 55a95caaef15 ("tools: ddrbin_tool: add
ddrbin_tool.py and update to v1.21 20241211") end of October 2024,
ddrbin_tool doesn't exist anymore and has been replaced by
ddrbin_tool.py python script (which currently isn't an executable) so
let's update these instructions as well.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Quentin Schulz 2025-07-30 14:46:33 +02:00 committed by Kever Yang
parent 87d85139a9
commit a4dcf3183f
4 changed files with 14 additions and 13 deletions

View File

@ -39,13 +39,12 @@ Get the TF-A and DDR init (TPL) binaries
git clone https://github.com/rockchip-linux/rkbin git clone https://github.com/rockchip-linux/rkbin
cd rkbin cd rkbin
export RKBIN=$(pwd) export BL31=$(readlink -f bin/rk35/rk3588_bl31_v*.elf | head -1)
export BL31=$RKBIN/bin/rk35/rk3588_bl31_v1.47.elf export ROCKCHIP_TPL=$(readlink -f bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v*.bin | head -1)
export ROCKCHIP_TPL=$RKBIN/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.18.bin
sed -i 's/^uart baudrate=.*$/uart baudrate=115200/' tools/ddrbin_param.txt sed -i 's/^uart baudrate=.*$/uart baudrate=115200/' tools/ddrbin_param.txt
./tools/ddrbin_tool rk3588 tools/ddrbin_param.txt "$ROCKCHIP_TPL" python3 ./tools/ddrbin_tool.py rk3588 tools/ddrbin_param.txt "$ROCKCHIP_TPL"
./tools/boot_merger RKBOOT/RK3588MINIALL.ini ./tools/boot_merger RKBOOT/RK3588MINIALL.ini
export RKDB=$RKBIN/rk3588_spl_loader_v1.11.112.bin export RKDB=$(readlink -f rk3588_spl_loader_v*.bin | head -1)
This will setup all required external dependencies for compiling U-Boot. This will This will setup all required external dependencies for compiling U-Boot. This will
be updated in the future once upstream Trusted-Firmware-A supports RK3588 or U-Boot be updated in the future once upstream Trusted-Firmware-A supports RK3588 or U-Boot

View File

@ -95,8 +95,9 @@ To flash U-Boot on the eMMC with ``rkdeveloptool``:
git clone https://github.com/rockchip-linux/rkbin.git git clone https://github.com/rockchip-linux/rkbin.git
cd rkbin cd rkbin
./tools/boot_merger RKBOOT/RK3399MINIALL.ini ./tools/boot_merger RKBOOT/RK3399MINIALL.ini
export RKDB=$(readlink -f rk3399_loader_v*.bin | head -1)
cd .. cd ..
./rkdeveloptool db rkbin/rk3399_loader_v1.30.130.bin ./rkdeveloptool db "$RKDB"
./rkdeveloptool wl 64 ../u-boot-rockchip.bin ./rkdeveloptool wl 64 ../u-boot-rockchip.bin
NOR-Flash NOR-Flash
@ -121,7 +122,8 @@ To flash U-Boot on the SPI with ``rkdeveloptool``:
git clone https://github.com/rockchip-linux/rkbin.git git clone https://github.com/rockchip-linux/rkbin.git
cd rkbin cd rkbin
./tools/boot_merger RKBOOT/RK3399MINIALL_SPINOR.ini ./tools/boot_merger RKBOOT/RK3399MINIALL_SPINOR.ini
export RKDB=$(readlink -f rk3399_loader_spinor_v*.bin | head -1)
cd .. cd ..
./rkdeveloptool db rkbin/rk3399_loader_spinor_v1.30.114.bin ./rkdeveloptool db "$RKDB"
./rkdeveloptool ef ./rkdeveloptool ef
./rkdeveloptool wl 0 ../u-boot-rockchip-spi.bin ./rkdeveloptool wl 0 ../u-boot-rockchip-spi.bin

View File

@ -90,6 +90,7 @@ To flash U-Boot on the eMMC with ``rkdeveloptool``:
git clone https://github.com/rockchip-linux/rkbin.git git clone https://github.com/rockchip-linux/rkbin.git
cd rkbin cd rkbin
./tools/boot_merger RKBOOT/PX30MINIALL.ini ./tools/boot_merger RKBOOT/PX30MINIALL.ini
export RKDB=$(readlink -f px30_loader_v*.bin | head -1)
cd .. cd ..
./rkdeveloptool db rkbin/px30_loader_v2.08.135.bin ./rkdeveloptool db "$RKDB"
./rkdeveloptool wl 64 ../u-boot-rockchip.bin ./rkdeveloptool wl 64 ../u-boot-rockchip.bin

View File

@ -46,14 +46,13 @@ Get the TF-A and DDR init (TPL) binaries
git clone https://github.com/rockchip-linux/rkbin git clone https://github.com/rockchip-linux/rkbin
cd rkbin cd rkbin
export RKBIN=$(pwd) export BL31=$(readlink -f bin/rk35/rk3588_bl31_v*.elf | head -1)
export BL31=$RKBIN/bin/rk35/rk3588_bl31_v1.47.elf export ROCKCHIP_TPL=$(readlink -f bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v*.bin | head -1)
export ROCKCHIP_TPL=$RKBIN/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.18.bin
sed -i 's/^uart baudrate=.*$/uart baudrate=115200/' tools/ddrbin_param.txt sed -i 's/^uart baudrate=.*$/uart baudrate=115200/' tools/ddrbin_param.txt
sed -i 's/^uart iomux=.*$/uart iomux=2/' tools/ddrbin_param.txt sed -i 's/^uart iomux=.*$/uart iomux=2/' tools/ddrbin_param.txt
./tools/ddrbin_tool rk3588 tools/ddrbin_param.txt "$ROCKCHIP_TPL" python3 ./tools/ddrbin_tool.py rk3588 tools/ddrbin_param.txt "$ROCKCHIP_TPL"
./tools/boot_merger RKBOOT/RK3588MINIALL.ini ./tools/boot_merger RKBOOT/RK3588MINIALL.ini
export RKDB=$RKBIN/rk3588_spl_loader_v1.11.112.bin export RKDB=$(readlink -f rk3588_spl_loader_v*.bin | head -1)
This will setup all required external dependencies for compiling U-Boot. This will This will setup all required external dependencies for compiling U-Boot. This will
be updated in the future once upstream Trusted-Firmware-A supports RK3588 or U-Boot be updated in the future once upstream Trusted-Firmware-A supports RK3588 or U-Boot