Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


software:oowow:dev:web-api:write

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:oowow:dev:web-api:write [2023/09/12 23:03]
hyphop
software:oowow:dev:web-api:write [2024/03/15 01:29] (current)
hyphop [Usage]
Line 1: Line 1:
-====== Write ======+~~tag>OOWOW API image disk~~ 
 +====== Write Disk Image to remote device ======
  
-Write image by HTTP to device remote storage WIP:+Write image by LAN on the fly: 
 +  * raw images ''dd'' - network transferred data will be compressed/decompressed with zstd algorithm on the fly in real-time  
 +  * compressed images '' gz | xz | zstd '' - data transfered as-is and will be decompressed and writed on the fly on device side 
  
-```sh 
  
-SYNOPSIS+===== Usage =====
  
-curl oowow.local/shell/write | sh -s - [IMAGE] [ARGS] 
  
 +```sh shell/write
 +curl oowow.local/shell/write | sh -s - [IMAGE] [PARAMETERS]
 +```
  
-USAGE +<WRAP tip > 
-     +Need replace **oowow.local** - to actual oowow LAN host name or IP 
-    write IMAGE_FILE [HOST] [-sd|-spi|-mmc|-nvme|-boot|-boot-online|-spi-boot-clean] [-raw] [/dev/...]+</WRAP>
  
-    args: nofix - no fix partition 
  
-```+===== Parameters ===== 
 + 
 +All parameters must follow after image file-name 
 + 
 +==== Destination ====
  
 +  * ''-sd'' - SD disk
 +  * ''-spi'' - SPI flash
 +  * ''-mmc'' - eMMC storage - is works by default 
 +  * ''-nvme'' - NVME storage 
 +  * ''/dev/*'' - custom block device node
  
 +==== Extra ====
  
 +  * ''-raw'' - disable compression format detection and write all data as is
 +  * ''-nofix'' - disable extra automation with partition table fixation
Last modified: 2023/09/12 23:03 by hyphop