Installation of latest OpenWrt image on RT-AC58U fails

I've been following the "Easy Installation" method described at https://openwrt.org/toh/asus/rt-ac58u#easy_installation. I flashed the router with the XXX-squashfs-flash-factory.trx file as instructed in steps 2 and 3. It went just fine, and the router booted into OpenWrt. After that, I checked for the partition jffs2 (step 5), and it wasn't there. Then I continued to step 6, where I tried to flash the router with the latest 23.05.4 sysupgrade image https://downloads.openwrt.org/releases/23.05.4/targets/ipq40xx/generic/openwrt-23.05.4-ipq40xx-generic-asus_rt-ac58u-squashfs-sysupgrade.bin. When I did that, I received the message:

The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform.

I then looked into the more detailed instructions provided at http://lede-ac58u.zyxmon.org/HowToFlashENG.html. I thought that maybe something failed in the automatic process, and followed the note provided under section "Here is a letter, I have received (April 2020):" where point 2 seemed to match with my situation: there was no jffs2 partition and I got the same error message. I then flashed the router with zyxmon http://lede-ac58u.zyxmon.org/firmware/openwrt-r1834-0f04829-ipq806x-asus_rt-ac58u-squashfs-sysupgrade.tar flash file, which went well as well.

But I'm still not able to flash the router with the latest OpenWrt 23.05.4 sysupgrade image via web flashing method as instructed: every time I try it, I just get the same message telling that the uploaded image doesn't contain a supported format. I have also rebooted the router but that doesn't help. Otherwise, the router is functional with the present firmware, but for sure, I would llike to install the latest supported version of OpenWrt. Can somebody please tell what is the problem and how could it be fixed?

1 Like

Can you run ubinfo -a and ls -l /dev/ubi* to verify that jffs filesystem is gone?
btw go for 23.05.5, .4 has some wifi (speed) issues.

ubinfo -a:

UBI version: 1
Count of UBI devices: 1
UBI control device major/minor: 10:59
Present UBI devices: ubi0

ubi0
Volumes count: 7
Logical eraseblock size: 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks: 1024 (130023424 bytes, 124.0 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes 128
Count of bad physical eraseblocks: 0
Count of reserved physical eraseblocks: 20
Current maximum erase counter value: 106
Minimum input/output unit size: 2048 bytes
Character device major/minor: 248:0
Present volumes: 0, 1, 2, 3, 4, 5, 6

Volume ID: 0 (on ubi0)
Type: dynamic
Alignment: 1
Size: 3 LEBs (380928 bytes, 372.0 KiB)
State: OK
Name: nvram
Character device major/minor: 248:1

Volume ID: 1 (on ubi0)
Type: dynamic
Alignment: 1
Size: 1 LEBs (126976 bytes, 124.0 KiB)
State: OK
Name: Factory
Character device major/minor: 248:2

Volume ID: 2 (on ubi0)
Type: dynamic
Alignment: 1
Size: 1 LEBs (126976 bytes, 124.0 KiB)
State: OK
Name: Factory2
Character device major/minor: 248:3

Volume ID: 3 (on ubi0)
Type: dynamic
Alignment: 1
Size: 17 LEBs (2158592 bytes, 2.1 MiB)
State: OK
Name: linux
Character device major/minor: 248:4

Volume ID: 4 (on ubi0)
Type: dynamic
Alignment: 1
Size: 397 LEBs (50409472 bytes, 48.1 MiB)
State: OK
Name: linux2
Character device major/minor: 248:5

Volume ID: 5 (on ubi0)
Type: dynamic
Alignment: 1
Size: 38 LEBs (4825088 bytes, 4.6 MiB)
State: OK
Name: rootfs
Character device major/minor: 248:6

Volume ID: 6 (on ubi0)
Type: dynamic
Alignment: 1
Size: 543 LEBs (68947968 bytes, 65.8 MiB)
State: OK
Name: rootfs_data
Character device major/minor: 248:7

So no jffs2 there.

ls -l /dev/ubi*:

crw------- 1 root root 248, 0 Jan 1 1970 /dev/ubi0
crw------- 1 root root 248, 1 Jan 1 1970 /dev/ubi0_0
crw------- 1 root root 248, 2 Jan 1 1970 /dev/ubi0_1
crw------- 1 root root 248, 3 Jan 1 1970 /dev/ubi0_2
crw------- 1 root root 248, 4 Jan 1 1970 /dev/ubi0_3
crw------- 1 root root 248, 5 Jan 1 1970 /dev/ubi0_4
crw------- 1 root root 248, 6 Jan 1 1970 /dev/ubi0_5
crw------- 1 root root 248, 7 Jan 1 1970 /dev/ubi0_6
crw------- 1 root root 10, 59 Jan 1 1970 /dev/ubi_ctrl
brw------- 1 root root 254, 0 Jan 1 1970 /dev/ubiblock0_5

So there is /dev/ubi0_5.

JFFS2 is filesystem format and ubi0_5 is rootfs, go figure. (wait for somebody smarter to help)

Well, I just had a look at the earlier stable release OpenWrt 22.03.7 to test whether it would behave the same way. And to my great amazement, when I tried it, there was no message about incompatible image format but the web flash gui provided sha256 checksum that was exactly same as that provided with the sysupgrade image and was ready to start flashing. After some hesitation, I continued with flashing. As I'm writing this, I have now been able to set up and configure the router with that firmware. Ok, I have had strange problems with losing internet connectivity after some basic configuration of wifi interfaces, like naming SSIDs and defining security settings for the traffic, the nature of which issues I don't understand. But now I have a basic working configuration. Next I'll start looking into installing and configuring WireGuard. But before getting into that, I'll have a break and save my configuration first. :wink:

I would be glad if somebody could explain what is this mess with these images: why some of them appear incompatible and others not???

1 Like

Are you sure it is the only text displayed in gui flash too?

Yes, for sure it is.

Usually there is a checkbox to force flashing and another to not preserve existing config?

In the flash web gui of that snapshot image I started with as per the instructions, there was no checkbox for forcing. There was checkbox for preserving config but it was instructed not be checked. I'm pretty sure of that because I had a look at those settings several times. Now in this release the flash operations look completely different. I gave a try for the 23.05.4 sysupgrade image in this firmware and the result looks like this:

And? Create config backup and type it back in next version? Uncheck keep config and check force upgrade. swconfig switch cannot be migrated to DSA. Installation never failed because you never tried.

I dont get your religious adherence to 23.05.4. Use latest stable 23.05.5.

This was the first time ever I tried to install OpenWrt. I've had the Asus RT-AC58U router for four years at least and it's been fine, but as it is not getting any new firmware and I'd need to set up a VPN using Wireguard, I decided to try out OpenWrt. So my my knowledge of OpenWrt was very limited and I had practically zero experience with it as well when I started this 'experiment' this week. During this time, I think I've learned something; for example, now I know more about those things you mention, like forcing sysupgrade. The reason why I posted here was simple: I asked for help from those who know. With my very limited knowledge, I thought the flashing failed when I got the message about incompatible image format. Now I know that I could I have forced it. But at that point of time I didn't. And I don't have any 'religious' adherence to 23.05.4: as I didn't know about forcing sysupgrade, I was testing with releases, and as it just happened that 22.03.7 went fine, without forcing, I'm now on it (look, not on 23.05.4 :wink:). But now that I know, I'll take your advice and will upgrade to 23.05.5 next. I'm convinced that you, brada4, are much more knowledgeable than me when it comes to technicalities of OpenWrt. Therefore, would have been great to have more of your knowledge and advice earlier on rather than this late with this matter. :wink:

Sometimes everybody needs to re-type configuration, like most platforms got DSA switch framework, others will get there with next majosr version.

I'm in the same boat w/ the 'same' model (technically I'm using RT-ACRH13, but it's also listed in openWRT's ac58u page)

I also received the error: The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. w/ no further choices. I think the additional verbiage might have been added in future versions of openWRT, and since we're having trouble flashing, our options are less available.

Before finding this thread, I tried to flash older versions of openWRT:

openwrt-23.05.4-ipq40xx-generic-asus_rt-ac58u-squashfs-sysupgrade.bin fail
openwrt-23.05.5-ipq40xx-generic-asus_rt-ac58u-squashfs-sysupgrade.bin fail
openwrt-18.06.9-ipq40xx-asus_rt-ac58u-squashfs-sysupgrade.bin succeed

Edit: I have since flashed to old-stable and then force flashed (using the GUI) to current stabled (23.05.05 as of 11/24). No issues as of yet, one quirk was that the flash appeared to hang indefinitely but it was just that the connection had dropped after the flash. I left the 'running' browser tab as is and went to the openWRT home page (http://192.168.1.1) in a new tab, which established a connection to the updated firmware.

TL;DR: If you are having issues w/ current-stable, flash old stable and then you have the option to force update to current-stable without any command line kung-fu.

Yep, I did the same with my then stable version 22.03.7: I force flashed it to 23.05.5 using the web gui. It's been fine, and since then I have installed some additional software packages, like DDNS client (ddns-scripts) and WireGuard (wireguard-tools), and have been experimenting with them. My WireGuard configuration is still not complete for the peers (as I cannot access them now remotely over the WAN but only on site), and I have been struggling with DDNS setup as for the proper identification / registration of my WAN IP address. But they are subject to separate topics. Of course, there is a lot to learn. I used to have pretty good Unix skills in 1990s, but those days were long ago.

But for anyone who faces the same issues as @macAttack and myself did, you can follow this guidance:

  1. Follow the "Easy installation" method. You can then install a stable sysupgrade version using webgui, like 22.03.7, or 18.06.9, like @macAttack did, which doesn't require forcing.

  2. Or if you know what you are doing, you can do that in command line with the following, even in that case where you are getting the message about incompatible image format and there is no force option available in the webgui:

sysupgrade -F -n filename, where filename is the name of the stable sysupgrade binary.

The flag -n does the upgrade without trying to preserve the existing configuration. This is perfectly safe because you typically don't have any working configuration to be saved after a fresh new installation.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.