![]() |
|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
![]() |
|
Thread Tools | Display Modes |
|
||||
![]()
As the title says.
I'm looking for precise instructions relating to macbook (intel) hardware. I've tried to accomplish this a couple of times but always failed to make the device (a usb stick) bootable and ultimately had to resort to booting from cd. And as I'm still trying to get an OpenBSD installation running on my machine I'd prefer not to waste yet another cdr on the new snapshot I'd like to try. |
|
||||
![]()
Hi jggimi,
thanks for your reply and for the welcome! I used to be subscribed to misc@ once, quite a long time ago. Currently I just don't have time enough to deal with high volume mailing lists on top of everyting else. So I prefer to use misc@ passively by trawling the archives. BTW, the small community is actually one of the reasons I like this place. Makes it a lot easier to keep track of things, despite the drawback of far smaller input pool. I haven't given up, yet. Creating a bootable USB stick for OpenBSD could apparently be as simple as creating a DOS-formated 1-partition USB drive and placing either of the BOOTIA32.EFI or BOOTX64.EFI files (available for 5.9 and newer) in a directory called /efi/boot. That alone is enough to have the drive show up on the macbook's graphical boot menue (pressing 'alt' at boot). And selecting the drive does indeed start the OpenBSD EFI bootloader. So far, so good. Unfortunately that's also when the problems start. It seems the bootloader has somehow can't access the filesystem properly. I get errors like Code:
open(hd0a:/etc/boot.conf): Invalid argument Code:
start(hd0a:/.): Invalid argument |
|
|||
![]()
I have a MacBook 4.1 (Black, Penryn board) around here. Boot the install media using USB images freezes the machine since IIRC 5.8. I installed 5.7 from CD and updated using bsd.rd to a 5.9 current (some weeks old).
I am a littlebit out of this topic so no up to date infos. |
|
||||
![]()
Hi NaWi,
thanks for the input! I have to ask: do you remember how you booted your 5.7 system after installation? And more importantly: how do you boot your upgraded 5.9 installation? Also, are you dual-booting, with OSX for instance? Meanwhile I've done some testing as to the matter of USB-based install media. Assuming a USB-stick with a single partition a simple Code:
dd if=install60.fs of=/dev/rdisk1s1 bs=1m Unfortunately the bootloader somehow can't access the filesystem on the USB stick, no matter which combination of partioning and filesystem type (the bootloader is hardwired to look for /etc/boot.conf): Code:
probing: pc0 mem[572K 64K 2007M 152K 224K 4M 416K 36K 20K 48K 28K 716K 288K 44K 40K 16K 88K 4M 28K 20K 236K 5M 3M 144K 40K] disk hd0* hd1 >> OpenBSD/amd64 EFIBOOT 3.30 open (hd0a:/etc/boot.conf) : Invalid argument boot> Code:
boot> machine diskinfo Disk BlkSiz IoAlign size Flags Checksum hd0 512 0 28GB 0x0 0x3160067b Removable hd1 512 4 149GB 0x2 0x43031620 |
|
|||
![]()
Hello !
I installed 5.7 from CD. After installing I booted it using Apples bootmanager (option key at boot). I used MBR and the system boots normally as on any other machine the SMP kernel. I used the whole disk and also full disk encryption works. After collecting basic experience I used USB sticks instead of CD's. My problem was, that the installXX.fs frezes during boot the installer from 5.8 up. To update I used the bsd.rd from the working system. Boot in 5.8 and 5.9 is done the same way is in 5.7. For dual boot have a look at rEFInd and jaspers blog post https://blog.jasper.la/openbsd-uefi-bootloader-howto/ I never tried dual boot but used the blog post to install OpenBSD on a Shuttle XS3?. Using dd on the Mac works without problems. Plug the stick in, unmount it in DiskUtility run dd in terminal but use rdisk1 or whatever it is named. It is important to write to the device and not to a partition like rdisk1s1. Be careful to use the correct device ... dd overwrites everything. The USB stick here worked on a MacBook 4,1, MacBook Pro 9,1 and also 2 other systems. Edit : the /etc/boot.conf error could be the reason of writing to a existing partition on a pre-formated stick. IIRC I also saw that. Last edited by NaWi; 25th May 2016 at 06:24 AM. Reason: Added Edit : |
|
|||
![]()
I gave it a try, it is
Code:
sudo dd if=./install60.fs of=/dev/rdisk2 bs=1m Last edited by NaWi; 25th May 2016 at 04:10 PM. Reason: Format code block. Added the m at the end. |
|
||||
![]() Quote:
Thank you so much for pointing that detail out. I missed that completely. That being said, the kernel doesn't boot past the entry point. It freezes just before the switch to the blue background display of the system message buffer. Which is exactly the same behaviour as when I try to boot the freshly installed system from hard disk. Well, at least I can consider this topic resolved and return to try and solve my original problem. Thanks again for the hint, NaWi! It is much appreciated. ![]() |
|
|||
![]()
You are welcome ... no problem.
I posted this at misc@ months ago. http://marc.info/?l=openbsd-misc&m=145350181109130&w=2 I haven't tried the 6.0 kernel but 5.9 boots without problems in a installed system. My workaround was : Install 5.7 from CD, configure network (in my case urtwn), download the 5.8 bsd.rd, run signify, overwrite the original in /, boot from bsd.rd, upgrade to 5.8, reboot and run sysmerge. Do the same for 5.9. For dualboot have a look at the above link from jasper and rEFInd. |
|
||||
![]()
To recapitulate the issue and wrap things up as reference for anyone with similar issues, the problem here is/was actually twofold:
1) creating: As NaWi pointed out further above, writing with dd has to be done on the raw device device and not a partition. That was an oversight on my part. Using the correct syntax it works, of course. 2) USB-based bootable installer for a mac: Early Intel-Macs boot USB devices automatically in EFI-mode. But the OpenBSD EFI-loader only supports GOP for its graphic protocol. The machine in question here is a MacBook 4,1 (early 2008) with an UGA graphics protocol EFI-firmware which is currently NOT supported by OpenBSD's efiboot. On this and earlier Intel Macs OpenBSD can only be booted in BIOS/legacy mode. On later models the USB device should boot without problems. Furthermore, post-August 2012 MacBook Pros and Airs allegedly support booting USB media in BIOS/Legacy-mode. |
|
|||
![]() Quote:
I have a Mac mini 3,1 (2009) with OpenBSD 6.0 installed last year. I had no issues with it but still I wanted to install a clean 6.1 from a USB key. I took the Mac mini from the living room (where it was not connected to any screens) and plugged it on my screen... It just wouldn't boot anymore. Not from the HD nor from the USB key. There was no error message, everything seemed fine but it kept rebooting infinitely... When I saw your post, I unplugged it from my screen, restarted it, waited around 1-2 minutes, reconnected my screen and I could see the login screen again! |
|
|||
![]()
Sorry for the late answer. How can I find that out?
|
![]() |
Tags |
boot, macbook, usb |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macbook Pro 11,1 | bceverly | OpenBSD Installation and Upgrading | 21 | 31st August 2015 01:12 PM |
How to create a portable, bootable OpenBSD -NOT INSTALLER-? | Crypto333 | OpenBSD Installation and Upgrading | 35 | 29th December 2014 07:44 AM |
Using Qemu for creating bootable usb when wireless is needed | Ninguem | Guides | 2 | 26th January 2013 12:23 AM |
trouble creating freeBSD bootable usb | aenimansot | FreeBSD Installation and Upgrading | 1 | 11th September 2011 03:12 AM |
macbook 5.1 | mousesack | FreeBSD General | 1 | 20th February 2009 10:01 PM |