1#!/bin/sh 2# |
3# $FreeBSD: head/release/arm/CUBOX-HUMMINGBOARD.conf 288374 2015-09-29 16:09:59Z 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} cp -p ${UFSMOUNT}/boot/ubldr.bin \ 32 ${FATMOUNT}/ubldr.bin |
33 chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot 34 sync 35 umount_loop ${CHROOTDIR}/${FATMOUNT} 36 umount_loop ${CHROOTDIR}/${UFSMOUNT} 37 chroot ${CHROOTDIR} rmdir ${FATMOUNT} 38 chroot ${CHROOTDIR} rmdir ${UFSMOUNT} 39 40 return 0 41} |