From nobody Mon Aug 30 09:33:25 2021 X-Original-To: freebsd-current@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 108F917A1A36 for ; Mon, 30 Aug 2021 09:33:40 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 4GylW75LSMz3l3V for ; Mon, 30 Aug 2021 09:33:39 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 17U9XPZL057278 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 30 Aug 2021 12:33:28 +0300 (EEST) (envelope-from kib@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 17U9XPZL057278 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 17U9XPej057277; Mon, 30 Aug 2021 12:33:25 +0300 (EEST) (envelope-from kib@freebsd.org) X-Authentication-Warning: tom.home: kostik set sender to kib@freebsd.org using -f Date: Mon, 30 Aug 2021 12:33:25 +0300 From: Konstantin Belousov To: Dustin Marquess Cc: FreeBSD CURRENT Subject: Re: New loader_lua.efi causes kernels to hang at boot Message-ID: References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on tom.home X-Rspamd-Queue-Id: 4GylW75LSMz3l3V X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sun, Aug 29, 2021 at 08:27:02PM -0500, Dustin Marquess wrote: > I am upgrading a -CURRENT box from a build that's exactly 2 weeks old to > one I built about 2 hours ago. After installkernel I updated the bootloader > the same way I normally do: > > # mount_msdosfs /dev/da8p1 /mnt > # cp /mnt/EFI/BOOT/BOOTX64.efi /mnt/EFI/BOOT/BOOTX64.bak > # cp loader_lua.efi /mnt/EFI/BOOT/BOOTX64.efi > # umount /mnt > > After rebooting, however, the kernel hangs right after: > > real memory = 137438953472 (131072 MB) > avail memory = 133651951616 (127460 MB) > ACPI APIC Table: > > It never makes it to this line: > > FreeBSD/SMP: Multiprocessor System Detected: 32 CPUs > FreeBSD/SMP: 2 package(s) x 8 core(s) x 2 hardware threads > > So I rebooted a selected kernel.old at the boot menu and.. same thing. > That's strange! > > So I booted off a USB stick, mounted the EFI partition and copied > BOOTX64.bak back to BOOTX64.efi and now the machine booted normally. > > So for some reason the newer loader_lua.efi is causing both the new kernel > AND the old kernel to hang, but the older loader_lua.efi seems to work with > both no problem. Show your loader.conf. Try to add exec="copy_staging enable" line to it, does it hide the problem?