From owner-dev-commits-src-main@freebsd.org Tue Sep 21 10:03:35 2021 Return-Path: Delivered-To: dev-commits-src-main@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 1794566F5BF for ; Tue, 21 Sep 2021 10:03:35 +0000 (UTC) (envelope-from tsoome@me.com) Received: from pv50p00im-zteg10021301.me.com (pv50p00im-zteg10021301.me.com [17.58.6.46]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4HDH7V6cZmz3tPM for ; Tue, 21 Sep 2021 10:03:34 +0000 (UTC) (envelope-from tsoome@me.com) Received: from smtpclient.apple (unknown [91.209.240.229]) by pv50p00im-zteg10021301.me.com (Postfix) with ESMTPSA id 4B859CC04B9; Tue, 21 Sep 2021 10:03:26 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: git: b4cb3fe0e39a - main - loader: implement mount/unmount rootfs From: Toomas Soome In-Reply-To: <20210921120152.a76525d0849640320b2b156e@bidouilliste.com> Date: Tue, 21 Sep 2021 13:03:22 +0300 Cc: "Bjoern A. Zeeb" , Toomas Soome , "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <202109081249.188CncXF065953@gitrepo.freebsd.org> <20210921120152.a76525d0849640320b2b156e@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-09-21_01:2021-09-20, 2021-09-21 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2109210064 X-Rspamd-Queue-Id: 4HDH7V6cZmz3tPM X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: dev-commits-src-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for the main branch of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2021 10:03:35 -0000 > On 21. Sep 2021, at 13:01, Emmanuel Vadot = wrote: >=20 > On Mon, 20 Sep 2021 19:46:07 +0000 (UTC) > "Bjoern A. Zeeb" wrote: >=20 >> On Wed, 8 Sep 2021, Toomas Soome wrote: >>=20 >>> The branch main has been updated by tsoome: >>>=20 >>> URL: = https://cgit.FreeBSD.org/src/commit/?id=3Db4cb3fe0e39a31e60292018dc9fb7510= b3de92bf >>>=20 >>> commit b4cb3fe0e39a31e60292018dc9fb7510b3de92bf >>> Author: Toomas Soome >>> AuthorDate: 2021-08-12 05:45:52 +0000 >>> Commit: Toomas Soome >>> CommitDate: 2021-09-08 01:01:20 +0000 >>>=20 >>> loader: implement mount/unmount rootfs >>>=20 >>> We want to keep our root file system open to preserve bcache = segment >>> between file accesses, thus reducing physical disk IO. >>>=20 >>> Reviewed by: imp, allanjude, kevans (previous version) >>> Differential Revision: https://reviews.freebsd.org/D30848 >>> MFC after: 1 month >>=20 >>=20 >> This makes netbooting on at least one of my arm64 impossible: >>=20 >> = ------------------------------------------------------------------------ >> Consoles: serial port >> Reading loader env vars from /efi/freebsd/loader.env >> FreeBSD/arm64 EFI loader, Revision 1.1 >> (Mon Sep 20 13:12:35 UTC 2021 root@localhost) >>=20 >> Command line arguments: loader.efi >> Image base: 0xeb7e9000 >> EFI version: 2.70 >> EFI Firmware: EDK II (rev 1.00) >> Console: comconsole (0) >> Load Path: >> Load Device: MAC(xxxxxxxxxxxx,0x1)/IPv4(0.0.0.0) >> BootCurrent: 0004 >> BootOrder: 0000 0001 0002 0003 0008 0004[*] 0005 0006 0007 >> BootInfo Path: MAC(xxxxxxxxxxxx,0x1)/IPv4(0.0.0.0) >> Ignoring Boot0004: Only one DP found >> Setting currdev to net0: >>=20 >>=20 >> Synchronous Exception at 0x00000000EB8217A8 >>=20 >> = ------------------------------------------------------------------------ >>=20 >> I've backed out this change and rebuild and things boot fine again. >>=20 >> Any idea what I could try? >>=20 >>=20 >> /bz >>=20 >> --=20 >> Bjoern A. Zeeb = r15:7 >=20 > Same thing for me on u-boot based systems : Ye, it seems to be the same issue, UEFI netboot is broken, = investigating. sorry, toomas >=20 > Consoles: EFI > console Reading loader env vars > from /efi/freebsd/loader.env FreeBSD/arm64 EFI loader, Revision > 1.1=20 > Command line arguments: > loader.efi Image base: > 0xfbde0000 EFI version: > 2.80 EFI Firmware: Das U-Boot (rev > 8225.1792) Console: comconsole > (0) Load > Path: /aarch64\loader.efi Load > Device: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/MAC(86e0c0eafaa9,1) > Setting currdev to net0: Speed: 1000, full > duplex net0: cannot set rx. filters > (status=3D3) "Synchronous Abort" handler, esr > 0x96000004 elr: fffffffffd0f1b9c lr : fffffffffd0effb4 > (reloc) elr: 00000000fbe37b9c lr : > 00000000fbe35fb4 x0 : fbee447500000000 x1 : > 0000000000000020 x2 : 0000000000000001 x3 : > 00000000fbee4452 x4 : 0000000000000073 x5 : > 0000000000000050 x6 : 00000000fbe357a4 x7 : > 0000000000000000 x8 : fbee447500000000 x9 : > fbee447500000000 x10: 0000000000000000 x11: > 00000000fbee3b86 x12: 0000000000000000 x13: > 0000000000000000 x14: 0000000000000000 x15: > 0000000000000000 x16: 0000000000000000 x17: > 0000000000000000 x18: 0000000000000000 x19: > 0000000000000020 x20: 00000000fbf05df8 x21: > 0000000000000000 x22: 0000000000000000 x23: > fbee447500000000 x24: 0000000000000000 x25: > 00000000fbf079b0 x26: 00000000fbee4453 x27: > 00000000fbf079b0 x28: 00000000fbee79ee x29: > 00000000fbf05d50=20 > Code: 8b090100 d65f03c0 927df009 aa0903e8 > (f840850b) UEFI image [0x00000000fbde0000:0x00000000fbf14e9f] > pc=3D0x57b9c '/aarch64\loader.efi' Resetting CPU ... >=20 > --=20 > Emmanuel Vadot