1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/release/arm/CUBOX-HUMMINGBOARD.conf 284543 2015-06-18 10:26:27Z gjb $
| 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" 12IMAGE_SIZE="1G" 13PART_SCHEME="MBR" 14FAT_SIZE="50m -b 16384" 15FAT_TYPE="16" 16MD_ARGS="-x 63 -y 255" 17NODOC=1 18export BOARDNAME="CUBOX-HUMMINGBOARD" 19 20arm_install_uboot() { 21 UBOOT_DIR="/usr/local/share/u-boot/u-boot-cubox-hummingboard" 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
| 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" 12IMAGE_SIZE="1G" 13PART_SCHEME="MBR" 14FAT_SIZE="50m -b 16384" 15FAT_TYPE="16" 16MD_ARGS="-x 63 -y 255" 17NODOC=1 18export BOARDNAME="CUBOX-HUMMINGBOARD" 19 20arm_install_uboot() { 21 UBOOT_DIR="/usr/local/share/u-boot/u-boot-cubox-hummingboard" 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} cp -p ${UFSMOUNT}/boot/ubldr.bin \ 32 ${FATMOUNT}/ubldr.bin
|
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}
| 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}
|