1#!/bin/sh
2#
3# $FreeBSD: head/release/arm/CUBOX-HUMMINGBOARD.conf 284543 2015-06-18 10:26:27Z gjb $
4#
5
6EMBEDDEDBUILD=1
7EMBEDDED_TARGET="arm"
8EMBEDDED_TARGET_ARCH="armv6"
9EMBEDDEDPORTS="sysutils/u-boot-cubox-hummingboard"
10KERNEL="IMX6"
11WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x12000000"
--- 11 unchanged lines hidden (view full) ---
23 FATMOUNT="${DESTDIR%${KERNEL}}/fat"
24 UFSMOUNT="${DESTDIR%${KERNEL}}/ufs"
25 chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
26 of=/dev/${mddev} bs=512 seek=2
27 chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
28 chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
29 chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
30 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr
31 chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot
32 sync
33 umount_loop ${CHROOTDIR}/${FATMOUNT}
34 umount_loop ${CHROOTDIR}/${UFSMOUNT}
35 chroot ${CHROOTDIR} rmdir ${FATMOUNT}
36 chroot ${CHROOTDIR} rmdir ${UFSMOUNT}
37
38 return 0
39}
2#
3# $FreeBSD: head/release/arm/CUBOX-HUMMINGBOARD.conf 284543 2015-06-18 10:26:27Z gjb $
4#
5
6EMBEDDEDBUILD=1
7EMBEDDED_TARGET="arm"
8EMBEDDED_TARGET_ARCH="armv6"
9EMBEDDEDPORTS="sysutils/u-boot-cubox-hummingboard"
10KERNEL="IMX6"
11WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x12000000"
--- 11 unchanged lines hidden (view full) ---
23 FATMOUNT="${DESTDIR%${KERNEL}}/fat"
24 UFSMOUNT="${DESTDIR%${KERNEL}}/ufs"
25 chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
26 of=/dev/${mddev} bs=512 seek=2
27 chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
28 chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
29 chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
30 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr
31 chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot
32 sync
33 umount_loop ${CHROOTDIR}/${FATMOUNT}
34 umount_loop ${CHROOTDIR}/${UFSMOUNT}
35 chroot ${CHROOTDIR} rmdir ${FATMOUNT}
36 chroot ${CHROOTDIR} rmdir ${UFSMOUNT}
37
38 return 0
39}