No description
  • C 72.8%
  • Python 10.1%
  • Shell 9.3%
  • Lua 5.6%
  • Assembly 0.9%
  • Other 1.1%
Find a file
2026-11-30 17:11:22 -05:00
asante Nugget Linux: mainline Linux on the Macintosh Plus, from floppies 2026-11-26 00:42:50 -05:00
desktop Build FrogSurf only where its source is (it isn't public) 2026-11-29 16:32:53 -05:00
docker One two-disk set and one single disk: no desktop set without networking 2026-11-28 17:12:11 -05:00
floppy One two-disk set and one single disk: no desktop set without networking 2026-11-28 17:12:11 -05:00
hfs hfsutils: link with -move-rodata, as everything else is: 37 KB to 22 KB in RAM 2026-11-27 20:32:43 -05:00
icons Wallpaper app and desktop patterns; ROM's Chicago font and cursors; faster ls 2026-11-29 15:54:01 -05:00
mame typekey: time how long the desktop takes to show a key (MAME) 2026-11-29 11:43:21 -05:00
patches Wallpaper app and desktop patterns; ROM's Chicago font and cursors; faster ls 2026-11-29 15:54:01 -05:00
slip Nugget Linux: mainline Linux on the Macintosh Plus, from floppies 2026-11-26 00:42:50 -05:00
userland Wallpaper app and desktop patterns; ROM's Chicago font and cursors; faster ls 2026-11-29 15:54:01 -05:00
.gitignore Keep FrogSurf (its own local repo) and backups out of git 2026-11-29 16:33:39 -05:00
asciilogo.txt Nugget Linux: mainline Linux on the Macintosh Plus, from floppies 2026-11-26 00:42:50 -05:00
LICENSE README and license (GPL-2.0) 2026-11-29 16:44:47 -05:00
make-floppy.sh One two-disk set and one single disk: no desktop set without networking 2026-11-28 17:12:11 -05:00
mklogo.py Nugget Linux: mainline Linux on the Macintosh Plus, from floppies 2026-11-26 00:42:50 -05:00
nugget-penguin.png Nugget Linux: mainline Linux on the Macintosh Plus, from floppies 2026-11-26 00:42:50 -05:00
PLAN.md Nugget Linux: mainline Linux on the Macintosh Plus, from floppies 2026-11-26 00:42:50 -05:00
README.md README: the video, at the top 2026-11-30 17:11:22 -05:00
run-shell.sh Nugget Linux: mainline Linux on the Macintosh Plus, from floppies 2026-11-26 00:42:50 -05:00
run.sh Nugget Linux: mainline Linux on the Macintosh Plus, from floppies 2026-11-26 00:42:50 -05:00

Nugget Linux

Nugget Linux on a Mac Plus (video)

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.

Nugget Linux

What you need

  • A Macintosh Plus with 4 MB of RAM. The boot disk checks for this and stops with a message if there's less.
  • An 800K floppy drive. A second (external) drive makes installing easier; a Floppy Emu works as either drive.
  • For networking (optional), either:
    • an Asante EN/SC SCSI Ethernet adapter, or
    • SLIP over a serial cable on the printer port.

The disks

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 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:

  • a Finder-like file manager that reads and writes Mac (HFS) floppies, a menu bar, and a RAM disk
  • Terminal, NugEdit (a text editor), Calculator, Eyes, NugMon (a system monitor), Doubles, Floppy Saver, NuggetInstall, and the Network, Settings and Wallpaper control panels
  • the Plus ROM's own Chicago font and cursors

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.

Building

The build runs in Docker. On macOS the Linux kernel tree needs a case-sensitive volume.

  1. 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
    
  2. 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.patch
    • desktop/microwindows: ghaerr/microwindows at 3b20527, plus desktop/microwindows.patch
    • hfs/hfsutils-3.2.6: hfsutils 3.2.6 (see hfs/README.md), plus hfs/hfsutils.patch
    • BusyBox is downloaded by the build.
  3. A Python with machfs, for writing HFS: python3 -m venv .venv && .venv/bin/pip install machfs
  4. 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.

Where things are

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

Credits

  • The 68000 port this started from is Colin Maykish's Mackerel-08.
  • Linux, BusyBox, uClibc-ng, Microwindows (Nano-X) and hfsutils are the work of their authors, under their own licenses.

Notes

Developed using Claude.

License

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.