release: Add rpi firmware dtb and mmc overlays for RPI-B and RPI2
This is needed with new u-boot that uses the rpi-firmware dtbs. Reviewed by: gjb MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D16240
This commit is contained in:
parent
bb9bd4fe8f
commit
ee1f10f4b4
@ -13,6 +13,7 @@ IMAGE_SIZE="3072M"
|
||||
KERNEL="RPI-B"
|
||||
MD_ARGS="-x 63 -y 255"
|
||||
NODOC=1
|
||||
OVERLAYS="mmc.dtbo pi3-disable-bt.dtbo"
|
||||
PART_SCHEME="MBR"
|
||||
|
||||
arm_install_uboot() {
|
||||
@ -21,7 +22,9 @@ arm_install_uboot() {
|
||||
UBOOT_FILES="u-boot.bin"
|
||||
RPI_FIRMWARE_FILES="bootcode.bin config.txt \
|
||||
fixup.dat fixup_cd.dat fixup_db.dat fixup_x.dat \
|
||||
start.elf start_cd.elf start_db.elf start_x.elf"
|
||||
start.elf start_cd.elf start_db.elf start_x.elf \
|
||||
bcm2708-rpi-0-w.dtb bcm2708-rpi-b-plus.dtb bcm2708-rpi-b.dtb \
|
||||
bcm2708-rpi-cm.dtb"
|
||||
FATMOUNT="${DESTDIR%${KERNEL}}/fat"
|
||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}"
|
||||
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
||||
@ -33,6 +36,11 @@ arm_install_uboot() {
|
||||
chroot ${CHROOTDIR} cp -p ${RPI_FIRMWARE_DIR}/${_UF} \
|
||||
${FATMOUNT}/${_UF}
|
||||
done
|
||||
chroot ${CHROOTDIR} mkdir -p ${FATMOUNT}/overlays
|
||||
for _OL in ${OVERLAYS}; do
|
||||
chroot ${CHROOTDIR} cp -p ${OL_DIR}/${_OL} \
|
||||
${FATMOUNT}/overlays/${_OL}
|
||||
done
|
||||
chroot ${CHROOTDIR} cp ${UBOOT_DIR}/boot.scr ${FATMOUNT}/boot.scr
|
||||
sync
|
||||
umount_loop ${CHROOTDIR}/${FATMOUNT}
|
||||
|
@ -13,6 +13,7 @@ IMAGE_SIZE="3072M"
|
||||
KERNEL="GENERIC"
|
||||
MD_ARGS="-x 63 -y 255"
|
||||
NODOC=1
|
||||
OVERLAYS="mmc.dtbo"
|
||||
PART_SCHEME="MBR"
|
||||
export BOARDNAME="RPI2"
|
||||
|
||||
@ -22,7 +23,8 @@ arm_install_uboot() {
|
||||
UBOOT_FILES="u-boot.bin"
|
||||
RPI_FIRMWARE_FILES="bootcode.bin config.txt \
|
||||
fixup.dat fixup_cd.dat fixup_db.dat fixup_x.dat \
|
||||
start.elf start_cd.elf start_db.elf start_x.elf"
|
||||
start.elf start_cd.elf start_db.elf start_x.elf \
|
||||
bcm2709-rpi-2-b.dtb"
|
||||
FATMOUNT="${DESTDIR%${KERNEL}}/fat"
|
||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}"
|
||||
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
||||
@ -34,6 +36,11 @@ arm_install_uboot() {
|
||||
chroot ${CHROOTDIR} cp -p ${RPI_FIRMWARE_DIR}/${_UF} \
|
||||
${FATMOUNT}/${_UF}
|
||||
done
|
||||
chroot ${CHROOTDIR} mkdir -p ${FATMOUNT}/overlays
|
||||
for _OL in ${OVERLAYS}; do
|
||||
chroot ${CHROOTDIR} cp -p ${OL_DIR}/${_OL} \
|
||||
${FATMOUNT}/overlays/${_OL}
|
||||
done
|
||||
chroot ${CHROOTDIR} cp ${UBOOT_DIR}/boot.scr ${FATMOUNT}/boot.scr
|
||||
sync
|
||||
umount_loop ${CHROOTDIR}/${FATMOUNT}
|
||||
|
Loading…
Reference in New Issue
Block a user