From 655d0ec58f5791159bfefc1f1e4be86bf03f2359 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 29 Jun 2020 11:06:45 -0600 Subject: [PATCH] Add CH341A instructions --- README.md | 35 +++++++++++++++++++++++++++++------ README.md.in | 35 +++++++++++++++++++++++++++++------ 2 files changed, 58 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 2707678..ce0b303 100644 --- a/README.md +++ b/README.md @@ -42,9 +42,31 @@ Use this method for flashing a system already running System76 Open Firmware. ### External programmer -Use this method for first-time flashing or flashing a bricked system. +Use one of these methods for first-time flashing or flashing a bricked system. -#### Creating a SPI Pi +#### 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 `` with your model: +``` +./scripts/ch341a-dump.sh +``` +7. Flash the firmware you built, replacing `` with your model: +``` +./scripts/ch341a-flash.sh +``` + +#### 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: @@ -61,12 +83,13 @@ sudo apt install flashrom git clone https://github.com/system76/firmware-open.git firmware ``` -#### Flashing with a SPI Pi +**Then you can follow these steps to flash the ROM chip:** 1. Turn off the computer -2. Remove the bottom panel -3. Attach the clip to the SPI ROM chip -4. Connect to the Raspberry Pi and wait it for boot +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 ``` diff --git a/README.md.in b/README.md.in index 0aa1e5f..81d5c7f 100644 --- a/README.md.in +++ b/README.md.in @@ -42,9 +42,31 @@ Use this method for flashing a system already running System76 Open Firmware. ### External programmer -Use this method for first-time flashing or flashing a bricked system. +Use one of these methods for first-time flashing or flashing a bricked system. -#### Creating a SPI Pi +#### 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 `` with your model: +``` +./scripts/ch341a-dump.sh +``` +7. Flash the firmware you built, replacing `` with your model: +``` +./scripts/ch341a-flash.sh +``` + +#### 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: @@ -61,12 +83,13 @@ sudo apt install flashrom git clone https://github.com/system76/firmware-open.git firmware ``` -#### Flashing with a SPI Pi +**Then you can follow these steps to flash the ROM chip:** 1. Turn off the computer -2. Remove the bottom panel -3. Attach the clip to the SPI ROM chip -4. Connect to the Raspberry Pi and wait it for boot +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 ```