> For the complete documentation index, see [llms.txt](https://docs.arkelectron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkelectron.com/products/embedded-computers/ark-just-a-pi/flashing-guide.md).

# Flashing Guide

Bundles that include a CM5 ship pre-imaged with ARK-OS. Follow this guide if you purchased just the carrier and are installing your own Compute Module.

## Option 1: ARK Golden Image

The golden image is Raspberry Pi OS with the carrier's `config.txt` baked in and ARK-OS installed. Download the one for your compute module from [downloads.arkelectron.com/pi/just-a-pi/latest](https://downloads.arkelectron.com/pi/just-a-pi/latest/): `justapi-cm5-trixie-ark-os.img.xz` or `justapi-cm4-trixie-ark-os.img.xz`. Write it to the SD card with [Raspberry Pi Imager](https://www.raspberrypi.com/software/) (**Use custom**), without OS customization. Log in as `pi` / `raspberry`. The image configures the cameras for the Raspberry Pi Camera Module 3 (IMX708); for another camera, change the `dtoverlay=imx708` lines in `/boot/firmware/config.txt`.

For a module with eMMC, hold the **BOOT** button while powering the board, connect the USB JST-GH port to the host, and run [rpiboot](https://www.raspberrypi.com/documentation/computers/compute-module.html#flashing-the-compute-module-emmc) so the eMMC appears as a drive. Write the image to it.

To build the image yourself, see [ark\_pi\_image](https://github.com/ARK-Electronics/ark_pi_image) (`--target justapi-cm5` or `justapi-cm4`).

## Option 2: Raspberry Pi Imager (manual)

Flash stock Raspberry Pi OS, then configure the carrier by hand:

{% content-ref url="/pages/zbZscLqO3bK3iiubqEtp" %}
[Pi CM5 Lite with Micro SD](/products/embedded-computers/ark-just-a-pi/flashing-guide/pi-cm5-lite-with-micro-sd.md)
{% endcontent-ref %}

{% content-ref url="/pages/MJINAbKNd4AgtMyufIsO" %}
[Pi CM5 with EMMC](/products/embedded-computers/ark-just-a-pi/flashing-guide/pi-cm5-with-emmc.md)
{% endcontent-ref %}

Then edit `config.txt` for the carrier ([After Flashing, Before Installing](/products/embedded-computers/ark-just-a-pi/flashing-guide/after-flashing-before-installing.md)), boot, and [install ARK-OS](/software/ark-os.md#installing-and-updating-ark-os).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.arkelectron.com/products/embedded-computers/ark-just-a-pi/flashing-guide.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
