OpenBSD 6.5-BETA doesn't boot on MacBook Pro TouchBar 2017

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

OpenBSD 6.5-BETA doesn't boot on MacBook Pro TouchBar 2017

Joel Carnat
Hello,

I have tried booting OpenBSD 6.5-BETA / amd64 on my MacBook Pro (15-inch, 2017) (MacBookPro14,3) from an USB stick and it crashes after CPU identification. The error message seems to be :
  aml_rwgen: unregistered RegionSpace 0x5
  Could not convert 1 to 0
  panic: aml_die aml_convert:2097.

The snapshot is from Sat Mar 9.
It is the install65.fs copied onto an USB thumb drive. I used an USB/USB-c adapter.
The media works for installation on a ThinkPad X230. So it shouldn’t be media’s fault.

I couldn’t find a way to pcidump from macOS.
Here is a GitHub page with what seem relevant informations for this particular model:
https://github.com/Dunedan/mbp-2016-linux/tree/master/MacBookPro14%2C3 <https://github.com/Dunedan/mbp-2016-linux/tree/master/MacBookPro14,3>

And here’s a photo of the crash:


If it is required, I can try booting it with whatever Linux or FreeBSD you ask and provide pcidump/lspci data.

Kind regards,
  Jo

IMG_9013.jpg (556K) Download Attachment
smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 6.5-BETA doesn't boot on MacBook Pro TouchBar 2017

Mark Kettenis
> From: Joel Carnat <[hidden email]>
> Date: Thu, 14 Mar 2019 18:57:36 +0100
>
>   aml_rwgen: unregistered RegionSpace 0x5
>   Could not convert 1 to 0
>   panic: aml_die aml_convert:2097.

This almost certainly happens because I forgot to add the acpicmos(4)
driver to the RAMDISK_CD kernel.

Hopefully somebody will ok the diff below and you'll be able to test
this in a day or so.

ok?


Index: arch/amd64/conf/RAMDISK_CD
===================================================================
RCS file: /cvs/src/sys/arch/amd64/conf/RAMDISK_CD,v
retrieving revision 1.177
diff -u -p -r1.177 RAMDISK_CD
--- arch/amd64/conf/RAMDISK_CD 25 Jan 2019 23:16:52 -0000 1.177
+++ arch/amd64/conf/RAMDISK_CD 14 Mar 2019 18:54:38 -0000
@@ -37,6 +37,7 @@ acpi0 at bios?
 #acpibat* at acpi?
 #acpibtn* at acpi?
 #acpicpu* at acpi?
+acpicmos* at acpi?
 acpiec* at acpi?
 acpiprt* at acpi?
 acpimadt0 at acpi?

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 6.5-BETA doesn't boot on MacBook Pro TouchBar 2017

Mike Larkin-2
On Thu, Mar 14, 2019 at 07:55:51PM +0100, Mark Kettenis wrote:

> > From: Joel Carnat <[hidden email]>
> > Date: Thu, 14 Mar 2019 18:57:36 +0100
> >
> >   aml_rwgen: unregistered RegionSpace 0x5
> >   Could not convert 1 to 0
> >   panic: aml_die aml_convert:2097.
>
> This almost certainly happens because I forgot to add the acpicmos(4)
> driver to the RAMDISK_CD kernel.
>
> Hopefully somebody will ok the diff below and you'll be able to test
> this in a day or so.
>
> ok?
>

I see no reason not to. ok mlarkin

>
> Index: arch/amd64/conf/RAMDISK_CD
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/conf/RAMDISK_CD,v
> retrieving revision 1.177
> diff -u -p -r1.177 RAMDISK_CD
> --- arch/amd64/conf/RAMDISK_CD 25 Jan 2019 23:16:52 -0000 1.177
> +++ arch/amd64/conf/RAMDISK_CD 14 Mar 2019 18:54:38 -0000
> @@ -37,6 +37,7 @@ acpi0 at bios?
>  #acpibat* at acpi?
>  #acpibtn* at acpi?
>  #acpicpu* at acpi?
> +acpicmos* at acpi?
>  acpiec* at acpi?
>  acpiprt* at acpi?
>  acpimadt0 at acpi?
>

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 6.5-BETA doesn't boot on MacBook Pro TouchBar 2017

Stefan Sperling-5
In reply to this post by Mark Kettenis
On Thu, Mar 14, 2019 at 07:55:51PM +0100, Mark Kettenis wrote:

> > From: Joel Carnat <[hidden email]>
> > Date: Thu, 14 Mar 2019 18:57:36 +0100
> >
> >   aml_rwgen: unregistered RegionSpace 0x5
> >   Could not convert 1 to 0
> >   panic: aml_die aml_convert:2097.
>
> This almost certainly happens because I forgot to add the acpicmos(4)
> driver to the RAMDISK_CD kernel.
>
> Hopefully somebody will ok the diff below and you'll be able to test
> this in a day or so.
>
> ok?

RAMDISK_CD builds fine with this here. OK

> Index: arch/amd64/conf/RAMDISK_CD
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/conf/RAMDISK_CD,v
> retrieving revision 1.177
> diff -u -p -r1.177 RAMDISK_CD
> --- arch/amd64/conf/RAMDISK_CD 25 Jan 2019 23:16:52 -0000 1.177
> +++ arch/amd64/conf/RAMDISK_CD 14 Mar 2019 18:54:38 -0000
> @@ -37,6 +37,7 @@ acpi0 at bios?
>  #acpibat* at acpi?
>  #acpibtn* at acpi?
>  #acpicpu* at acpi?
> +acpicmos* at acpi?
>  acpiec* at acpi?
>  acpiprt* at acpi?
>  acpimadt0 at acpi?
>

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 6.5-BETA doesn't boot on MacBook Pro TouchBar 2017

Joel Carnat
Hi,

I tried booting a new RAMDISK but it still fails.
I’ll try with the next build and report.

While I was there, I did an installation on a USB thumb drive
via a ThinkPad X230i. Then I plugged the USB drive in the MacBook
and booted it. And it also crashed.

The keyboard does not work after crash. So I can’t run ps or trace.
I tried booting with an external USB keyboard but it does not work
either after crash.

I tried capturing a video of the full boot process but it’s all blurry.
The only clear photos I could get are attached. I hope this can help
guessing what happens.



Best regards.

> Le 14 mars 2019 à 20:27, Stefan Sperling <[hidden email]> a écrit :
>
> On Thu, Mar 14, 2019 at 07:55:51PM +0100, Mark Kettenis wrote:
>>> From: Joel Carnat <[hidden email]>
>>> Date: Thu, 14 Mar 2019 18:57:36 +0100
>>>
>>>  aml_rwgen: unregistered RegionSpace 0x5
>>>  Could not convert 1 to 0
>>>  panic: aml_die aml_convert:2097.
>>
>> This almost certainly happens because I forgot to add the acpicmos(4)
>> driver to the RAMDISK_CD kernel.
>>
>> Hopefully somebody will ok the diff below and you'll be able to test
>> this in a day or so.
>>
>> ok?
>
> RAMDISK_CD builds fine with this here. OK
>
>> Index: arch/amd64/conf/RAMDISK_CD
>> ===================================================================
>> RCS file: /cvs/src/sys/arch/amd64/conf/RAMDISK_CD,v
>> retrieving revision 1.177
>> diff -u -p -r1.177 RAMDISK_CD
>> --- arch/amd64/conf/RAMDISK_CD 25 Jan 2019 23:16:52 -0000 1.177
>> +++ arch/amd64/conf/RAMDISK_CD 14 Mar 2019 18:54:38 -0000
>> @@ -37,6 +37,7 @@ acpi0 at bios?
>> #acpibat* at acpi?
>> #acpibtn* at acpi?
>> #acpicpu* at acpi?
>> +acpicmos* at acpi?
>> acpiec* at acpi?
>> acpiprt* at acpi?
>> acpimadt0 at acpi?
>>


boot.jpg (663K) Download Attachment
crash.jpg (672K) Download Attachment
smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 6.5-BETA doesn't boot on MacBook Pro TouchBar 2017

Joel Carnat
Hello,

install65.fs from 20-Mar-2019 still fails the same way.

I have booted FreeBSD and was able to get a prompt. Internal keyboard
doesn't work but I could plug an USB keyboard to grab some information.

Find them attached in case it helps solving the problem.

Thank you.

On Sat 16/03 13:18, Joel Carnat wrote:

> Hi,
>
> I tried booting a new RAMDISK but it still fails.
> I’ll try with the next build and report.
>
> While I was there, I did an installation on a USB thumb drive
> via a ThinkPad X230i. Then I plugged the USB drive in the MacBook
> and booted it. And it also crashed.
>
> The keyboard does not work after crash. So I can’t run ps or trace.
> I tried booting with an external USB keyboard but it does not work
> either after crash.
>
> I tried capturing a video of the full boot process but it’s all blurry.
> The only clear photos I could get are attached. I hope this can help
> guessing what happens.
>
> Best regards.
>
> > Le 14 mars 2019 à 20:27, Stefan Sperling <[hidden email]> a écrit :
> >
> > On Thu, Mar 14, 2019 at 07:55:51PM +0100, Mark Kettenis wrote:
> >>> From: Joel Carnat <[hidden email]>
> >>> Date: Thu, 14 Mar 2019 18:57:36 +0100
> >>>
> >>>  aml_rwgen: unregistered RegionSpace 0x5
> >>>  Could not convert 1 to 0
> >>>  panic: aml_die aml_convert:2097.
> >>
> >> This almost certainly happens because I forgot to add the acpicmos(4)
> >> driver to the RAMDISK_CD kernel.
> >>
> >> Hopefully somebody will ok the diff below and you'll be able to test
> >> this in a day or so.
> >>
> >> ok?
> >
> > RAMDISK_CD builds fine with this here. OK
> >
> >> Index: arch/amd64/conf/RAMDISK_CD
> >> ===================================================================
> >> RCS file: /cvs/src/sys/arch/amd64/conf/RAMDISK_CD,v
> >> retrieving revision 1.177
> >> diff -u -p -r1.177 RAMDISK_CD
> >> --- arch/amd64/conf/RAMDISK_CD 25 Jan 2019 23:16:52 -0000 1.177
> >> +++ arch/amd64/conf/RAMDISK_CD 14 Mar 2019 18:54:38 -0000
> >> @@ -37,6 +37,7 @@ acpi0 at bios?
> >> #acpibat* at acpi?
> >> #acpibtn* at acpi?
> >> #acpicpu* at acpi?
> >> +acpicmos* at acpi?
> >> acpiec* at acpi?
> >> acpiprt* at acpi?
> >> acpimadt0 at acpi?
> >>
>


dmesg.txt (15K) Download Attachment
pciconf.txt (2K) Download Attachment
sysctl.txt (297K) Download Attachment
usbconfig.txt (46K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 6.5-BETA doesn't boot on MacBook Pro TouchBar 2017

Stuart Henderson
On 2019/03/20 18:58, Joel Carnat wrote:
> Hello,
>
> install65.fs from 20-Mar-2019 still fails the same way.
>
> I have booted FreeBSD and was able to get a prompt. Internal keyboard
> doesn't work but I could plug an USB keyboard to grab some information.
>
> Find them attached in case it helps solving the problem.

Files from acpidump might be useful, it looks like you should be able to
get them with 'acpidump -t -o mbp2017.dsdt' on FreeBSD.

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 6.5-BETA doesn't boot on MacBook Pro TouchBar 2017

Joel Carnat
On Wed 20/03 18:16, Stuart Henderson wrote:

> On 2019/03/20 18:58, Joel Carnat wrote:
> > Hello,
> >
> > install65.fs from 20-Mar-2019 still fails the same way.
> >
> > I have booted FreeBSD and was able to get a prompt. Internal keyboard
> > doesn't work but I could plug an USB keyboard to grab some information.
> >
> > Find them attached in case it helps solving the problem.
>
> Files from acpidump might be useful, it looks like you should be able to
> get them with 'acpidump -t -o mbp2017.dsdt' on FreeBSD.
>
Here's the output from this command.

Hope it helps.

mbp2017.dsdt (118K) Download Attachment