UEFI Issue

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

UEFI Issue

Charlie Burnett
Hey, I'm looking to get OpenBSD working in UEFI only mode on newer Thinkpad
X1 devices, because for whatever reason it hangs when loading into memory
without CSM enabled, and some of the X1 devices no longer have a CSM
option. Does anyone have a fix, or advice on where I would start looking if
I was going to patch it myself?
Reply | Threaded
Open this post in threaded view
|

Re: UEFI Issue

root-7
On Tue, 2019-07-16 at 18:32 +0000, Charlie Burnett wrote:
> Hey, I'm looking to get OpenBSD working in UEFI only mode on newer
> Thinkpad
> X1 devices, because for whatever reason it hangs when loading into
> memory
> without CSM enabled, and some of the X1 devices no longer have a CSM
> option. Does anyone have a fix, or advice on where I would start
> looking if
> I was going to patch it myself?
New Lenovo laptops are getting kinda infamous for their comically bad
UEFI implementations. They hardly boot anything but Windows. You may be
on a blind path there.

Try disabling secure boot if you haven't done so already, and try
chainloading OpenBSD through a boot manager like rEFInd (I've been
booting OpenBSD with it for a long time, albeit with CSM support).

--
Kristjan Komloši
Mail: [hidden email]
Tel:  +386 31 679 339

Reply | Threaded
Open this post in threaded view
|

Re: UEFI Issue

Otto Moerbeek
On Fri, Jul 19, 2019 at 10:14:41AM +0200, Kristjan Komloši wrote:

> On Tue, 2019-07-16 at 18:32 +0000, Charlie Burnett wrote:
> > Hey, I'm looking to get OpenBSD working in UEFI only mode on newer
> > Thinkpad
> > X1 devices, because for whatever reason it hangs when loading into
> > memory
> > without CSM enabled, and some of the X1 devices no longer have a CSM
> > option. Does anyone have a fix, or advice on where I would start
> > looking if
> > I was going to patch it myself?
> New Lenovo laptops are getting kinda infamous for their comically bad
> UEFI implementations. They hardly boot anything but Windows. You may be
> on a blind path there.
>
> Try disabling secure boot if you haven't done so already, and try
> chainloading OpenBSD through a boot manager like rEFInd (I've been
> booting OpenBSD with it for a long time, albeit with CSM support).
>
> --
> Kristjan Komloši
> Mail: [hidden email]
> Tel:  +386 31 679 339
>

Or save yourself the trouble and go for legacy mode.

        -Otto

Reply | Threaded
Open this post in threaded view
|

Re: UEFI Issue

Stuart Longland
On 19/7/19 6:21 pm, Otto Moerbeek wrote:
> Or save yourself the trouble and go for legacy mode.
>
> -Otto
>

… except if legacy mode is broken on the machine in question, in which
case you're stuffed.

I had a baptism of fire with a UEFI-only motherboard (Supermicro
A2SDi-16C-HLN4F) earlier this week.

I had an existing install of Gentoo Linux that I wanted to run on it,
but it was partitioned and set up for a BIOS-based boot set-up, not
UEFI.  I ended up PXE-booting Ubuntu (for which there was a
UEFI-compatible PXE image), doing a back-up to a USB drive, installing
Ubuntu, then having gotten the machine booting, imaging Gentoo back across.

Pretty sure it refused to look at a CD with El Torito boot sectors on it
(so there goes install65.iso and cd65.iso), and it flatly refused to
load pxelinux.0 as shipped by Ubuntu/Debian.

Not sure if OpenBSD's boot-loader is UEFI-compatible, but if not, you'll
strike the very same issues.
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.

Reply | Threaded
Open this post in threaded view
|

Re: UEFI Issue

Otto Moerbeek
On Fri, Jul 19, 2019 at 08:13:09PM +1000, Stuart Longland wrote:

> On 19/7/19 6:21 pm, Otto Moerbeek wrote:
> > Or save yourself the trouble and go for legacy mode.
> >
> > -Otto
> >
>
> … except if legacy mode is broken on the machine in question, in which
> case you're stuffed.

I' not guessing. Legacy mode works fine on the X1 6th gen. I'm telling
this from experience (I use one).

        -Otto

>
> I had a baptism of fire with a UEFI-only motherboard (Supermicro
> A2SDi-16C-HLN4F) earlier this week.
>
> I had an existing install of Gentoo Linux that I wanted to run on it,
> but it was partitioned and set up for a BIOS-based boot set-up, not
> UEFI.  I ended up PXE-booting Ubuntu (for which there was a
> UEFI-compatible PXE image), doing a back-up to a USB drive, installing
> Ubuntu, then having gotten the machine booting, imaging Gentoo back across.
>
> Pretty sure it refused to look at a CD with El Torito boot sectors on it
> (so there goes install65.iso and cd65.iso), and it flatly refused to
> load pxelinux.0 as shipped by Ubuntu/Debian.
>
> Not sure if OpenBSD's boot-loader is UEFI-compatible, but if not, you'll
> strike the very same issues.
> --
> Stuart Longland (aka Redhatter, VK4MSL)
>
> I haven't lost my mind...
>   ...it's backed up on a tape somewhere.
>

Reply | Threaded
Open this post in threaded view
|

Re: UEFI Issue

Stuart Longland
On 19/7/19 8:19 pm, Otto Moerbeek wrote:

> On Fri, Jul 19, 2019 at 08:13:09PM +1000, Stuart Longland wrote:
>
>> On 19/7/19 6:21 pm, Otto Moerbeek wrote:
>>> Or save yourself the trouble and go for legacy mode.
>>>
>>> -Otto
>>>
>>
>> … except if legacy mode is broken on the machine in question, in which
>> case you're stuffed.
>
> I' not guessing. Legacy mode works fine on the X1 6th gen. I'm telling
> this from experience (I use one).

Fair enough. :-)  I dare say the problem will bite us in the near future
though as more manufacturers question the need for the CSM in boot firmware.

(That said, part of me misses the BIOS… the B stood for *BASIC*,
something UEFI most definitely is not!)
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.

Reply | Threaded
Open this post in threaded view
|

Re: UEFI Issue

Charlie Burnett
In reply to this post by root-7
Yeahhh... I've just decided to return it and get a X1 6th gen and just get
a supported wacom usb drawing tablet for notes, no OpenBSD is kind of a
dealbreaker for me. Also keyboard on it was screwy and didn't work half the
time even with Windows so not the best machine. And Legacy mode was also a
no-go, as there was no legacy mode and any and all CSM support had been
disabled, which is rather frustrating. Also, tried booting through rEFInd,
grub, took the hard drive out and installed it on a different machine, none
worked sadly. Oddly enough, certain Linux distros seemed to have a similar
issue (namely the most recent Gentoo minimal iso) so I'm guessing there was
something really weird with the EFI on it. I've got a few old/cheap
machines with issues along the same lines, I'll try to figure out what the
issue was if I can. I appreciate all y'all's help though!

On Fri, Jul 19, 2019 at 8:14 AM Kristjan Komloši <[hidden email]>
wrote:

> On Tue, 2019-07-16 at 18:32 +0000, Charlie Burnett wrote:
> > Hey, I'm looking to get OpenBSD working in UEFI only mode on newer
> > Thinkpad
> > X1 devices, because for whatever reason it hangs when loading into
> > memory
> > without CSM enabled, and some of the X1 devices no longer have a CSM
> > option. Does anyone have a fix, or advice on where I would start
> > looking if
> > I was going to patch it myself?
> New Lenovo laptops are getting kinda infamous for their comically bad
> UEFI implementations. They hardly boot anything but Windows. You may be
> on a blind path there.
>
> Try disabling secure boot if you haven't done so already, and try
> chainloading OpenBSD through a boot manager like rEFInd (I've been
> booting OpenBSD with it for a long time, albeit with CSM support).
>
> --
> Kristjan Komloši
> Mail: [hidden email]
> Tel:  +386 31 679 339
>
>
Reply | Threaded
Open this post in threaded view
|

Re: UEFI Issue

YASUOKA Masahiko-3
In reply to this post by Charlie Burnett
On Tue, 16 Jul 2019 18:32:28 +0000
Charlie Burnett <[hidden email]> wrote:
> Hey, I'm looking to get OpenBSD working in UEFI only mode on newer Thinkpad
> X1 devices, because for whatever reason it hangs when loading into memory
> without CSM enabled, and some of the X1 devices no longer have a CSM
> option. Does anyone have a fix, or advice on where I would start looking if
> I was going to patch it myself?

I don't know any known issue even if it's running in UEFI only mode.
So providing the detailed information is welcome.

 - screen shot when hang
 - boot loader and kernel version
 - result of "machine memory" command on the boot problem