Date: Fri, 10 Aug 2018 15:49:13 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r476839 - in head/sysutils: u-boot-beaglebone u-boot-beaglebone/files u-boot-master u-boot-master/files u-boot-riotboard Message-ID: <201808101549.w7AFnDxZ053184@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu (src committer) Date: Fri Aug 10 15:49:13 2018 New Revision: 476839 URL: https://svnweb.freebsd.org/changeset/ports/476839 Log: sysutils/u-boot-master etc.: u-boot Improvement for 2018.07 - Add metadata for IMX6 family - While here rename the riotboard family to IMX6 as it should have been - Remove the cache patches, they aren't needed anymore. I should have checked that with the 2018.07 update - beaglebone use a custom bootcmd that calls envboot, this command will try to load and source the file boot.scr (u-boot script) from the mmc. For some reason it seems to corrupts some memory or something because loading and executing ubldr.bin after running this command will either hang or cause an exception on undefined instruction. I'll check with upstream but in the meantime use a special fragment that redefine the bootcmd. Note that since u-boot will load the environment from the eMMC, one need to 'env default -f -a; saveenv' to have the bootcmd variable correctly redefined. Reviewed by: imp Approved by: imp Differential Revision: https://reviews.freebsd.org/D16599 Added: head/sysutils/u-boot-beaglebone/files/ head/sysutils/u-boot-beaglebone/files/bbb_fragment (contents, props changed) Deleted: head/sysutils/u-boot-master/files/patch-api_api.c head/sysutils/u-boot-master/files/patch-cmd_boot.c head/sysutils/u-boot-master/files/patch-cmd_elf.c Modified: head/sysutils/u-boot-beaglebone/Makefile head/sysutils/u-boot-master/Makefile head/sysutils/u-boot-riotboard/Makefile Modified: head/sysutils/u-boot-beaglebone/Makefile ============================================================================== --- head/sysutils/u-boot-beaglebone/Makefile Fri Aug 10 14:55:06 2018 (r476838) +++ head/sysutils/u-boot-beaglebone/Makefile Fri Aug 10 15:49:13 2018 (r476839) @@ -6,4 +6,7 @@ MODEL= beaglebone BOARD_CONFIG= am335x_boneblack_defconfig FAMILY= omap +CONFIG_FRAGMENT= ${.CURDIR}/files/bbb_fragment +FRAGMENT_NAME= bbb_fragment + .include "${MASTERDIR}/Makefile" Added: head/sysutils/u-boot-beaglebone/files/bbb_fragment ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/u-boot-beaglebone/files/bbb_fragment Fri Aug 10 15:49:13 2018 (r476839) @@ -0,0 +1,4 @@ +CONFIG_API=y +CONFIG_ARMV7_NONSEC=n +CONFIG_CMD_CACHE=y +CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run distro_bootcmd" Modified: head/sysutils/u-boot-master/Makefile ============================================================================== --- head/sysutils/u-boot-master/Makefile Fri Aug 10 14:55:06 2018 (r476838) +++ head/sysutils/u-boot-master/Makefile Fri Aug 10 15:49:13 2018 (r476839) @@ -5,7 +5,7 @@ PORTNAME= u-boot PORTVERSION= ${UBOOT_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils PKGNAMESUFFIX?= -${MODEL} MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/ @@ -83,6 +83,12 @@ UBOOT_MOVE_ZYNQ_7000=${WRKSRC}/spl/boot.bin ${.CURDIR} UBOOT_PLIST_RPI= u-boot.bin UBOOT_METADATA_RPI_FILES= ${UBOOT_PLIST_RPI} UBOOT_METADATA_RPI_METHOD= file + +# Overrides for IMX6 family +UBOOT_METADATA_IMX6_FILES= u-boot.imx +UBOOT_METADATA_IMX6_METHOD= raw +UBOOT_METADATA_IMX6_RAW_OFFSET= 2 +UBOOT_METADATA_IMX6_RAW_BS= 512 # Uboot variables .if !defined(UBOOT_VERSION) && defined(UBOOT_VERSION_${FAMILY:tu}) Modified: head/sysutils/u-boot-riotboard/Makefile ============================================================================== --- head/sysutils/u-boot-riotboard/Makefile Fri Aug 10 14:55:06 2018 (r476838) +++ head/sysutils/u-boot-riotboard/Makefile Fri Aug 10 15:49:13 2018 (r476839) @@ -4,7 +4,7 @@ MASTERDIR= ${.CURDIR}/../u-boot-master MODEL= riotboard BOARD_CONFIG= riotboard_defconfig -FAMILY= riotboard +FAMILY= imx6 UBOOT_PLIST= u-boot.imx
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808101549.w7AFnDxZ053184>