1#!/bin/sh 2# |
3# $FreeBSD: head/release/arm/BEAGLEBONE.conf 283992 2015-06-04 16:33:29Z gjb $ |
4# 5 6EMBEDDEDBUILD=1 7EMBEDDED_TARGET="arm" 8EMBEDDED_TARGET_ARCH="armv6" 9EMBEDDEDPORTS="sysutils/u-boot-beaglebone" 10KERNEL="BEAGLEBONE" 11WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x88000000" --- 6 unchanged lines hidden (view full) --- 18 19arm_install_uboot() { 20 UBOOT_DIR="/usr/local/share/u-boot/u-boot-beaglebone" 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} |