> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siderolabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Orange Pi 5

> Installing Talos on Orange Pi 5 using raw disk image.

export const release_v1_13 = 'v1.13.0';

export const VersionWarningBanner = () => {
  const latestVersion = "v1.13";
  const [latestUrl, setLatestUrl] = useState(null);
  const [currentVersion, setCurrentVersion] = useState(null);
  const [isBeta, setIsBeta] = useState(false);
  const parseVersion = v => v.replace("v", "").split(".").map(Number);
  const isGreaterVersion = (a, b) => {
    const [aMajor, aMinor] = parseVersion(a);
    const [bMajor, bMinor] = parseVersion(b);
    if (aMajor > bMajor) return true;
    if (aMajor === bMajor && aMinor > bMinor) return true;
    return false;
  };
  useEffect(() => {
    if (typeof window === "undefined") return;
    const {pathname, hash, search} = window.location;
    const match = pathname.match(/\/talos\/(v\d+\.\d+)\//);
    if (!match) return;
    const detectedVersion = match[1];
    if (detectedVersion === latestVersion) return;
    setCurrentVersion(detectedVersion);
    if (isGreaterVersion(detectedVersion, latestVersion)) {
      setIsBeta(true);
    }
    const newPath = pathname.replace(`/talos/${detectedVersion}/`, `/talos/${latestVersion}/`);
    setLatestUrl(`${newPath}${search}${hash}`);
  }, []);
  if (!latestUrl || !currentVersion) return null;
  return <div className="not-prose sticky top-6 z-50 my-6">
      <div className="border border-yellow-500/30 bg-yellow-500/10 px-4 py-3 rounded-xl">
        <div className="text-sm">
          {isBeta ? <>
              ⚠️ You are viewing a <strong>beta version</strong> of Talos ({currentVersion}).
              This version may be unstable.
              <a href={latestUrl} className="ml-2 underline text-yellow-400 hover:text-yellow-300 font-medium">
                View latest stable version {latestVersion} →
              </a>
            </> : <>
              ⚠️ You are viewing an older version of Talos ({currentVersion}).
              <a href={latestUrl} className="ml-2 underline text-yellow-400 hover:text-yellow-300 font-medium">
                View the latest version {latestVersion} →
              </a>
            </>}
        </div>
      </div>
    </div>;
};

<VersionWarningBanner />

## Prerequisites

Before you start:

* follow [Installation/talosctl](../../getting-started/talosctl) to intall `talosctl`

## Boot options

You can boot Talos from:

1. booting from SD card
2. booting from a USB or NVMe (requires a spi image on the SPI flash)

### Booting from SD card

Go to `https://factory.talos.dev` select `Single Board Computers`, select the version and select `Orange Pi 5` from the options.
Choose your desired extensions and fill in the kernel command line arguments if needed.

Download the disk image and decompress it:

<CodeBlock lang="sh">
  {`
    curl -LO https://factory.talos.dev/image/[uuid]/${release_v1_13}/metal-arm64.raw.xz
    xz -d metal-arm64.raw.xz
    `}
</CodeBlock>

#### Flash the image

The image can be flashed using Etcher on Windows, macOS, or Linux or using dd on Linux:

```bash theme={null}
# Replace /dev/<device> with the destination device
# You can find the device with `lsblk` or `fdisk -l`
sudo dd if=metal-arm64.raw of=/dev/<device> bs=1M status=progress && sync
```

Proceed by following the [getting started guide](../../getting-started/getting-started#configure-talos-linux) for further steps on how to configure Talos.

#### Booting from USB or NVMe

#### Requirements

* An SD card to boot the Orange Pi 5 board from in order to flash the SPI flash.

Go to `https://factory.talos.dev` select `Single Board Computers`, select the version and select `Orange Pi 5` from the options.
Choose your desired extensions and fill in the kernel command line arguments if needed.

You should also add the `spi_boot: true` overlay extra option in order to remove u-boot from the final image, as the bootloader will be flashed to the SPI flash.

Download the disk image and decompress it:

<CodeBlock lang="sh">
  {`
    curl -LO https://factory.talos.dev/image/[uuid]/${release_v1_13}/metal-arm64.raw.xz
    xz -d metal-arm64.raw.xz
    `}
</CodeBlock>

#### Steps

1. Make sure to install the NVMe or USB drive in the Orange Pi 5 board.

2. Boot the Orange Pi 5 board from the SD card:

   * Flash the Orange Pi 5 variant of [Ubuntu](http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-pi-5.html) to an SD card.
   * Insert the SD card into the Orange Pi 5 board.
   * Boot into the Ubuntu image.
   * Download [crane CLI](https://github.com/google/go-containerregistry/releases) on the Ubuntu image.

3. From the Ubuntu image, find the latest `sbc-rockchip` overlay, download and extract the u-boot SPI image:

   * Find the latest release tag of the [sbc-rockchip repo](https://github.com/siderolabs/sbc-rockchip/releases).
   * Download and extract the u-boot SPI image:

     ```bash theme={null}
     crane --platform=linux/arm64 export ghcr.io/siderolabs/sbc-rockchip:<releasetag> | tar x --strip-components=4 artifacts/arm64/u-boot/orangepi-5/u-boot-rockchip-spi.bin
     ```

4. Flash the SPI flash with the u-boot SPI image:

   ```bash theme={null}
   devicesize=$(blockdev --getsz /dev/mtdblock0)
   dd if=/dev/zero of=/dev/mtdblock0 bs=1M count=$devicesize status=progress && sync
   dd if=u-boot-rockchip-spi.bin of=/dev/mtdblock0 bs=1M status=progress && sync
   ```

5. Flash the Talos raw image to the NVMe or USB drive:

   ```bash theme={null}
   sudo dd if=metal-arm64.raw of=/dev/<device> bs=1M status=progress && sync
   ```

6. Shutdown the Orange Pi 5 board and remove the SD card.

On the next boot, Talos will now boot from the NVMe/USB and enter maintenance mode.

Proceed by following the [getting started guide](../../getting-started/getting-started#configure-talos-linux) for further steps on how to configure Talos.

## Troubleshooting

### Serial console

If you experience any issues you can check the serial console.
Follow the [official guideline](https://drive.google.com/drive/folders/1ob_qOW2MMa7oncxIW6625NqwXHRxdeAo) (Section 2.18 — "How to use the debugging serial port")
on how to connect a serial adapter.
