Owut: OpenWrt Upgrade Tool

thanks for confirming the usage of that specific rpc call

1 Like

Just to be complete...

All of auc, owut and LuCI Attended Sysupgrade app call ubus call rpc-sys packagelist without any parameters (this is the default of {"all": "false"}), which produces the list of packages that have no dependents (what I've been calling the "top-level" packages).

owut also makes another call with {"all": "true"}, and uses the result to do further verification (basically checks that list against the failed package builds from the downloads server) to avoid submitting a build request that will have errors due to missing packages.

1 Like

Well, that turns out to be a bust because the current snapshot is indeed silently installing apk (apk-mbedtls package). I'm going to wait a few days while things get sorted out to do anything more on this; I might just push the current pending mod to --add and be done with it for a bit.

I've just installed the latest SNAPSHOT today (r27964) on an old TL-WDR4300 and I had to do the double owut upgrade, because opkg wasn't installed. In the end, it didn't install silently apk-mbedtls either.

1 Like

@efahl ,

I entered on the rabbit hole of the uci defaults and I love it. I managed to set a defaults that generates a default SSID and password automatically on a TPLink router (they use TP-Link+part of the MAC as SSID and a password defined in the mtdblk0 partition). This is in case I do a reset to defaults and another person can look on the label and set up the router easier.

Anyway, I tried to replicate it on my Belkin RT3200 but that info is on the vendor partition that gets deleted when switching to UBI for OpenWRT. Whatever. I had to set the values manually like the label.

The part concerning to owut, is that, when I have the /rom/etc/uci-defaults/99-asu-defaults file, owut will complain that I don't specify it on the command to preserve it. I think this should be on by default. It's easier to do owut upgrade than owut upgrade --init-script /rom/etc/uci-defaults/99-asu-defaults

What do you think? If you already have a init script, owut should assume you want to keep it and unmodified, unless you specifically change its contents or remove it on purpose. This is the very essence of owut: to keep everything asi it was (packages and configs), and now the uci defaults scripts.

Try putting that in the config file, then it will be the default value:

$ uci set attendedsysupgrade.owut.init_script=/rom/etc/uci-defaults/99-asu-defaults
$ uci commit

Of course, I prefer to put it in non-ROM so that I can edit it, see the example here:
https://openwrt.org/docs/guide-user/installation/sysupgrade.owut#persistent_uci-defaults

The rationale behind not doing all of this automatically is explained there, too.

1 Like

Thanks! I didn't know that. I don't get the warning anymore and that's great.

Then I thought to myself: if I reset the router to defaults, I'd like to set up owut to keep that file. Then I added those lines to my script and made a new image with Firmware Selector, and flashed it but it didn't set the value on the config.

I logged the script and got uci: Entry not found two times, the line setting the value and the commit.

What could be happening there? attendedsysupgrade wasn't ready when the script was running on first boot? I did test the command before and got no errors, in fact, running owut check and owut download gave no warning because the init_script value was set on a running device.

Cheers!

The uci set and uci commit are a one-time only thing as they set the config that is kept "forever" after they run. If you start from a scratch install, you'd see something like this:

  1. opkg install owut

  2. Create our init script, `echo "Hello world" > /etc/owut.d/init.txt

  3. Make its inclusion automatic, uci set attendedsysupgrade.owut.init_script=/etc/owut.d/init.txt && uci commit

  4. Whenever, just owut upgrade.

First three steps are on-time, last step becomes the only one you repeat.

When you run step 1, it automatically adds /etc/owut.d/* to the sysupgrade backup list, do sysupgrade -l | grep owut.d to verify. That's why I make all my examples use it when dealing with files that should be persistent across upgrades.

1 Like

Yeah, but if I restore the defaults, I'd have to execute this command at least one time. I just tested it. That's why I was adding the commands to the init script itself but looking at the log I got uci: Entry not found, like owut wasn't installed on first boot or something.

I followed the wiki properly and created my custom-init.sh script, added it to sysupgrade.conf just fine, then told owut to use this script. If I do another upgrade, it will be backed up fine, but if I restore to defaults afterwards I'd have to execute uci set attendedsysupgrade.owut.init_script=/etc/owut.d/init.txt && uci commit again or, if I do owut upgrade, it'll complain about the asu file.

English is not my first language, in case I'm not that clear, excuse me beforehand.

EDIT: TL;DR: including the commands to set the init_script value on the script itself, are not being properly executed at first boot.

Thank you for the recent fixes!

1 Like

In case anyone else runs into a situation like @el_charlie has above, here's what happened and the resolution to the issue.

Problem description:

  1. Create a custom init script, which contains commands that modify the ASU settings, say uci set attendedsysupgrade.owut.init_script=/etc/owut.d/my-init.sh.
  2. Run owut upgrade, which creates an image containing this script and installs it as /etc/uci-defaults/99-asu-defaults.
  3. On reboot, the "first boot" sequence runs, and the above uci set ... command fails.

Root cause:

  1. During first boot, the files in /etc/uci-defaults/ are run in sort order, so 99-* are run before att*. You can probably see where it is going...
  2. The ASU config is created by /etc/uci-defaults/attendedsysupgrade script, which runs after our custom 99-uci-defaults, so the file /etc/config/attendedsysupgrade doesn't exist yet when step 3 above is run and hence the error.

Fix:
We got a PR merged that adds a 50- prefix to the ASU config script, thus it will run before the 99- scripts and "now" things should work as expected (where "now" = in a day or two when the PR works its way through the build process).

EDIT: Fixed a brain fart: I had said init.d where I meant uci-defaults in the directory names.

2 Likes

I'm trying to do an upgrade but getting the error that it's expecting one version but getting an older one (I see this happened once before with a different package in August).

Error: Firmware package version mismatch: 'luci-mod-network', expected 24.303.68285~2becdcc, but got 24.302.04194~79e9a47

I wonder if it's the 2-phase builds producing a version list before deploying the actual .ipk? (In which case, it has probably self-fixed by now as I'm seeing your post 10h after you made it...)

What's your target and platform, I'll dig around and see if there's anything that will tell us what's going on.

I'd like to be able to detect these things before submitting the build, so owut can say "wait a bit" like the package failure checks are already doing, or maybe even see if the buildbot or ASU server could be changed so they don't happen at all.

It doesn't seem like the error has fixed itself yet, here's the full output:

owut - OpenWrt Upgrade Tool 2024.10.25~8c8907c6-r1 (/usr/bin/owut)
ASU-Server     https://sysupgrade.openwrt.org
Upstream       https://downloads.openwrt.org
Target         mediatek/filogic
Profile        bananapi_bpi-r4
Package-arch   aarch64_cortex-a53
Root-FS-type   squashfs
Sys-type       sysupgrade
Version-from   SNAPSHOT r27965-57572de43a (kernel 6.6.56)
Version-to     SNAPSHOT r27965-57572de43a (kernel 6.6.58)
Build-FS-type  squashfs
Build-at       2024-10-29T11:00:53Z (~54 hours ago)
Image-prefix   openwrt-mediatek-filogic-bananapi_bpi-r4
Image-URL      https://downloads.openwrt.org/snapshots/targets/mediatek/filogic
Image-file     openwrt-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Installed      233 packages
Top-level       99 packages
Default         47 packages
User-installed  64 packages (top-level only)

Package version changes:
  kmod-crypto-authenc            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-crc32c             6.6.56-r1                                  6.6.58-r1
  kmod-crypto-ctr                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-des                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-gf128              6.6.56-r1                                  6.6.58-r1
  kmod-crypto-hw-safexcel        6.6.56-r1                                  6.6.58-r1
  kmod-crypto-manager            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-md5                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha1               6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha256             6.6.56-r1                                  6.6.58-r1
  kmod-eeprom-at24               6.6.56-r1                                  6.6.58-r1
  kmod-gpio-button-hotplug       6.6.56-r5                                  6.6.58-r5
  kmod-hwmon-pwmfan              6.6.56-r1                                  6.6.58-r1
  kmod-i2c-core                  6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux                   6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux-pca954x           6.6.56-r1                                  6.6.58-r1
  kmod-leds-gpio                 6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc-ccitt             6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc32c                6.6.56-r1                                  6.6.58-r1
  kmod-libphy                    6.6.56-r1                                  6.6.58-r1
  kmod-mt76-connac               6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7915e                   6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7916-firmware           6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-nf-flow                   6.6.56-r1                                  6.6.58-r1
  kmod-nf-nat                    6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject                 6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject6                6.6.56-r1                                  6.6.58-r1
  kmod-nfnetlink                 6.6.56-r1                                  6.6.58-r1
  kmod-nft-fib                   6.6.56-r1                                  6.6.58-r1
  kmod-nft-nat                   6.6.56-r1                                  6.6.58-r1
  kmod-phy-aquantia              6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell               6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell-10g           6.6.56-r1                                  6.6.58-r1
  kmod-phy-realtek               6.6.56-r1                                  6.6.58-r1
  kmod-phylink                   6.6.56-r1                                  6.6.58-r1
  kmod-pppoe                     6.6.56-r1                                  6.6.58-r1
  kmod-pppox                     6.6.56-r1                                  6.6.58-r1
  kmod-regmap-i2c                6.6.56-r1                                  6.6.58-r1
  kmod-rtc-pcf8563               6.6.56-r1                                  6.6.58-r1
  kmod-sfp                       6.6.56-r1                                  6.6.58-r1
  kmod-sky2                      6.6.56-r1                                  6.6.58-r1
  kmod-thermal                   6.6.56-r1                                  6.6.58-r1
  kmod-usb-core                  6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-hcd              6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-mtk              6.6.56-r1                                  6.6.58-r1
  kmod-usb3                      6.6.56-r1                                  6.6.58-r1
46 packages are out-of-date

Default package analysis:
  Default                        Provided-by
  kmod-mt7996-233-firmware       not installed
  kmod-mt7996-firmware           not installed
  mt7988-wo-firmware             not installed
  nftables                       nftables-json
  wpad-basic-mbedtls             not installed

There are currently package build failures for SNAPSHOT aarch64_cortex-a53:
  Feed: packages
    fwupd                        Thu Oct 31 01:26:20 2024 - not installed
    geth                         Wed Oct 30 22:07:56 2024 - not installed
    kadnode                      Wed Oct 30 22:39:16 2024 - not installed
    micropython-lib              Wed Oct 30 23:05:22 2024 - not installed
    nginx                        Thu Oct 31 01:51:40 2024 - not installed
    umurmur                      Thu Oct 31 00:14:02 2024 - not installed
  Feed: telephony
    freetdm                      Thu Oct 31 01:46:33 2024 - not installed
Failures don't affect this device, details at
  https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/

Request:
  Version r27965-57572de43a (kernel 6.6.58)
Request hash:
  6d8ffa1f8392001f937edef910c13172
--
Status:   done
Progress:   0s total =   0s in queue +   0s in build

Build succeeded in   0s total =   0s in queue +   0s to build:
  version_number = SNAPSHOT
  version_code   = r27965-57572de43a (requested r27965-57572de43a)
  rootfs_size_mb = default
  init-script    = no-init-script

Image source: https://sysupgrade.openwrt.org/store/6d8ffa1f8392001f937edef910c13172/openwrt-2be7984afea7-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Image saved : /tmp/firmware.bin
Manifest    : /tmp/firmware-manifest.json
ERROR: Firmware package version mismatch: 'luci-mod-network', expected 24.303.68285~2becdcc, but got 24.302.04194~79e9a47

It's a BPI-R4 currently using a AW7916-NPD card (one of these days I'll put the new BE14 card I have on it, especially since I lost 5/6g on this one a while ago on an update and haven't figured out how to get it restored).

Looks like the notorious caching is biting us again. Looking in the package dir, I find https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/luci-mod-network_24.303.68285~2becdcc_all.ipk, but the build returns the result from before it was built (and thus contains the error).

Try the old cache-bypass trick of adding a fake init script:

echo "#" | owut download --init-script -

This is annoying, as it leaves that mostly-empty file in /rom/etc/uci-defaults/99-asu-defaults, so you get a warning message next time you do a build, but it should get you up and running.

That didn't seem to work unfortunately. It ran but didn't really update anything, and trying to run owut upgrade again resulted in showing the same packages out of date and the same error.

root@OpenWrt:~# echo "#" | owut download --init-script -
owut - OpenWrt Upgrade Tool 2024.10.25~8c8907c6-r1 (/usr/bin/owut)
ASU-Server     https://sysupgrade.openwrt.org
Upstream       https://downloads.openwrt.org
Target         mediatek/filogic
Profile        bananapi_bpi-r4
Package-arch   aarch64_cortex-a53
Root-FS-type   squashfs
Sys-type       sysupgrade
Version-from   SNAPSHOT r27965-57572de43a (kernel 6.6.56)
Version-to     SNAPSHOT r27965-57572de43a (kernel 6.6.58)
Build-FS-type  squashfs
Build-at       2024-10-29T11:00:53Z (~55 hours ago)
Image-prefix   openwrt-mediatek-filogic-bananapi_bpi-r4
Image-URL      https://downloads.openwrt.org/snapshots/targets/mediatek/filogic
Image-file     openwrt-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Installed      233 packages
Top-level       99 packages
Default         47 packages
User-installed  64 packages (top-level only)

Package version changes:
  kmod-crypto-authenc            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-crc32c             6.6.56-r1                                  6.6.58-r1
  kmod-crypto-ctr                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-des                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-gf128              6.6.56-r1                                  6.6.58-r1
  kmod-crypto-hw-safexcel        6.6.56-r1                                  6.6.58-r1
  kmod-crypto-manager            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-md5                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha1               6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha256             6.6.56-r1                                  6.6.58-r1
  kmod-eeprom-at24               6.6.56-r1                                  6.6.58-r1
  kmod-gpio-button-hotplug       6.6.56-r5                                  6.6.58-r5
  kmod-hwmon-pwmfan              6.6.56-r1                                  6.6.58-r1
  kmod-i2c-core                  6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux                   6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux-pca954x           6.6.56-r1                                  6.6.58-r1
  kmod-leds-gpio                 6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc-ccitt             6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc32c                6.6.56-r1                                  6.6.58-r1
  kmod-libphy                    6.6.56-r1                                  6.6.58-r1
  kmod-mt76-connac               6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7915e                   6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7916-firmware           6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-nf-flow                   6.6.56-r1                                  6.6.58-r1
  kmod-nf-nat                    6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject                 6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject6                6.6.56-r1                                  6.6.58-r1
  kmod-nfnetlink                 6.6.56-r1                                  6.6.58-r1
  kmod-nft-fib                   6.6.56-r1                                  6.6.58-r1
  kmod-nft-nat                   6.6.56-r1                                  6.6.58-r1
  kmod-phy-aquantia              6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell               6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell-10g           6.6.56-r1                                  6.6.58-r1
  kmod-phy-realtek               6.6.56-r1                                  6.6.58-r1
  kmod-phylink                   6.6.56-r1                                  6.6.58-r1
  kmod-pppoe                     6.6.56-r1                                  6.6.58-r1
  kmod-pppox                     6.6.56-r1                                  6.6.58-r1
  kmod-regmap-i2c                6.6.56-r1                                  6.6.58-r1
  kmod-rtc-pcf8563               6.6.56-r1                                  6.6.58-r1
  kmod-sfp                       6.6.56-r1                                  6.6.58-r1
  kmod-sky2                      6.6.56-r1                                  6.6.58-r1
  kmod-thermal                   6.6.56-r1                                  6.6.58-r1
  kmod-usb-core                  6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-hcd              6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-mtk              6.6.56-r1                                  6.6.58-r1
  kmod-usb3                      6.6.56-r1                                  6.6.58-r1
46 packages are out-of-date

Default package analysis:
  Default                        Provided-by
  kmod-mt7996-233-firmware       not installed
  kmod-mt7996-firmware           not installed
  mt7988-wo-firmware             not installed
  nftables                       nftables-json
  wpad-basic-mbedtls             not installed

There are currently package build failures for SNAPSHOT aarch64_cortex-a53:
  Feed: packages
    fwupd                        Thu Oct 31 01:26:20 2024 - not installed
    geth                         Wed Oct 30 22:07:56 2024 - not installed
    kadnode                      Wed Oct 30 22:39:16 2024 - not installed
    micropython-lib              Wed Oct 30 23:05:22 2024 - not installed
    nginx                        Thu Oct 31 01:51:40 2024 - not installed
    umurmur                      Thu Oct 31 00:14:02 2024 - not installed
  Feed: telephony
    freetdm                      Thu Oct 31 01:46:33 2024 - not installed
Failures don't affect this device, details at
  https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/

Request:
  Version r27965-57572de43a (kernel 6.6.58)
  Included init script '-' (2 bytes) in build request
Request hash:
  08f8ddab5ca74efa6216a3e2d59323ea
--
Status:   queued - 0 ahead of you
Progress:   0s total =   0s in queue +   0s in build
--
Status:   container_setup
Progress:   7s total =   0s in queue +   7s in build
--
Status:   validate_manifest
Progress:  29s total =   0s in queue +  29s in build
--
Status:   building_image
Progress:  54s total =   0s in queue +  54s in build
--
Status:   done
Progress:  57s total =   0s in queue +  57s in build

Build succeeded in  57s total =   0s in queue +  57s to build:
  version_number = SNAPSHOT
  version_code   = r27965-57572de43a (requested r27965-57572de43a)
  rootfs_size_mb = default
  init-script    = -

Image source: https://sysupgrade.openwrt.org/store/08f8ddab5ca74efa6216a3e2d59323ea/openwrt-2be7984afea7-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Image saved : /tmp/firmware.bin
Manifest    : /tmp/firmware-manifest.json
Verifying   : /tmp/firmware.bin (23069479 bytes) against /tmp/firmware.sha256sums
  Saved sha256 matches
  (null)
Checks complete, image is valid.
root@OpenWrt:~# owut upgrade
owut - OpenWrt Upgrade Tool 2024.10.25~8c8907c6-r1 (/usr/bin/owut)
ASU-Server     https://sysupgrade.openwrt.org
Upstream       https://downloads.openwrt.org
Target         mediatek/filogic
Profile        bananapi_bpi-r4
Package-arch   aarch64_cortex-a53
Root-FS-type   squashfs
Sys-type       sysupgrade
Version-from   SNAPSHOT r27965-57572de43a (kernel 6.6.56)
Version-to     SNAPSHOT r27965-57572de43a (kernel 6.6.58)
Build-FS-type  squashfs
Build-at       2024-10-29T11:00:53Z (~55 hours ago)
Image-prefix   openwrt-mediatek-filogic-bananapi_bpi-r4
Image-URL      https://downloads.openwrt.org/snapshots/targets/mediatek/filogic
Image-file     openwrt-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Installed      233 packages
Top-level       99 packages
Default         47 packages
User-installed  64 packages (top-level only)

Package version changes:
  kmod-crypto-authenc            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-crc32c             6.6.56-r1                                  6.6.58-r1
  kmod-crypto-ctr                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-des                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-gf128              6.6.56-r1                                  6.6.58-r1
  kmod-crypto-hw-safexcel        6.6.56-r1                                  6.6.58-r1
  kmod-crypto-manager            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-md5                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha1               6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha256             6.6.56-r1                                  6.6.58-r1
  kmod-eeprom-at24               6.6.56-r1                                  6.6.58-r1
  kmod-gpio-button-hotplug       6.6.56-r5                                  6.6.58-r5
  kmod-hwmon-pwmfan              6.6.56-r1                                  6.6.58-r1
  kmod-i2c-core                  6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux                   6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux-pca954x           6.6.56-r1                                  6.6.58-r1
  kmod-leds-gpio                 6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc-ccitt             6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc32c                6.6.56-r1                                  6.6.58-r1
  kmod-libphy                    6.6.56-r1                                  6.6.58-r1
  kmod-mt76-connac               6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7915e                   6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7916-firmware           6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-nf-flow                   6.6.56-r1                                  6.6.58-r1
  kmod-nf-nat                    6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject                 6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject6                6.6.56-r1                                  6.6.58-r1
  kmod-nfnetlink                 6.6.56-r1                                  6.6.58-r1
  kmod-nft-fib                   6.6.56-r1                                  6.6.58-r1
  kmod-nft-nat                   6.6.56-r1                                  6.6.58-r1
  kmod-phy-aquantia              6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell               6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell-10g           6.6.56-r1                                  6.6.58-r1
  kmod-phy-realtek               6.6.56-r1                                  6.6.58-r1
  kmod-phylink                   6.6.56-r1                                  6.6.58-r1
  kmod-pppoe                     6.6.56-r1                                  6.6.58-r1
  kmod-pppox                     6.6.56-r1                                  6.6.58-r1
  kmod-regmap-i2c                6.6.56-r1                                  6.6.58-r1
  kmod-rtc-pcf8563               6.6.56-r1                                  6.6.58-r1
  kmod-sfp                       6.6.56-r1                                  6.6.58-r1
  kmod-sky2                      6.6.56-r1                                  6.6.58-r1
  kmod-thermal                   6.6.56-r1                                  6.6.58-r1
  kmod-usb-core                  6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-hcd              6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-mtk              6.6.56-r1                                  6.6.58-r1
  kmod-usb3                      6.6.56-r1                                  6.6.58-r1
46 packages are out-of-date

Default package analysis:
  Default                        Provided-by
  kmod-mt7996-233-firmware       not installed
  kmod-mt7996-firmware           not installed
  mt7988-wo-firmware             not installed
  nftables                       nftables-json
  wpad-basic-mbedtls             not installed

There are currently package build failures for SNAPSHOT aarch64_cortex-a53:
  Feed: packages
    fwupd                        Thu Oct 31 01:26:20 2024 - not installed
    geth                         Wed Oct 30 22:07:56 2024 - not installed
    kadnode                      Wed Oct 30 22:39:16 2024 - not installed
    micropython-lib              Wed Oct 30 23:05:22 2024 - not installed
    nginx                        Thu Oct 31 01:51:40 2024 - not installed
    umurmur                      Thu Oct 31 00:14:02 2024 - not installed
  Feed: telephony
    freetdm                      Thu Oct 31 01:46:33 2024 - not installed
Failures don't affect this device, details at
  https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/

Request:
  Version r27965-57572de43a (kernel 6.6.58)
Request hash:
  6d8ffa1f8392001f937edef910c13172
--
Status:   done
Progress:   0s total =   0s in queue +   0s in build

Build succeeded in   0s total =   0s in queue +   0s to build:
  version_number = SNAPSHOT
  version_code   = r27965-57572de43a (requested r27965-57572de43a)
  rootfs_size_mb = default
  init-script    = no-init-script

Image source: https://sysupgrade.openwrt.org/store/6d8ffa1f8392001f937edef910c13172/openwrt-2be7984afea7-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Image saved : /tmp/firmware.bin
Manifest    : /tmp/firmware-manifest.json
ERROR: Firmware package version mismatch: 'luci-mod-network', expected 24.303.68285~2becdcc, but got 24.302.04194~79e9a47
root@OpenWrt:~#

Oops, I should have made that an upgrade instead of download. Just do this and it will get the good image and install it.

echo "#" | owut upgrade --init-script -

No luck still, this time a 500 error:

root@OpenWrt:~# echo "#" | owut upgrade --init-script -
owut - OpenWrt Upgrade Tool 2024.10.25~8c8907c6-r1 (/usr/bin/owut)
ASU-Server     https://sysupgrade.openwrt.org
Upstream       https://downloads.openwrt.org
Target         mediatek/filogic
Profile        bananapi_bpi-r4
Package-arch   aarch64_cortex-a53
Root-FS-type   squashfs
Sys-type       sysupgrade
Version-from   SNAPSHOT r27965-57572de43a (kernel 6.6.56)
Version-to     SNAPSHOT r27965-57572de43a (kernel 6.6.58)
Build-FS-type  squashfs
Build-at       2024-10-29T11:00:53Z (~56 hours ago)
Image-prefix   openwrt-mediatek-filogic-bananapi_bpi-r4
Image-URL      https://downloads.openwrt.org/snapshots/targets/mediatek/filogic
Image-file     openwrt-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Installed      233 packages
Top-level       99 packages
Default         47 packages
User-installed  64 packages (top-level only)

Package version changes:
  kmod-crypto-authenc            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-crc32c             6.6.56-r1                                  6.6.58-r1
  kmod-crypto-ctr                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-des                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-gf128              6.6.56-r1                                  6.6.58-r1
  kmod-crypto-hw-safexcel        6.6.56-r1                                  6.6.58-r1
  kmod-crypto-manager            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-md5                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha1               6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha256             6.6.56-r1                                  6.6.58-r1
  kmod-eeprom-at24               6.6.56-r1                                  6.6.58-r1
  kmod-gpio-button-hotplug       6.6.56-r5                                  6.6.58-r5
  kmod-hwmon-pwmfan              6.6.56-r1                                  6.6.58-r1
  kmod-i2c-core                  6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux                   6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux-pca954x           6.6.56-r1                                  6.6.58-r1
  kmod-leds-gpio                 6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc-ccitt             6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc32c                6.6.56-r1                                  6.6.58-r1
  kmod-libphy                    6.6.56-r1                                  6.6.58-r1
  kmod-mt76-connac               6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7915e                   6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7916-firmware           6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-nf-flow                   6.6.56-r1                                  6.6.58-r1
  kmod-nf-nat                    6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject                 6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject6                6.6.56-r1                                  6.6.58-r1
  kmod-nfnetlink                 6.6.56-r1                                  6.6.58-r1
  kmod-nft-fib                   6.6.56-r1                                  6.6.58-r1
  kmod-nft-nat                   6.6.56-r1                                  6.6.58-r1
  kmod-phy-aquantia              6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell               6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell-10g           6.6.56-r1                                  6.6.58-r1
  kmod-phy-realtek               6.6.56-r1                                  6.6.58-r1
  kmod-phylink                   6.6.56-r1                                  6.6.58-r1
  kmod-pppoe                     6.6.56-r1                                  6.6.58-r1
  kmod-pppox                     6.6.56-r1                                  6.6.58-r1
  kmod-regmap-i2c                6.6.56-r1                                  6.6.58-r1
  kmod-rtc-pcf8563               6.6.56-r1                                  6.6.58-r1
  kmod-sfp                       6.6.56-r1                                  6.6.58-r1
  kmod-sky2                      6.6.56-r1                                  6.6.58-r1
  kmod-thermal                   6.6.56-r1                                  6.6.58-r1
  kmod-usb-core                  6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-hcd              6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-mtk              6.6.56-r1                                  6.6.58-r1
  kmod-usb3                      6.6.56-r1                                  6.6.58-r1
46 packages are out-of-date

Default package analysis:
  Default                        Provided-by
  kmod-mt7996-233-firmware       not installed
  kmod-mt7996-firmware           not installed
  mt7988-wo-firmware             not installed
  nftables                       nftables-json
  wpad-basic-mbedtls             not installed

There are currently package build failures for SNAPSHOT aarch64_cortex-a53:
  Feed: packages
    fwupd                        Thu Oct 31 01:26:20 2024 - not installed
    geth                         Wed Oct 30 22:07:56 2024 - not installed
    kadnode                      Wed Oct 30 22:39:16 2024 - not installed
    micropython-lib              Wed Oct 30 23:05:22 2024 - not installed
    nginx                        Thu Oct 31 01:51:40 2024 - not installed
    umurmur                      Thu Oct 31 00:14:02 2024 - not installed
  Feed: telephony
    freetdm                      Thu Oct 31 01:46:33 2024 - not installed
Failures don't affect this device, details at
  https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/

Request:
  Version r27965-57572de43a (kernel 6.6.58)
  Included init script '-' (2 bytes) in build request
Request hash:
  08f8ddab5ca74efa6216a3e2d59323ea
--
Status:   init
Progress:   0s total =   0s in queue +   0s in build

Build failed in   0s total =   0s in queue +   0s to build:
ASU server error =
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/rq/worker.py", line 1430, in perform_job
    rv = job.perform()
         ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rq/job.py", line 1280, in perform
    self._result = self._execute()
                   ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rq/job.py", line 1317, in _execute
    result = self.func(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/asu/build.py", line 137, in build
    defaults_file.parent.mkdir(parents=True)
  File "/usr/local/lib/python3.12/pathlib.py", line 1311, in mkdir
    os.mkdir(self, mode)
FileExistsError: [Errno 17] File exists: '/home/openwrt/store/store/08f8ddab5ca74efa6216a3e2d59323ea/files/etc/uci-defaults'

ERROR: Build failed with status 500
The above errors are often due to the upgrade server lagging behind the
build server, first suggestion is to wait a while and try again.

The fix for that bug has been sitting in a PR for a while, I should separate it out and get it merged.

echo "##" | owut upgrade --init-script -

Just add another character to that echo, anything will do, and that generates a new hash and another build bypassing the cache.

That worked for running it but did uninstall OPKG (the issue I believe others were having and you weren't sure if fixed?). Running the install again adding opkg like mentioned above worked though.

Oddly this update restored 5g/6g wifi somehow; I've updated probably a dozen times since it went down and tried all manner of other fixes with no success and suddenly I see it's back.

root@OpenWrt:~# echo "1##" | owut upgrade --init-script -
owut - OpenWrt Upgrade Tool 2024.10.25~8c8907c6-r1 (/usr/bin/owut)
ASU-Server     https://sysupgrade.openwrt.org
Upstream       https://downloads.openwrt.org
Target         mediatek/filogic
Profile        bananapi_bpi-r4
Package-arch   aarch64_cortex-a53
Root-FS-type   squashfs
Sys-type       sysupgrade
Version-from   SNAPSHOT r27965-57572de43a (kernel 6.6.56)
Version-to     SNAPSHOT r27965-57572de43a (kernel 6.6.58)
Build-FS-type  squashfs
Build-at       2024-10-29T11:00:53Z (~67 hours ago)
Image-prefix   openwrt-mediatek-filogic-bananapi_bpi-r4
Image-URL      https://downloads.openwrt.org/snapshots/targets/mediatek/filogic
Image-file     openwrt-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Installed      233 packages
Top-level       99 packages
Default         47 packages
User-installed  64 packages (top-level only)

Package version changes:
  kmod-crypto-authenc            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-crc32c             6.6.56-r1                                  6.6.58-r1
  kmod-crypto-ctr                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-des                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-gf128              6.6.56-r1                                  6.6.58-r1
  kmod-crypto-hw-safexcel        6.6.56-r1                                  6.6.58-r1
  kmod-crypto-manager            6.6.56-r1                                  6.6.58-r1
  kmod-crypto-md5                6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha1               6.6.56-r1                                  6.6.58-r1
  kmod-crypto-sha256             6.6.56-r1                                  6.6.58-r1
  kmod-eeprom-at24               6.6.56-r1                                  6.6.58-r1
  kmod-gpio-button-hotplug       6.6.56-r5                                  6.6.58-r5
  kmod-hwmon-pwmfan              6.6.56-r1                                  6.6.58-r1
  kmod-i2c-core                  6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux                   6.6.56-r1                                  6.6.58-r1
  kmod-i2c-mux-pca954x           6.6.56-r1                                  6.6.58-r1
  kmod-leds-gpio                 6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc-ccitt             6.6.56-r1                                  6.6.58-r1
  kmod-lib-crc32c                6.6.56-r1                                  6.6.58-r1
  kmod-libphy                    6.6.56-r1                                  6.6.58-r1
  kmod-mt76-connac               6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7915e                   6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-mt7916-firmware           6.6.56.2024.10.11.1~ecca0e77-r1            6.6.58.2024.10.11.1~ecca0e77-r1
  kmod-nf-flow                   6.6.56-r1                                  6.6.58-r1
  kmod-nf-nat                    6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject                 6.6.56-r1                                  6.6.58-r1
  kmod-nf-reject6                6.6.56-r1                                  6.6.58-r1
  kmod-nfnetlink                 6.6.56-r1                                  6.6.58-r1
  kmod-nft-fib                   6.6.56-r1                                  6.6.58-r1
  kmod-nft-nat                   6.6.56-r1                                  6.6.58-r1
  kmod-phy-aquantia              6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell               6.6.56-r1                                  6.6.58-r1
  kmod-phy-marvell-10g           6.6.56-r1                                  6.6.58-r1
  kmod-phy-realtek               6.6.56-r1                                  6.6.58-r1
  kmod-phylink                   6.6.56-r1                                  6.6.58-r1
  kmod-pppoe                     6.6.56-r1                                  6.6.58-r1
  kmod-pppox                     6.6.56-r1                                  6.6.58-r1
  kmod-regmap-i2c                6.6.56-r1                                  6.6.58-r1
  kmod-rtc-pcf8563               6.6.56-r1                                  6.6.58-r1
  kmod-sfp                       6.6.56-r1                                  6.6.58-r1
  kmod-sky2                      6.6.56-r1                                  6.6.58-r1
  kmod-thermal                   6.6.56-r1                                  6.6.58-r1
  kmod-usb-core                  6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-hcd              6.6.56-r1                                  6.6.58-r1
  kmod-usb-xhci-mtk              6.6.56-r1                                  6.6.58-r1
  kmod-usb3                      6.6.56-r1                                  6.6.58-r1
46 packages are out-of-date

Default package analysis:
  Default                        Provided-by
  kmod-mt7996-233-firmware       not installed
  kmod-mt7996-firmware           not installed
  mt7988-wo-firmware             not installed
  nftables                       nftables-json
  wpad-basic-mbedtls             not installed

There are currently package build failures for SNAPSHOT aarch64_cortex-a53:
  Feed: packages
    fwupd                        Thu Oct 31 01:26:20 2024 - not installed
    geth                         Wed Oct 30 22:07:56 2024 - not installed
    kadnode                      Wed Oct 30 22:39:16 2024 - not installed
    micropython-lib              Wed Oct 30 23:05:22 2024 - not installed
    nginx                        Thu Oct 31 01:51:40 2024 - not installed
    umurmur                      Thu Oct 31 00:14:02 2024 - not installed
  Feed: telephony
    freetdm                      Thu Oct 31 01:46:33 2024 - not installed
Failures don't affect this device, details at
  https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/

Request:
  Version r27965-57572de43a (kernel 6.6.58)
  Included init script '-' (4 bytes) in build request
Request hash:
  457df290cf7826c46e6fa26fb564979d
--
Status:   queued - 0 ahead of you
Progress:   0s total =   0s in queue +   0s in build
--
Status:   container_setup
Progress:   7s total =   0s in queue +   7s in build
--
Status:   validate_manifest
Progress:  28s total =   0s in queue +  28s in build
--
Status:   building_image
Progress:  53s total =   0s in queue +  53s in build
--
Status:   done
Progress:  57s total =   0s in queue +  57s in build

Build succeeded in  57s total =   0s in queue +  57s to build:
  version_number = SNAPSHOT
  version_code   = r27965-57572de43a (requested r27965-57572de43a)
  rootfs_size_mb = default
  init-script    = -

Image source: https://sysupgrade.openwrt.org/store/457df290cf7826c46e6fa26fb564979d/openwrt-2be7984afea7-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Image saved : /tmp/firmware.bin
Manifest    : /tmp/firmware-manifest.json
Verifying   : /tmp/firmware.bin (23069479 bytes) against /tmp/firmware.sha256sums
  Saved sha256 matches
  (null)
Checks complete, image is valid.
Watchdog handover: fd=3
- watchdog -
Watchdog does not have CARDRESET support
Fri Nov  1 05:36:08 UTC 2024 upgrade: Sending TERM to remaining processes ...
Fri Nov  1 05:36:08 UTC 2024 upgrade: Sending signal TERM to hostapd (1997)
Fri Nov  1 05:36:08 UTC 2024 upgrade: Sending signal TERM to hostapd (2049)
[90675.556798] mt7915e 0000:01:00.0 phy0-ap0: left allmulticast mode
[90675.563356] mt7915e 0000:01:00.0 phy0-ap0: left promiscuous mode
[90675.569504] br-lan: port 5(phy0-ap0) entered disabled state
[90676.196981] br-lan: port 7(phy1-ap1) entered disabled state
[90676.236164] mt7915e 0000:01:00.0 phy1-ap1 (unregistering): left allmulticast mode
[90676.243647] mt7915e 0000:01:00.0 phy1-ap1 (unregistering): left promiscuous mode
[90676.251053] br-lan: port 7(phy1-ap1) entered disabled state
[90676.379919] mt7915e 0000:01:00.0 phy1-ap0: left allmulticast mode
[90676.386038] mt7915e 0000:01:00.0 phy1-ap0: left promiscuous mode
[90676.392070] br-lan: port 6(phy1-ap0) entered disabled state
Fri Nov  1 05:36:12 UTC 2024 upgrade: Sending KILL to remaining processes ...
[90685.641944] stage2 (15677): drop_caches: 3
Fri Nov  1 05:36:18 UTC 2024 upgrade: Switching to ramdisk...
Fri Nov  1 05:36:19 UTC 2024 upgrade: Performing system upgrade...
fitblk: /dev/fit0 released
fitblk: /dev/fitrw released
22+1 records in
22+1 records out
Fri Nov  1 05:36:22 UTC 2024 upgrade: Upgrade completed
Fri Nov  1 05:36:23 UTC 2024 upgrade: Rebooting system...
umount: can't unmount[90691.298971] reboot: Restarting system
 /dev: Resource PA▒
F0: 102B 0000
FA: 1042 0000
FA: 1042 0000 [0200]
F9: 1041 0000
F3: 1001 0000 [0200]
F3: 1001 0000
F6: 380E 5800
F5: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0600 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [3000]
MK: 0000 0000 [0000]
T0: 0000 0140 [0101]
Jump to BL

NOTICE:  BL2: v2.10.0   (release):OpenWrt v2024.01.17~bacca82a-2 (mt7988-sdmmc-comb)
NOTICE:  BL2: Built : 19:42:33, Jul 30 2024
NOTICE:  WDT: [40000000] Software reset (reboot)
NOTICE:  CPU: MT7988
NOTICE:  EMI: Using DDR unknown settings
NOTICE:  EMI: Detected DRAM size: 4096 MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.10.0  (release):OpenWrt v2024.01.17~bacca82a-2 (mt7988-sdmmc-comb)
NOTICE:  BL31: Built : 19:42:33, Jul 30 2024


U-Boot 2024.07-OpenWrt-r27052-4e6212e62f (Jul 30 2024 - 19:42:33 +0000)

CPU:   MediaTek MT7988
Model: Bananapi BPI-R4
DRAM:  4 GiB
Core:  64 devices, 23 uclasses, devicetree: embed
spi-nand: spi_nand spi_nand@0: Winbond SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
MMC:   mmc@11230000: 0
Loading Environment from MMC... Reading from MMC(0)... OK
In:    serial@11000000
Out:   serial@11000000
Err:   serial@11000000
reset button found
Loading Environment from MMC... Reading from MMC(0)... OK
Net:   eth0: ethernet@15100000

        ( ( ( OpenWrt ) ) )  [SD card]       U-Boot 2024.07-OpenWrt-r27052-4e621
      1. Run default boot command.
      2. Boot system via TFTP.
      3. Boot production system from SD card.
      4. Boot recovery system from SD card.
      5. Load production system via TFTP then write to SD card.
      6. Load recovery system via TFTP then write to SD card.
      7. Install bootloader, recovery and production to NAND.
      8. Reboot.
      9. Reset all settings to factory defaults.
      0. Exit


  Press UP/DOWN to move, ENTER to select, ESC to quit

MMC read: dev # 0, block # 131072, count 256 ... 256 blocks read: OK

MMC read: dev # 0, block # 131072, count 44832 ... 44832 blocks read: OK
## Loading kernel from FIT Image at 50000000 ...
   Using 'config-mt7988a-bananapi-bpi-r4' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-6.6.58
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x50001000
     Data Size:    5982568 Bytes = 5.7 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x46000000
     Entry Point:  0x46000000
     Hash algo:    crc32
     Hash value:   132a2f37
     Hash algo:    sha1
     Hash value:   ef3dbb8a9c56579829b0a62e2bd19514607d1c98
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 50000000 ...
   Using 'config-mt7988a-bananapi-bpi-r4' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt bananapi_bpi-r4 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x505b6000
     Data Size:    47476 Bytes = 46.4 KiB
     Architecture: AArch64
     Load Address: 0x45f00000
     Hash algo:    crc32
     Hash value:   e6399db2
     Hash algo:    sha1
     Hash value:   d4a623732b39cabedf4365cfb47e5ff70babecd7
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x505b6000 to 0x45f00000
## Loading fdt from FIT Image at 50000000 ...
   Using 'mt7988a-bananapi-bpi-r4-sd' configuration
   Trying 'fdt-mt7988a-bananapi-bpi-r4-sd' fdt subimage
     Description:  ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-sd
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x505c4000
     Data Size:    1474 Bytes = 1.4 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   992dc95a
     Hash algo:    sha1
     Hash value:   d8c80e86d46ccac204bdcf81feb9ca2802402042
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 50000000 ...
Could not find configuration node
load of <NULL> failed
   Booting using the fdt blob at 0x45f00000
Working FDT set to 45f00000
## Loading loadables from FIT Image at 50000000 ...
   Trying 'rootfs-1' loadables subimage
     Description:  ARM64 OpenWrt bananapi_bpi-r4 rootfs
     Type:         Filesystem Image
     Compression:  uncompressed
     Data Start:   0x505c6000
     Data Size:    16900096 Bytes = 16.1 MiB
     Hash algo:    crc32
     Hash value:   d826d744
     Hash algo:    sha1
     Hash value:   b619d2a69a262ca29a420e6038bffc19a1d865ff
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Uncompressing Kernel Image to 46000000
   Loading Device Tree to 00000000fe7dd000, end 00000000fe7eac18 ... OK
Working FDT set to fe7dd000
set /chosen/rootdisk to bootrom media: rootdisk-sd (phandle 0x000000b2)

.....
[    1.196483] 0x000000000000-0x000000200000 : "bl2"
[    1.202635] 0x000000200000-0x000008000000 : "ubi"
[    1.279702] ubi0: default fastmap pool size: 50
[    1.284240] ubi0: default fastmap WL pool size: 25
[    1.289020] ubi0: attaching mtd1
[    2.106281] ubi0: scanning is finished
[    2.119664] ubi0: attached mtd1 (name "ubi", size 126 MiB)
[    2.125153] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.132016] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
...
[    3.662461] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    3.668548] pci 0000:01:00.0: PME# disabled
[    3.672771] pci 0000:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0000:00:00.0 (capable of 8.000 Gb/s with 5.0 GT/s PCIe x2 link)
[    3.712577] pci_bus 0000:01: fixups for bus
[    3.716750] pci_bus 0000:01: bus scan returning with max=01
[    3.722310] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
...
[    4.242939] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    4.582547] mtk-pcie-gen3 11310000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.591332] mtk-pcie-gen3: probe of 11310000.pcie failed with error -110
[    4.598807] FIT: Detected U-Boot 2024.07-OpenWrt-r27052-4e6212e62f
[    4.604985] FIT: Selected configuration: "config-mt7988a-bananapi-bpi-r4" (OpenWrt bananapi_bpi-r4)
[    4.614027] FIT:           kernel sub-image 0x00001000..0x005b5967 "kernel-1" (ARM64 OpenWrt Linux-6.6.58)
[    4.623763] FIT:          flat_dt sub-image 0x005b6000..0x005c1973 "fdt-1" (ARM64 OpenWrt bananapi_bpi-r4 device tree blob)
[    4.634973] FIT:          flat_dt sub-image 0x005c2000..0x005c2609 "fdt-mt7988a-bananapi-bpi-r4-emmc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-emmc)
[    4.651302] FIT:          flat_dt sub-image 0x005c3000..0x005c311c "fdt-mt7988a-bananapi-bpi-r4-rtc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-rtc)
[    4.667457] FIT:          flat_dt sub-image 0x005c4000..0x005c45c1 "fdt-mt7988a-bananapi-bpi-r4-sd" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-sd)
[    4.683441] FIT:          flat_dt sub-image 0x005c5000..0x005c58f0 "fdt-mt7988a-bananapi-bpi-r4-wifi-mt7996a" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-wifi-mt7996a)
[    4.701155] FIT:       filesystem sub-image 0x005c6000..0x015e3fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r4 rootfs)
[    4.712016] block mmcblk0p7: mapped 1 uImage.FIT filesystem sub-image as /dev/fit0
[    4.719750] block mmcblk0p7: mapped remaining space as /dev/fitrw
[    4.854070] mtk_soc_eth 15100000.ethernet: generated random MAC address 65:74:68:25:64:00
[    4.866491] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc082980000, irq 106
[    4.876168] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc082980000, irq 106
[    4.885851] mtk_soc_eth 15100000.ethernet eth2: mediatek frame engine at 0xffffffc082980000, irq 106
[    4.977696] mt7530-mmio 15020000.switch: configuring for fixed/internal link mode
[    4.985202] mt7530-mmio 15020000.switch: Link is Up - 10Gbps/Full - flow control rx/tx
[    5.011905] mt7530-mmio 15020000.switch wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7988 PHY] (irq=118)
[    5.049566] mt7530-mmio 15020000.switch lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7988 PHY] (irq=119)
...
[   11.831136] pca954x 1-0070: registered 4 multiplexed busses for I2C switch pca9545
[   11.842131] crypto-safexcel 15600000.crypto: can't request region for resource [mem 0x15600000-0x1577ffff]
[   11.851823] crypto-safexcel 15600000.crypto: failed to get resource
[   11.858087] crypto-safexcel: probe of 15600000.crypto failed with error -16
[   11.868396] at24 2-0050: supply vcc not found, using dummy regulator
[   11.881282] urngd: v1.0.2 started.
[   11.906091] at24 2-0057: supply vcc not found, using dummy regulator
[   11.913045] at24 2-0057: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[   11.920101] Loading modules backported from Linux version v6.11.2-0-g7aa21fec187b
[   11.927595] Backport generated by backports.git v6.1.110-1-32-gc61f71fe0942
[   11.938138] sfp sfp1: Host maximum power 3.0W
[   11.943045] sfp sfp2: Host maximum power 3.0W
[   11.948548] sky2: driver version 1.30
[   11.967490] mt7915e 0000:01:00.0: assign IRQ: got 115
[   11.972584] mt7915e 0000:01:00.0: enabling device (0000 -> 0002)
[   11.978620] mt7915e 0000:01:00.0: enabling bus mastering
[   12.062626] mtk-pcie-gen3 11300000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11300c00 data 1
[   12.092987] mt7915e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240823172725a
[   12.092987]
[   12.219273] mt7915e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20240823172741
[   12.263866] sfp sfp1: module OEM              SFP-GE-T         rev      sn CSGE4NB5643      dc 23112801
[   12.311748] mt7915e 0000:01:00.0: WA Firmware Version: DEV_000000, Build Time: 20240823172837
[   12.478694] mt7915e 0000:01:00.0: registering led 'mt76-phy0'
[   12.553689] mt7915e 0000:01:00.0: registering led 'mt76-phy1'
[   12.638376] PPP generic driver version 2.4.2
[   12.643301] NET: Registered PF_PPPOX protocol family
[   12.649861] kmodloader: done loading kernel modules from /etc/modules.d/*
[   15.082578] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   15.105937] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[   15.114924] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[   15.116824] mt7530-mmio 15020000.switch lan1: configuring for phy/internal link mode
[   15.132163] br-lan: port 1(lan1) entered blocking state
[   15.137478] br-lan: port 1(lan1) entered disabled state
[   15.142842] mt7530-mmio 15020000.switch lan1: entered allmulticast mode
[   15.149503] mtk_soc_eth 15100000.ethernet eth0: entered allmulticast mode
[   15.156561] mt7530-mmio 15020000.switch lan1: entered promiscuous mode
[   15.168135] mt7530-mmio 15020000.switch lan2: configuring for phy/internal link mode
[   15.176295] br-lan: port 2(lan2) entered blocking state
[   15.181562] br-lan: port 2(lan2) entered disabled state
[   15.186909] mt7530-mmio 15020000.switch lan2: entered allmulticast mode
[   15.193768] mt7530-mmio 15020000.switch lan2: entered promiscuous mode
[   15.202971] mt7530-mmio 15020000.switch lan3: configuring for phy/internal link mode
[   15.211447] br-lan: port 3(lan3) entered blocking state
[   15.216790] br-lan: port 3(lan3) entered disabled state
[   15.222083] mt7530-mmio 15020000.switch lan3: entered allmulticast mode
[   15.228967] mt7530-mmio 15020000.switch lan3: entered promiscuous mode
[   15.237284] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/10gbase-r link mode
[   15.270157] br-lan: port 4(eth1) entered blocking state
[   15.275448] br-lan: port 4(eth1) entered disabled state
[   15.280695] mtk_soc_eth 15100000.ethernet eth1: entered allmulticast mode
[   15.287707] mtk_soc_eth 15100000.ethernet eth1: entered promiscuous mode
[   15.413558] mt7530-mmio 15020000.switch wan: configuring for phy/internal link mode
[   15.422956] br-wan: port 1(wan) entered blocking state
[   15.428110] br-wan: port 1(wan) entered disabled state
[   15.433297] mt7530-mmio 15020000.switch wan: entered allmulticast mode
[   15.440035] mt7530-mmio 15020000.switch wan: entered promiscuous mode
[   15.453557] mtk_soc_eth 15100000.ethernet eth2: configuring for inband/10gbase-r link mode
[   15.489196] br-wan: port 2(eth2) entered blocking state
[   15.494462] br-wan: port 2(eth2) entered disabled state
[   15.499713] mtk_soc_eth 15100000.ethernet eth2: entered allmulticast mode
[   15.506716] mtk_soc_eth 15100000.ethernet eth2: entered promiscuous mode
[   15.593003] mtk_soc_eth 15100000.ethernet eth2: switched to inband/sgmii link mode
[   15.777265] mtk_soc_eth 15100000.ethernet eth2: PHY [i2c:sfp1:16] driver [Marvell 88E1111] (irq=POLL)
[   17.274802] br-lan: port 5(phy0-ap0) entered blocking state
[   17.280428] br-lan: port 5(phy0-ap0) entered disabled state
[   17.286107] mt7915e 0000:01:00.0 phy0-ap0: entered allmulticast mode
[   17.292616] mt7915e 0000:01:00.0 phy0-ap0: entered promiscuous mode
[   17.299225] mt7915e 0000:01:00.0 phy0-ap0: left allmulticast mode
[   17.305335] mt7915e 0000:01:00.0 phy0-ap0: left promiscuous mode
[   17.311353] br-lan: port 5(phy0-ap0) entered disabled state
[   17.372361] br-lan: port 5(phy0-ap0) entered blocking state
[   17.377948] br-lan: port 5(phy0-ap0) entered disabled state
[   17.383545] mt7915e 0000:01:00.0 phy0-ap0: entered allmulticast mode
[   17.389994] mt7915e 0000:01:00.0 phy0-ap0: entered promiscuous mode
[   17.473340] br-lan: port 6(phy1-ap0) entered blocking state
[   17.478928] br-lan: port 6(phy1-ap0) entered disabled state
[   17.484594] mt7915e 0000:01:00.0 phy1-ap0: entered allmulticast mode
[   17.491146] mt7915e 0000:01:00.0 phy1-ap0: entered promiscuous mode
[   17.497997] mt7915e 0000:01:00.0 phy1-ap0: left allmulticast mode
[   17.504183] mt7915e 0000:01:00.0 phy1-ap0: left promiscuous mode
[   17.510252] br-lan: port 6(phy1-ap0) entered disabled state
[   17.577379] br-lan: port 6(phy1-ap0) entered blocking state
[   17.582968] br-lan: port 6(phy1-ap0) entered disabled state
[   17.588555] mt7915e 0000:01:00.0 phy1-ap0: entered allmulticast mode
[   17.595013] mt7915e 0000:01:00.0 phy1-ap0: entered promiscuous mode
[   17.601334] br-lan: port 6(phy1-ap0) entered blocking state
[   17.606903] br-lan: port 6(phy1-ap0) entered forwarding state
[   18.198217] mt7530-mmio 15020000.switch lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   18.198811] br-lan: port 1(lan1) entered blocking state
[   18.211707] br-lan: port 1(lan1) entered forwarding state
[   18.324490] mt7530-mmio 15020000.switch lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[   18.325072] br-lan: port 2(lan2) entered blocking state
[   18.337961] br-lan: port 2(lan2) entered forwarding state
[   18.372565] br-lan: port 6(phy1-ap0) entered disabled state
[   18.973686] mt7530-mmio 15020000.switch lan3: Link is Up - 1Gbps/Full - flow control rx
[   18.974280] br-lan: port 3(lan3) entered blocking state
[   18.986912] br-lan: port 3(lan3) entered forwarding state
[   19.037601] mtk_soc_eth 15100000.ethernet eth2: Link is Up - 1Gbps/Full - flow control rx/tx
[   19.037620] br-wan: port 2(eth2) entered blocking state
[   19.051247] br-wan: port 2(eth2) entered forwarding state
[   24.563505] br-lan: port 5(phy0-ap0) entered blocking state
[   24.569088] br-lan: port 5(phy0-ap0) entered forwarding state
[   95.815874] br-lan: port 6(phy1-ap0) entered blocking state
[   95.821456] br-lan: port 6(phy1-ap0) entered forwarding state
[   95.923899] br-lan: port 7(phy1-ap1) entered blocking state
[   95.929485] br-lan: port 7(phy1-ap1) entered disabled state
[   95.935109] mt7915e 0000:01:00.0 phy1-ap1: entered allmulticast mode
[   95.941602] mt7915e 0000:01:00.0 phy1-ap1: entered promiscuous mode
[   95.950311] br-lan: port 7(phy1-ap1) entered blocking state
[   95.955887] br-lan: port 7(phy1-ap1) entered forwarding state
[   95.962214] mt7915e 0000:01:00.0 phy1-ap1: left allmulticast mode
[   95.968322] mt7915e 0000:01:00.0 phy1-ap1: left promiscuous mode
[   95.974355] br-lan: port 7(phy1-ap1) entered disabled state
[   96.023505] br-lan: port 7(phy1-ap1) entered blocking state
[   96.029095] br-lan: port 7(phy1-ap1) entered disabled state
[   96.034719] mt7915e 0000:01:00.0 phy1-ap1: entered allmulticast mode
[   96.041208] mt7915e 0000:01:00.0 phy1-ap1: entered promiscuous mode
[   96.047572] br-lan: port 7(phy1-ap1) entered blocking state
[   96.053142] br-lan: port 7(phy1-ap1) entered forwarding state
^[[A


BusyBox v1.36.1 (2024-10-29 11:00:53 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r27965-57572de43a
 -----------------------------------------------------
root@OpenWrt:~# owut upgrade
owut - OpenWrt Upgrade Tool 2024.10.25~8c8907c6-r1 (/usr/bin/owut)
ASU-Server     https://sysupgrade.openwrt.org
Upstream       https://downloads.openwrt.org
Target         mediatek/filogic
Profile        bananapi_bpi-r4
Package-arch   aarch64_cortex-a53
Root-FS-type   squashfs
Sys-type       sysupgrade
Version-from   SNAPSHOT r27965-57572de43a (kernel 6.6.58)
Version-to     SNAPSHOT r27965-57572de43a (kernel 6.6.58)
Build-FS-type  squashfs
Build-at       2024-10-29T11:00:53Z (~67 hours ago)
Image-prefix   openwrt-mediatek-filogic-bananapi_bpi-r4
Image-URL      https://downloads.openwrt.org/snapshots/targets/mediatek/filogic
Image-file     openwrt-mediatek-filogic-bananapi_bpi-r4-squashfs-sysupgrade.itb
Installed      232 packages
Top-level       73 packages
Default         47 packages
User-installed  39 packages (top-level only)

Package version changes:
All packages are up-to-date

Default package analysis:
  Default                        Provided-by
  kmod-mt7996-233-firmware       not installed
  kmod-mt7996-firmware           not installed
  mt7988-wo-firmware             not installed
  nftables                       not installed
  opkg                           not installed
  wpad-basic-mbedtls             not installed

There are currently package build failures for SNAPSHOT aarch64_cortex-a53:
  Feed: packages
    fwupd                        Thu Oct 31 01:26:20 2024 - not installed
    geth                         Wed Oct 30 22:07:56 2024 - not installed
    kadnode                      Wed Oct 30 22:39:16 2024 - not installed
    micropython-lib              Wed Oct 30 23:05:22 2024 - not installed
    nginx                        Thu Oct 31 01:51:40 2024 - not installed
    umurmur                      Thu Oct 31 00:14:02 2024 - not installed
  Feed: telephony
    freetdm                      Thu Oct 31 01:46:33 2024 - not installed
Failures don't affect this device, details at
  https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/

There are no changes to upgrade (see '--force')
root@OpenWrt:~# opkg update
-ash: opkg: not found
root@OpenWrt:~# ^C

root@OpenWrt:~#