1 (edytowany przez ad2014 2026-03-23 16:55:36)

Temat: owut - aktualizacja w terminalu

Aktualizacja wyknana na Zyxel EX5601
aktualizacja z wykorzystaniem narzędzia owut  jest dość prosta  jezeli aktualizujemy to same wydanie np.24 do 24  , gorzej  gdy musimy przeskoczyć z 24 do 25  , ale i tu  owut  prowadzi nas krok po kroku . Jezeli jest coś nie tak od razu to raportuje .
W tym wpisie pokażę  jak to wyglada iw parktyce  ( cześć z termianla została skrócona  )
Na poczatek  help

root@OpenWrt:~# owut -h
owut - OpenWrt Upgrade Tool 2026.01.13~2526d84b-r1 (/usr/bin/owut)

owut is an upgrade tool for OpenWrt.

Usage: owut COMMAND [-V VERSION_TO] [-R REV_CODE] [-v] [-q] [-k] [--force] [-a ADD] [-r REMOVE] [--clean-slate] [--ignored-defaults IGNORED_DEFAULTS] [--ignored-changes IGNORED_CHANGES] [-I INIT_SCRIPT] [-F FSTYPE] [-S ROOTFS_SIZE] [-i IMAGE] [-f FORMAT] [-p PRE_INSTALL] [-T POLL_INTERVAL] [--progress-size PROGRESS_SIZE]
  -h/--help            - Show this message and quit.
  --version            - Show the program version and terminate.

  COMMAND - Sub-command to execute, must be one of:
    check    - Collect all resources and report stats.
    list     - Show all the packages installed by user.
    blob     - Display the json blob for the ASU build request.
    download - Build, download and verify an image.
    verify   - Verify the downloaded image.
    install  - Install the specified local image.
    upgrade  - Build, download, verify and install an image.
    versions - Show available versions.
    dump     - Collect all resources and dump internal data structures.

  -V/--version-to VERSION_TO - Specify the target version, defaults to installed version.
  -R/--rev-code REV_CODE - Specify a 'version_code', literal 'none' allowed, defaults to latest build.
  -v/--verbose         - Print various diagnostics.  Repeat for even more output.
  -q/--quiet           - Reduce verbosity.  Repeat for total silence.
  -k/--keep            - Save all downloaded working files.
  --force              - Force a build even when there are downgrades or no changes.
  -a/--add ADD         - New packages to add to build list.
  -r/--remove REMOVE   - Installed packages to remove from build list.
  --clean-slate        - Remove all but default packages (READ THE DOCS).
  --ignored-defaults IGNORED_DEFAULTS - List of explicitly ignored default package names.
  --ignored-changes IGNORED_CHANGES - List of explicitly ignored package changes.
  -I/--init-script INIT_SCRIPT - Path to uci-defaults script to run on first boot ('-' use stdin).
  -F/--fstype FSTYPE   - Desired root file system type (squashfs, ext4, ubifs, jffs2).
  -S/--rootfs-size ROOTFS_SIZE - DANGER: See wiki before using!  Root file system size in MB (1-[server-dependent]).
  -i/--image IMAGE     - Image name for download, verify, install and upgrade.
  -f/--format FORMAT   - Format for 'list' output (fs-user, fs-all, config).
  -p/--pre-install PRE_INSTALL - Script to exec just prior to launching final sysupgrade.
  -T/--poll-interval POLL_INTERVAL - Poll interval for build monitor, in milliseconds.
  --progress-size PROGRESS_SIZE - Response content-length above which we report download progress.

Full documentation
  [url]https://openwrt.org/docs/guide-user/installation/sysupgrade.owut[/url]

Questions and discussion
  [url]https://forum.openwrt.org/t/owut-openwrt-upgrade-tool/200035[/url]

Issues and bug reports
  [url]https://github.com/efahl/owut/issues[/url]

to lecimy

-----------------------------------------------------------------------------------

root@OpenWrt:~# owut versions
Available 'version-to' values from [url]https://sysupgrade.eko.one.pl[/url]:
  24.10 release branch
    24.10-SNAPSHOT (installed,requested)
  25.12 release branch
    25.12-SNAPSHOT
---------------------------------------
root@OpenWrt:~# owut list   # tu zobaczymy liste pakietów

---------------------------------------
########  obcja -v/--verbose  = pokazuje ładnie kolorową liste pakietów oraz szczegułowe komunikaty

root@OpenWrt:~# owut download -V 25.12-SNAPSHOT --verbose
owut - OpenWrt Upgrade Tool 2026.01.13~2526d84b-r1 (/usr/bin/owut)
ASU-Server     [url]https://sysupgrade.eko.one.pl[/url]
Upstream       [url]https://dl.eko.one.pl[/url]
Target         mediatek/filogic
Profile        zyxel_ex5601-t0-ubootmod
Package-arch   aarch64_cortex-a53
Root-FS-type   squashfs
Sys-type       sysupgrade
Version-from   24.10-SNAPSHOT r29077-f415748ba8 (kernel 6.6.119)
Version-to     25.12-SNAPSHOT r32702-5b66b10095 (kernel 6.12.71)
Build-commit   [url]https://git.openwrt.org/?p=openwrt/openwrt.git;a=shortlog;h=5b66b10095[/url]
Build-FS-type  squashfs
Build-at       2026-02-28T13:37:55Z (~22 days ago)
Image-prefix   openwrt-25.12-snapshot-r32702-5b66b10095-mediatek-filogic-zyxel_ex5601-t0-ubootmod
Image-URL      [url]https://dl.eko.one.pl/releases/25.12-SNAPSHOT/targets/mediatek/filogic[/url]
Image-file     openwrt-25.12-snapshot-r32702-5b66b10095-mediatek-filogic-zyxel_ex5601-t0-ubootmod-squashfs-sysupgrade.itb
Installed      361 packages
Top-level      139 packages
Default         35 packages
User-installed 112 packages (top-level only)

Package version changes:
  adblock                             4.4.2-r3                                    4.5.3-r1
  apk-mbedtls                         not-installed                               3.0.5-r2
  backupandrestore-opkg               20241128-r1                                 missing to-version
  base-files                          251212.01946~f415748ba8                     260228.49075~5b66b10095
  bind-dig                            9.20.15-r1                                  9.20.18-r1
  bind-libs                           9.20.15-r1                                  9.20.18-r1
1 packages missing in target version, cannot upgrade
1 packages were downgraded
303 packages are out-of-date

Automatic package replacements/removals:
  Package                             Replaced-by
  opkg                                apk-mbedtls
Details at [url]https://sysupgrade.eko.one.pl/json/v1/overview.json[/url]

ERROR: Update checks reveal package downgrades
------------------------------------------------------------------------------------
#########  tu wystapiły bledy obraz nie został pobrany

-------------------------------------------------------------------------------------
root@OpenWrt:~# owut download -V 25.12-SNAPSHOT  -r backupandrestore-opkg , luci-app-adblock  -v
owut - OpenWrt Upgrade Tool 2026.01.13~2526d84b-r1 (/usr/bin/owut)

ERROR: ',' is not a valid command or option
--------------------------------------------------------------------------------------
#########  blad składni polecenia  ( przecinek nie działa )
--------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------
#########  tutaj uzywamy cudzysłowa  = wszystko działa

root@OpenWrt:~# owut download -V 25.12-SNAPSHOT  -r "backupandrestore-opkg  luci-app-adblock"  -v
owut - OpenWrt Upgrade Tool 2026.01.13~2526d84b-r1 (/usr/bin/owut)
ASU-Server     [url]https://sysupgrade.eko.one.pl[/url]
Upstream       [url]https://dl.eko.one.pl[/url]
Target         mediatek/filogic
Profile        zyxel_ex5601-t0-ubootmod
Package-arch   aarch64_cortex-a53
Root-FS-type   squashfs
Sys-type       sysupgrade
Version-from   24.10-SNAPSHOT r29077-f415748ba8 (kernel 6.6.119)
Version-to     25.12-SNAPSHOT r32702-5b66b10095 (kernel 6.12.71)
Build-commit   [url]https://git.openwrt.org/?p=openwrt/openwrt.git;a=shortlog;h=5b66b10095[/url]
Build-FS-type  squashfs
Build-at       2026-02-28T13:37:55Z (~22 days ago)
Image-prefix   openwrt-25.12-snapshot-r32702-5b66b10095-mediatek-filogic-zyxel_ex5601-t0-ubootmod
Image-URL      [url]https://dl.eko.one.pl/releases/25.12-SNAPSHOT/targets/mediatek/filogic[/url]
Image-file     openwrt-25.12-snapshot-r32702-5b66b10095-mediatek-filogic-zyxel_ex5601-t0-ubootmod-squashfs-sysupgrade.itb
Installed      359 packages
Top-level      137 packages
Default         35 packages
User-installed 110 packages (top-level only)

Package version changes:
  adblock                             4.4.2-r3                                    4.5.3-r1
  apk-mbedtls                         not-installed                               3.0.5-r2
  base-files                          251212.01946~f415748ba8                     260228.49075~5b66b10095
  bind-dig                            9.20.15-r1                                  9.20.18-r1
  bind-libs                           9.20.15-r1                                  9.20.18-r1
  block-mount                         2024.07.14~408c2cc4-r1                      2026.02.15~8d377aa6-r1
  busybox                             1.36.1-r2                                   1.37.0-r6

---######### nastepnie nastepuje budowa obrazu -------------------------------------------------------

301 packages are out-of-date

Automatic package replacements/removals:
  Package                             Replaced-by
  opkg                                apk-mbedtls
Details at [url]https://sysupgrade.eko.one.pl/json/v1/overview.json[/url]

Default package analysis:
  Default                             Provided-by
  dnsmasq                             dnsmasq-full
  nftables                            nftables-json

No package build failures found for 25.12-SNAPSHOT aarch64_cortex-a53.

Request:
  Version 25.12-SNAPSHOT r32702-5b66b10095 (kernel 6.12.71)
Request hash:
  5f0b34130b424dd14dd9747c2797d3b7e66e1d75a4afddef04396532eb5f9f21
--
Status:   queued - 0 ahead of you
Progress:   0s total =   0s in queue +   0s in build
--
Status:   container_setup
Progress:   5s total =   0s in queue +   5s in build
--
Status:   validate_manifest
Progress:  36s total =   0s in queue +  36s in build
--
Status:   building_image
Progress:  75s total =   0s in queue +  75s in build
--
Status:   done
Progress:  78s total =   0s in queue +  78s in build

Build succeeded in  78s total =   0s in queue +  78s to build:
  version_number = 25.12-SNAPSHOT
  version_code   = r32702-5b66b10095 (requested r32702-5b66b10095)
  kernel_version = 6.12.71
  rootfs_size_mb = default
  init-script    = no-init-script

Image source: [url]https://sysupgrade.eko.one.pl/store/5f0b34130b424dd14dd9747c2797d3b7e66e1d75a4afddef04396532eb5f9f21/openwrt-25.12-snapshot-r32702-5b66b10095-fcd5cac61354-mediatek-filogic-zyxel_ex5601-t0-ubootmod-squashfs-sysupgrade.itb[/url]
Image saved : /tmp/firmware.bin
Manifest    : /tmp/firmware-manifest.json
Verifying   : /tmp/firmware.bin (19345703 bytes) against /tmp/firmware.sha256sums
  Saved sha256 matches
  (null)
Checks complete, image is valid.

---------------------------------------------------------------------
################# sprawdzenie - weryfikacja -------

root@OpenWrt:~# owut verify -v
owut - OpenWrt Upgrade Tool 2026.01.13~2526d84b-r1 (/usr/bin/owut)
Verifying   : /tmp/firmware.bin (19345703 bytes) against /tmp/firmware.sha256sums
  Saved sha256 matches
  (null)
Checks complete, image is valid.
----------------------------------------------------------------------

############## jezeli potrzebujemy cos jeszcze dopisac do bakupu  to  albo termial , albo luci
root@OpenWrt:~# cat /etc/sysupgrade.conf
## This file contains files and directories that should
## be preserved during an upgrade.

# /etc/example.conf
# /etc/openvpn/
/bin/list-clients
----------------------------------------------------------------------

#######   I TERAZ  chwila strachu
root@OpenWrt:~# owut install
Installing /tmp/firmware.bin and rebooting...

####### owut wykonuje verify, potem  leci  sysupgrade  i tu uwaga , nie pyta czy zachowac konfig , tylko od razu ładuje z konfigiem z bakupu.

-----------------------------------------------------------------------
#######po chwili  mamy nowy system
root@192.168.1.1's password:


BusyBox v1.37.0 (2026-03-20 10:10:10 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------------------------------
 |                                                                           |
 | OpenWrt 25.12-SNAPSHOT, r32702-5b66b10095                                 |
 |                                                                           |
 | Build time: 2026-02-28 13:48 UTC                                          |
 | Cezary Jackiewicz, [url]https://eko.one.pl[/url]                                     |
 |                                                                           |

--------------------KONIEC ---------------------------------------------------------

Wybrałem obcje 
owut -h 
owut versions  # tu mamy dostepne wersje na serwerze asu Cezarego
owut list   # tu zobaczymy liste pakietów
owut download -V 25.12-SNAPSHOT --verbose   # tutaj obcja V wybranie konkretnej wersji
owut download -V 25.12-SNAPSHOT  -r "backupandrestore-opkg  luci-app-adblock"  -v    # usuniecie zbednych pakietów
owut download -V 25.12-SNAPSHOT  -a backupandrestore-apk     # doadanie pakietu do obrazu
Oczywiscie mozna to zrobic jednym poleceniem np.
owut upgrade      Zbuduj, pobierz, zweryfikuj i zainstaluj obraz. Krótki sposób na wykonanie wszystkich kroków związanych z modernizacją systemu, w zasadzie download i install w jednym poleceniu.

Może to pomoże jeżeli jeszcze ktoś sie wacha przejść z 24 na 25  , musimy tez liczyć sie z tym ze w przypadku innych routerów mogly być inne zmiany składniowe  i trzeba  wiedzieć co sobie poprawić    . Przypomnę jeszcze że przecinek nie działa , trzeba użyć cudzysłowa  zamykajac liste pakietów  - jezeli jest ich kilka do usunieia lub pobrania .

Ps. GMK M5 Cezarego spisał sie super - obraz zbudował sie bardo szybko , dosłownie  kilka -kilkanascie sek. Dziekuje teraz aktualizacje staja sie proste .

2

Odp: owut - aktualizacja w terminalu

Ja też mam poradnik o tym: https://eko.one.pl/?p=openwrt-owut zaktualizowałem go odnoście apk.

Jeżeli to ty robiłeś to po ósmej to zajęło to 1m 13s. Ale z tygodnia na tydzień jest co raz więcej budowanych obrazów, mam nadzieję że nigdy nie dojdzie to do woluminu jaki openwrt.org przerabia bo wtedy trzeba by jakieś superszybkiego VPS'a kupować albo załatwić jakiś superszybką maszynkę o sporych zasobach.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: owut - aktualizacja w terminalu

dokładnie  było
Build succeeded in  78s total    , ale  wydawało mi się ze to była dosłownie chwilka .