Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bananapi: add boot script for uboot #280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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