From nobody Tue Sep 21 16:45:51 2021 X-Original-To: riscv@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 DC79517B6657 for ; Tue, 21 Sep 2021 16:45: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 4HDS3g5rMsz3LVr for ; Tue, 21 Sep 2021 16:45:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 A6726276A5 for ; Tue, 21 Sep 2021 16:45: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 18LGjpiu082363 for ; Tue, 21 Sep 2021 16:45:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 18LGjpEr082362 for riscv@FreeBSD.org; Tue, 21 Sep 2021 16:45: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: riscv@FreeBSD.org Subject: [Bug 258467] fails to boot on riscv: loader.efi Unhandled exception: Load access fault Date: Tue, 21 Sep 2021 16:45:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: riscv X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: maciphone2@googlemail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: riscv@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258467 --- Comment #7 from Klaus K=C3=BCchemann --- (In reply to Leandro Lupori from comment #6) yeah, but=20 I`ll try your approach to copy the archsw-block before defsw in /stand/uboot/common/main.c tonight, because the previous loader.efi worked . (while aarch64 doesn't have problems with the new loader-changes) the problem with this machine is : Physical memory chunk(s): 0x80000000 - 0x27fffffff, 8192 MB (2097152 pages) Excluded memory regions: 0x80000000 - 0x8001ffff, 0 MB ( 32 pages) NoAlloc NoDump 0xf6600000 - 0xf70ecfff, 10 MB ( 2797 pages) NoAlloc=20 Found 4 CPUs in the device tree Copyright (c) 1992-2021 The FreeBSD Project. ---- real memory =3D 8589934592 (8192 MB) Physical memory chunk(s): 0x0000000080020000 - 0x00000000f65fffff, 1985871872 bytes (484832 pages) 0x00000000f70ed000 - 0x000000027348dfff, 6379147264 bytes (1557409 pages) avail memory =3D 8337354752 (7951 MB) - every attempt(after u-boot) to access that regions results in panic but if = the OS is once booted everything is O.K. everything in u-boot is O.K. since opensbi tells u-boot to exclude these regions. but it seems that no mechanism exists to tell loader.efi the protected memo= ry parameters(while @mhorne made a patch for the booted OS as for opensbi) IIR= C. since I don`t know other code in the loader-changes that could trigger the relocation-issue I hope your failure analysis is also valid for riscv...tha= nks --=20 You are receiving this mail because: You are the assignee for the bug.=