Mainline Linux on a stock Macintosh Plus: a 68000 at 7.83 MHz with no MMU, 4 MB of RAM, booting from 800K floppies. It has a shell, networking and a small desktop with a mashup of Mac, Lisa and NeXT styling.
There are two ways to run it:
| Disks | What you get |
|---|---|
linux-plus.dsk |
One 800K floppy: boot the Mac into a BusyBox shell from a single disk. No networking. |
linux-plus-set.dsk + linux-plus-set-2.dsk |
Two 800K floppies: full desktop with networking. Boot disk 1; it asks for disk 2. |
The networking kernel is too big for one floppy, which is why the desktop needs two disks.
Write the images to 800K floppies, or load them in a Floppy Emu, and boot the Plus from disk 1. Once it's running, nuggetinstall at the shell, or the NuggetInstall app on the desktop, copies the disks onto blank floppies.
At the shell, type desktop to start the desktop (on the two-disk set). For Ethernet, eth-up 192.168.1.250 (your own address) or the Network control panel on the desktop.
The Nugget Advanced Desktop System (NADS) is a custom ultra-light desktop environment built on Nano-X (Microwindows) with a window manager and file manager written for the Plus. It has:
Settings saved from the desktop go in a NugPrefs folder on a Mac floppy and come back when that disk is inserted.
The released two-disk set also includes FrogSurf, a web browser that uses FrogFind. FrogSurf's source isn't in this repository; a build from this source has Landmine in its place.
See desktop/README.md for how the desktop works.
The build runs in Docker. On macOS the Linux kernel tree needs a case-sensitive volume.
Build the image and the toolchain (crosstool-ng, m68k uClinux with uClibc-ng and elf2flt):
docker build -t macplus-build docker docker run --rm -v macplus-xtools:/home/build/x-tools -v macplus-work:/home/build/work \ -v $PWD/docker:/scripts macplus-build /scripts/build-toolchain.sh
Get the third-party sources into the places the build expects, and apply our patches:
src/linux: crmaykish/mackerel-linux at commit 4fa7985a3 (Linux 7.3.5), plus patches/linux-7.3.5-macplus.patchdesktop/microwindows: ghaerr/microwindows at 3b20527, plus desktop/microwindows.patchhfs/hfsutils-3.2.6: hfsutils 3.2.6 (see hfs/README.md), plus hfs/hfsutils.patchA Python with machfs, for writing HFS: python3 -m venv .venv && .venv/bin/pip install machfs
Build:
./make-floppy.sh plus # floppy/linux-plus.dsk ./make-floppy.sh plus set # floppy/linux-plus-set.dsk and -set-2.dsk
./make-floppy.sh mame [set] builds the same disks for the MAME emulator, whose serial clock differs. The mame/ directory has the test scripts.
| Directory | What's in it |
|---|---|
patches/ |
The kernel changes: the Mac Plus platform, the floppy (IWM), serial, SCSI Ethernet, keyboard, mouse and framebuffer drivers |
floppy/ |
The boot blocks, the second-stage loader, and the disk image writer |
userland/ |
The BusyBox configuration and patches, and our own commands (nuggetinstall, eth-up, fetch ...) |
desktop/ |
The desktop: our apps and our changes to Microwindows |
hfs/ |
Mac disk support (libhfs) and Floppy Saver |
docker/ |
The build image and toolchain |
mame/ |
Emulator tests and profiling scripts |
asante/ |
Notes from working out the Asante EN/SC's protocol |
slip/ |
A SLIP gateway for testing networking |
Developed using Claude.
Our own code is under the GNU General Public License, version 2: see LICENSE. The kernel and BusyBox changes are GPL-2.0 as those projects are. Third-party code keeps its own license.