From owner-svn-ports-all@freebsd.org Tue Dec 15 15:02:41 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F2264B8CE3; Tue, 15 Dec 2020 15:02:41 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CwM1s29m0z4SLT; Tue, 15 Dec 2020 15:02:41 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3D96415E2D; Tue, 15 Dec 2020 15:02:41 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BFF2fYC094447; Tue, 15 Dec 2020 15:02:41 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0BFF2ewT094443; Tue, 15 Dec 2020 15:02:40 GMT (envelope-from manu@FreeBSD.org) Message-Id: <202012151502.0BFF2ewT094443@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Tue, 15 Dec 2020 15:02:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r558161 - in head/sysutils: . u-boot-rpi-arm64 u-boot-rpi-arm64/files X-SVN-Group: ports-head X-SVN-Commit-Author: manu X-SVN-Commit-Paths: in head/sysutils: . u-boot-rpi-arm64 u-boot-rpi-arm64/files X-SVN-Commit-Revision: 558161 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2020 15:02:41 -0000 Author: manu Date: Tue Dec 15 15:02:39 2020 New Revision: 558161 URL: https://svnweb.freebsd.org/changeset/ports/558161 Log: sysutils/u-boot-rpi-arm64: Add new port This u-boot is intended to boot on all 64bits variants of the RPI boards like the RPI2v1.1, RPI3* and RPI* Suggested by: karels Added: head/sysutils/u-boot-rpi-arm64/ head/sysutils/u-boot-rpi-arm64/Makefile (contents, props changed) head/sysutils/u-boot-rpi-arm64/files/ head/sysutils/u-boot-rpi-arm64/files/patch-lib_efi__loader_efi__console.c (contents, props changed) head/sysutils/u-boot-rpi-arm64/files/rpi_arm64_fragment (contents, props changed) head/sysutils/u-boot-rpi-arm64/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Tue Dec 15 12:55:21 2020 (r558160) +++ head/sysutils/Makefile Tue Dec 15 15:02:39 2020 (r558161) @@ -1404,6 +1404,7 @@ SUBDIR += u-boot-rpi3 SUBDIR += u-boot-rpi3-32 SUBDIR += u-boot-rpi4 + SUBDIR += u-boot-rpi-arm64 SUBDIR += u-boot-sinovoip-bpi-m3 SUBDIR += u-boot-sopine SUBDIR += u-boot-sopine-spi Added: head/sysutils/u-boot-rpi-arm64/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/u-boot-rpi-arm64/Makefile Tue Dec 15 15:02:39 2020 (r558161) @@ -0,0 +1,18 @@ +# $FreeBSD$ + +MASTERDIR= ${.CURDIR}/../u-boot-master + +EXTRA_PATCHES= ${.CURDIR}/files/ +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" Added: head/sysutils/u-boot-rpi-arm64/files/patch-lib_efi__loader_efi__console.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/u-boot-rpi-arm64/files/patch-lib_efi__loader_efi__console.c Tue Dec 15 15:02:39 2020 (r558161) @@ -0,0 +1,13 @@ +--- lib/efi_loader/efi_console.c.orig 2018-03-13 12:02:19 UTC ++++ lib/efi_loader/efi_console.c +@@ -547,8 +547,8 @@ int efi_console_register(void) + printf("ERROR: Failed to register console event\n"); + return r; + } +- /* 5000 ns cycle is sufficient for 2 MBaud */ +- r = efi_set_timer(console_timer_event, EFI_TIMER_PERIODIC, 50); ++ /* 100 ms */ ++ r = efi_set_timer(console_timer_event, EFI_TIMER_PERIODIC, 100*1000*10); + if (r != EFI_SUCCESS) + printf("ERROR: Failed to set console timer\n"); + return r; Added: head/sysutils/u-boot-rpi-arm64/files/rpi_arm64_fragment ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/u-boot-rpi-arm64/files/rpi_arm64_fragment Tue Dec 15 15:02:39 2020 (r558161) @@ -0,0 +1,2 @@ +CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" +CONFIG_RPI_EFI_NR_SPIN_PAGES=2 Added: head/sysutils/u-boot-rpi-arm64/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/u-boot-rpi-arm64/pkg-descr Tue Dec 15 15:02:39 2020 (r558161) @@ -0,0 +1,6 @@ +U-Boot loader and related files for the 64 bit variants of the RPI + +This u-boot config is made to be bootable on any 64bits RPI like the RPI2v1.1 +RPI3 and RPI4. + +For general information about U-Boot see WWW: https://www.denx.de/wiki/U-Boot