Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2021 18:39:13 -0500
From:      Dustin Marquess <dmarquess@gmail.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: New loader_lua.efi causes kernels to hang at boot
Message-ID:  <CAJpsHY4tGFov7ZGnGrqhRvzCCkkMPWDrceu7XDGqEt7WGGwGpg@mail.gmail.com>
In-Reply-To: <YS3Uz6si7Ovbts4X@kib.kiev.ua>
References:  <CAJpsHY74S_aq_Tsj-Wkw21spG7tGRgQMpOG_S2%2Be2JoLjDc=9A@mail.gmail.com> <YSyl5alS8pV0IBRK@kib.kiev.ua> <CAJpsHY62OnUC90y7RhzmMc=h3HkeRNH1FU6bNmsTLM7AY-eF5w@mail.gmail.com> <YS3Uz6si7Ovbts4X@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000b11b2505cae375db
Content-Type: text/plain; charset="UTF-8"

On Tue, Aug 31, 2021 at 2:06 AM Konstantin Belousov <kostikbel@gmail.com>
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 <kib@freebsd.org>
> 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: <LENOVO SV-INT  >
> > > >
> > > > 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJpsHY4tGFov7ZGnGrqhRvzCCkkMPWDrceu7XDGqEt7WGGwGpg>