Index: head/sysutils/Makefile =================================================================== --- head/sysutils/Makefile +++ head/sysutils/Makefile @@ -1371,6 +1371,7 @@ SUBDIR += u-boot-bananapim2 SUBDIR += u-boot-beaglebone SUBDIR += u-boot-chip + SUBDIR += u-boot-clearfog SUBDIR += u-boot-cubieboard SUBDIR += u-boot-cubieboard2 SUBDIR += u-boot-cubox-hummingboard Index: head/sysutils/u-boot-clearfog/Makefile =================================================================== --- head/sysutils/u-boot-clearfog/Makefile +++ head/sysutils/u-boot-clearfog/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +MASTERDIR= ${.CURDIR}/../u-boot-master + +MODEL= clearfog +BOARD_CONFIG= clearfog_defconfig +FAMILY= armada38x + +.include "${MASTERDIR}/Makefile" Index: head/sysutils/u-boot-clearfog/pkg-descr =================================================================== --- head/sysutils/u-boot-clearfog/pkg-descr +++ head/sysutils/u-boot-clearfog/pkg-descr @@ -0,0 +1,9 @@ +U-Boot loader for the SolidRun ClearFog Pro. + +Install the u-boot-spl.kwb file onto the boot disk using: + + dd if=u-boot-spl.kwb of=/dev/whatever bs=512 seek=1 + +The BootROM searches for U-Boot after the first 512 bytes. + +WWW: https://www.denx.de/wiki/U-Boot Index: head/sysutils/u-boot-master/Makefile =================================================================== --- head/sysutils/u-boot-master/Makefile +++ head/sysutils/u-boot-master/Makefile @@ -93,6 +93,13 @@ UBOOT_PLIST_RK3399= idbspl.img u-boot.itb UBOOT_ARCH_RK3399= aarch64 +# Override for ARMADA38X family +UBOOT_PLIST_ARMADA38X= u-boot-spl.kwb +UBOOT_METADATA_ARMADA38X_FILES= ${UBOOT_PLIST_ARMADA38X} +UBOOT_METADATA_ARMADA38X_METHOD= raw +UBOOT_METADATA_ARMADA38X_RAW_OFFSET= 1 +UBOOT_METADATA_ARMADA38X_RAW_BS= 512 + # Uboot variables .if !defined(UBOOT_VERSION) && defined(UBOOT_VERSION_${FAMILY:tu}) UBOOT_VERSION=${UBOOT_VERSION_${FAMILY:tu}}