|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
||||
Can't boot after successful install of 5.9 amd64 on a macbook 4.1
Hello everyone,
another newcomer to the forum here, although I've been an on and off OpenBSD-user since at least version 2.6. My OSX 10.5 installation is getting a bit long in the tooth so I decided to return to OpenBSD on the Desktop. As I'm in the middle of various projects I decided to take the dual-boot route, at least for the time being. I've been trying to install 5.9 amd64 onto my macbook 4.1 for over a week now, without success. Basically the installation works fine until I try to reboot into the freshly installed system. The steps I took are these: 0) At first and as a minimally invasive procedure to my existing OSX installation I attempted to install to a USB stick with refind on it, although without success. More precisely: the installation process finishes but booting the installed system fails. After several failed attempts I gave up on that and decided to take the hard disk route: 1) Resize existing HFS+ partition to make space for a smallish OpenBSD partition (an adventure in itself, but in the end it worked) 2) Install from CDr (install59.iso amd64 platform). Works as expected and the installer seems more straightforward than ever. I basically took all the defaults, except for adding a test user. 3) Rebooting the machine after successfull installation fails somewhere at the second stage bootloader (cf.: http://www.openbsd.org/faq/faq14.html#BootAmd64). The last screen output is (manually written down): Code:
entry point at 0xf00100 [7205c766, 34000004, 24448b12, 20a304] Some additional facts:
That's where I am right now. Are there any macbook-users out there with an older 4.1 machine (that's the early 2008 2.4 GHz Intel Core 2 Duo model) who succesfully installed OpenBSD 5.9? Please, tell me it's possible. Any help any hints would be highly appreciated. On a lighter note, there's also a silver lining: after all the failed attempts I almost know the OpenBSD installer by heart. |
|
||||
I found something that looks similar to your problem, and that was resolved...
Not really the same problem, but maybe it would be worth having a look... https://github.com/yasuoka/openbsd-uefi/issues/2 Edit : Oh, and what do you use as bootloader ? Seems that BootCamp is Windows-friendly only, maybe you need to use rEFIT, or something like that...
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD Last edited by LeFrettchen; 27th May 2016 at 09:52 PM. Reason: Bootloader... |
|
||||
Hi LeFrettchen,
thanks for the link, the problems described there seem indeed similar to mine. Although according to that exchange (dated Nov 7, 2015) everything should be fixed by now. My amateurish guess is that the either the bootloader is the problem or the macbook's EFI implementation (supposedly Apple didn't comply with standards there). I did some testing after finally finding out what I did wrong when I was trying to create a USB boot disk in order to save on CDrs: Code:
image | arch | freezes | reboots | boots | incl. EFI partition ----------------------------------------------------------------------- miniroot56.fs | amd64 | x | | | miniroot56.fs | i386 | | x | | miniroot57.fs | amd64 | x | | | miniroot57.fs | i386 | | x | | miniroot58.fs | amd64 | x | | | miniroot58.fs | i386 | | x | | miniroot59.fs | amd64 | x | | | +EFI miniroot59.fs | i386 | | x | | miniroot60.fs | amd64 | | ~5 secs | | +EFI miniroot60.fs | i386 | | x | |
I did another test with a slightly newer i386 snapshot burned on CDr in order to see if I had more luck, apparently not: fdisk complains about an incorrect MBR on wd0 so I aborted that install as I didn't want to mess with the MBR I'm really at a loss here. The problem is I still need the OSX installation even though I intend to migrate away from it in the long run. Keeping that intact is paramount for me, so I have to resort to try dual booting. |
|
|||
In your open posting you wrote, that you use 10.5 but no details. The latest SMC version is 1.31f1 (SMC 1.4) https://support.apple.com/en-us/HT201518 which requires 10.5.8 to update.
Have you tried the installation way for OpenBSD alone as I recommanded in the other topic ? Here is a Linux based description of hybride MBR's http://www.rodsbooks.com/gdisk/hybrid.html As always, make a backup before you play around. |
|
||||
Quote:
Quote:
Quote:
Quote:
After cleaning up the previous installation I repeated the install process twice today with the 5.9 snapshot (amd64) from the other day. Once on the separate OpenBSD partition (hard disk) and once on a dedicated USB device. Same result as always. As it stands I'm unable to boot OpenBSD either from hard disk or attached USB device. The kernel always hangs at the entry point. After poking around on misc@ I saw several similar problems mentioned when the EFI code was first introduced in 5.8-current around September 2015. I think the problem could be a bug in the EFI bootloader code. Maybe sth. like this: http://marc.info/?l=openbsd-misc&m=144233703211822&w=2 OpenBSD's EFI code is still fairly new and not even mentioned in the FAQ. |
|
|||
Boot from a external USB drive on this machine is from pain till impossible everything. To replace the internal HD see https://de.ifixit.com/Guide/MacBook+...eplacement/514 is not much work.
To the SMC upgrade, I would not believe all what Apple tell you. At the end, it is the last available version for this machine and, in the future there will not come newer versions. The general question is, do you really need Mac OS X 10.5 Leopard ? It is very old and there are no more updates from Apple ? If you still run PPC apps, try to replace them. You can create a nice Mac OS X like desktop like http://vermaden.deviantart.com/art/b...theme-67963470 (Fluxbox) or http://guistyles.com/2005/06/13/fvwm-milk-theme/ (fvwm milk). The only thing on this machine is, that mine runs between 50 and 60 degrees even I use APM's autoscale. The only thing I could tell you is, 5.9 runs on my machine (with 6 GB RAM). Before replacing the drive, backup your Mac OS X data and try to run OpenBSD as only operating system. Only a crazy idea, could it be, that the boot freezes and the reason is the same as if your / root filesystem is to big that the bootloader can't find the kernel ? Something like partitions on the wrong place. |
|
||||
Quote:
I still haven't had time to go through the hybrid MBR link you gave me, but I downloaded and booted SystemRescueCD. Although Linux-based it comes with GPT-fdisk. gdisk found nothing wrong with the partition table on my hard drive, it only complained about those on the USB drives. I let it fix those and tried to boot again from the miniroot images but no change in behaviour. I also tested the May 29th amd64 snapshot: same as before. Of course the EFI code is still very new and AFAIK only present in the amd64 and (since yesterday) ARMv7 snapshots, as reported on undeadly. I do have some interesting news, though: I can boot FreeBSD from USB without any problems whatsoever. I used FreeBSD-10.3-RELEASE-amd64-uefi-memstick.img for that. I even started to install from the booted USB drive to a second USB drive. Only aborted it because I was unsure about some partitioning decisions. So I'll probably pop over to the FreeBSD section here for some advice to see if I can get a running FreeBSD install as some sort of intermediary solution. As for OSX I'm not particularly fond of it. Got the macbook out of necessity when an older ibook died and I quickly needed a replacement. Spend more than a week configuring away stuff and behaviour I didn't like. In the end I just got used to it, that's all. My main requirements are VirtualBox on which I have a clean install of XP with the configuration software for a PBX system and apart from that Sheepshaver which i need for some older mac emulation testing stuff that's currently dormant. It seems both may be available at least on FreeBSD so there may be an intermediary migrational roadmap for me. Something like Free and Open dual-boot perhaps... To cut a long story short, I'll probably hold off on any single-boot hard drive installations until I have a viable install on a usb-drive to keep going. Meanwhile I'll keep trying to narrow down possible interference factors like partitioning etc. Of course I'll report any developments in this thread. Final parting thought for the day: If FreeBSD can boot from USB without problems, couldn't it theoretically be possible to borrow that EFI code over to OpenBSD? |
|
|||
I had the thought that it might be possible to build your usb thumb drive with an alternative bootloader + OpenBSD. Legacy sysutils/grub is available in ports. When exploring the thought I ran into this Arch Linux EFI examples wiki. Apparently, OS/X likes things "Blessed".
It may also be possible to install linux with grub2 to the usb disk and then use a system rescue disk to boot the usb disk, shrink the linux partition as much as possible and generate an A6 OpenBSD partition. Allocate the OpenBSD space using disklabel(8) with the -A flag. Then extract the sets to the OpenBSD root partition. Edit the Grub2 chainloading code. |
|
||||
The idea of using grub as a replacement sounds interesting. I played around a bit trying to install grub from the gentoo-based systremrescuecd, but ran into some error while trying to update the chainloading code. I'll see if can look into it more thoroughly over the next few days.
I'm still convinced it's just an error in the bootloader code as the FreeBSD image boots without a problem, furthermore OpenBSD's code was originally imported from FreeBSD as the version control headers clearly show http://cvsweb.openbsd.org/cgi-bin/cv...d/efi/include/ Last edited by fvgit; 1st June 2016 at 09:26 PM. Reason: typo |
|
||||
There was some fairly recent chatter on misc@ about macbooks and EFI with one of the developers chiming in, and I finally know why it doesn't work. The EFI code on older macbooks isn't supported by OpenBSD's EFI loader (emphasis mine):
Quote:
Code:
About: rEFInd Version 0.10.4 (...) Running on: EFI Revision 1.10 Platform: x86_64 (64 bit); Secure Boot inactive System Integrity Protection is enable (0x10) Firmware: Apple 1.10 Screen Output: UGA Draw (EFI 1.10), 1280x800 |
|
||||
Igor! --- Yes, master?
Finally! I got the machine booting in legacy mode. If anyone is struggling with a 4,1 or earlier Mac (creating an OS X/OpenBSD dual boot environment on a pre-exisiting OS X install), here's an executive summary of the process: 1) Prepare the hard drive from within OSX with 'Boot Camp Assistant' (this will resize osx, create a new 'Windows' partition, and change the partition table from GPT with protective MBR into GPT with hybrid MBR) 2) Reboot from within 'Boot Camp Assistant' with an OpenBSD CD in the drive (machine will boot directly into whatever bootable cd is in the drive) 3) Install OpenBSD as usual (disk is wd0, new bootcamp partion is Win95/FAT32, set type to A6 in fdisk) 4) reboot & done Unless the setup is changed the Mac will boot henceforth in Legacy/BIOS mode. Supposedly it works like this: on powerup/reboot the firmware inspects the drive's partition table and boots in BIOS/legacy mode if it detects a classic MBR or a GPT/hybrid MBR and if a partition in that MBR has a bootable flag, otherwise it boots in EFI-mode if it finds a GPT with protective MBR or no MBR partition is flagged as bootable. It may be advisable to have some useful tools at hand in case of an emergency, like a rescue-cd or USB-drive with rEFind, gpt fdisk (aka gdisk). Sth. like that. Obviously the hybrid Frankenstein partitioning is not exactly a desirable setup but at least it works for the time being. Until, hopefully, one day the OpenBSD EFI bootloader may also support UGA for the graphics protocol (keeping fingers crossed!) In honour of this happy milestone I hope my exuberance may be forgiven when I state that clearly some JB is in order. |
Tags |
bios, boot, efi, macbook |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot boot after successful install of 5.8 | avallee | OpenBSD Installation and Upgrading | 14 | 4th May 2016 02:20 PM |
openbsd don't boot of AMD64 | philo_neo71 | OpenBSD Installation and Upgrading | 3 | 19th October 2015 09:42 AM |
How to install OpenBSD on MacBook Air? | Skinny | OpenBSD Installation and Upgrading | 7 | 15th July 2013 10:59 AM |
[Beginner] Things to do after a successful installation | fabiogar | NetBSD Installation and Upgrading | 8 | 13th September 2010 03:50 AM |
Allow i386 and amd64 to boot from extended DOS partitions | lvlamb | OpenBSD General | 4 | 16th July 2008 03:24 PM |