Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


software:oowow:how-to:automate-os-upgrade-by-lan

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:automate-os-upgrade-by-lan [2023/08/22 00:08]
hyphop [Write image to device by LAN]
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 ===== ===== Device access from LAN =====
  
-Need bootup into oowow and+Need bootup into oowow 1st time and ...
  
-  * check device hostname for example ''edge2-00000'', device must be visible in LAN under MDNS ''edge2-00000.local'' name+  * make wifi configuration to use LAN 
 +  * check device ''hostname'' for example ''edge2-00000'', device must be visible in LAN under MDNS ''edge2-00000.local'' name
   * FireWall setup to **allow income connection** from LAN   * FireWall setup to **allow income connection** from LAN
   * check connection   * check connection
Line 33: Line 33:
 ``` ```
 ===== Write image to device by LAN  ===== ===== Write image to device by LAN  =====
 +
 +Device must be run in oowow mode, and will be visible in LAN by name ''edge2-00000.local''
  
 ```sh write image to device from remote PC by LAN ```sh write image to device from remote PC by LAN
 curl edge2-00000.local/shell/write | sh -s - edge2-armbian-bookworm-legacy-cli.img.xz curl edge2-00000.local/shell/write | sh -s - edge2-armbian-bookworm-legacy-cli.img.xz
 +```
 +
 +===== 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=/dev/mmcblk0 status=progress
 +```
 +
 +```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=/dev/mmcblk0 status=progress
 +```
 +/*
 +```sh rsync raw image 
 +rsync -avzz edge2-armbian-bookworm-legacy-cli.img root@edge2-00000.local:/dev/mmcblk0
 +```
 +*/
 +
 +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
 ``` ```
  
Last modified: 2023/08/22 00:08 by hyphop