Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


software:oowow:how-to:oowow-autoinstall-disk

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:how-to:oowow-autoinstall-disk [2022/09/08 03:06]
hyphop [Resize FS]
software:oowow:how-to:oowow-autoinstall-disk [2023/08/29 04:42] (current)
hyphop [Custom disk create]
Line 1: Line 1:
-====== OOWOW auto-install SD-card ======+~~tag> oowow howto autoinstall ~~ 
 + 
 +====== OOWOW auto-install disk ====== 
 + 
 +Sometimes, your device has limited access (no keyboard, network, etc ... ), and we need to update eMMC storage content automatically. What did we need? Just  [[#preparation|prepare a special removable disk]] 
 + 
 +<WRAP tip > 
 +These features can work from SD / USB removable disk  
 +</WRAP> 
 +===== Preparation ===== 
 + 
 +  * [[/software/oowow/how-to/start#write-oowow-image-to-removable-storage|write OOWOW system image to removable device]] 
 +  * create dump image for eMMC by any way fox example from oowow or manually by hands 
 +  * create [[#auto-install-config|autoinstall config]] 
 + 
 +===== Autoinstall ===== 
 + 
 +  * Plug prepared removable disk into your device  
 +  * Reboot into OOWOW mode by any way - just reset your device if it can boot up from this removable disk or by a special shortcut or i2c command if device has embedded oowow  
 +  * Wait for autoinstallation, all processes must go automatically 
 +  * Reboot to upgraded system 
  
 ===== Image filename rules ===== ===== Image filename rules =====
  
-''BOARD.*.emmc.img.zst'' put into root on 2n SD partition with label ''dump''+''BOARD.*.emmc.img.zst'' put into root on 2n ''SD'' partition with label ''dump'' 
  
 ===== Auto-install config ====== ===== Auto-install config ======
  
 +Stored into ''rescue/config/autoinstall'' on 1st ''SD'' partition with label ''rescue''
 +
 + 
 ==== Auto-install config format ==== ==== Auto-install config format ====
 ```config /config/autoinstall ```config /config/autoinstall
 BOARD.image_name[.BYTES-bytes].img.[zst|gz] [-sBYTES] [-r] BOARD.image_name[.BYTES-bytes].img.[zst|gz] [-sBYTES] [-r]
 +
 +# BOARD         board name [ VIM1 | VIM2 | VIM3 | VIM3L |  Edge | Edge2 | VIM1S | VIM4 ]
 +# .BYTES-bytes   write size limitation tag
 +# -sBYTES       write size limitation parameter
 +# -r            resize fs parameter
 ``` ```
 +
 +
  
 ==== Example configs  ===== ==== Example configs  =====
Line 20: Line 52:
 ```config /config/autoinstall ```config /config/autoinstall
 VIM3.hg_1.0.emmc.img.zst -s15634268160 VIM3.hg_1.0.emmc.img.zst -s15634268160
 +```
 +
 +```config /config/autoinstall
 +VIM3.hg_1.0.emmc.img.zst -s15634268160 -r 
 +```
 +
 +```config /config/autoinstall
 +VIM3.hg_1.0.15634268160-bytes.emmc.img.zst -r 
 ``` ```
  
Line 32: Line 72:
 ~$ krescue.configs -p | grep autoinstall ~$ krescue.configs -p | grep autoinstall
 config_autoinstall="VIM3.hg_1.0.emmc.img.zst -s15634268160" config_autoinstall="VIM3.hg_1.0.emmc.img.zst -s15634268160"
 +```
 +
 +```shell display-auto-intall-config
 +~$ cat /config/autoinstall
 +VIM3.hg_1.0.emmc.img.zst -s15634268160
 ``` ```
  
Line 77: Line 122:
 ``` ```
  
 +===== Custom disk create =====
 +
 +<WRAP important >
 +This way for installation-disk preparation on user host PC
 +</WRAP>
  
 +Another way to create installation disk by script [[gh>/khadas/oowow-scripts-collection]]
  
Last modified: 2022/09/08 03:06 by hyphop