I had run openwrt on an U6+ for a while, locked myself out and tried to get back in.
I tried failsafe and reset and as this did not work, I went into tftp mode and reflashed to unifi stock. That worked ok, I can boot and access the unit.
After that I tried to flash back to openwrt, as described in the wiki. I made sure I followed instructions to the point, everything worked seemingly ok.
However, booting I ended up in the TFTP mode.
I connected a serial dongle and the following lines catched my attention:
MMC read: dev # 0, block # 17536, count 8443 ... 8443 blocks read: OK
## Starting application at 0x440000B0 ...
## Application terminated, rc = 0x0
Config #config-a642 not found, using default
## Loading kernel from FIT Image at 46000000 ...
Using 'config-1' configuration
Verifying Hash Integrity ... OK
Trying 'kernel-1' kernel subimage
Description: ARM64 OpenWrt Linux-6.12.74
Type: Kernel Image
Compression: lzma compressed
Data Start: 0x460000e8
Data Size: 4298875 Bytes = 4.1 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x48000000
Entry Point: 0x48000000
Hash algo: crc32
Hash value: 0dd92fad
Hash algo: sha1
Hash value: 163c1288115346bbb4f63704b252baa676f8c76c
Verifying Hash Integrity ... Failed to verify required signature 'key-uap6_mt7981'
error!
Unable to verify required signature for '' hash node in 'kernel-1' image node
Bad Data Hash
ERROR: can't get kernel image!
From here on goes on waiting for a TFTP connection
What I tried:
- Different version of openwrt images (24,25) always using the squashfs-sysupgrade versions
- Different versions of the stock firmware to begin with (using the one mentioned in the openwrt wiki as well as the newest version
- I tried "zeroing" the partitions 6,7,8 prior of installing, to make sure no residuals are left
- I switched 6 and 7 (kernel on 7, rootfs on 6, just in case it ended up in a strange twist during boot
- I wrote on both kernel0 and kernel1 just the kernel to make sure a kernel could be found independent of what uboot tries to boot
So far nothing helped and maybe even more strange, the error remained the same, independent of the flashing differences.
I can enter uboot via the serial console if that helps and there is always the way to get back on stock via TFTP and start from scratch.
I found very similar issues on the forum, but not with a definite solution. I read that the signature will be worked out during installation, maybe something went wrong on that part.
What else puzzles me, is the fact that it states Trying 'kernel-1' kernel subimage where the wiki explicity said to use and boot kernel0, albeit that could just be a doubling in naming stuff.
Unable to verify required signature for '' hash node in 'kernel-1' image node is also concerning as it obviously misses some naming.
Would be glad if someone could give me some hints