~~tag>Edge2 online burn linux ~~
====== Edge2 Online burn ======
- Connect device to PC by USB cable
- Activate USB Burn mode - by pressing quickly KEY_FUN x 3 times
- Try the next commands from your PC
full online help https://github.com/hyphop/rockchip-burn?tab=readme-ov-file#rockchip-burn
===== Devices =====
* Edge2
* Edge-2L NEW:
/*
Advanced info about [[local:dev:edge2:usb-burn]]
*/
===== Get images list =====
Just copy one command line to Linux terminal... (copy-paste mode)
```
curl dl.khadas.com/online/rockchip-burn | sh -s - --list
```
```sh get edge-2l images list
curl dl.khadas.com/online/rockchip-burn | sh -s - edge-2l --list
```
```sh get edge-2l images list
export BOARD=edge-2l
curl dl.khadas.com/online/rockchip-burn | sh -s - --list
```
===== Restore OOWOW firmware =====
```sh write latest oowow into spi flash
curl dl.khadas.com/online/rockchip-burn | sh -s - oowow --refresh --write --spi
```
or last cached image
```sh write latest cached oowow into spi flash
curl dl.khadas.com/online/rockchip-burn | sh -s - oowow --write --spi
```
or minimal variant
```sh write latest cached oowow into spi flash
curl dl.khadas.com/online/rockchip-burn | sh -s - oowow
```
===== Write Android to emmc =====
```sh write android to emmc
curl dl.khadas.com/online/rockchip-burn | sh -s - android --write
```
===== Fast OOWOW from emmc =====
```sh write latest oowow to emmc
curl dl.khadas.com/online/rockchip-burn | sh -s - oowow --write
```
===== Write Ubuntu to emmc =====
```sh write ubuntu to emmc
curl dl.khadas.com/online/rockchip-burn | sh -s - ubuntu --write
```
===== Write custom remote images examples =====
```sh write remote image from link
rockchip-burn http://dl.khadas.com/products/oowow/system/versions/edge2/edge2-oowow-230308.000-sd.img.gz
```
```sh write remote image from by short name to spi flash
rockchip-burn edge2-oowow-230308.000-spi.img.gz --spi
```
===== Write Local images examples=====
```sh write local image to emmc
rockchip-burn ./edge2-oowow-230308.000-sd.img.gz
```
```sh write local image to spi
rockchip-burn ./edge2-oowow-230308.000-spi.img.gz --spi
```
===== Limitations =====
* Linux systems only
* x86 arch only
* Tested on Ubuntu but must works for any other linux system
* Ubuntu 22.04 - OKAY
===== Sources =====
* https://github.com/hyphop/rockchip-burn
* https://github.com/hyphop/rockchip-burn/blob/main/rockchip-burn#L11
* http://dl.khadas.com/online/rockchip-burn
* http://dl.khadas.com/online/rockchip-burn.readme.md