Skip to content

lufia/plan9

Plan 9 with 9legacy patches

This repository is a mirror of the 9legacy sources. There are some branches:

  • stable
  • experimental
  • main

Branches

Stable Branch (recommended)

This branch contains the Lab's Plan 9 sources with 9legacy's stable- and 9k-patches.

Experimental Branch

This branch contains all of the stable branch and picked 9legacy's experimental patches. The picked patches will appear in the commit log.

Main Branch

This branch contains all of the experimental branch, and some merged pull-requests that is needed for me.

Usage

TODO

% cd /tmp
% git clone --no-checkout --branch stable https://github.com/lufia/plan9
% cd /
% git --git-dir /tmp/plan9/.git status

Documentation

There are original README.md below.


======= 9legacy

9legacy is a continuation of Plan 9 from Bell Labs.

Usage

Run Plan 9 on QEMU

  1. Build empty directory hierarchy

Empty directories can't be committed to a Git repository.

The following script will build the empty directory hierachy, identically to the content of the original Plan 9 CD image.

Run:

./boot/mkdirs
  1. Install binaries

This step requires the 9660srv command from plan9port, so the CD image will be mounted using the Plan 9 ISO 9660 extension.

The following script will download the last 9legacy CD image and extract the 386 and amd64 binaries to the root of the Git repository.

Run:

./boot/getbin
  1. Run QEMU

The following script will build u9fs from sys/src/cmd/unix/u9fs, if needed, then run QEMU.

Run the following script to build u9fs and run QEMU:

./boot/qemu

Rebuild boot/pxeboot.raw

This Git repository already includes a prebuilt boot/pxeboot.raw boot loader.

This step is necessary only if you want to rebuild boot/pxeboot.raw, for example, after making changes to the boot loader.

  1. Reduce the size of 9bootpbs

Apply the following patch to reduce the size of 9bootpbs:

patch -p1 boot/9-pcboot-boot.diff
  1. Rebuild 9bootpbs

On Plan 9, run:

mkbootpbs
  1. Rebuild pxeboot.raw

On Plan 9, run:

mkpxeboot

Thanks

We thank Russ Cox, who made the scripts to easily boot a Plan 9 file hierarchy on QEMU.

About

This is the mirror of Plan 9 with applied 9legacy stable+9k patches.

Resources

License

MIT and 4 other licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.afpl
Unknown
LICENSE.gpl
Unknown
LICENSE.lucida
Unknown
LICENSE.old

Stars

Watchers

Forks

Packages

 
 
 

Contributors