1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/release/arm/RPI-B.conf 284543 2015-06-18 10:26:27Z gjb $
| 3# $FreeBSD: head/release/arm/RPI-B.conf 288374 2015-09-29 16:09:59Z gjb $
|
4# 5 6EMBEDDEDBUILD=1 7EMBEDDED_TARGET="arm" 8EMBEDDED_TARGET_ARCH="armv6" 9EMBEDDEDPORTS="sysutils/u-boot-rpi" 10KERNEL="RPI-B" 11WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x2000000" 12IMAGE_SIZE="1G" 13PART_SCHEME="MBR" 14FAT_SIZE="17m" 15FAT_TYPE="16" 16MD_ARGS="-x 63 -y 255" 17NODOC=1 18 19arm_install_uboot() { 20 UBOOT_DIR="/usr/local/share/u-boot/u-boot-rpi" 21 UBOOT_FILES="bootcode.bin config.txt fixup.dat fixup_cd.dat \ 22 start.elf start_cd.elf u-boot.img" 23 FATMOUNT="${DESTDIR%${KERNEL}}/fat" 24 UFSMOUNT="${DESTDIR%${KERNEL}}/ufs" 25 chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}" 26 chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT} 27 chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT} 28 for _UF in ${UBOOT_FILES}; do 29 chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/${_UF} \ 30 ${FATMOUNT}/${_UF} 31 done 32 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr
| 4# 5 6EMBEDDEDBUILD=1 7EMBEDDED_TARGET="arm" 8EMBEDDED_TARGET_ARCH="armv6" 9EMBEDDEDPORTS="sysutils/u-boot-rpi" 10KERNEL="RPI-B" 11WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x2000000" 12IMAGE_SIZE="1G" 13PART_SCHEME="MBR" 14FAT_SIZE="17m" 15FAT_TYPE="16" 16MD_ARGS="-x 63 -y 255" 17NODOC=1 18 19arm_install_uboot() { 20 UBOOT_DIR="/usr/local/share/u-boot/u-boot-rpi" 21 UBOOT_FILES="bootcode.bin config.txt fixup.dat fixup_cd.dat \ 22 start.elf start_cd.elf u-boot.img" 23 FATMOUNT="${DESTDIR%${KERNEL}}/fat" 24 UFSMOUNT="${DESTDIR%${KERNEL}}/ufs" 25 chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}" 26 chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT} 27 chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT} 28 for _UF in ${UBOOT_FILES}; do 29 chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/${_UF} \ 30 ${FATMOUNT}/${_UF} 31 done 32 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr
|
| 33 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr.bin \ 34 ${FATMOUNT}/ubldr.bin
|
33 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/dtb/rpi.dtb \ 34 ${FATMOUNT}/rpi.dtb 35 chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot 36 sync 37 umount_loop ${CHROOTDIR}/${FATMOUNT} 38 umount_loop ${CHROOTDIR}/${UFSMOUNT} 39 chroot ${CHROOTDIR} rmdir ${FATMOUNT} 40 chroot ${CHROOTDIR} rmdir ${UFSMOUNT} 41 42 return 0 43}
| 35 chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/dtb/rpi.dtb \ 36 ${FATMOUNT}/rpi.dtb 37 chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot 38 sync 39 umount_loop ${CHROOTDIR}/${FATMOUNT} 40 umount_loop ${CHROOTDIR}/${UFSMOUNT} 41 chroot ${CHROOTDIR} rmdir ${FATMOUNT} 42 chroot ${CHROOTDIR} rmdir ${UFSMOUNT} 43 44 return 0 45}
|