- Increase the image size for RPI2 and IMX6-based boards from 1G
to 1.5G. - Use the 'conv=sync' dd(1) option to fix writing the u-boot.imx file to the md(4) device for IMX6-based boards. MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
64c9d60dad
commit
44ca01977c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316617
@ -9,7 +9,7 @@ EMBEDDED_TARGET_ARCH="armv6"
|
|||||||
EMBEDDEDPORTS="sysutils/u-boot-cubox-hummingboard"
|
EMBEDDEDPORTS="sysutils/u-boot-cubox-hummingboard"
|
||||||
KERNEL="IMX6"
|
KERNEL="IMX6"
|
||||||
WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x12000000"
|
WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x12000000"
|
||||||
IMAGE_SIZE="1G"
|
IMAGE_SIZE="1536M"
|
||||||
PART_SCHEME="MBR"
|
PART_SCHEME="MBR"
|
||||||
FAT_SIZE="50m -b 16384"
|
FAT_SIZE="50m -b 16384"
|
||||||
FAT_TYPE="16"
|
FAT_TYPE="16"
|
||||||
@ -23,7 +23,7 @@ arm_install_uboot() {
|
|||||||
FATMOUNT="${DESTDIR%${KERNEL}}/fat"
|
FATMOUNT="${DESTDIR%${KERNEL}}/fat"
|
||||||
UFSMOUNT="${DESTDIR%${KERNEL}}/ufs"
|
UFSMOUNT="${DESTDIR%${KERNEL}}/ufs"
|
||||||
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
|
||||||
of=/dev/${mddev} bs=512 seek=2
|
of=/dev/${mddev} bs=512 seek=2 conv=sync
|
||||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
||||||
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
||||||
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
||||||
|
@ -9,7 +9,7 @@ EMBEDDED_TARGET_ARCH="armv6"
|
|||||||
EMBEDDEDPORTS="sysutils/u-boot-rpi2"
|
EMBEDDEDPORTS="sysutils/u-boot-rpi2"
|
||||||
KERNEL="GENERIC"
|
KERNEL="GENERIC"
|
||||||
WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x2000000"
|
WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x2000000"
|
||||||
IMAGE_SIZE="1G"
|
IMAGE_SIZE="1536M"
|
||||||
PART_SCHEME="MBR"
|
PART_SCHEME="MBR"
|
||||||
FAT_SIZE="50m"
|
FAT_SIZE="50m"
|
||||||
FAT_TYPE="16"
|
FAT_TYPE="16"
|
||||||
|
@ -9,7 +9,7 @@ EMBEDDED_TARGET_ARCH="armv6"
|
|||||||
EMBEDDEDPORTS="sysutils/u-boot-wandboard"
|
EMBEDDEDPORTS="sysutils/u-boot-wandboard"
|
||||||
KERNEL="IMX6"
|
KERNEL="IMX6"
|
||||||
WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x12000000"
|
WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x12000000"
|
||||||
IMAGE_SIZE="1G"
|
IMAGE_SIZE="1536M"
|
||||||
PART_SCHEME="MBR"
|
PART_SCHEME="MBR"
|
||||||
FAT_SIZE="50m -b 16384"
|
FAT_SIZE="50m -b 16384"
|
||||||
FAT_TYPE="16"
|
FAT_TYPE="16"
|
||||||
@ -23,7 +23,7 @@ arm_install_uboot() {
|
|||||||
FATMOUNT="${DESTDIR%${KERNEL}}/fat"
|
FATMOUNT="${DESTDIR%${KERNEL}}/fat"
|
||||||
UFSMOUNT="${DESTDIR%${KERNEL}}/ufs"
|
UFSMOUNT="${DESTDIR%${KERNEL}}/ufs"
|
||||||
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
|
||||||
of=/dev/${mddev} bs=512 seek=2
|
of=/dev/${mddev} bs=512 seek=2 conv=sync
|
||||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
||||||
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
||||||
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
||||||
|
Loading…
Reference in New Issue
Block a user