Skip to content

Commit

Permalink
Merge pull request #280 from MoritzFago/bananapi-u-boot-fix
Browse files Browse the repository at this point in the history
Bananapi: add boot script for uboot
  • Loading branch information
teverett authored Jan 15, 2025
2 parents b0244ad + 7ad1d79 commit a13986a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions board/BananaPi/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a13986a

Please sign in to comment.