# PianoRT Community Edition firmware 0.2.0 (alpha)

coreboot firmware for the HP Chromebox G3 (board "Noibat") that boots
straight into a PianoRT Linux kernel and shows the TuxPiano boot splash.
It's free and community supported, with no warranty.

**Flashing firmware is at your own risk.** A failed flash can leave the
Chromebox unable to start, and recovery requires a CH341A USB SPI programmer
with a SOIC-8 clip plus the backup the flasher saves. Read `FLASHER.md` and
the setup guide on pianort.com before you start.

## What changed since 0.1.0

- **Linux 7.3.6 stable** replaces the 7.3-rc6 release candidate. Same NVMe
  patch, same PREEMPT_RT setup.
- **coreboot 26.09** replaces the 25.12 development snapshot, with the same
  three PianoRT patches carried over unchanged in substance.
- **The boot splash stays on screen.** In 0.1.0 the kernel's text console
  cleared the screen about a quarter second into boot, so the splash was
  often gone before a monitor finished syncing. The kernel now waits to take
  over the screen (`FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER`).
- The kernel is built for at most 8 CPUs instead of 8192, which matches the
  hardware and trims some per-CPU overhead.
- The splash image is stored at JPEG quality 85 instead of 100, which takes
  a little time off firmware startup.
- **Flasher fix:** 0.1.0's `pianort-ce-flash --flash` tried to back up the
  whole chip, which the locked Intel ME region doesn't allow, so it stopped
  with an error before writing anything. 0.2.0 backs up, verifies and writes
  the BIOS region only. See `FLASHER.md`.

If you're on 0.1.0, run the 0.2.0 flasher with the 0.2.0 files the same way
you did the first time. The first boot after any flash takes about 20 seconds
longer than usual while the memory is retrained. That's expected.

## Files

| File | What it is |
|---|---|
| `pianort-ce-noibat-0.2.0.rom.xz` | Base firmware image (16 MiB once uncompressed). Don't flash it as is: run `pianort-ce-flash`. |
| `pianort-ce-noibat-0.2.0-bzImage` | The Linux kernel inside the image, needed by the flasher |
| `pianort-ce-flash` | Customizes the image for your unit and, only with `--flash`, flashes the BIOS region |
| `cbfstool` | coreboot's image tool, built from the source below for Debian 13 amd64. The flasher uses it automatically. |
| `FLASHER.md` | How the flasher works, and your responsibilities |
| `SOURCES.txt` | Exactly which source each binary was built from |
| `coreboot-pianort-ce-0.2.0-source.tar.xz.part-*` | Full coreboot source tree, split into parts |
| `patches/` | The three PianoRT changes to upstream coreboot |
| `config.pianort_ce_noibat` | coreboot build config |
| `linux-7.3.6-pianort-nvme-managed-irq.patch` | The only change to the Linux 7.3.6 source |
| `linux-7.3.6-pianort-ce-0.2.0-kconfig.txt` | Kernel build config |
| `linux-7.3.6.tar.xz` | Unmodified Linux 7.3.6 source, mirrored from kernel.org |
| `licenses/` | coreboot, Intel FSP and Intel microcode license texts |
| `SHA256SUMS` | Checksums for everything above |

Check the downloads, then rebuild the coreboot source tarball from its parts:

```sh
sha256sum -c --ignore-missing SHA256SUMS
cat coreboot-pianort-ce-0.2.0-source.tar.xz.part-* > coreboot-pianort-ce-0.2.0-source.tar.xz
sha256sum -c --ignore-missing SHA256SUMS
unxz -k pianort-ce-noibat-0.2.0.rom.xz
```

## What's in this firmware

- Upstream coreboot 26.09 with three PianoRT patches:
  1. **cbfstool Linux trampoline byte-order fix.** This is needed for the
     kernel's display driver on this board. It's carried out of tree while
     the upstream review is still open.
  2. **Noibat appliance devicetree.** It turns off the eDP output, the
     USB-C DisplayPort chips (so **USB-C displays don't work**; use HDMI or
     DisplayPort) and the cr50 TPM bus.
  3. **Community Edition config.** The serial number reads "PianoRT
     Community Edition" and the version ends in `-pianort-ce-0.2.0`.
- Linux 7.3.6, built with the mainline PREEMPT_RT option and one NVMe patch.
  The patch makes `isolcpus=managed_irq` actually keep NVMe interrupts off
  the isolated CPUs. It has no effect without CPU isolation.
- Intel FSP and microcode binaries from coreboot's public repositories. No
  Intel ME or flash descriptor is included, so the flasher writes only the
  BIOS region and leaves your unit's own descriptor and ME in place.

## Requirements and known limits

- HP Chromebox G3 (Noibat), with firmware write protection turned off
- Debian 13 installed on an **NVMe SSD** (required)
- `flashrom` from Debian (`sudo apt install flashrom`). `cbfstool` is included.
- USB-C displays don't work
- Every unit uses the same Ethernet MAC address. `FLASHER.md` shows how to
  give each unit its own.
- Wi-Fi must be off while playing. Failure to disable Wi-Fi may cause
  unexpected results.
- Pianoteq is licensed separately by Modartt and isn't included.

## Tested

On the reference G3 (i7-10610U): flashed with this release's
`pianort-ce-flash --flash`, booted, then played a 6-minute stress MIDI file
through Pianoteq at 64 samples / 48 kHz while `cyclictest` ran at priority 90
on the audio cores. Results are in the release announcement on pianort.com.
That's one unit, not a guarantee for yours.

## Reproducibility

Two clean builds of the coreboot tree produced the same image byte for byte
(sha256 in `SHA256SUMS`), given `pianort-ce-noibat-0.2.0-bzImage` as the
payload. The kernel binary is the exact one tested on the reference unit.
Rebuilding it from the published source gives the same code, but not a
byte-identical file, because the kernel records its build time and host.

## Licenses and credits

coreboot and the Linux kernel are GPL-2.0. The full coreboot source is in this
folder. The kernel is unmodified Linux 7.3.6, mirrored here from kernel.org
(https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-7.3.6.tar.xz), plus the
one patch and config in this folder.

**Written offer:** for at least three years from this release, anyone can
request a complete copy of the corresponding kernel and coreboot source for
this firmware by emailing packages@pianort.com. It's provided at no more than
the cost of sending it. PianoRT's own scripts and patches are MIT where they aren't part of
coreboot or Linux. Intel FSP and microcode are redistributed under Intel's
licenses in `licenses/`. Thanks to the coreboot and Linux communities, and to
the MrChromebox project for its work on Chromebox firmware.
