openwrt / openwrt/asu

Ubiquiti Edge Router ER-X SFP Upgrading via Attended Sysupgrade fails for 24.10.1

Open
#1,385 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
450
Forks
111
PR merge metrics
No merged PRs in 30d

Description

Device has been migrated to new flash layout (https://github.com/darkxst/erx-migration) and upgraded to 24.10.0:

root@whatever:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00020000 "u-boot"
mtd1: 00060000 00020000 "u-boot-env"
mtd2: 00060000 00020000 "factory"
mtd3: 00600000 00020000 "kernel"
mtd4: 0f7c0000 00020000 "ubi"

Attended sysupgrade from Luci seems to work but does nothing. Downloading the image and trying to manually upgrade to this image results in the following error.

Image

Same on command line:

root@whatever:~# owut upgrade
ASU-Server https://sysupgrade.openwrt.org
Upstream https://downloads.openwrt.org
Target ramips/mt7621
Profile ubnt_edgerouter-x-sfp
Package-arch mipsel_24kc
Version-from 24.10.0 r28427-6df0e3d02a (kernel 6.6.73)
Version-to 24.10.1 r28597-0425664679 (kernel 6.6.86)
71 packages are out-of-date
WARNING: There are 1 missing default packages, confirm this is expected before proceeding
Request hash:
58aeffad9196fb81f11684cca41afb931483f552a7408134971e692d8b749d4c

Status: queued - 0 ahead of you
Progress: 0s total = 0s in queue + 0s in build

.......

Status: done
Progress: 36s total = 0s in queue + 36s in build

Build succeeded in 36s total = 0s in queue + 36s to build:
Image saved : /tmp/firmware.bin
ERROR: sysupgrade validation failed:
stderr =
Tue Apr 22 08:02:05 CEST 2025 upgrade: The device is supported, but this image is incompatible for sysupgrade based on the image version (1.1->2.0).
Tue Apr 22 08:02:05 CEST 2025 upgrade: Partition table has been changed due to kernel size restrictions. Refer to the wiki page for instructions to migrate to the new layout: https://openwrt.org/toh/ubiquiti/edgerouter_x_er-x_ka
Image check failed.

For me it seems that either the validation script does not recognise the partition table being changed or that the generated image needs the old partition layout.

Thx for any help

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the owut upgrade for the ubnt_edgerouter-x-sfp profile and review the sysupgrade validation output for the image-version and partition-layout checks. Done means an image generated for 24.10.1 is correctly accepted for a device migrated to the new flash layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.