Files
buildroot/board/sipeed/licheepi_4a/post-image.sh
Kanak Shilledar 1ab37899ae configs/sipeed_licheepi_4a: add new board
Add support for the LicheePi 4A with mainline component:
 - Linux Kernel 6.12

The following components are provided by vendor:
 - U-Boot 2020.01
 - OpenSBI v0.9

Board homepage and more usable wiki:
 - https://wiki.sipeed.com/hardware/en/lichee/th1520/lpi4a/1_intro.html

th1520-boot-firmware is selected from the package sipeed-lpi4abin.
This is inspired from lone0's fork of buildroot for th1520.[1]

[1] https://github.com/lone0/buildroot-th1520

Signed-off-by: Kanak Shilledar <kanakshilledar@gmail.com>
[Julien: Tested on cpu board version 51601
  on base board version 51602]
Tested-by: Julien Olivain <ju.o@free.fr>
[Julien:
  - add Signed-off-by line in commit log
  - reorder defconfig entries with "make savedefconfig"
  - fixed post-image.sh shellcheck warnings
    (found with "make check-package")
  - add extra info in readme.txt
  - change linux-headers.hash to a symlink
  - change linux.hash comment to take hash from upstream
]
Signed-off-by: Julien Olivain <ju.o@free.fr>
2025-03-11 19:22:04 +01:00

25 lines
609 B
Bash
Executable File

#!/bin/sh
set -e
BOARD_DIR="$(dirname "$0")"
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
trap 'rm -rf "${ROOTPATH_TMP}"' EXIT
ROOTPATH_TMP="$(mktemp -d)"
rm -rf "${GENIMAGE_TMP}"
cp "${BINARIES_DIR}"/Image "${BINARIES_DIR}"/*.dtb "${BINARIES_DIR}"/fw_dynamic.bin "${ROOTPATH_TMP}"
cp -a "${BINARIES_DIR}"/bootbins/* "${ROOTPATH_TMP}"
cp -a "${BOARD_DIR}"/extlinux "${ROOTPATH_TMP}"
genimage \
--rootpath "${ROOTPATH_TMP}" \
--tmppath "${GENIMAGE_TMP}" \
--inputpath "${BINARIES_DIR}" \
--outputpath "${BINARIES_DIR}" \
--config "${GENIMAGE_CFG}"
exit $?