diff --git a/sysutils/u-boot-master/Makefile b/sysutils/u-boot-master/Makefile index 48442f118c54..88464f01295c 100644 --- a/sysutils/u-boot-master/Makefile +++ b/sysutils/u-boot-master/Makefile @@ -1,251 +1,252 @@ # # Common infrastructure for u-boot ports # PORTNAME= u-boot PORTVERSION= ${UBOOT_VERSION} CATEGORIES= sysutils PKGNAMESUFFIX?= -${MODEL} MASTER_SITES= https://ftp.denx.de/pub/u-boot/ \ ftp://ftp.denx.de/pub/u-boot/ DIST_SUBDIR= u-boot MAINTAINER?= uboot@FreeBSD.org COMMENT= Cross-build das u-boot for model ${MODEL} LICENSE= GPLv2 BUILD_DEPENDS+= gsed:textproc/gsed \ swig:devel/swig \ dtc>=1.4.1:sysutils/dtc \ mkimage:sysutils/u-boot-tools \ ${PYTHON_PKGNAMEPREFIX}setuptools-pkg>=0:devel/py-setuptools-pkg@${PY_FLAVOR} BUILD_DEPENDS+= ${COMPILER}:devel/${COMPILER} USES= bison gmake python:3.7+,build shebangfix tar:bz2 BINARY_ALIAS= bison=${LOCALBASE}/bin/bison dtc=${LOCALBASE}/bin/dtc sed=gsed python3=${PYTHON_CMD} SHEBANG_FILES= tools/binman/binman arch/arm/mach-rockchip/make_fit_atf.py SSP_UNSAFE= yes UBOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX} INST= ${PREFIX}/${UBOOT_DIR} DESCR?= ${.CURDIR}/pkg-descr -MAKE_ARGS+= V=1 CROSS_COMPILE=${CROSS_COMPILE} PYTHON=${PYTHON_CMD} ${ARCHFLAGS} +MAKE_ENV+= V=1 CROSS_COMPILE=${CROSS_COMPILE} PYTHON=${PYTHON_CMD} CC=clang +MAKE_ARGS+= ${ARCHFLAGS} NO_ARCH= yes # Use upstreamed patches not yet mainlined PATCH_DIST_STRIP= -p1 PATCH_SITES+= https://patchwork.ozlabs.org/patch/ # Sanity checks .if !defined(MODEL) && !defined(BOARD_CONFIG) && !defined(FAMILY) MODEL= NONE IGNORE= is a metaport; there is nothing to build .else .if !defined(MODEL) IGNORE+= MODEL is not defined .endif .if !defined(BOARD_CONFIG) IGNORE+= BOARD_CONFIG is not defined .endif .if !defined(FAMILY) IGNORE+= FAMILY is not defined .endif .endif # Overrides for OMAP family UBOOT_PLIST_OMAP=u-boot.img MLO UBOOT_METADATA_OMAP_FILES= ${UBOOT_PLIST_OMAP} UBOOT_METADATA_OMAP_METHOD= file # Overrides for ALLWINNER family UBOOT_PLIST_ALLWINNER=u-boot-sunxi-with-spl.bin UBOOT_METADATA_ALLWINNER_FILES= ${UBOOT_PLIST_ALLWINNER} UBOOT_METADATA_ALLWINNER_METHOD= raw UBOOT_METADATA_ALLWINNER_RAW_OFFSET= 8 UBOOT_METADATA_ALLWINNER_RAW_BS= 1k # Overrides for ALLWINNER64 family UBOOT_PLIST_ALLWINNER64=${UBOOT_PLIST_ALLWINNER} UBOOT_ARCH_ALLWINNER64=aarch64 UBOOT_METADATA_ALLWINNER64_FILES= ${UBOOT_PLIST_ALLWINNER64} UBOOT_METADATA_ALLWINNER64_METHOD= raw UBOOT_METADATA_ALLWINNER64_RAW_OFFSET= 1 UBOOT_METADATA_ALLWINNER64_RAW_BS= 128k # Overrides for Zynq 7000 family UBOOT_PLIST_ZYNQ_7000=u-boot.img boot.bin uEnv.txt UBOOT_MOVE_ZYNQ_7000=${WRKSRC}/spl/boot.bin ${.CURDIR}/files/uEnv.txt # Overrides for RPI family 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 # Override for RK3328 family UBOOT_PLIST_RK3328= idbloader.img u-boot.itb UBOOT_ARCH_RK3328= aarch64 # Override for RK3399 family UBOOT_PLIST_RK3399= idbloader.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 # Override for QEMU family UBOOT_PLIST_QEMU= u-boot.bin # Uboot variables .if !defined(UBOOT_VERSION) && defined(UBOOT_VERSION_${FAMILY:tu}) UBOOT_VERSION=${UBOOT_VERSION_${FAMILY:tu}} .endif -UBOOT_VERSION?= 2021.07 +UBOOT_VERSION?= 2022.04 # If a slave port defines a PORTREVISION use it .if defined(U_BOOT_SLAVE_PORTREVISION_${UBOOT_VERSION}) PORTREVISION= ${U_BOOT_SLAVE_PORTREVISION_${UBOOT_VERSION}} .endif .if !defined(UBOOT_PLIST) && defined(UBOOT_PLIST_${FAMILY:tu}) UBOOT_PLIST=${UBOOT_PLIST_${FAMILY:tu}} .endif UBOOT_PLIST?=u-boot.img .if !defined(UBOOT_ARCH) && defined(UBOOT_ARCH_${FAMILY:tu}) UBOOT_ARCH=${UBOOT_ARCH_${FAMILY:tu}} .endif UBOOT_ARCH?= arm .if ${UBOOT_ARCH} == arm CROSS_COMPILE=arm-none-eabi- ARCHFLAGS=ARCH=${UBOOT_ARCH} .elif ${UBOOT_ARCH} == aarch64 CROSS_COMPILE=aarch64-none-elf- ARCHFLAGS=ARCH=arm .elif ${UBOOT_ARCH} == riscv64 CROSS_COMPILE=riscv64-none-elf- ARCHFLAGS=ARCH=riscv .else # Best guess for other architectures CROSS_COMPILE=${UBOOT_ARCH}-none-elf- ARCHFLAGS=ARCH=${UBOOT_ARCH} .endif COMPILER?=${CROSS_COMPILE}gcc .if !defined(UBOOT_MOVE) && defined(UBOOT_MOVE_${FAMILY:tu}) UBOOT_MOVE=${UBOOT_MOVE_${FAMILY:tu}} .endif # Per family dependancies .if defined(FAMILY) && ${FAMILY} == allwinner64 .if defined(SUBFAMILY) && ${SUBFAMILY} == h6 BUILD_DEPENDS+= ${LOCALBASE}/share/atf-sun50i_h6/bl31.bin:sysutils/atf-sun50i_h6 MAKE_ENV+= BL31=${LOCALBASE}/share/atf-sun50i_h6/bl31.bin .else BUILD_DEPENDS+= ${LOCALBASE}/share/atf-sun50i_a64/bl31.bin:sysutils/atf-sun50i_a64 MAKE_ENV+= BL31=${LOCALBASE}/share/atf-sun50i_a64/bl31.bin .endif .endif .if defined(FAMILY) && ${FAMILY} == rk3328 BUILD_DEPENDS+= ${LOCALBASE}/share/atf-rk3328/bl31.elf:sysutils/atf-rk3328 \ ${PYTHON_PKGNAMEPREFIX}pyelftools>0:devel/py-pyelftools@${PY_FLAVOR} MAKE_ENV+= BL31=${LOCALBASE}/share/atf-rk3328/bl31.elf .endif .if defined(FAMILY) && ${FAMILY} == rk3399 BUILD_DEPENDS+= ${LOCALBASE}/share/atf-rk3399/bl31.elf:sysutils/atf-rk3399 \ ${PYTHON_PKGNAMEPREFIX}pyelftools>0:devel/py-pyelftools@${PY_FLAVOR} MAKE_ENV+= BL31=${LOCALBASE}/share/atf-rk3399/bl31.elf .endif # Each u-boot family has different files to include, bring them in. .for i in ${UBOOT_PLIST} PLIST_FILES+= ${UBOOT_DIR}/${i} .endfor PLIST_FILES+= ${UBOOT_DIR}/README .if defined(PLIST_EXTRAS) .for i in ${PLIST_EXTRAS} PLIST_FILES+= ${UBOOT_DIR}/${i} .endfor .endif .if !defined(NO_METADATA) .if defined(UBOOT_METADATA_${FAMILY:tu}_METHOD) METADATA_METHOD=${UBOOT_METADATA_${FAMILY:tu}_METHOD} METADATA_FILES=${UBOOT_METADATA_${FAMILY:tu}_FILES} PLIST_FILES+= ${UBOOT_DIR}/metadata UBOOT_PLIST+= metadata .if ${METADATA_METHOD} == "raw" METADATA_OFFSET=${UBOOT_METADATA_${FAMILY:tu}_RAW_OFFSET} METADATA_BS=${UBOOT_METADATA_${FAMILY:tu}_RAW_BS} .elif ${METADATA_METHOD} == "file" .else .error "Unsupported METADATA_METHOD" .endif .endif .endif post-patch: @${REINPLACE_CMD} -e "s|make|${MAKE_CMD}|" ${WRKSRC}/scripts/kconfig/merge_config.sh .if defined(METADATA_METHOD) @echo "METHOD=uboot-${METADATA_METHOD}" > ${WRKSRC}/metadata @echo "FILES=\"${METADATA_FILES}\"" >> ${WRKSRC}/metadata .if ${METADATA_METHOD} == "raw" @echo "OFFSET=${METADATA_OFFSET}" >> ${WRKSRC}/metadata @echo "BS=${METADATA_BS}" >> ${WRKSRC}/metadata .elif ${METADATA_METHOD} == "file" .endif .endif .if ${UBOOT_ARCH} == arm && !defined(CONFIG_FRAGMENT) # For armv6/v7 we want do disable secure mode and cache cleaning # Use a KConfig fragment for that FRAGMENT_NAME= FreeBSD_Fragment CONFIG_FRAGMENT= ${FILESDIR}/${FRAGMENT_NAME} .endif .if defined(CONFIG_FRAGMENT) do-configure: ${CP} ${CONFIG_FRAGMENT} ${WRKSRC}/configs/ - (cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} scripts/kconfig/merge_config.sh configs/${BOARD_CONFIG} configs/${FRAGMENT_NAME}) + (cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} scripts/kconfig/merge_config.sh configs/${BOARD_CONFIG} configs/${FRAGMENT_NAME}) .else do-configure: - (cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${MAKE_CMD} ${BOARD_CONFIG}) + (cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${BOARD_CONFIG}) .endif post-build: .if defined(UBOOT_EXTRA_TARGETS) .for i in ${UBOOT_EXTRA_TARGETS} (cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${i}) .endfor .endif # If we need to put anything into WRKSRC, do so now so we can build the PLIST # in do-install .if defined(UBOOT_MOVE) pre-install: ${CP} ${UBOOT_MOVE} ${WRKSRC} .endif do-install: ${MKDIR} ${STAGEDIR}/${INST} .for i in ${UBOOT_PLIST} ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}/${INST} .endfor ${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${INST}/README .include diff --git a/sysutils/u-boot-master/distinfo b/sysutils/u-boot-master/distinfo index 77609bffddd3..89c967a085a6 100644 --- a/sysutils/u-boot-master/distinfo +++ b/sysutils/u-boot-master/distinfo @@ -1,15 +1,13 @@ -TIMESTAMP = 1636485856 -SHA256 (u-boot/u-boot-2021.07.tar.bz2) = 312b7eeae44581d1362c3a3f02c28d806647756c82ba8c72241c7cdbe68ba77e -SIZE (u-boot/u-boot-2021.07.tar.bz2) = 17275746 +TIMESTAMP = 1651502800 +SHA256 (u-boot/u-boot-2022.04.tar.bz2) = 68e065413926778e276ec3abd28bb32fa82abaa4a6898d570c1f48fbdb08bcd0 +SIZE (u-boot/u-boot-2022.04.tar.bz2) = 17772787 SHA256 (u-boot/939129/raw) = 2a4ebf283aec8e74ec77b3cb071c6883f73807454ca94fea78361c7391187b97 SIZE (u-boot/939129/raw) = 310 SHA256 (u-boot/1036621/raw) = 28dbd66d14fab9dc782ce091d3c132a226b8425f6503c329ee8a7031b79b52f7 SIZE (u-boot/1036621/raw) = 480 SHA256 (u-boot/1173473/raw) = 4f182d6f99b1d868237607200d64a1d8a2d57ea44fc25ca49bce929ad6457228 SIZE (u-boot/1173473/raw) = 433 SHA256 (u-boot/1172554/raw) = d1a39d7d6487cfb481392e7ea4f0bf0d209c08e0c3426c29d7eeaeb9b806cf42 SIZE (u-boot/1172554/raw) = 640 SHA256 (u-boot/1172555/raw) = 09d17a62fb6bc7c7ab73bfc7061fc5da2b5a32e7deb098c9f76aed8ff8991751 SIZE (u-boot/1172555/raw) = 568 -SHA256 (u-boot/1547145/raw) = 50c6280a5db419597de451be3e89a8660c9f913767af205a4add79a8db6b89ce -SIZE (u-boot/1547145/raw) = 372 diff --git a/sysutils/u-boot-master/files/patch-common__bootm.c b/sysutils/u-boot-master/files/patch-common__bootm.c deleted file mode 100644 index 78c13d80fc70..000000000000 --- a/sysutils/u-boot-master/files/patch-common__bootm.c +++ /dev/null @@ -1,31 +0,0 @@ -From 7d25c0b01248fbfbbcdf668cc1c080fe0b54978f Mon Sep 17 00:00:00 2001 -From: Emmanuel Vadot -Date: Sat, 7 Nov 2020 19:42:31 +0100 -Subject: [PATCH 2/2] Add FreeBSD hack that does not disable usb when - efi_exit_boot_service is called -Content-Type: text/plain; charset=UTF-8 - ---- - common/bootm.c | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/common/bootm.c b/common/bootm.c -index b3377490b3..22476fc7c9 100644 ---- common/bootm.c -+++ common/bootm.c -@@ -458,7 +458,12 @@ ulong bootm_disable_interrupts(void) - * updated every 1 ms within the HCCA structure in SDRAM! For more - * details see the OpenHCI specification. - */ -+ /* -+ * FreeBSD Hack, on some board this cause efi_exit_bootservice to hang -+ * for some yet unknown reason. -+ * This only does this when doing netboot ??? - usb_stop(); -+ */ - #endif - return iflag; - } --- -2.28.0 - diff --git a/sysutils/u-boot-rpi-0-w/Makefile b/sysutils/u-boot-rpi-0-w/Makefile index 267647371cd5..37cd2a34ad81 100644 --- a/sysutils/u-boot-rpi-0-w/Makefile +++ b/sysutils/u-boot-rpi-0-w/Makefile @@ -1,17 +1,14 @@ MASTERDIR= ${.CURDIR}/../u-boot-master -U_BOOT_SLAVE_PORTREVISION_2021.07= 1 - -PATCHFILES+= 939129/raw \ - 1547145/raw +PATCHFILES+= 939129/raw MODEL= rpi-0-w BOARD_CONFIG= rpi_0_w_defconfig FAMILY= rpi DEPENDS= ${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware CONFIG_FRAGMENT= ${.CURDIR}/files/rpi_0_w_fragment FRAGMENT_NAME= rpi_0_w_fragment .include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-rpi-arm64/Makefile b/sysutils/u-boot-rpi-arm64/Makefile index a314b98bc4f0..9e25dd915601 100644 --- a/sysutils/u-boot-rpi-arm64/Makefile +++ b/sysutils/u-boot-rpi-arm64/Makefile @@ -1,19 +1,16 @@ MASTERDIR= ${.CURDIR}/../u-boot-master -U_BOOT_SLAVE_PORTREVISION_2021.07= 1 - EXTRA_PATCHES= ${.CURDIR}/files/ -PATCHFILES+= 939129/raw \ - 1547145/raw +PATCHFILES+= 939129/raw MODEL= rpi-arm64 BOARD_CONFIG= rpi_arm64_defconfig FAMILY= rpi UBOOT_ARCH= aarch64 DEPENDS= ${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware CONFIG_FRAGMENT= ${.CURDIR}/files/rpi_arm64_fragment FRAGMENT_NAME= rpi_arm64_fragment .include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-rpi/Makefile b/sysutils/u-boot-rpi/Makefile index da431f73c537..52de21af33e1 100644 --- a/sysutils/u-boot-rpi/Makefile +++ b/sysutils/u-boot-rpi/Makefile @@ -1,17 +1,14 @@ MASTERDIR= ${.CURDIR}/../u-boot-master -U_BOOT_SLAVE_PORTREVISION_2021.07= 1 - -PATCHFILES+= 939129/raw \ - 1547145/raw +PATCHFILES+= 939129/raw MODEL= rpi BOARD_CONFIG= rpi_defconfig FAMILY= rpi DEPENDS= ${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware CONFIG_FRAGMENT= ${.CURDIR}/files/rpi_fragment FRAGMENT_NAME= rpi_fragment .include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-rpi2/Makefile b/sysutils/u-boot-rpi2/Makefile index f89bfe0dd914..f875b8840cab 100644 --- a/sysutils/u-boot-rpi2/Makefile +++ b/sysutils/u-boot-rpi2/Makefile @@ -1,17 +1,14 @@ MASTERDIR= ${.CURDIR}/../u-boot-master -U_BOOT_SLAVE_PORTREVISION_2021.07= 1 - -PATCHFILES+= 939129/raw \ - 1547145/raw +PATCHFILES+= 939129/raw MODEL= rpi2 BOARD_CONFIG= rpi_2_defconfig FAMILY= rpi DEPENDS= ${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware CONFIG_FRAGMENT= ${.CURDIR}/files/rpi2_fragment FRAGMENT_NAME= rpi2_fragment .include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-rpi3/Makefile b/sysutils/u-boot-rpi3/Makefile index 80839124f365..b708f98830b3 100644 --- a/sysutils/u-boot-rpi3/Makefile +++ b/sysutils/u-boot-rpi3/Makefile @@ -1,19 +1,16 @@ MASTERDIR= ${.CURDIR}/../u-boot-master -U_BOOT_SLAVE_PORTREVISION_2021.07= 1 - EXTRA_PATCHES?= ${.CURDIR}/files/ -PATCHFILES+= 939129/raw \ - 1547145/raw +PATCHFILES+= 939129/raw MODEL?= rpi3 BOARD_CONFIG?= rpi_3_defconfig FAMILY= rpi UBOOT_ARCH?= aarch64 DEPENDS= ${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware CONFIG_FRAGMENT= ${.CURDIR}/../u-boot-rpi3/files/rpi3_fragment FRAGMENT_NAME= rpi3_fragment .include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-rpi4/Makefile b/sysutils/u-boot-rpi4/Makefile index 11b2636a6cdf..676ca4a77ffd 100644 --- a/sysutils/u-boot-rpi4/Makefile +++ b/sysutils/u-boot-rpi4/Makefile @@ -1,19 +1,16 @@ MASTERDIR= ${.CURDIR}/../u-boot-master -U_BOOT_SLAVE_PORTREVISION_2021.07= 1 - EXTRA_PATCHES= ${.CURDIR}/files/ -PATCHFILES+= 939129/raw \ - 1547145/raw +PATCHFILES+= 939129/raw MODEL= rpi4 BOARD_CONFIG= rpi_4_defconfig FAMILY= rpi UBOOT_ARCH= aarch64 DEPENDS= ${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware CONFIG_FRAGMENT= ${.CURDIR}/files/rpi4_fragment FRAGMENT_NAME= rpi4_fragment .include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-sifive-fu540/Makefile b/sysutils/u-boot-sifive-fu540/Makefile index 3fba52d998dc..5f79e53b93d8 100644 --- a/sysutils/u-boot-sifive-fu540/Makefile +++ b/sysutils/u-boot-sifive-fu540/Makefile @@ -1,18 +1,16 @@ MASTERDIR= ${.CURDIR}/../u-boot-master -U_BOOT_SLAVE_PORTREVISION_2021.07=1 - MODEL= sifive-fu540 BOARD_CONFIG= sifive_unleashed_defconfig FAMILY= sifive UBOOT_ARCH= riscv64 # The FIT image will embed an OpenSBI firmware binary OPENSBI_FIRM= ${LOCALBASE}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin BUILD_DEPENDS+= ${OPENSBI_FIRM}:sysutils/opensbi MAKE_ENV+= OPENSBI=${OPENSBI_FIRM} UBOOT_MOVE= ${WRKSRC}/spl/u-boot-spl.bin UBOOT_PLIST= u-boot.itb u-boot-spl.bin .include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-sopine-spi/Makefile b/sysutils/u-boot-sopine-spi/Makefile index be0ea6e4436d..16a7105b54c6 100644 --- a/sysutils/u-boot-sopine-spi/Makefile +++ b/sysutils/u-boot-sopine-spi/Makefile @@ -1,23 +1,25 @@ MASTERDIR= ${.CURDIR}/../u-boot-master MODEL= sopine-spi BOARD_CONFIG= sopine_baseboard_defconfig FAMILY= allwinner64 +EXTRA_PATCHES?= ${.CURDIR}/files/ + CONFIG_FRAGMENT= ${.CURDIR}/../u-boot-sopine-spi/files/spi_fragment FRAGMENT_NAME= spi_fragment NO_METADATA= yes UBOOT_PLIST= u-boot-sunxi-with-spl.bin \ boot.scr PLIST_EXTRAS= sopine-spi-flasher.img post-build: mkimage -C none -A arm64 -T script -d ${.CURDIR}/../u-boot-sopine-spi/files/boot.cmd ${WRKSRC}/boot.scr post-stage: makefs -t msdos -s 5m ${WRKDIR}/sopine-spi-flash.msdos ${STAGEDIR}/${INST} mkimg -v -s mbr -p fat32::5M:1M -o ${STAGEDIR}/${INST}/sopine-spi-flasher.img dd if=${WRKDIR}/sopine-spi-flash.msdos of=${STAGEDIR}/${INST}/sopine-spi-flasher.img bs=1M oseek=1 conv=notrunc dd if=${STAGEDIR}/${INST}/u-boot-sunxi-with-spl.bin of=${STAGEDIR}/${INST}/sopine-spi-flasher.img bs=1k oseek=8 conv=notrunc .include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-sopine-spi/files/patch-board_sunxi_board.c b/sysutils/u-boot-sopine-spi/files/patch-board_sunxi_board.c new file mode 100644 index 000000000000..e8bde74a0597 --- /dev/null +++ b/sysutils/u-boot-sopine-spi/files/patch-board_sunxi_board.c @@ -0,0 +1,11 @@ +--- board/sunxi/board.c.orig 2022-05-03 09:13:36.019124000 +0200 ++++ board/sunxi/board.c 2022-05-03 09:13:47.210925000 +0200 +@@ -601,7 +601,7 @@ + case BOOT_DEVICE_MMC2: + return 1; + default: +- return CONFIG_SYS_MMC_ENV_DEV; ++ return 0; + } + } + #endif diff --git a/sysutils/u-boot-sopine-spi/files/spi_fragment b/sysutils/u-boot-sopine-spi/files/spi_fragment index ac8e94c95b69..eb5121d4341e 100644 --- a/sysutils/u-boot-sopine-spi/files/spi_fragment +++ b/sysutils/u-boot-sopine-spi/files/spi_fragment @@ -1,5 +1,6 @@ CONFIG_ENV_SIZE=0x20000 CONFIG_ENV_OFFSET=0x100000 CONFIG_ENV_SECT_SIZE=0x10000 CONFIG_ENV_IS_IN_FAT=n CONFIG_ENV_IS_IN_SPI_FLASH=y +CONFIG_SYS_MMC_ENV_DEV=0