From nobody Tue Aug 31 23:39:13 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 06DF717B9E0E for ; Tue, 31 Aug 2021 23:39:26 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GzkDY6N48z4s3h for ; Tue, 31 Aug 2021 23:39:25 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: by mail-ed1-x531.google.com with SMTP id s25so1163292edw.0 for ; Tue, 31 Aug 2021 16:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3Trv0jDYELigu/BojoCuliCEpqNmcbnLlKDQe86lYXU=; b=RDtMgkIGDOzlAGyQn52qo4sK7OQOC7hyUPfCdOJaDU3zoVd+151K0DDvk2xHV5VjJ5 5zPKC1VW0QFF0IBVSTHg8xmnt7wnmBh4CeKbJQMA7I0F1p8PfisDgqCgpIxO4WpG0t0/ 5H6RLB+C5cxOcI+uOTeevvdrqozIzlDDFigyHQG0DqorFt7349cZK9AKrWsFnnYaQ70u klUhOTOsqe3mh5nzk6NOPd9kPZgcKVppL2KzKhqPiWSj3ZTRKs2u1K//LsLsDnorH/iC /uYtzoeGTUepZgOxwQBsV09dk9kBsV2Uv7Kzvd5TZzleJMp478pyOO1tFPU6j2H27gKu mt7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3Trv0jDYELigu/BojoCuliCEpqNmcbnLlKDQe86lYXU=; b=Nfdv1hxQj6oOAEn5WrREbj/HFV3f7iCZwd7uDFRlM+tqpyn5iXNCUJ/FA4RKsfVV/k PudbhMTzXX7uDgoYNJHzURdqThiqN+NpJYI5lz8B+IYjxB+ZdhhEo0pIQLV3tnCvyq1E zfPImquRRLlLahHQbzQG+7Scnp94/0uv2BhrznG0oMpwQ8QM0W6C37+RJv1tt9hCxuDU KFW10yPKbWZncSCPcRpul0iHblIB/QE/0Ok/2zWuIw1gPyGKn0Rw3mtyaVbe8irzChLL lzetdVYmQtidZRKQugp7lqpvLjkFsELvU1FmDDM6vqIQyG+PzuS2LnHrgOCkbMmB+tMa ZuPA== X-Gm-Message-State: AOAM530K92gYqwNrEGMGIfTcn0V1joJ9gkfvez7odkem2upWBSM8eq2a Gdln0siZfL03xOx16LX7q7/+sNQBXmGMkjLsWYI= X-Google-Smtp-Source: ABdhPJzM3LoYkxy0AxcR1gsfbymMvnTVHBPMJCez8QtM0XUNrpo9cOrftBds0ymHaQmUBoF0UAIbG7MKF9lXgbGMrOA= X-Received: by 2002:a05:6402:cb1:: with SMTP id cn17mr27105685edb.388.1630453164480; Tue, 31 Aug 2021 16:39:24 -0700 (PDT) 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 References: In-Reply-To: From: Dustin Marquess Date: Tue, 31 Aug 2021 18:39:13 -0500 Message-ID: Subject: Re: New loader_lua.efi causes kernels to hang at boot To: Konstantin Belousov Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000b11b2505cae375db" X-Rspamd-Queue-Id: 4GzkDY6N48z4s3h X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000b11b2505cae375db Content-Type: text/plain; charset="UTF-8" On Tue, Aug 31, 2021 at 2:06 AM Konstantin Belousov wrote: > On Tue, Aug 31, 2021 at 01:29:27AM -0500, Dustin Marquess wrote: > > On Mon, Aug 30, 2021 at 4:33 AM Konstantin Belousov > wrote: > > > > > 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? > > > > > > > Indeed, it does! > > > > Full loader.conf is: > > > > I hope that 9939af1a161e5c219ece5e7c5 would fix the problem for you, > i.e. system should boot with and without the exec line in loader.conf. > Indeed it does! Boots perfectly with and without the setting. Thanks for the fast fix! -Dustin --000000000000b11b2505cae375db--