1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/release/arm/BEAGLEBONE.conf 284543 2015-06-18 10:26:27Z gjb $
| 3# $FreeBSD: head/release/arm/BEAGLEBONE.conf 288374 2015-09-29 16:09:59Z 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" 12IMAGE_SIZE="1G" 13PART_SCHEME="MBR" 14FAT_SIZE="2m" 15FAT_TYPE="12" 16MD_ARGS="-x 63 -y 255" 17NODOC=1 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
| 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" 12IMAGE_SIZE="1G" 13PART_SCHEME="MBR" 14FAT_SIZE="2m" 15FAT_TYPE="12" 16MD_ARGS="-x 63 -y 255" 17NODOC=1 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} cp -p ${UFSMOUNT}/boot/ubldr.bin \ 30 ${FATMOUNT}/ubldr.bin
|
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}
| 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}
|