From nobody Sun Feb 05 01:56:51 2023 X-Original-To: uboot@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P8XZC5d7Pz3khfW for ; Sun, 5 Feb 2023 01:56:51 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P8XZC3WHpz4CQ8 for ; Sun, 5 Feb 2023 01:56:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675562211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QO7ni+bC3Xv8W9BEHYmliKA7bmg2Xzy56IeP51eY3HU=; b=rBdtE76hBAQJ/xsTTjp3a29CxTd/ainpkbTH7MvoHCiMPvEWRA13M4Nw1CudNEYUuu7Lvq tMRYRd79AEs0ryvhqfRMTqui8Fpx64hc41/8lMaY7ZSIm4goyOVnVLNLzgdhn++hrd0MDu TA7rrGZrHSW8ZVXv7DN8f+iBxmf1Vf21e+lwudv7Hcu4jAST7ER0txBxoYqlDynCgcmUHL iM9Wb9nE71u1yM33DsS3o7GacHH+MqxN7QR3LDpEJk9tV/EmU+JqRalXu2MzmiW+C1lcMs o45jlFAWg9fU4TsVkbU8Qp0rVNN7Cf+y7cvom74Bb4oi5WXyt+MHqt6mYSMIyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675562211; a=rsa-sha256; cv=none; b=B9oxpSRACAR6sLrbKFBC+gItZQikMr9OyTEvGP/OD+4GTKFCsZm6VXn1GZXlCyOBylHfXd PoPTWNkZlngHPy9Wx6L/Ludnl6BgKI2ai/9YTEbREDEGbm3Y8j38XDiDn6vr5V/mKN0og1 ql9l9Zq0FIcZp5JeUK41GFP9g2smQJDD1PHcWdqsQGMm/BfzpaSfkOo8yZ8Vrp+jDgO0oL fe37FoxLIGo3+vi06aXBvwc/PrqaCZSrPJn58BNZCkx8QZ26DasfHiC5JSqlsPh9XuhBTl 6SeONR80zNvj+w3oRQGCeae4Lx6kTD4+xnNIDMn8FoJ4BB3x26vZXM2tSMB0qw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P8XZC2ZWSzcbS for ; Sun, 5 Feb 2023 01:56:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3151upTg064607 for ; Sun, 5 Feb 2023 01:56:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3151upjZ064606 for uboot@FreeBSD.org; Sun, 5 Feb 2023 01:56:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: uboot@FreeBSD.org Subject: [Bug 269181] sysutils/u-boot-rpi-arm64: RPi4/8G fails to boot: "** Reading file would overwrite reserved memory **" Date: Sun, 05 Feb 2023 01:56:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: uboot@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-uboot List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-uboot@freebsd.org X-BeenThere: freebsd-uboot@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269181 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #1 from Mark Millard --- Just a possibility for possible further investigation . . . I did some experimenting and discovered that u-boot.bin and bootaa64.efi are being loaded to the same starting location. Probably U-Boot had been relocated before that point --and might be known relocate far enough way to not be a problem? I'll note that u-boot.bin is smaller than bootaa64.efi (at least for the ones I looked at). (RPi* firmware debug output to start with . . .) MESS:00:00:07.664888:0: Loaded 'u-boot.bin.2023.01.arm64' to 0x80000 size 0x93208 MESS:00:00:07.672108:0: Device tree loaded to 0x4000 (size 0xd3b9) (NOTE above [vs. later]: 0x80000 for where u-boot.bin was loaded.) . . . U-Boot> printenv . . . boot_efi_binary=3Dload ${devtype} ${devnum}:${distro_bootpart} ${kernel_add= r_r} efi/boot/bootaa64.efi; if fdt addr -q ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi . . . kernel_addr_r=3D0x00080000 . . . U-Boot> env run usb_boot . . . Found EFI removable media binary efi/boot/bootaa64.efi ** Reading file would overwrite reserved memory ** Failed to load 'efi/boot/bootaa64.efi' No UEFI binary known at 0x00080000 EFI LOAD FAILED: continuing... (NOTE vs. earlier: 0x80000 for where u-boot.bin was loaded and for where efi/boot/bootaa64.efi was to be loaded.) . . . U-Boot> echo load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi=20 load usb :1 0x00080000 efi/boot/bootaa64.efi . . . U-Boot> load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi=20=20=20=20=20 ** Reading file would overwrite reserved memory ** Failed to load 'efi/boot/bootaa64.efi' NOTE: I see the same double load (u-boot.bin and bootaa64.efi) to 0x00080000 for the prior 2020.10 of U-Boot. (May be it just does not check for such and it happened to work but was not guaranteed to? May be it is supposed to be okay? Unsure.) --=20 You are receiving this mail because: You are the assignee for the bug.=