Skip to content

Support Ubuntu 26.04 and every interim release - #41

Open
igorpecovnik wants to merge 1 commit into
khadas:masterfrom
igorpecovnik:ubuntu-26.04
Open

Support Ubuntu 26.04 and every interim release#41
igorpecovnik wants to merge 1 commit into
khadas:masterfrom
igorpecovnik:ubuntu-26.04

Conversation

@igorpecovnik

@igorpecovnik igorpecovnik commented Sep 1, 2026

Copy link
Copy Markdown

TL;DR — rk-flash-tool and tone-dfu-tool refuse to install on Ubuntu 25.04+ with "Ubuntu XX haven't been verified!" and exit 1. Because the top-level INSTALL runs the tools in sequence, that aborts the whole install right after the Amlogic tool has already been set up.

The release checks are hardcoded substring lists (=~ "20" || =~ "22" || =~ "24"), so they need a patch every six months — and they already missed every interim release. This swaps them for a numeric comparison:

DISTRIB_VER=$(awk -F. '{ printf "%d%02d", $1, $2 }' <<< "$DISTRIB_RELEASE")   # 26.04 -> 2604
...
if [[ "$IGNORE_CHECK" == "yes" ]] || (( DISTRIB_VER >= 1600 )); then

Nothing regresses. 12.04, 14.04, 16.04, 18.04, 18.10, 20.04, 22.04 and 24.04 all behave exactly as before — same udev rule picked, same ncurses5/6 split at 18.10, and 12.04/14.04 are still correctly refused by the Rockchip and Tone tools.

Newly working: 26.04, plus the interim releases the old lists forgot — 15.10, 17.10, 19.04, 19.10, 21.04, 21.10, 23.04, 23.10, 25.04, 25.10.

Also pairs libncurses5/6 with lib32ncurses5/6 in the same branch, instead of hardcoding libncurses5 for every release.

Verified: bash -n clean on all five scripts; old vs new conditions evaluated side by side across 10.04 → 28.04; every package in hostdeps confirmed present in 26.04 (resolute).

Closes #38.

Replace the hardcoded release substring lists with a numeric version
comparison, so future Ubuntu releases work without another patch.

rk-flash-tool/INSTALL and tone-dfu-tool/INSTALL stopped at 24 and hit
"Ubuntu XX haven't been verified!" + exit 1 on anything newer. Since the
top-level INSTALL runs the tools in sequence, that aborted the install
after the Amlogic tool had already been set up.

Behaviour on 12.04, 14.04, 16.04, 18.04, 18.10, 20.04, 22.04 and 24.04 is
unchanged. Interim releases (15.10, 17.10, 19.04, 19.10, 21.04, 21.10,
23.04, 23.10, 25.04, 25.10) previously failed the check and now work too.

Also pair libncurses5/6 with lib32ncurses5/6 in the same branch instead of
hardcoding libncurses5 for every release.

Signed-off-by: Igor Pecovnik <igor@armbian.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Ubuntu 25 support

1 participant