Blog 2019/11/22
<- previous | index | next ->
I recently picked up a PowerPC eMac off of eBay, with the idea of having another platform to target while learning to write a compiler.
I thought I'd try throwing OpenBSD on it!
Download http://cdn.openbsd.org/pub/OpenBSD/6.6/macppc/install66.iso, burn it and boot from it.
Follow the install prompts. I went with the defaults (MBR partition table, all of the distribution packs, etc).
When you reboot, your mac will likely not boot (you may see a gray screen with a small folder icon in the center).
To solve this, you need to configure your mac's Open Firmware to boot your new OpenBSD install.
Reboot and hold down Command
-Option
-O
-F
to access Open Firmware
(note: I was unable to do this using a Matias Mac keyboard -- I had to switch to an Apple keyboard).
setenv auto-boot? true
setenv boot-device hd:,ofwboot
reset-all
I believe there's an issue with X11 on my (nVidia) eMac.
Hit Control
-Alt
-F1
to switch out of X11 to a terminal.
pkg_add
fails:
# pkg_add vim
https://cdn.openbsd.org/pub/OpenBSD/6.6/packages/powerpc/: no such dir
Can't find vim
32-bit PowerPC pre-built binary packages do exist for 6.5, but it appears this was dropped for 6.6.
However, you can still build software from source, using the "ports" system.
Grab a ports tarball:
# cd /tmp
# ftp http://cdn.openbsd.org/pub/OpenBSD/6.6/ports.tar.gz
# cd /usr
# tar xzf /tmp/ports.tar.gz
# rm /tmp/ports.tar.gz
Create /etc/mk.conf
:
WRKOBJDIR=/usr/obj/ports
DISTDIR=/usr/distfiles
PACKAGE_REPOSITORY=/usr/packages
Now install a port:
# cd /usr/ports/editors/vim
# env FLAVOR=no_x11 make install