Following ports commit r465175, avoid fetch(1) to obtain
overlays and DTB files for the RPI3. Submitted by: manu Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
df4ee7639e
commit
3377818679
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331292
@ -3,18 +3,19 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
|
|
||||||
DTB_REPO="https://github.com/raspberrypi/firmware/blob/master/boot"
|
DTB_DIR="/usr/local/share/rpi-firmware"
|
||||||
DTB="bcm2710-rpi-3-b.dtb"
|
DTB="bcm2710-rpi-3-b.dtb"
|
||||||
EMBEDDED_TARGET_ARCH="aarch64"
|
EMBEDDED_TARGET_ARCH="aarch64"
|
||||||
EMBEDDED_TARGET="arm64"
|
EMBEDDED_TARGET="arm64"
|
||||||
EMBEDDEDBUILD=1
|
EMBEDDEDBUILD=1
|
||||||
EMBEDDEDPORTS="sysutils/u-boot-rpi3 security/ca_root_nss"
|
EMBEDDEDPORTS="sysutils/u-boot-rpi3 sysutils/rpi-firmware"
|
||||||
FAT_SIZE="50m -b 1m"
|
FAT_SIZE="50m -b 1m"
|
||||||
FAT_TYPE="16"
|
FAT_TYPE="16"
|
||||||
IMAGE_SIZE="2560M"
|
IMAGE_SIZE="2560M"
|
||||||
KERNEL="GENERIC"
|
KERNEL="GENERIC"
|
||||||
MD_ARGS="-x 63 -y 255"
|
MD_ARGS="-x 63 -y 255"
|
||||||
NODOC=1
|
NODOC=1
|
||||||
|
OL_DIR="${DTB_DIR}/overlays"
|
||||||
OVERLAYS="mmc.dtbo pi3-disable-bt.dtbo"
|
OVERLAYS="mmc.dtbo pi3-disable-bt.dtbo"
|
||||||
PART_SCHEME="MBR"
|
PART_SCHEME="MBR"
|
||||||
export BOARDNAME="RPI3"
|
export BOARDNAME="RPI3"
|
||||||
@ -33,11 +34,11 @@ arm_install_uboot() {
|
|||||||
chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/${_UF} \
|
chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/${_UF} \
|
||||||
${FATMOUNT}/${_UF}
|
${FATMOUNT}/${_UF}
|
||||||
done
|
done
|
||||||
chroot ${CHROOTDIR} fetch -o "${FATMOUNT}/${DTB}" "${DTB_REPO}/${DTB}?raw=true"
|
chroot ${CHROOTDIR} cp -p ${DTB_DIR}/${DTB} ${FATMOUNT}/${DTB}
|
||||||
chroot ${CHROOTDIR} mkdir -p ${FATMOUNT}/overlays
|
chroot ${CHROOTDIR} mkdir -p ${FATMOUNT}/overlays
|
||||||
for _OL in ${OVERLAYS}; do
|
for _OL in ${OVERLAYS}; do
|
||||||
chroot ${CHROOTDIR} fetch -o "${FATMOUNT}/overlays/${_OL}"\
|
chroot ${CHROOTDIR} cp -p ${OL_DIR}/${_OL} \
|
||||||
"${DTB_REPO}/overlays/${_OL}?raw=true"
|
${FATMOUNT}/overlays/${_OL}
|
||||||
done
|
done
|
||||||
|
|
||||||
BOOTFILES="$(chroot ${CHROOTDIR} \
|
BOOTFILES="$(chroot ${CHROOTDIR} \
|
||||||
|
Loading…
Reference in New Issue
Block a user