mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
33bec6889a
boot.scr is a u-boot script that loads and execute ubldr.bin If not present u-boot will automatically boot loader.efi which is already installed. This means that all armv6/armv7 images are now booted via EFI Tested-On: RPI-B Tested-On: RPI2 Tested-On: OrangePi One Tested-On: All lot of other boards MFC after: Never Relnotes: yes
27 lines
521 B
Bash
27 lines
521 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
EMBEDDED_TARGET_ARCH="armv7"
|
|
EMBEDDED_TARGET="arm"
|
|
EMBEDDEDBUILD=1
|
|
EMBEDDEDPORTS="sysutils/u-boot-cubieboard2"
|
|
FAT_SIZE="50m -b 1m"
|
|
FAT_TYPE="16"
|
|
IMAGE_SIZE="3072M"
|
|
KERNEL="GENERIC"
|
|
MD_ARGS="-x 63 -y 255"
|
|
NODOC=1
|
|
PART_SCHEME="MBR"
|
|
export BOARDNAME="CUBIEBOARD2"
|
|
|
|
arm_install_uboot() {
|
|
UBOOT_DIR="/usr/local/share/u-boot/u-boot-cubieboard2"
|
|
UBOOT_FILES="u-boot-sunxi-with-spl.bin"
|
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
|
|
of=/dev/${mddev} bs=1k seek=8 conv=sync
|
|
|
|
return 0
|
|
}
|