This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
software:oowow:how-to:oowow-autoinstall-disk [2022/09/08 01:40] hyphop [by filename] |
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 | ||
| + | |||
| + | Sometimes, your device has limited access (no keyboard, network, etc ... ), and we need to update eMMC storage content automatically. What did we need? Just [[# | ||
| + | |||
| + | <WRAP tip > | ||
| + | These features can work from SD / USB removable disk | ||
| + | </ | ||
| + | ===== Preparation ===== | ||
| + | |||
| + | * [[/ | ||
| + | * create dump image for eMMC by any way fox example from oowow or manually by hands | ||
| + | * create [[# | ||
| + | |||
| + | ===== 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, | ||
| + | * Reboot to upgraded system | ||
| ===== Image filename rules ===== | ===== Image filename rules ===== | ||
| - | '' | + | '' |
| - | ===== Setup write size ====== | ||
| + | ===== Auto-install config ====== | ||
| - | ==== by filename ===== | + | Stored into '' |
| - | '' | + | |
| + | ==== Auto-install config format ==== | ||
| + | ```config / | ||
| + | BOARD.image_name[.BYTES-bytes].img.[zst|gz] [-sBYTES] [-r] | ||
| + | # BOARD board name [ VIM1 | VIM2 | VIM3 | VIM3L | Edge | Edge2 | VIM1S | VIM4 ] | ||
| + | # .BYTES-bytes | ||
| + | # -sBYTES | ||
| + | # -r resize fs parameter | ||
| + | ``` | ||
| + | |||
| + | |||
| + | |||
| + | ==== Example configs | ||
| - | ```shell / | + | ```config |
| - | VIM3.hg_1.0-bytes.15634268160.emmc.img.zst | + | VIM3.hg_1.0.emmc.img.zst |
| ``` | ``` | ||
| + | ```config / | ||
| + | VIM3.hg_1.0.emmc.img.zst -s15634268160 | ||
| + | ``` | ||
| - | ==== by autoinstall | + | ```config |
| + | VIM3.hg_1.0.emmc.img.zst -s15634268160 -r | ||
| + | ``` | ||
| + | ```config / | ||
| + | VIM3.hg_1.0.15634268160-bytes.emmc.img.zst -r | ||
| + | ``` | ||
| - | + | ==== Config setup by command-line ==== | |
| + | |||
| + | ```shell edit-and-save-auto-install-config | ||
| + | ~$ echo VIM3.hg_1.0.emmc.img.zst -s15634268160 > / | ||
| + | ~$ krescue.configs -s | ||
| + | ``` | ||
| + | |||
| + | ```shell print-auto-intall-config | ||
| + | ~$ krescue.configs -p | grep autoinstall | ||
| + | config_autoinstall=" | ||
| + | ``` | ||
| + | |||
| + | ```shell display-auto-intall-config | ||
| + | ~$ cat / | ||
| + | VIM3.hg_1.0.emmc.img.zst -s15634268160 | ||
| + | ``` | ||
| + | |||
| + | ```shell disable-autoinstall | ||
| + | ~$ rm / | ||
| + | ``` | ||
| + | |||
| + | <WRAP important > | ||
| + | Also can setup write size by image filename '' | ||
| + | * VIM3.hg_1.0.17179869184-bytes.emmc.img.zst | ||
| + | * VIM3.hg_1.0.16G-bytes.emmc.img.zst | ||
| + | * VIM3.hg_1.0.16384M-bytes.emmc.img.zst | ||
| + | </ | ||
| + | |||
| + | <WRAP important > | ||
| + | Dump images created automatically with bytes tag, and better continue use this tag as is | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Check blank trail image ===== | ||
| + | |||
| + | can write only 11100000000 bytes for example | ||
| + | |||
| + | ```shell check.sh | ||
| + | tail -c+11100000000 VIM3.hg_1.0.emmc.img | hexdump -C | ||
| + | ``` | ||
| + | |||
| + | ===== Resize FS ===== | ||
| + | |||
| + | ```shell resiez_root_fs.sh | ||
| + | |||
| + | root@localhost: | ||
| + | Filesystem | ||
| + | / | ||
| + | |||
| + | root@localhost: | ||
| + | resize2fs 1.45.5 (07-Jan-2020) | ||
| + | Filesystem at /dev/rootfs is mounted on /; on-line resizing required | ||
| + | old_desc_blocks = 1, new_desc_blocks = 2 | ||
| + | The filesystem on /dev/rootfs is now 7587840 (4k) blocks long. | ||
| + | |||
| + | root@localhost: | ||
| + | Filesystem | ||
| + | / | ||
| + | ``` | ||
| + | |||
| + | ===== Custom disk create ===== | ||
| + | <WRAP important > | ||
| + | This way for installation-disk preparation on user host PC | ||
| + | </ | ||
| + | Another way to create installation disk by script [[gh>/ | ||