1#!/bin/sh 2# |
3# $FreeBSD: head/release/arm/PANDABOARD.conf 282693 2015-05-09 21:08:12Z gjb $ |
4# 5 |
6EMBEDDEDBUILD=1 7EMBEDDED_TARGET="arm" 8EMBEDDED_TARGET_ARCH="armv6" 9EMBEDDEDPORTS="sysutils/u-boot-pandaboard" 10KERNEL="PANDABOARD" 11NODOC=1 12WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x88000000" 13IMAGE_SIZE="1G" 14PART_SCHEME="MBR" 15FAT_SIZE="2m" 16FAT_TYPE="12" 17MD_ARGS="-x 63 -y 255" |
18 |
19arm_install_uboot() { 20 UBOOT_DIR="/usr/local/share/u-boot/u-boot-pandaboard" 21 FATMOUNT="${DESTDIR%${KERNEL}}/fat" 22 UFSMOUNT="${DESTDIR%${KERNEL}}/ufs" 23 chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}" 24 chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT} 25 chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT} 26 chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/MLO ${FATMOUNT}/MLO 27 chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/u-boot.img ${FATMOUNT}/u-boot.img 28 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr 29 chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot 30 sync 31 umount_loop ${CHROOTDIR}/${FATMOUNT} 32 umount_loop ${CHROOTDIR}/${UFSMOUNT} 33 chroot ${CHROOTDIR} rmdir ${FATMOUNT} 34 chroot ${CHROOTDIR} rmdir ${UFSMOUNT} 35 36 return 0 |
37} |