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:automate-os-upgrade-by-lan [2023/08/21 23:31] hyphop [OOWOW Automate OS Upgrade] |
software:oowow:how-to:automate-os-upgrade-by-lan [2023/08/23 23:34] (current) hyphop ↷ Page name changed from software:oowow:how-to:automate-os-upgrade to software:oowow:how-to:automate-os-upgrade-by-lan |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== OOWOW Automate OS Upgrade ====== | ====== OOWOW Automate OS Upgrade ====== | ||
- | WIP: ... | + | OOWOW provides a flexible and powerful ways to upgrade fix and maintain device |
+ | ===== Device access from LAN ===== | ||
- | ===== Example 1 ===== | + | Need bootup into oowow 1st time and ... |
- | ```sh | + | * make wifi configuration to use LAN |
+ | * check device '' | ||
+ | * FireWall setup to **allow income connection** from LAN | ||
+ | * check connection | ||
- | # reboot into oowow | + | <WRAP tip > |
+ | All Khadas oowow device have uniq name like '' | ||
+ | </ | ||
+ | |||
+ | |||
+ | ```sh check network access from LAN | ||
+ | ping edge2-00000.local -c1 && ssh root@edge2-00000.local false && echo OK | ||
+ | ``` | ||
+ | |||
+ | ===== Reboot device into OOWOW mode ===== | ||
+ | |||
+ | ```sh reboot device into oowow mode under main OS | ||
+ | # reboot into oowow from main OS | ||
i2cset -f -y 2 0x18 0x92 1 && i2cset -f -y 2 0x18 0x91 1 | i2cset -f -y 2 0x18 0x92 1 && i2cset -f -y 2 0x18 0x91 1 | ||
+ | ``` | ||
+ | ```sh ssh usage for remote reboot into oowow mode | ||
+ | echo " | ||
+ | ``` | ||
+ | ===== Write image to device by LAN ===== | ||
+ | Device must be run in oowow mode, and will be visible in LAN by name '' | ||
+ | |||
+ | ```sh write image to device from remote PC by LAN | ||
+ | curl edge2-00000.local/ | ||
``` | ``` | ||
+ | |||
+ | ===== Custom scripts examples ===== | ||
+ | |||
+ | Users can find the best way to upgrade eMMC storage content... | ||
+ | |||
+ | ```sh write raw image by ssh | ||
+ | cat edge2-armbian-bookworm-legacy-cli.img | ssh root@edge2-00000.local dd of=/ | ||
+ | ``` | ||
+ | |||
+ | ```sh write raw image by ssh decompress on fly | ||
+ | xz -dc edge2-armbian-bookworm-legacy-minimal.img.xz | ssh root@edge2-00000.local dd of=/ | ||
+ | ``` | ||
+ | /* | ||
+ | ```sh rsync raw image | ||
+ | rsync -avzz edge2-armbian-bookworm-legacy-cli.img root@edge2-00000.local:/ | ||
+ | ``` | ||
+ | */ | ||
+ | |||
+ | WIP: .. i will write more example next time | ||
+ | |||
+ | ===== Back to upgraded OS from oowow ===== | ||
+ | |||
+ | ```sh Back to OS from oowow | ||
+ | ssh root@edge2-00000.local reboot | ||
+ | ``` | ||
+ | |||
===== Links ===== | ===== Links ===== | ||