### Byte Firmware Recovery Guide

#### Requirements

- Additional laptop or PC to run commands
- FPC cable
- CH341A USB programmer
- Debug board
- PH0 screwdriver

![Byte_15.jpg](https://cdn.shopify.com/s/files/1/2059/5897/files/Byte_15.jpg?v=1724338658)

---

### Step 1: Open the Byte

Follow the opening steps in the [Byte Mk II - Complete Disassembly Guide](https://support.starlabs.systems/hc/star-labs/articles/byte-mk-ii-complete-disassembly-guide) until the PCBA is accessible inside the chassis.

---

### Step 2: Locate the Debug Port

Lift the PCBA just enough to access the debug port as shown below.

![Byte_16.jpg](https://cdn.shopify.com/s/files/1/2059/5897/files/Byte_16.jpg?v=1724339204)

---

### Step 3: Assemble the Programmer Setup

Connect the CH341A USB programmer, Debug board, and FPC cable as shown below.

![I5_29.jpg](https://cdn.shopify.com/s/files/1/2059/5897/files/I5_29.jpg?v=1724251523)

---

### Step 4: Connect to the Byte

Attach the free end of the FPC cable to the debug connector on the PCBA.
Plug the CH341A USB programmer into your additional laptop or PC, then open a terminal.

Your final setup should resemble this:

![Byte_17.jpg](https://cdn.shopify.com/s/files/1/2059/5897/files/Byte_17.jpg?v=1724340205)

---

### Step 5: Install Flashrom

On your additional laptop or PC, install `flashrom` by running:

```bash
sudo apt install flashrom
```

---

### Step 6: Download the Firmware

All firmware files are available on our [GitHub repository](https://github.com/StarLabsLtd/firmware).

For example, to download the Byte Mk II firmware:

1. Navigate to the `.bios` file [here](https://github.com/StarLabsLtd/firmware/raw/refs/heads/main/roms/Y2.bios).
2. Click the **Download** button to save it to your system.

---

### Step 7: Flash the Firmware

Finally, write the firmware to the device by running the following command. Replace `~/Downloads/Y2.bios` with the path to the firmware file you downloaded:

```bash
sudo flashrom -p ch341a_spi -w ~/Downloads/Y2.bios
```