WANDBOARD.conf revision 283161
1#!/bin/sh 2# 3# $FreeBSD: stable/10/release/arm/WANDBOARD.conf 283161 2015-05-20 19:32:57Z gjb $ 4# 5 6SRCBRANCH="base/stable/10@rHEAD" 7EMBEDDEDBUILD=1 8EMBEDDED_TARGET="arm" 9EMBEDDED_TARGET_ARCH="armv6" 10EMBEDDEDPORTS="sysutils/u-boot-wandboard" 11KERNEL="IMX6" 12WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x11000000" 13IMAGE_SIZE="1G" 14PART_SCHEME="MBR" 15FAT_SIZE="50m -b 16384" 16FAT_TYPE="16" 17MD_ARGS="-x 63 -y 255" 18NODOC=1 19 20arm_install_uboot() { 21 UBOOT_DIR="/usr/local/share/u-boot/u-boot-wandboard" 22 UBOOT_FILES="u-boot.imx" 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} /bin/sh -c 'echo \ 32 setenv fdt_file wandboard-quad.dtb\; fatload mmc 0:1 11000000 ubldr\; bootelf 11000000\; \ 33 > ${FATMOUNT}/boot.txt' 34 chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot 35 sync 36 umount_loop ${CHROOTDIR}/${FATMOUNT} 37 umount_loop ${CHROOTDIR}/${UFSMOUNT} 38 chroot ${CHROOTDIR} rmdir ${FATMOUNT} 39 chroot ${CHROOTDIR} rmdir ${UFSMOUNT} 40 41 return 0 42} 43