The OpenWrt Firmware Selector

Master snapshot don't. 21.02 and 22.03 snapshot do, but they are not available in the selector.

Hi, for OpenWrt version 22.03.5 I can download the sysupgrade image for D-Link DIR-505. However, if I try to customize installed packages, I get the error "Unsupported version: 22.03.5". Is this a bug, or are the repositories still being synched?

Still being synced.

4 Likes

The option appears in the selector when the first files are being built. But it is not available until the official announcement. It's just a matter of a couple of days.

1 Like

(I find for some devices, this could be 24-48 hours after announcing.)

2 Likes

It is recommended to provide a selection list of software packages and settings. Simply click or check the required software packages and settings to fill in the corresponding software packages and settings scripts.

  • Recommended by whom?
  • If that is a feature request, you may wish to make an Original Post in the Feature Request category

Used in Customize installed packages and/or first boot script

Error building the firmware image
Server response: Unsupported package(s): lighttpd-mod-cgi, lighttpd

Please report the error message and request
Request Data:

{
    "url": "https://sysupgrade.openwrt.org",
    "revision": "r22565-877ec78e23",
    "advanced_mode": "0",
    "branch": "SNAPSHOT",
    "efi": null,
    "profile": "xiaomi,ax3600",
    "target": "ipq807x/generic",
    "version": "SNAPSHOT",
    "packages": [
        "ath10k-firmware-qca9887-ct",
        "ath11k-firmware-ipq8074",
        "base-files",
        "bash",
        "batctl-full",
        "busybox",
        "ca-bundle",
        "ca-certificates",
        "curl",
        "dnsmasq",
        "dropbear",
        "firewall4",
        "fstools",
        "htop",
        "iperf3",
        "ipq-wifi-xiaomi_ax3600",
        "kernel",
        "kmod-ath10k-ct-smallbuffers",
        "kmod-ath11k-ahb",
        "kmod-batman-adv",
        "kmod-gpio-button-hotplug",
        "kmod-leds-gpio",
        "kmod-nft-offload",
        "kmod-phy-aquantia",
        "kmod-qca-nss-dp",
        "kmod-usb-dwc3",
        "kmod-usb-dwc3-qcom",
        "kmod-usb3",
        "libc",
        "libustream-openssl",
        "lighttpd",
        "lighttpd-mod-cgi",
        "logrotate",
        "lua",
        "luafilesystem",
        "luci",
        "luci-app-attendedsysupgrade",
        "luci-app-watchcat",
        "luci-proto-batman-adv",
        "luci-proto-relay",
        "mailsend",
        "mtd",
        "netifd",
        "nftables-json",
        "odhcp6c",
        "odhcpd-ipv6only",
        "opkg",
        "php8",
        "php8-cgi",
        "ppp",
        "ppp-mod-pppoe",
        "procd",
        "procd-seccomp",
        "procd-ujail",
        "relayd",
        "snmpd",
        "syslog-ng",
        "tcpdump",
        "terminfo",
        "uboot-envtools",
        "uci",
        "uclient-fetch",
        "urandom-seed",
        "urngd",
        "vsftpd",
        "watchcat",
        "wpad-mesh-openssl"
    ],
    "diff_packages": true,
    "filesystem": "squashfs",
    "client": "luci/git-22.285.67526-18bfcca"
}

It doesn't look like lighttpd and related packages are being built for snapshot.

https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/

Well, they were available via ASU before.

Can the lighttpd packages please be built again? My last snapshot where they were available was 26 days ago.

I used the packages that are listed in the manifest file present in the "supplementary files" sections of each target directory index to replace the default package list that appears on the firmware selector and the build completed succesfullly and the resulting image file booted just fine (x86-64 target tested on a virtual machine so this was totally risk-free experimentation...).
I dont have a clue if this right or wrong, or if some packages are missing or useless ones added.
What is exactly the manifest file?

EDIT: never mind, it looks like its missing some kmods :thinking:

I'm trying out the Firmware Selector and it looks like I found an issue.
If you expand Customize installed packages and/or first boot script and then click on the gear icon in Script to run on first boot (uci-defaults), you'll get the following:

# Beware! This script will be in /rom/etc/uci-defaults/ as part of the image.
# Uncomment lines to apply:
#
# wlan_name="OpenWrt"
# wlan_password="12345678"
#
# root_password=""
# lan_ip_address="192.168.1.1"
#
# pppoe_username=""
# pppoe_password=""

# log potential errors
exec >/tmp/setup.log 2>&1

if [ -n "$root_password" ]; then
  (echo "$root_password"; sleep 1; echo "$root_password") | passwd > /dev/null
fi

# Configure LAN
# More options: https://openwrt.org/docs/guide-user/base-system/basic-networking
if [ -n "$lan_ip_address" ]; then
  uci set network.lan.ipaddr="$lan_ip_address"
  uci commit network
fi

# Configure WLAN
# More options: https://openwrt.org/docs/guide-user/network/wifi/basic#wi-fi_interfaces
if [ -n "$wlan_name" -a -n "$wlan_password" -a ${#wlan_password} -ge 8 ]; then
  uci set wireless.@wifi-device[0].disabled='0'
  uci set wireless.@wifi-iface[0].encryption='psk2'
  uci set wireless.@wifi-iface[0].ssid="$wlan_name"
  uci set wireless.@wifi-iface[0].key="$wlan_password"
  uci commit wireless
fi

# Configure PPPoE
# More options: https://openwrt.org/docs/guide-user/network/wan/wan_interface_protocols#protocol_pppoe_ppp_over_ethernet
if [ -n "$pppoe_username" -a "$pppoe_password" ]; then
  uci set network.wan.proto=pppoe
  uci set network.wan.username="$pppoe_username"
  uci set network.wan.password="$pppoe_password"
  uci commit network
fi

echo "All done!"

But AFAICT several keys it uses are incorrect. F.e. when I do (on my TPLink Archer-C6 v3):

uci get wireless.@wifi-device[0].ssid

I get

uci: Entry not found

But when I do:

uci get wireless.@wifi-iface[0].ssid

I do get the expected result.

In https://gitlab.com/openwrt/web/firmware-selector-openwrt-org/-/commit/f717e66f27096cce5fa05fa0dc81353379831ec1 from ~1 month ago, this got added:

uci set wireless.@wifi-device[0].disabled='0'

But that key also gives an error when I try to uci get it on my device.

Is this a bug? Or is it because I have SNAPSHOT as 'release'?

FTR: I'm running 22.03.5 on my Archer-C6 v3

Both of these statements can't be true. What version are you running, and what are you updating to?

Please show the output of:

ubus call system board

I was running 22.03.5, but preparing/experimenting with generating a new image which uses SNAPSHOT.

I've since just tried it to see what would happen, so now I'm running SNAPSHOT:

root@TPLink-ArcherC6:~# ubus call system board
{
        "kernel": "5.15.111",
        "hostname": "TPLink-ArcherC6",
        "system": "MediaTek MT7621 ver:1 eco:3",
        "model": "TP-Link Archer C6 v3",
        "board_name": "tplink,archer-c6-v3",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "revision": "r22909-c68c71eaa9",
                "target": "ramips/mt7621",
                "description": "OpenWrt SNAPSHOT r22909-c68c71eaa9"
        }
}

Exactly, since ".5" specifies a specific build, but you can sort of get there. :wink:

Since many times (most of the time?) you want the newest kernel, you'd use the snapshot build of the master (soon to be "main") branch, but... If you just want a package update in the release branch, you use the snapshot build on release like this (of course, ditch the "-c" for the real thing).

$ auc -c -b 22.03 -B 22.03-snapshot
auc/0.3.1-1
Server:    https://sysupgrade.openwrt.org
Running:   22.03.5 r20134-5f15225c1e on x86/64 (generic)
Available: 22.03-SNAPSHOT r20145-30fca5413b
Requesting package lists...
 kmod-usb-storage: 5.10.176-1 -> 5.10.179-1
 kmod-usb-core: 5.10.176-1 -> 5.10.179-1
...

I was running 22.03.5 on my (actual) Archer C6 v3 router.
And at the same time I was looking at this page:
https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=ramips%2Fmt7621&id=tplink_archer-c6-v3

And then I tried various statements I saw after clicking the gear icon on the Firmware Selector page, but tried them out on my router and that's when I got the errors. (ofc replaced uci set with uci get)

So I wondered whether there was a problem with the example code in the Firmware Selector or that the issue came because I was comparing different releases (22.03.5 vs SNAPSHOT); iow apples with oranges.

So both statements were true. Sorry I didn't explain my situation better.

Those packages were last seen in ASU at OpenWrt SNAPSHOT r22565-877ec78e23. Could you please build them for the recent version?

Error building the firmware image
Server response: Unsupported package(s): php8, lighttpd-mod-cgi, lighttpd, php8-cgi

Please report the error message and request
Request Data:

{
    "url": "https://sysupgrade.openwrt.org",
    "revision": "r22565-877ec78e23",
    "advanced_mode": "0",
    "branch": "SNAPSHOT",
    "efi": null,
    "profile": "xiaomi,ax3600",
    "target": "ipq807x/generic",
    "version": "SNAPSHOT",
    "packages": [
        "ath10k-firmware-qca9887-ct",
        "ath11k-firmware-ipq8074",
        "base-files",
        "bash",
        "batctl-full",
        "busybox",
        "ca-bundle",
        "ca-certificates",
        "curl",
        "dnsmasq",
        "dropbear",
        "firewall4",
        "fstools",
        "htop",
        "iperf3",
        "ipq-wifi-xiaomi_ax3600",
        "kernel",
        "kmod-ath10k-ct-smallbuffers",
        "kmod-ath11k-ahb",
        "kmod-batman-adv",
        "kmod-gpio-button-hotplug",
        "kmod-leds-gpio",
        "kmod-nft-offload",
        "kmod-phy-aquantia",
        "kmod-qca-nss-dp",
        "kmod-usb-dwc3",
        "kmod-usb-dwc3-qcom",
        "kmod-usb3",
        "libc",
        "libustream-openssl",
        "lighttpd",
        "lighttpd-mod-cgi",
        "logrotate",
        "lua",
        "luafilesystem",
        "luci",
        "luci-app-attendedsysupgrade",
        "luci-app-watchcat",
        "luci-proto-batman-adv",
        "luci-proto-relay",
        "mailsend",
        "mtd",
        "netifd",
        "nftables-json",
        "odhcp6c",
        "odhcpd-ipv6only",
        "opkg",
        "php8",
        "php8-cgi",
        "ppp",
        "ppp-mod-pppoe",
        "procd",
        "procd-seccomp",
        "procd-ujail",
        "relayd",
        "snmpd",
        "syslog-ng",
        "tcpdump",
        "terminfo",
        "uboot-envtools",
        "uci",
        "uclient-fetch",
        "urandom-seed",
        "urngd",
        "vsftpd",
        "watchcat",
        "wpad-mesh-openssl"
    ],
    "diff_packages": true,
    "filesystem": "squashfs",
    "client": "luci/git-22.285.67526-18bfcca"
}

Buildbot for packages reports lots of buildfailures for multiple targets:

Looks like it's not like those packages are not built, it's just that the building fails...

1 Like