1#!/bin/sh
2#
3# $FreeBSD: head/release/arm/RPI2.conf 284543 2015-06-18 10:26:27Z gjb $
4#
5
6EMBEDDEDBUILD=1
7EMBEDDED_TARGET="arm"
8EMBEDDED_TARGET_ARCH="armv6"
9EMBEDDEDPORTS="sysutils/u-boot-rpi2"
10KERNEL="RPI2"
11WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x2000000"
--- 13 unchanged lines hidden (view full) ---
25 chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
26 chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
27 chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
28 for _UF in ${UBOOT_FILES}; do
29 chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/${_UF} \
30 ${FATMOUNT}/${_UF}
31 done
32 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr
33 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/dtb/rpi2.dtb \
34 ${FATMOUNT}/rpi2.dtb
35 chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot
36 sync
37 umount_loop ${CHROOTDIR}/${FATMOUNT}
38 umount_loop ${CHROOTDIR}/${UFSMOUNT}
39 chroot ${CHROOTDIR} rmdir ${FATMOUNT}
40 chroot ${CHROOTDIR} rmdir ${UFSMOUNT}
41
42 return 0
43}
2#
3# $FreeBSD: head/release/arm/RPI2.conf 284543 2015-06-18 10:26:27Z gjb $
4#
5
6EMBEDDEDBUILD=1
7EMBEDDED_TARGET="arm"
8EMBEDDED_TARGET_ARCH="armv6"
9EMBEDDEDPORTS="sysutils/u-boot-rpi2"
10KERNEL="RPI2"
11WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x2000000"
--- 13 unchanged lines hidden (view full) ---
25 chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
26 chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
27 chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
28 for _UF in ${UBOOT_FILES}; do
29 chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/${_UF} \
30 ${FATMOUNT}/${_UF}
31 done
32 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr
33 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/dtb/rpi2.dtb \
34 ${FATMOUNT}/rpi2.dtb
35 chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot
36 sync
37 umount_loop ${CHROOTDIR}/${FATMOUNT}
38 umount_loop ${CHROOTDIR}/${UFSMOUNT}
39 chroot ${CHROOTDIR} rmdir ${FATMOUNT}
40 chroot ${CHROOTDIR} rmdir ${UFSMOUNT}
41
42 return 0
43}