From 7ad1d79966c8d8a72a9feb91a737e4f583bb19ed Mon Sep 17 00:00:00 2001 From: Moritz Fago Date: Thu, 17 Jan 2019 23:58:15 +0100 Subject: [PATCH] Bananapi: add boot script for uboot --- board/BananaPi/setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/BananaPi/setup.sh b/board/BananaPi/setup.sh index a638d885..45a19c8d 100644 --- a/board/BananaPi/setup.sh +++ b/board/BananaPi/setup.sh @@ -19,9 +19,17 @@ strategy_add $PHASE_PARTITION_LWW allwinner_partition_image allwinner_check_uboot ( ) { uboot_port_test ${SUNXI_UBOOT} ${SUNXI_UBOOT_BIN} } + +allwinner_install_boot_script () { + # Install boot_script to boot partition + echo "Installing u-boot-script" + cp ${UBOOT_PATH}/boot.scr ./boot.scr.uimg || exit 1 +} + strategy_add $PHASE_CHECK allwinner_check_uboot strategy_add $PHASE_BUILD_OTHER freebsd_ubldr_build UBLDR_LOADADDR=${UBLDR_LOADADDR} +strategy_add $PHASE_BOOT_START allwinner_install_boot_script strategy_add $PHASE_BOOT_INSTALL freebsd_ubldr_copy_ubldr . # Put the kernel on the FreeBSD UFS partition.