ISO icon indicating copy to clipboard operation
ISO copied to clipboard

0.7.0 live USB fails to boot on MacBook Pro 11,1 (mid-2014 13" Retina screen)

Open jkyiv opened this issue 2 years ago • 11 comments

Describe the bug Attempting to run helloSystem 0.7.0 via Live USB on a mid-2014 MacBook Pro 11,1, the FreeBSD kernel starts the boot process, then crashes before helloSystem is loaded. This triggers a reboot. (The same USB boots normally to helloSystem in my Thinkpad w530, so I know its not an issue with the installation media.)

To Reproduce Steps to reproduce the behavior:

  1. Create a helloSystem 0.7.0 live USB stick.
  2. Boot a MacBook Pro 11,1 (mid-2014 13" retina screen)
  3. FreeBSD kernel starts boot process, then crashes and system reboots into macOS X.
  4. See error

Expected behavior I should be able to boot to helloSystem and then verify that the MacBook Pro's hardware will work with helloSystem.

Screenshots If applicable, add screenshots to help explain your problem.

Version (please complete the following information):

  • Live ISO or installed system to disk: Live 0.7.0
  • FreeBSD version (System --> About this Computer): n/a
  • helloSystem build (cat /.url): 0.7.0 release
  • Running in a virtual machine: no

Computer (please complete the following information):

  • Device: MacBook Pro 11,1 (mid-2014 13" Retina screen, i5 Intel processor, 16 GB RAM.

Additional context Any advice how I can capture a log of the kernel crash to share it here for troubleshooting would be appreciated. I see a ton of output when I boot the live USB using "boot -v" but the video I took doesn't show enough detail to read it. For what its worth, I've uploaded the video here: https://mamot.fr/system/media_attachments/files/109/258/281/675/400/183/original/71cf8fc1dba6db73.mp4

jkyiv avatar Oct 30 '22 20:10 jkyiv

Any advice how I can capture a log of the kernel crash

I am not entirely sure, but possibly we can add sudo sysctl kern.panic_reboot_wait_time=15 to prevent the system from rebooting immediately on a kernel panic.

probonopd avatar Oct 30 '22 20:10 probonopd

Possibly we need to get at a core dump. But where to save those while running from a Live ISO? On the network, as done by me here. But this crash happens before we can enter anyhting on a console. So the question is - how to set netdump up before we have access to a console?

Is this possible to tell the machine to use netdump via the bootloader prompt? Something like set dumpon_flags=-c ... -g ... -s ...? How exactly? - If that is not possible, we can possibly use Monkey Patching to tell the machine to use netdump?

probonopd avatar Oct 30 '22 20:10 probonopd

@jkyiv possibly the ISO at https://github.com/helloSystem/ISO/releases/tag/experimental-13.1 doesn't reboot immediately thanks to https://github.com/helloSystem/ISO/commit/a78cb53e25c2c4719cd9c042135d377ba75d8311 - would you like to give it a try?

probonopd avatar Oct 30 '22 20:10 probonopd

I'm game to give it a try, however I most likely won't get to it until sometime tomorrow or Tuesday.

jkyiv avatar Oct 30 '22 22:10 jkyiv

Hi @probonopd, I tried booting the MacBook Pro 11,1 from the live USB 0.8.0 (which booted fine on my Thinkpad w530), and the MacBook Pro rebooted as before. There wasn't really much more time to see the messages, but I tried to photograph them again. You can find the photos here, https://mamot.fr/@jkepler, in the most recent post.

jkyiv avatar Nov 01 '22 14:11 jkyiv

Thanks @jkyiv but we don't see the line when the crash happens because the reboot happens too fast. Need to take more drastic measures, like trying to get a kernel core dump over the network. Unfortunately I don't know yet how to do this such early in the boot process.

probonopd avatar Nov 01 '22 18:11 probonopd

Thanks. I may see what I can learn about kernel core dumps across the network. If I can figure out how to get a shell on the MacBook Pro, I can boot my ThinkPad from the NomadBSD USB stick, which would give me another FreeBSD on the same network.

jkyiv avatar Nov 02 '22 07:11 jkyiv

Please try with and without a SD card in the slot, possibly this is related:

  • https://github.com/helloSystem/ISO/issues/335

probonopd avatar Sep 02 '23 12:09 probonopd

Following https://github.com/helloSystem/ISO/pull/521/commits/07e39aa06ecce3ce29d058e7f21d488488fcf25f by @u20230812, please retest on hello-0.9.0_0I39-FreeBSD-13.2-amd64.iso and newer.

probonopd avatar Sep 04 '23 22:09 probonopd

Added https://github.com/helloSystem/ISO/commit/b9a2d0d2ba62fb38d27df32291977c06900c0ea7.

Please retest in build 0I41 or later.

If it is still crashing, please let me know

  • The exact name of the computer model
  • The exact name of the card reader model
  • The card reader USB vendor ID
  • The card reader USB device ID

Thanks!

probonopd avatar Sep 08 '23 16:09 probonopd

Following 07e39aa by @u20230812, please retest on hello-0.9.0_0I39-FreeBSD-13.2-amd64.iso and newer.

Hello, what's the difference between the image file variants ending ...amd64.iso and ...amd64.developer.img ? I'm hoping I might find some time over Thanksgiving to test the 0.9.0 on my MacBook Pro 11,1.

jkyiv avatar Nov 07 '23 23:11 jkyiv