2020-08-06 16:06:02 -06:00
2020-08-06 16:06:02 -06:00
2020-08-06 16:06:02 -06:00
2020-08-05 14:59:48 -06:00
2020-08-06 16:06:02 -06:00
2020-01-23 12:27:15 -07:00
2019-10-10 21:15:03 -06:00
2020-06-11 13:06:27 -06:00
2020-06-26 11:36:20 -06:00
2020-08-05 14:59:48 -06:00
2019-10-04 17:28:41 -06:00
2020-04-07 14:45:01 -06:00
2020-08-05 14:59:20 -06:00
2020-07-22 09:40:37 -06:00
2019-11-04 15:44:41 -07:00

System76 Open Firmware

An open source distribution of firmware utilizing coreboot, EDK2, and System76 firmware applications.

Please note that only the darp6, galp4, lemp9, oryp6 models are officially supported - if you brick your device it will be up to you to restore the current firmware using an external programmer.

If you would like to view schematics for any supported System76 model, please send an email to firmware@system76.com with the subject line Schematics for MODEL, where MODEL is the name of a directory in the models directory, such as darp6.

Dependencies

Install toolchain

./scripts/deps.sh

Load Rust environment (or optionally reboot)

source ~/.cargo/env

Build firmware, replace qemu with your model (look in the models directory for examples)

./scripts/build.sh qemu

Emulate firmware, only available after building the qemu model

./scripts/qemu.sh

Flashing

Flashing firmware manually is not recommended for the normal user!

Internal programmer

Use this method for flashing a system already running System76 Open Firmware.

./scripts/flash.sh <model>

External programmer

Use one of these methods for first-time flashing or flashing a bricked system.

CH341A USB programmer - slower, but easier to set up

These can be purchased from many places for around 15 USD. Make sure that the one you get has a ROM clip. Here is an example: https://www.amazon.com/Organizer-Socket-Adpter-Programmer-CH341A/dp/B07R5LPTYM

Then you can follow these steps to flash the ROM chip:

  1. Turn off the computer
  2. Unplug the AC adapter
  3. Remove the bottom panel
  4. Attach the clip to the SPI ROM chip
  5. Plug the CH341A into a computer with this repository built
  6. Verify that you can access the ROM chip, replacing <model> with your model:
./scripts/ch341a-dump.sh <model>
  1. Flash the firmware you built, replacing <model> with your model:
./scripts/ch341a-flash.sh <model>

SPI Pi - faster, but harder to set up

SPI Pi is a Raspberry Pi used to flash the SPI ROM. To create a SPI Pi:

  • Get a Raspberry Pi 2 or 3 with Ubuntu 16.04
  • Hook up a SPI clip to the SPI Pi
  • Connect the SPI Pi's SPI clip to the SPI ROM, ensuring pin 1 of the clip aligns with pin 1 on the ROM
  • On the SPI Pi, run the following commands:
sudo apt install flashrom
git clone https://github.com/system76/firmware-open.git firmware

Then you can follow these steps to flash the ROM chip:

  1. Turn off the computer
  2. Unplug the AC adapter
  3. Remove the bottom panel
  4. Attach the clip to the SPI ROM chip
  5. Connect to the Raspberry Pi and wait it for boot
sudo tio -b 115200 /dev/ttyUSB0
  1. From the RPi session, test that the chip is detected.
cd firmware
./scripts/spipi.sh -r backup.rom
  1. From the host, flash the firmware
SPIPI=<user@spipi> ./scripts/spipi-flash.sh <model>

Intel Management Engine

The IME is present, but disabled. This is accomplished by sending a HECI command on boot, before RAM is initalized. This puts the IME in a state similar to setting the HAP bit on earlier platforms. me_cleaner is not used as it does not support IME version 14.0.

Contents

Description
Languages
C 93.5%
Shell 5.7%
Rust 0.5%
Dockerfile 0.3%