Skip to content

Commit

Permalink
Bananapi: add boot script for uboot
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzFago committed May 7, 2019
1 parent f102d4e commit 7ad1d79
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 7ad1d79

Please sign in to comment.