This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
software:tools:rockchip-burn [2026/06/15 02:56] hyphop created |
software:tools:rockchip-burn [2026/06/15 04:13] (current) hyphop [Edge2 Restore OOWOW firmware to SPI flash] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== rockchip-burn ====== | + | ~~tag> |
| + | |||
| + | ====== | ||
| + | |||
| + | This page explains how to burn OS images to Khadas Edge series boards from a Linux PC using the '' | ||
| + | |||
| + | Supported boards: [[:edge2]] [[: | ||
| + | |||
| + | <WRAP info> | ||
| + | - Connect the board to your PC using a USB-C cable. | ||
| + | - Activate USB Burn mode by quickly pressing the **KEY_FUN** button three times. | ||
| + | - Run the commands below from your PC's Linux terminal. | ||
| + | </ | ||
| + | |||
| + | <WRAP important> | ||
| + | The '' | ||
| + | Use '' | ||
| + | </ | ||
| + | |||
| + | ===== Check connected device | ||
| + | |||
| + | ```sh Show detected USB devices | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Show resolved target info | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | The tool can auto-detect supported Edge series boards from USB when possible. | ||
| + | |||
| + | ====== Edge2 online burn ====== | ||
| + | |||
| + | ===== List available OS images ===== | ||
| + | |||
| + | ```sh List all normal Android and Ubuntu images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh List only Ubuntu images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh List only Android images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ===== Write OS image to eMMC ===== | ||
| + | |||
| + | ```sh List available images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write selected image by index | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Download selected image only | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ===== Edge2 Restore OOWOW firmware ===== | ||
| + | |||
| + | OOWOW uses a special image source and writes to SPI flash by default. | ||
| + | |||
| + | ```sh Write latest OOWOW image | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Refresh cache and write latest OOWOW image | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Download latest OOWOW image only | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh List available OOWOW images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write OOWOW image by index | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ====== Edge-2L online burn ====== | ||
| + | |||
| + | ===== List available OS images ===== | ||
| + | |||
| + | ```sh List all normal Android and Ubuntu images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh List only Ubuntu images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh List only Android images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | Example output: | ||
| + | |||
| + | ```text Example image list | ||
| + | [1] android-14/ | ||
| + | [2] ubuntu-24.04/ | ||
| + | [3] ubuntu-24.04/ | ||
| + | ``` | ||
| + | |||
| + | ===== Write OS image to eMMC ===== | ||
| + | |||
| + | ```sh List available images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write selected image by index | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Download selected image only | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write Ubuntu image by index | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write Android image by index | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ===== Edge-2L Restore OOWOW firmware ===== | ||
| + | |||
| + | OOWOW uses a special image source and writes to SPI flash by default. | ||
| + | |||
| + | ```sh Write latest OOWOW image | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Refresh cache and write latest OOWOW image | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Download latest OOWOW image only | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh List available OOWOW images | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | Example output: | ||
| + | |||
| + | ```text Example OOWOW image list | ||
| + | [1] edge-2l-oowow-260528.000-spi.img.gz | ||
| + | [2] edge-2l-oowow-260529.000-spi.img.gz | ||
| + | ``` | ||
| + | |||
| + | ```sh Download OOWOW image by index | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write OOWOW image by index | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ====== Advanced usage ====== | ||
| + | |||
| + | ===== Auto board detection ===== | ||
| + | |||
| + | When a supported board is connected, the board name can be omitted. | ||
| + | |||
| + | ```sh List normal OS images for detected board | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Restore OOWOW for detected board | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ===== Local usage ===== | ||
| + | |||
| + | You can use '' | ||
| + | |||
| + | ==== Download and install ==== | ||
| + | |||
| + | ```sh Download rockchip-burn | ||
| + | wget https:// | ||
| + | chmod 0755 rockchip-burn | ||
| + | ``` | ||
| + | |||
| + | Install to '' | ||
| + | |||
| + | ```sh Install rockchip-burn to user bin | ||
| + | mkdir -p ~/bin | ||
| + | wget https:// | ||
| + | chmod 0755 ~/ | ||
| + | ``` | ||
| + | |||
| + | Update local script: | ||
| + | |||
| + | ```sh Update rockchip-burn | ||
| + | rockchip-burn --update | ||
| + | ``` | ||
| + | |||
| + | ==== Usage ==== | ||
| + | |||
| + | ```sh Show detected USB devices | ||
| + | ./ | ||
| + | ``` | ||
| + | |||
| + | ```sh List Edge-2L images | ||
| + | ./ | ||
| + | ``` | ||
| + | |||
| + | ```sh Restore latest OOWOW to SPI flash | ||
| + | ./ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write selected OS image by index | ||
| + | ./ | ||
| + | ``` | ||
| + | |||
| + | After installing to '' | ||
| + | |||
| + | ```sh Use installed rockchip-burn | ||
| + | rockchip-burn --devices | ||
| + | rockchip-burn edge-2l --list | ||
| + | rockchip-burn edge-2l oowow --write | ||
| + | ``` | ||
| + | |||
| + | ==== Help ==== | ||
| + | |||
| + | Show help | ||
| + | |||
| + | ```sh | ||
| + | rockchip-burn --help | ||
| + | ``` | ||
| + | |||
| + | Show online help | ||
| + | |||
| + | ```sh | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ===== Write exact image by filename ===== | ||
| + | |||
| + | If only an image filename is provided, the tool resolves the correct download path using the online catalog. | ||
| + | |||
| + | ```sh Write Ubuntu image by filename | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write Android image by filename | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write OOWOW image by filename | ||
| + | curl dl.khadas.com/ | ||
| + | ``` | ||
| + | |||
| + | ===== Write custom remote image ===== | ||
| + | |||
| + | A full URL is used directly and does not need catalog lookup. | ||
| + | |||
| + | ```sh Write Android image from full URL | ||
| + | rockchip-burn https:// | ||
| + | ``` | ||
| + | |||
| + | ```sh Write OOWOW image from full URL | ||
| + | rockchip-burn https:// | ||
| + | ``` | ||
| + | |||
| + | ===== Write local image ===== | ||
| + | |||
| + | A local existing file is used directly. | ||
| + | |||
| + | ```sh Write local Ubuntu image | ||
| + | rockchip-burn ./ | ||
| + | ``` | ||
| + | |||
| + | ```sh Write local OOWOW image | ||
| + | rockchip-burn ./ | ||
| + | ``` | ||
| + | |||
| + | ====== Dependencies ====== | ||
| + | |||
| + | The tool is designed for Linux PC host systems. | ||
| + | |||
| + | Required tools: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | On Ubuntu or Debian based systems: | ||
| + | |||
| + | ```sh Install dependencies | ||
| + | sudo apt update | ||
| + | sudo apt install curl wget xz-utils pixz gzip pigz tar coreutils sed gawk grep sudo | ||
| + | ``` | ||
| + | |||
| + | The Rockchip '' | ||
| + | |||
| + | ```text Cache directory | ||
| + | ~/ | ||
| + | ``` | ||
| + | |||
| + | ====== Behavior notes ====== | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * The image index from '' | ||
| + | * '' | ||
| + | * OOWOW images normally target SPI flash. | ||
| + | * Android and Ubuntu images use the normal board image catalog. | ||
| + | * Normal image filenames are resolved through the catalog, including subdirectories such as '' | ||
| + | * Local file paths and full URLs are used directly. | ||
| + | * Bare image filenames are resolved through the correct online catalog. | ||
| + | |||
| + | ====== Useful options ====== | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ====== Limitations ====== | ||
| + | |||
| + | * Linux host systems only. | ||
| + | * x86_64 / amd64 host architecture only. | ||
| + | * Tested on Ubuntu. | ||
| + | * Requires USB Burn mode for writing. | ||
| + | |||
| + | ====== Sources ====== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | * http:// | ||
| + | * http:// | ||