kumquat-buildroot/board/pine64/star64/post-build.sh
Thomas Bonnefille 35635cdc5b configs/pine64_star64: new defconfig
This patch adds a new defconfig for the Star64 board made by
Pine64. This board is based on the Starfive JH7110 RISC-V 64 bits
SoC. See: https://wiki.pine64.org/wiki/STAR64.

This patch uses a custom Kernel and U-Boot made for this board. The
SPL has to be signed with the Starfive SPL-Tool which is a software
provided by the vendor to get the necessary headers on the SPL.

The image configuration is based on the work done by Ivan Velickovic
<i.velickovic@unsw.edu.au>.

Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-05-01 20:51:57 +02:00

10 lines
360 B
Bash
Executable File

#!/bin/bash
BOARD_DIR="$CONFIG_DIR"/board/pine64/star64
# Add header to the SPL
"$HOST_DIR"/bin/spl_tool -c -f "$BINARIES_DIR"/u-boot-spl.bin
# Create the u-boot FIT image
cp "$BOARD_DIR"/star64-uboot-fit-image.its "$BINARIES_DIR"
mkimage -f "$BINARIES_DIR"/star64-uboot-fit-image.its -A riscv -O u-boot -T firmware "$BINARIES_DIR"/opensbi_uboot_payload.img