mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-27 14:41:12 +04:00
main
25653
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
cdc3827a7b |
dnsmasq: cherrypick upstream to fix CVEs/vulns (2)
Yesterday, the maintainer of dnsmasq, Simon Kelley, posted a change to the dnsmasq security patch process, in which patches for security issues are posted directly to the public git, before any CVE assignment. New release versions with an embargo process is reserved for "catastrophic" vulnerabilities: https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2026q4/018646.html This commit cherry picks additional security-related upstream fixes, including those identified by @JohnsterID in #26340. Specifically: 001: https://thekelleys.org.uk/gitweb-noai/?p=dnsmasq.git;a=commit;h=c310853907a09050fd9aaa71d459dda190d113e1 002: https://thekelleys.org.uk/gitweb-noai/?p=dnsmasq.git;a=commit;h=ea9bd30cd4a42dfe773bb7419b36be3ace66a5ba 003: https://thekelleys.org.uk/gitweb-noai/?p=dnsmasq.git;a=commit;h=ea4645d52cfac5399848a4f705da28f2f9736956 004: https://thekelleys.org.uk/gitweb-noai/?p=dnsmasq.git;a=commit;h=7a663fd46b9f63b3cc49b77b2dc50a1ed94c3428 014: https://thekelleys.org.uk/gitweb-noai/?p=dnsmasq.git;a=commit;h=2463798e0322e1586d16970e7d5f60fd7a864f29 015: https://thekelleys.org.uk/gitweb-noai/?p=dnsmasq.git;a=commit;h=10fbc39cf57220eb93f61ce282d7561750f8d29d Existing patches 001-009 are renumbered to 005-013. Note that 015 primarily fixes a caching regression introduced by 013, but may also be considered security relevant due to the greater DoS possibility, especially when dnssec is enabled. These patches can be removed once DNSMASQ 2.94 is released. Signed-off-by: Tyrel M. McQueen <tmcqueen.materials@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26966 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
acdf8306b2 |
mac80211: rtw89: backport USB fixes and device IDs from 7.4
backports 7.2 ship the rtw89 USB drivers. Backport four upstream commits for them from 7.4: the fix for a crash when a device ID is added through sysfs, the IDs of TP-Link TBE400U and ASUS USB-BE93 for RTL8922AU, and the shorter RX aggregation hold for RTL8922AU on USB 3. Tested on a Turris Omnia with RTL8922AU (Cudy BE6500) as AP on 2.4 and 5 GHz, including a probe through a device ID added with new_id. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26877 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
b045587f4d |
mac80211: rtw89: package the USB chips
backports ship the rtw89 USB drivers, but only RTL8852AU is packaged. Add the USB variants of RTL8851B, RTL8852B, RTL8852C and RTL8922A. The chip modules (rtw89_8851b.ko and so on) are shared by the PCI and the USB variant, so each of them moves to its own hidden package, which also pulls the firmware, as kmod-rtw89-8852a already does. kmod-rtw89-8852b-common no longer depends on kmod-rtw89-pci, the module only needs the core. Tested on a Turris Omnia with RTL8922AU (Cudy BE6500) as AP on 2.4 and 5 GHz. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26877 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
b99fb4fd1e |
linux-firmware: rtl8852ce-firmware: ship firmware format 2
The package installs rtw8852c_fw.bin, the oldest firmware format. The rtw89 driver asks for rtw8852c_fw-2.bin first and only falls back to the older files when that one is missing. Ship the file the driver prefers, so RTL8852CE and the USB variant RTL8852CU run the firmware the driver is used with elsewhere. The firmware grows from 1.5 MB to 2.7 MB. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26877 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
d986d5cbcd |
linux-firmware: rtl8922ae-firmware: ship firmware format 4
The package installs rtw8922a_fw.bin, the oldest firmware format. The rtw89 driver asks for rtw8922a_fw-4.bin first and only falls back to the older files when that one is missing. Ship the file the driver prefers. It is also the file RTL8922AU on USB loads in the logs of morrownr/rtw89#23 and morrownr/rtw89#86. The firmware grows from 1.5 MB to 1.8 MB. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26877 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
568f1a8b29 |
base-files: sysupgrade: keep changed apk conffiles with -o
On apk systems, sysupgrade -o leaves out every package conffile the
user changed. The conffile list is built with cut -f2, which fits the
opkg status lines with their leading space. The apk conffiles_static
lines start with the path, so field 2 is the checksum. The conffiles
are then treated as plain package files and filtered out.
Print the first field with awk, which gives the path in both formats.
Tested on 25.12.6 and a master snapshot: changed /etc/dnsmasq.conf
and /etc/logrotate.conf are back in sysupgrade -o -l, a modified
package binary stays excluded.
Fixes:
|
||
|
|
3f94513f11 |
busybox: move shell history snippet to /usr/lib/profile.d
Install busybox-history-file.sh into /usr/lib/profile.d, which /etc/profile sources for packages, and leave /etc/profile.d to the administrator. A uci-defaults script removes the copy that sysupgrade restored into /etc/profile.d when it matches one of the two versions busybox has shipped; an edited file stays. Signed-off-by: Daniel Golle <daniel@makrotopia.org> |
||
|
|
87b6393560 |
base-files: move root password warning to /usr/lib/profile.d
Ship 00-passwordless-root.sh in /usr/lib/profile.d. A system upgraded
with sysupgrade still has the copy its backup restored into
/etc/profile.d, as well as apk-cheatsheet.sh, which commit
|
||
|
|
81e046aeb2 |
base-files: stop preserving /etc/profile across upgrades
/etc/profile is listed in keep.d/base-files-essential, so sysupgrade
carries it into the new image whether or not it was modified, and an
upgraded system keeps running the profile of the release it was first
installed with. Such a profile never sources /usr/lib/profile.d. Drop
/etc/profile from keep.d and from the conffiles of base-files, leaving
/etc/profile.d as the place for local changes.
The backup is built by the system being upgraded, so the old file still
arrives. Add profile_migrate() to functions.sh, which replaces an
/etc/profile that does not source /usr/lib/profile.d with a pristine
copy. A file matching one of the revisions shipped since 18.06.2, with
the PATH line normalised as that is set at build time, is discarded.
Anything else is saved as /etc/profile.d/profile.legacy, which survives
upgrades but is not sourced: every profile since commit
|
||
|
|
11d449b51e |
base-files: source profile snippets from /usr/lib/profile.d
Packages install their login shell snippets into /etc/profile.d, which base-files lists in its conffiles, so sysupgrade carries every file in it into the new image, where a restored copy shadows the snippet the new image ships and a snippet a package has dropped stays for good. Source /usr/lib/profile.d before /etc/profile.d in /etc/profile to give packages a directory of their own and leave /etc/profile.d to the administrator. A file in /etc/profile.d takes the place of the snippet of the same name in /usr/lib/profile.d, so a packaged snippet is changed by editing a copy of it there, and a <name>.hush file in /etc/profile.d silences the snippet of that name in either directory. Signed-off-by: Daniel Golle <daniel@makrotopia.org> |
||
|
|
0bfd1f4ede |
bcm27xx-utils: update to Git HEAD as of 2026.11.16
Full list of changes, from a clone of https://github.com/raspberrypi/utils: git log --oneline ebc4a56bac3a..7e9cdb55b7d7 Install the new rpi-manufacture-info script. On Pi 4 and Pi 5 family boards, it shows the manufacturing information stored in OTP and compares the factory RAM size with the board revision. Patch it to use hexdump instead of od, which the default OpenWrt busybox lacks. Signed-off-by: Joshua Covington <joshuacov@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26804 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
1a638103df |
mac80211: add kmod-rtw89-8852au for RTL8852AU USB adapters
The official Raspberry Pi kernel branch rpi-6.18.y adds support for RTL8852AU based USB Wi-Fi 6 adapters with commits 06d78c7572d6...3f9bc550f0bf: 24 backported upstream rtw89 commits (upstream 89acd6c49322 "wifi: rtw89: Add rtw89_core_get_ch_dma_v2()" up to 8368970b6240 "wifi: rtw89: usb: Support switching to USB 3 mode") plus a defconfig change enabling CONFIG_RTW89_8852AU. The driver changes are already present in OpenWrt via backports 7.2, so no patches need to be carried. Only the packaging is missing, which is the OpenWrt equivalent of the Raspberry Pi defconfig change: - add hidden kmod-rtw89-usb (rtw89_usb.ko) - split rtw89_8852a.ko out of kmod-rtw89-8852ae into a hidden kmod-rtw89-8852a, so the PCIe and USB variants can share it (same pattern as kmod-rtw89-8852b-common) - add kmod-rtw89-8852au (rtw89_8852au.ko) RTL8852AU uses the same firmware as RTL8852AE (rtw89/rtw8852a_fw.bin), so kmod-rtw89-8852a depends on rtl8852ae-firmware. Signed-off-by: Joshua Covington <joshuacov@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26804 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
a8b41710e3 |
linux-firmware: add Raspberry Pi 4 Model A and 500 NVRAM
The RPi 4 Model A and the RPi 500 expect the same NVRAM as the one from RPi 4 Model B on a different file. Signed-off-by: Joshua Covington <joshuacov@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26804 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
e50f7f9651 |
linux-firmware: update to 20261124
Modify with $(CP) for QCA2066 since 02062a7354e7 adds the nfa725/ subdirectory.
% git log --no-merges --pretty=oneline --abbrev-commit 20261019...20261124
57491bfc1b98 morsemicro: add 2.2.3 firmware for mm8108
f756750eeab1 cirrus: cs35l57: Add firmware for Cirrus CS35L57 for some Lenovo laptops
444338db17ca cirrus: cs42l45: Add CS42L45 SDCA codec firmware for Lenovo laptops
170f7adb1f49 intel: Update ibt-00a0-01a1-pci.ddc for BE211 - Whale Peak2 (WhP2)
1311312b203b qcom: update ADSP firmware for sm8750 platform
af79a85d017e qcom: update ADSP, CDSP firmware for eliza platform
76608d4f3803 qcom: update CDSP firmware for shikra platform
b2305c1f1260 qcom: add SOCCP firmware for glymur platform
e76b0f29978a xe: Update NVL GSC to v108.0.0.1242
d712d2d5b025 cirrus: cs35l57: Add firmware for Cirrus Amps for some Dell products
e222492b7a0b cirrus: cs42l45: Update CS42L45 SDCA codec firmware for Dell laptops
a438168b22e8 intel_vpu: Add NPU60xx firmware and update NPU37xx/40xx/50xx firmware
2eb4410d5b8f i915: Xe3p_LPD DMC v2.44
325fffb40a74 linux-firmware: Update firmware file for Intel BlazaruFmpArl core
48ad2ae8b1e9 linux-firmware: Update firmware file for Intel ScorpiusGfp core
cd1db29fde83 linux-firmware: Update firmware file for Intel BlazariFmp core
0c8522542fda linux-firmware: Update firmware file for Intel Magnetar core
328cfe7269d7 linux-firmware: Update firmware file for Intel BlazaruHrpGfp core
52745e5d9b2b linux-firmware: Update firmware file for Intel Solar core
8bed25234fae linux-firmware: Update firmware file for Intel BlazarI core
59f5e2d8b109 linux-firmware: Update firmware file for Intel BlazarU core
def5084f2f11 linux-firmware: Update firmware file for Intel Scorpius2 core
0fc372da80d0 linux-firmware: Update firmware file for Intel Scorpius core
f12b6065fc0c Bluetooth: btusb: Update Qualcomm WCN685x 2.0 firmware to 2.0.0-00634
0af0ecfd29f3 Bluetooth: btusb: Update Qualcomm QCC2072 firmware to ORNE.1.1.0.c1-00038
56fc6e57376e amd_pmf: Update AMD PMF TA Firmware for 1AH_M80H
3293e274067a intel/ish: Link HP Panther Lake ISH firmware for ZBook 8 G2i 14
2b42e6bda8ee amdgpu: Add compatibility links for GC 11.7.1 IMU firmware
800619ab87d4 amdgpu: Add compatibility links for GC 11.7.0 IMU firmware
40afd4a1b26a amdgpu: add alternate-signed VPE 2.0.0 firmware
313f73ea48ec amdgpu: add VPE 2.0.0 firmware
f1aba253ef30 amdgpu: add alternate-signed VCN 5.3.0 firmware
be47b26e3a9c amdgpu: add VCN 5.3.0 firmware
30326b668524 amdgpu: add alternate-signed SDMA 6.1.4 firmware
32f14f2643c5 amdgpu: add SDMA 6.1.4 firmware
48c3c6785172 amdgpu: add alternate-signed PSP 15.0.9 TOC firmware
e6874e02cfcf amdgpu: add PSP 15.0.9 TOC firmware
216322f8c5d6 amdgpu: add alternate-signed PSP 15.0.9 TA firmware
06a979881dfc amdgpu: add PSP 15.0.9 TA firmware
d56e2fcee573 amdgpu: add alternate-signed PSP 15.0.0 TOC firmware
fb25d84633a1 amdgpu: add PSP 15.0.0 TOC firmware
a3d96dfc1c4c amdgpu: add alternate-signed PSP 15.0.0 TA firmware
531f4a7182ca amdgpu: add PSP 15.0.0 TA firmware
b94fee3f44ff amdgpu: add alternate-signed GC 11.7.1 RLC firmware
40d1e9f3fddd amdgpu: add GC 11.7.1 RLC firmware
eb8e5b2d97ae amdgpu: add alternate-signed GC 11.7.1 PFP firmware
c7eb47c15dd3 amdgpu: add GC 11.7.1 PFP firmware
2400bfa96965 amdgpu: add alternate-signed GC 11.7.1 MES 2 firmware
9f577f6f53af amdgpu: add GC 11.7.1 MES 2 firmware
59b5324e2a7d amdgpu: add alternate-signed GC 11.7.1 MES1 firmware
ffa4f6f5fe5d amdgpu: add GC 11.7.1 MES1 firmware
b564a5912af3 amdgpu: add alternate-signed GC 11.7.1 MEC firmware
f9455ac5ad53 amdgpu: add GC 11.7.1 MEC firmware
fd1bd1d8079e amdgpu: add alternate-signed GC 11.7.1 ME firmware
11578283d2b2 amdgpu: add GC 11.7.1 ME firmware
0ff1b9699ae7 amdgpu: add alternate-signed GC 11.7.0 RLC firmware
81473934339d amdgpu: add GC 11.7.0 RLC firmware
7b556b9424a0 amdgpu: add alternate-signed GC 11.7.0 PFP firmware
11709aff444e amdgpu: add GC 11.7.0 PFP firmware
36f4305004ab amdgpu: add alternate-signed GC 11.7.0 MES 2 firmware
0d751ce7f49e amdgpu: add GC 11.7.0 MES 2 firmware
27ae2d667948 amdgpu: add alternate-signed GC 11.7.0 MES1 firmware
dfb1ee7acff2 amdgpu: add GC 11.7.0 MES1 firmware
bc9d7516dbb2 amdgpu: add alternate-signed GC 11.7.0 MEC firmware
f6274edec8ef amdgpu: add GC 11.7.0 MEC firmware
d89205dda912 amdgpu: add alternate-signed GC 11.7.0 ME firmware
469a7ab7067b amdgpu: add GC 11.7.0 ME firmware
e6452141a070 amdgpu: add alternate-signed DCN 4.2 DMCUB firmware
b457400cd6b2 amdgpu: add DCN 4.2 DMCUB firmware
2d352aaa534e amdgpu: update pre-production firmware
b4cd23bc17ec amdgpu: DMCUB updates for various ASICs
57bce0079507 brcm: add AP6356S NVRAM link for graperain g3568-v2
9aaaf33adb15 aic: Add AIC8800D80N Wi-Fi firmware and user configurations
1cafb17a3ead linux-firmware: Add firmware for awinic AW88399 SmartK AMP
9824c94e0822 cirrus: cs35l54: Add firmware for Cirrus Amps for an HP laptop
a74de987e629 cirrus: cs35l57: Add firmware for Cirrus Amps for an ASUS laptop
78a80776d9ac whence: add missing links for cs35l56 firmware files
b3c59f229198 qca: QCA61x4 USB: Link 00000201 firmware to the 00000200 files
aaf079271de0 xe: Add GuC 70.83.0 for CRI and NVL-P
f51d6d83dbad xe: Update GUC to v70.83.0 for DG2, MTL, LNL, BMG, PTL, NVL-S/U/H
812e4f6bb146 i915: Update GUC to v70.83.0 for DG2, MTL
587892142008 i915: Update GUC to v70.49.5 for TGL, ADL-P, DG1
2f9cde35d6f1 Rename multiple amdgpu files to have _p suffix
fbe464905aa8 qcom: add SOCCP firmware for nord platform
3063115c3999 qca: QCA61x4 USB: Replace duplicate NVM files with links
71bb32f9d260 qca: QCC2072: Replace duplicate firmware files with links
58b6166634a1 QCA: Update Bluetooth firmware for QCC2072 UART interface: 1.1.0-00355 to 1.1.0-00391
80b5ff642d95 rtw89: 8852bt: update fw to v0.29.122.3
c8cfb34c0579 rtw89: 8852b: update fw to v0.29.29.19
8a672ff527bc iwlwifi: add Bz/Sc FW for core24.90-60 release
dfe7428c17f7 iwlwifi: Add Bz/Fm firmware for core24.90-60 release
9473456ee8ab iwlwifi: Add Hr/Gf firmware for core24.90-60 release
a03cdf621501 iwlwifi: update ty/So/Ma firmwares for core24.90-60 release
512e1242d855 iwlwifi: Add cc/Qu/QuZ firmwares for core24.90-60 release
c1c76b61ec87 amd_pmf: Add AMD PMF TA Firmware v4 for 1AH_M80H
b45b4e7ed5f6 amd-sof: Add ACP 7.F SOF topology for RT721
0254bca61f83 qcom: Update qdsp6sw firmware for shikra platform
56464fec5f66 amd-sof: Add ACP 7.F SOF topologies
37713b3ae69b amd-sof: Add ACP 7.F SOF firmware
e924cbb24762 cirrus: cs35l63: Firmware for Lenovo laptops with SSID 2369 and 236a
afdfbe0db2ed cirrus: cs42l45: Add CS42L45 SDCA codec firmware for Lenovo laptops
b5cb6db82345 cirrus: cs35l57: Add firmware for Cirrus CS35L57 for a Lenovo laptop
ee657e9eb23f cirrus: cs42l45: Update CS42L49 SDCA codec firmware for Dell laptops
8bb261b8caba cirrus: cs35l56: Add firmware for Cirrus CS35L56 family for various Dell laptops
0fec6ddd090c WHENCE: Link the Raspberry Pi 5B revD
2f50d2df08fa Bluetooth: btusb: Add firmware for Qualcomm multi-subsystem QCC2072
877f10f7bfab cirrus: cs42l45: Add CS42L45 SDCA codec firmware for Dell laptops
e85582abf045 cirrus: cs35l63: Add firmware for Cirrus CS35L63 for various Dell laptops
ffd37ba0fb61 mediatek: mt8188: update SCP firmware to v2.0.30090
a8b74dd14a4b Update HPASS firmware for Qualcomm nord platform.
93b16ff1d548 qcom: add QUPv3 firmware for eliza
a215faf6367a realtek: rt1321: Add patch firmware of MCU for VA2
181c33e757b0 iwlwifi: add Sc2/Wh FW for core24.70-99 release
47f558b2e0d3 iwlwifi: add Sc2/Wh FW for core24.80-41 release
95751f54eb5c iwlwifi: update Sc/Wh FW for core102
362566e7dce4 qcom: Update the ThinkPad T14s G6 CDSP
0f816ab41b10 Linux-firmware: Add Dell ISH firmware 582.7822.0 for Intel Nova Lake-H systems.
416a692f3492 linux-firmware: Update firmware file for Intel Scorpius2 core
ca47bdb2ff05 linux-firmware: Update firmware file for Intel Scorpius2 core
0ae0788fd9d1 intel-ipu6: Add firmware binary for IPU8
a1eea0c082f4 intel-ipu6: Support IPU 7 and later as well
6f20b31f588e rtw89: 8852c: update fw to v0.27.138.1
f216cba84360 qcom: update LPAICP firmware for shikra platform
02062a7354e7 ath11k: QCA2066 hw2.1@nfa725: add to WLAN.HSP.1.1.c6-00302-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1
951343ac63b5 ath11k: QCA2066 hw2.1: update board-2.bin
a00f845dc89f qcom: vpu: Update video firmware binary for Kaanapali
f61bad71b577 amdgpu: DMCUB updates for various ASICs
4bdcd62d61a8 mediatek MT7922: update bluetooth firmware to 20261027203403
2452612955cd linux-firmware: update firmware for MT7922 WiFi device
a2de8a5aa000 qcom: update Rubik Pi 3 ADSP firmware
d0bbfb6d79cb qcom: update CDSP firmware for shikra platform
1ed979dc8449 xe: Add GSC 108.0.0.1211 for NVL
a8d5adf860ee wilc1000: update WILC1000/WILC3000 firmware to v16.5.2
1ce238098cab copy-firmware: allow partial installations
9ca5128f7fe0 amdgpu: DMCUB updates for DCN42
d0ed15f99b71 linux-firmware: nxpwifi: add firmware for IW610 WiFi device
da6abd68e438 QCA: Update Bluetooth QCA2066 firmware to 2.1.0-00680
01e6091841f0 WHENCE: fix version string for QCA2066 firmware
72f3b81c89fb ath10k: WCN3990: hw1.0: update shikra/wlanmdsp.mbn to WLAN.HL.3.3.7.c5-00226
466e500db134 linux-firmware: qcom: sync audioreach firmwares from v1.0.5 build
0bee5f744b96 qcom: Add gpu firmwares for Nord chipset
3bdfd270c55a contrib: detect the Bluetooth firmware format by its path
f5b443a84fcb qcom:x1e80100: Support for Lenovo Yoga Slim7 Snapdragon platform CDSP
585d96e825a5 mediatek MT7925: update bluetooth firmware to 20261016233221
5a3f625f2e9d linux-firmware: update firmware for MT7925 WiFi device
Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/26941
Signed-off-by: Nick Hainke <nick.hainke@posteo.de>
|
||
|
|
5dddea8513 |
dnsmasq: add ubus lease management methods
Add three ubus methods to dnsmasq's existing ubus interface: - add_lease: inject a DHCP lease (IPv4/IPv6) via ubus - delete_lease: remove a lease by IP address - get_leases: enumerate all active leases as JSON These methods provide ubus parity with dnsmasq's existing D-Bus AddDhcpLease/DeleteDhcpLease (since v2.73), with improvements: script suppression for HA setups, hostname validation, correct IPv6 domain lookup, and lease enumeration (no D-Bus equivalent). The patch follows the same patterns as the existing ubus metrics and set_connmark_allowlist methods. ~400 lines, all behind #ifdef HAVE_DHCP guards. Also submitted upstream to dnsmasq-discuss. If accepted upstream, this carried patch can be dropped. Tested on: OpenWrt 25.12 (x86_64 + filogic), production. Signed-off-by: Pierre Gaufillet <pierre.gaufillet@bergamote.eu> Link: https://github.com/openwrt/openwrt/pull/22904 Signed-off-by: Nick Hainke <nick.hainke@posteo.de> |
||
|
|
1243f67874 |
bzip2: pass PIC flags when linking libbz2 with LTO
Pass $(FPIC) to the linker driver so GCC generates position-independent code during LTO. This fixes MIPS relocation errors when linking libbz2.so. Signed-off-by: Anari Jalakas <anari.jalakas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26933 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
e8874b311c |
dsl-vrx200-firmware-xdsl: extract tarballs with --no-same-owner
The repacked VR9 firmware tarballs store the original packer's uid/gid (11609555/2222). When the build runs inside a user namespace, e.g. in rootless Docker containers, restoring that ownership fails with EINVAL because the uid is not mappable there; GNU tar exits non-zero and the package build fails. Restoring the original ownership of these firmware blobs serves no purpose, so pass --no-same-owner to the tar invocations. Signed-off-by: Andreas Ziegler <dev@andreas-ziegler.de> Link: https://github.com/openwrt/openwrt/pull/26943 Signed-off-by: Paul Spooren <mail@aparcar.org> |
||
|
|
9ee56abb0d |
bpf-headers: select the target kernel timer frequency
Fixed-HZ targets such as AT91 set CONFIG_HZ without setting a CONFIG_HZ_<value> choice. The MIPS configuration used for BPF headers then defaults to 250 Hz, while timeconst.h is generated at the target frequency. Including linux/jiffies.h fails when those values differ. Derive the MIPS Kconfig choice from the target CONFIG_HZ value so both generated headers use the same frequency. Tested by rebuilding bpf-headers and unetd for AT91 sam9x. Assisted-by: LLM Link: https://github.com/openwrt/openwrt/pull/26878 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
71d45d777b |
uboot-mediatek: build the KN-1012 chainloader for the image builder
The KN-1012 kernel image embeds this U-Boot, and an image builder build compiles the kernel of every device in the subtarget. With only another filogic board selected the binary was never built, so the build failed when the KN-1012 kernel tried to read it. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la> Link: https://github.com/openwrt/openwrt/pull/25757 Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de> |
||
|
|
7d85088f22 |
ppp: fix default config
Co-authored-by: Semih Baskan <strst.gs@gmail.com> Signed-off-by: Martin Pecka <peci1@seznam.cz> Link: https://github.com/openwrt/openwrt/pull/24396 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
d522c00359 |
ppp: update MPPE options in PPTP configuration
After the update of ppp to 2.5.0 (in
|
||
|
|
980a7404d7 |
airoha: add support for Gemtek XR1710G
Gemtek XR1710G, sold by Brightspeed, is an AN7581 Wi-Fi 7 gateway.
It is a close relative of the Gemtek W1700K: the Silabs
Bluetooth/Zigbee radio and the Airoha GPS are gone, and the LEDs of
the two 1 GbE ports are driven by the internal switch PHYs instead of
GPIOs. The device tree shares an7581-gemtek-common.dtsi with
the W1700K and only adds these LEDs and the label MAC.
Specification:
- SoC : Airoha AN7581GT, 4x Cortex-A53
- RAM : 2 GiB DDR4-2666 (ESMT M16U8G16512A)
- Flash : 512 MiB SPI-NAND (Winbond W25N04KV)
- WLAN : MediaTek MT7996 (BE19000) on PCIe
- 2.4 GHz : 4x4, MT7976GN
- 5 GHz : 4x4, MT7977BN
- 6 GHz : 4x4, MT7977AN
- Ethernet : 2x 10 GbE (Realtek RTL8261BE, wan and lan2),
2x 1 GbE (AN7581 internal switch, lan3 and lan4)
- LEDs : 1x status, red/green/blue/white (GPIO),
2x2 lan3/lan4 green/amber (switch PHY)
- Button : reset
- Fan : PWM controlled by a Nuvoton NCT7802 on I2C
- UART : 5-pin header next to the case screw, 115200n8
- pinout : TX, GND, VCC, N/C, RX, starting at the screw
- Power : 12 VDC, 5 A, barrel jack, center positive
- Bootloader: U-Boot 2014.04-rc1 "AXON 1.6", signed, vendor BMT/BBT
The vendor bootloader verifies the image it boots by default and uses
Airoha BMT/BBT for bad block management, which Linux does not know
about. As on the W1700K, a U-Boot chainloader is therefore placed into
the "chainloader" partition (the start of the first vendor firmware
bank), which the vendor bootloader writes and loads, and everything
else lives in UBI, which handles bad blocks itself. The vendor
bootloader and its 66 MiB BMT pool at the end of flash are left alone.
The factory UBI volume holds the MT7996 EEPROM and the MAC addresses.
All of it comes from the vendor partition, which OpenWrt never writes:
the DSD block at 0x400000 holds the MACs, fan_id and the serial number
as text, the EEPROM is in the first good block from 0x405000. When the
volume is missing or holds no valid EEPROM and MACs, as on a new
install, sysupgrade builds it from there before writing the firmware.
The serial number has to match the board, and nothing is written when
the vendor data does not look right.
Installation (via serial console):
1. Open the case: there is a Torx T10 screw under the QR code label,
then pry the grey and white halves apart starting at the ports.
2. Connect to the UART header and interrupt the vendor bootloader with
any key.
3. Make the vendor bootloader boot the chainloader from flash, write
the chainloader with TFTP (server 192.168.1.254), and erase the rest
of the stock firmware. The vendor Ethernet driver is flaky, the
tftpboot may need a few attempts:
setenv serverip 192.168.1.254
setenv ipaddr 192.168.1.1
tftpboot 0x89000000 openwrt-airoha-an7581-gemtek_xr1710g-ubi-chainload-uboot.itb
setenv one flash read 0x600000 0x100000 \$loadaddr
setenv two "; bootm"
setenv bootcmd "$one$two"
saveenv
flash erase 0x600000 0x100000
flash write 0x600000 0x100000 0x89000000
flash erase 0x700000 0x1b700000
reset
The last erase matters: the stock firmware keeps its own UBI in this
area, which the chainloader would otherwise attach and keep.
If tftpboot keeps failing, load the chainloader over the serial
console instead: run "loady 0x89000000" in place of the tftpboot,
send the file with YMODEM (about 30 s at 115200 baud), then go on
with the setenv commands.
4. The chainloader creates UBI in the erased ubi partition with the
ubootenv, ubootenv2 and an empty factory volume, and saves its
environment. With nothing to boot, it lights the blue LED and loads
openwrt-airoha-an7581-gemtek_xr1710g-ubi-initramfs-recovery.itb via
TFTP from 192.168.1.254 until a server answers.
5. In the recovery system (192.168.1.1), copy over the sysupgrade.itb
image and run sysupgrade. It fills the factory volume with the Wi-Fi
calibration data and the MAC addresses from the vendor partition and
installs OpenWrt. The recovery volume is optional; without it, the
chainloader falls back to TFTP when the system does not boot.
6. Further updates use the sysupgrade.itb image.
Reverting to the stock firmware is not documented: the stock firmware
needs an ISP account to be useful.
MAC addresses ("factory" UBI volume):
- WAN : 0x5000 xx:xx:xx:xx:xx:xx
- LAN : 0x6000 xx:xx:xx:xx:xx:xx
- 2.4 GHz : 0x6000 + 1
- 5 GHz : 0x6000 + 2
- 6 GHz : 0x6000 + 3
Known issues:
- The 10 GbE ports (wan and lan2) may come up without link or lose
link: the AN7581 USXGMII PCS sometimes fails RX calibration ("No
FBCK Lock") with the RTL8261BE. The PCS and PHY fixes are being
worked on separately.
Based on the XR1710G support by Kenneth Kasilag (openwrt/openwrt#22397).
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Andrey Korshunov <razor1702@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26296
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||
|
|
b8d878f0b6 |
uboot-airoha: add chainloader for Gemtek XR1710G
The Gemtek XR1710G (Brightspeed XR1710G) runs the same AXON vendor
bootloader as the Gemtek W1700K, including its Airoha BMT/BBT
handling, so it needs the same chainloader: the vendor bootloader only
loads this U-Boot from the "chainloader" partition, and all OpenWrt data
lives in UBI, which does its own bad block management.
The parts of the board U-Boot uses (UART, reset button, status LEDs,
SPI-NAND and the flash layout) match the W1700K, so the configuration is
the W1700K one with the names changed, plus:
- CONFIG_PINCONF is replaced by CONFIG_PINCTRL_AIROHA_AN7581, as for the
AN7581 reference board. The W1700K configuration lacks the pin
controller driver, so U-Boot finds neither the reset button nor the
status LEDs there ("LED 'status:red' not found (err=-19)").
- The reset button is read when the chainloader starts. If it is held,
the blue status LED lights up and the recovery image
(openwrt-airoha-an7581-gemtek_xr1710g-ubi-initramfs-recovery.itb) is
booted via TFTP from 192.168.1.254, retrying until a server answers.
This allows recovery without a serial console. The button has to be
pressed after power is applied: held at power-on, it makes the AN7581
boot ROM wait for a UART download instead. The chainloader starts about
15 s after power-on.
- The default menu entry runs boot_ubi instead of boot_production, so a
broken production volume falls back to the recovery volume, and when
neither boots the recovery image is loaded via TFTP until a server
answers. boot_recovery only runs bootm after the recovery volume was
read, so a warm reset cannot boot a stale image left in RAM.
- As on the Nokia boards, a ubi partition that does not attach is
formatted, missing ubootenv, ubootenv2 and factory volumes are
created, and the environment is saved once, so fw_printenv and
fw_setenv work. CONFIG_ENV_SIZE is set to the ubootenv volume size
that uboot-envtools uses. The factory volume holds the Wi-Fi EEPROM
and the MAC addresses and is filled by sysupgrade from the vendor
partition. Created empty here, it lets the kernel fall back to random
MAC addresses instead of deferring the Ethernet probe, so the recovery
image has a working network.
- MMC support is disabled, as on the Nokia boards. The board has no
eMMC, and with the environment in MMC or UBI the saveenv right after a
format went to MMC: when no location holds an environment yet,
env_load() selects the first one.
- The installer variables and menu entry of the W1700K are dropped: the
device is installed by booting the recovery image and running
sysupgrade.
- CONFIG_CMD_ASKENV is enabled, as on the Nokia boards: the TFTP and
recovery menu entries wait for Enter with askenv when they fail. The
W1700K configuration lacks it, so there they print "Unknown command
'askenv'" and return to the menu at once.
Based on the XR1710G chainloader by Kenneth Kasilag.
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Andrey Korshunov <razor1702@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26296
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||
|
|
9a290a36d8 |
linux-firmware: drop brcmsmac-firmware
The firmware was only used by kmod-brcmsmac, which has been removed. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26267 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
dd441bca35 |
mac80211: drop brcmsmac
Nothing selects kmod-brcmsmac by default. Rosen Penev reports that on the RT-N16 it only works with a firmware whose version check is patched by hand [1], and the bcm47xx target uses b43 for these SoCs. Remove the driver, the option that cuts its firmware out of broadcom-wl and the brcmsmac only regulatory patch. BCM4313 cards lose their driver, kmod-b43 has no LCN-PHY support. Checked with CONFIG_ALL defconfig on bcm47xx, bcm53xx and x86. There are no new warnings, and b43, brcmfmac and brcmutil are still built. [1] https://github.com/openwrt/openwrt/pull/26267#issuecomment-6475312956 Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26267 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
14a07b78e9 |
hostapd: ucode: free the link ID of a deleted MLD BSS
bss_delete and a failed add_bss drop the AP MLD reference by hand but leave the link ID set in used_link_ids. Adding the link back then fails with "Link ID N already in use" and the link stays out of the AP MLD, as seen with the 6 GHz link of a GL-BE9300 after wifi reload. Drop the reference with hostapd_mld_ref_dec(), which also clears the link ID bit, and export it from hostapd.c like the other helpers used by ucode.c. Signed-off-by: Zakk P <zakk@gentoozh.org> Link: https://github.com/openwrt/openwrt/pull/26807 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
ec116e3b3e |
mediatek: filogic: add support for TP-Link EX820v
Specifications:
- SoC: MediaTek MT7986A, 4x Cortex-A53
- RAM: 512 MiB DDR3
- Flash: 128 MiB SPI-NAND
- Switch: MediaTek MT7531
- Ethernet: 5 ports (1x 2.5G WAN, 3x 1G LAN, 1x 2.5G LAN)
- Ethernet PHYs: 2x MaxLinear GPY211C (2.5G WAN and 2.5G LAN)
- Wi-Fi: MT7986A built-in MAC/baseband with MediaTek MT7975 RF
front end, 2.4 GHz and 5 GHz Wi-Fi 6, 4T4R on both bands
- USB: 1x USB 3.0
- LEDs: 12 (power, status, WAN online, WAN, 4x LAN, 2.4 GHz,
5 GHz, phone, USB). The phone LED is not used, as the voice
(FXS) ports are not supported.
- Buttons: reset, WPS
- Power: 12 VDC, 2.5 A
Installation:
1. Open the case and connect a 3.3 V USB-UART adapter to the 4-pin
through-hole serial header (115200 baud, 8N1). Pin order of the
board pads, from top to bottom: VCC, GND, RX, TX. Do not connect VCC.
2. Connect a PC to one of the 1G LAN ports and set its address to
192.168.1.2/24. Serve the initramfs image
(openwrt-mediatek-filogic-tplink_ex820v-initramfs-kernel.bin)
with a TFTP server.
3. Power on the router and press Ctrl-C (or "t") when prompted to
enter the U-Boot command line. By default U-Boot uses 192.168.1.1
for itself and 192.168.1.2 as the TFTP server.
4. Boot the initramfs image:
tftpboot openwrt-mediatek-filogic-tplink_ex820v-initramfs-kernel.bin
bootm 0x46000000
5. Back up the stock "ubi0" partition. Do not skip this step: no
stock firmware image that can be flashed from OpenWrt is
available, so this backup is the only way to return to stock.
Check that "ubi0" is mtd4:
cat /proc/mtd
Then, on the router:
ubidetach -m 4
cat /dev/mtd4 > /tmp/ex820v-stock-ubi0.bin
sha256sum /tmp/ex820v-stock-ubi0.bin
Copy the file to the PC, for example:
scp -O root@192.168.1.1:/tmp/ex820v-stock-ubi0.bin .
The initramfs runs from RAM, so the file is lost on reboot. Check
that the copy on the PC is 41943040 bytes and that its checksum
(sha256sum ex820v-stock-ubi0.bin) matches the one printed on the
router before continuing. Note the checksum, as it is needed to
verify the file again when returning to stock. The backup is a
stock firmware image and may contain device-specific data. Keep
it for your own use and do not share it.
6. Copy the sysupgrade image to the router with "scp -O" and run
"sysupgrade -n -v <image>".
Return to stock:
This needs the "ubi0" backup from step 5 of the installation. Only
"ubi0" is changed by the installation. Boot the initramfs again as
in steps 2 to 4, then copy the backup from the PC to the router:
scp -O ex820v-stock-ubi0.bin root@192.168.1.1:/tmp/
Check that the transfer was successful before continuing: the file
on the router must be 41943040 bytes and its checksum must match the
one of the backup on the PC:
ls -l /tmp/ex820v-stock-ubi0.bin
sha256sum /tmp/ex820v-stock-ubi0.bin
Then, on the router:
ubidetach -m 4
mtd write /tmp/ex820v-stock-ubi0.bin ubi0
Check that "mtd write" finished without errors. Do not reboot if the
transfer check or the write failed, otherwise the router may not
boot. If everything went well, reboot:
reboot
Notes:
- Tested on an EX820v v1.0, GBBRSK variant (Brsk, UK). Other hardware
versions and regional variants were not tested.
- Installation and return to stock were tested on two units.
- The Wi-Fi EEPROM is read from the stock "misc_ro" UBIFS file
0x003A0000 (first 4096 bytes).
- The LAN MAC comes from "flashmac" in u-boot-env. WAN uses +1, the
2.4 GHz radio +2 and the 5 GHz radio +3.
- The NMBM layout matches the stock firmware, so the stock U-Boot
boots the "uboot", "rootfs" and "kernel" volumes from ubi0 and no
tp_boot_idx handling is needed.
- The flash is reported as ESMT SPI NAND by OpenWrt and as GigaDevice
by stock. Both report the same ID (0xc8).
- NMBM bad-block remapping was not exercised, the unit has no bad
blocks.
Signed-off-by: Michele Lizzit <michele@lizzit.it>
Co-developed-by: Koen van Mierlo <k.j.vanmierlo@gmail.com>
Signed-off-by: Koen van Mierlo <k.j.vanmierlo@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26747
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
0e66e1c745 |
hostapd: backport the VLAN of the PSK on FT-PSK roaming
With ft_psk_generate_local=1, the default for FT with a PSK, hostapd does not look at the VLAN ID that a PSK in wpa_psk_file has (vlanid=<VLAN ID>) when a station roams with FT. The station then drops out of the VLAN of its PSK onto the interface of the BSS. A wifi-station section with a vid gives a PSK such a VLAN ID. hostap main fixes this with commit ad66108dbc5a, which is not in the 2.12 release that the package pins: https://git.w1.fi/cgit/hostap/commit/?id=ad66108dbc5a8a28b7164c6cd05eda6550f94481 Backport it as patch 927. A PSK lookup that asks for the VLAN ID also sets psk_idx, so the sta_connected ucode hook now gets the psk_idx after an FT-PSK roam too. Tested on a TP-Link Archer C7: after an FT-PSK roam, a station whose PSK has vlanid=1 stayed in VLAN 1 ("AP-STA-CONNECTED ... vlanid=1 auth_alg=ft"). Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com> Assisted-by: Claude:claude-opus-5-5 Link: https://github.com/openwrt/openwrt/pull/26864 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
8a6b3a312a |
mac80211: add patch assuming mfp on qca99x0 firmware
Set ATH10K_FW_FEATURE_MFP_SUPPORT despite no mfp support being advertised by the firmware, based on exact firmware version and chip type. The QCA99X0 firmware in linux-firmware (10.4.1.00030-1, from around 2015), does not - unlike firmwares for similar chips - advertise the "mfp" feature. As a result of missing mfp advertisement from firmware side, ATH10K_FW_FEATURE_MFP_SUPPORT is not set and ath10k never sets the PMF peer flag in WMI peer assoc for 802.11w peers. Effect is heavily degraded throughput on the TX path (QCA99X0 as AP -> STA, capped at a fraction of the RX path), when using 802.11w, which e.g. is a requirement for wpa3. However, the hardware itself appears to support mfp, as indicated by alternative firmware projects, such as ath10k-ct, which advertises mfp for QCA99X0. Also the original firmware appears to actually support mfp, despite not advertising it. Just assuming mfp support from the linux side and not relying on advertised features, results in the TX path being on par with the RX path. Experienced and tested on an Aruba AP-325 running OpenWrt. Tested-on: QCA99X0 hw2.0 PCI 10.4.1.00030-1 (Aruba AP-325) Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de> Link: https://github.com/openwrt/openwrt/pull/26651 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> |
||
|
|
f3c0b2cc79 |
mediatek: filogic: add support for MERCUSYS Halo H90X v1
Add support for the MERCUSYS Halo H90X (EU) v1 using the stock
flash layout and an optional OpenWrt U-Boot UBI layout.
Hardware:
- SoC: MediaTek MT7986B, 4x Cortex-A53
- RAM: 512 MiB DDR3
- Flash: 128 MiB SPI-NAND (ESMT F50L1G41LB /
POWERCHIP PSU1GS20DX / GigaDevice GD5F1GQ5UEYIGY)
- Ethernet: 1x 2.5GbE WAN/LAN via MaxLinear GPY211
- Ethernet: 2x 1GbE LAN via MediaTek MT7531
- 2.4 GHz: MediaTek MT7975N, 4x4 802.11ax
- 5 GHz: MediaTek MT7975P, 4x4 802.11ax
- LEDs: green and amber status, 2x green LAN, green 2.5GbE
- Button: reset
- Power: 12 VDC, 1.5 A
H90X shares the MR90X hardware description, but has one fewer MT7531
LAN port and uses H90X-specific partitioning and board setup.
Move the MR90X image settings into shared definitions so H90X can
reuse them; the MR90X images are unchanged.
All Ethernet ports, LEDs, and the reset button were tested.
MAC address layout:
LAN: label MAC
WAN: label MAC + 1
2.4 GHz: label MAC
5 GHz: label MAC - 1
Stock flash layout:
0x0000000-0x0200000 boot 2 MiB
0x0200000-0x0300000 u-boot-env 1 MiB
0x0300000-0x2d00000 ubi0 42 MiB
0x2d00000-0x5700000 ubi1 42 MiB
0x5700000-0x5800000 radio 1 MiB
0x5800000-0x6100000 factory_data 9 MiB
0x6100000-0x7200000 runtime_data 17 MiB
The named stock partitions end at 0x07200000. No functional
partition is defined for the remaining 14 MiB.
The factory_data UBI partition stores wireless calibration and the
label MAC in its ubi_factory_data volume. The OpenWrt U-Boot layout
stores the same data in its factory partition using NVMEM.
UART:
The four UART pads are present on the PCB. R3 on TX and R6 on RX are
unpopulated. Bridge their pads to use the 115200 8N1 UART console.
V
+-------+-------+-------+-------+
| +3.3V | GND | TX | RX |
+---+---+-------+-------+-------+
|
+--- Do not connect
Not all installation and recovery paths have been tested end-to-end.
The test H90X had already been modified with an incorrect partition
layout and had no original backups. Until the procedures are verified
on an untouched device, install OpenWrt only if UART recovery is
available.
Stock layout installation using UART:
1. Connect the TFTP host to LAN1, configure it as 192.168.0.2/24,
and connect UART at 115200 8N1.
2. Interrupt stock U-Boot with Ctrl-C and boot the stock-layout
initramfs:
printenv ipaddr serverip
setenv image openwrt-mediatek-filogic-mercusys_h90x-v1
setenv bootfile ${image}-initramfs-kernel.bin
tftpboot 0x46000000 ${bootfile}
bootm 0x46000000
The expected values are ipaddr=192.168.0.1 and
serverip=192.168.0.2.
After OpenWrt initramfs boots, enable DHCP on the host Ethernet
interface.
3. Create the five raw recovery backups after OpenWrt initramfs boots:
cat /dev/mtd0 > /tmp/boot.bin
cat /dev/mtd1 > /tmp/u-boot-env.bin
cat /dev/mtd4 > /tmp/radio.bin
cat /dev/mtd5 > /tmp/factory_data.bin
cat /dev/mtd6 > /tmp/runtime_data.bin
Extract the calibration and MAC files needed by the OpenWrt
U-Boot layout:
cp /tmp/factory_data/MT7986_EEPROM.bin /tmp/
cp /tmp/factory_data/default-mac /tmp/
Copy the five raw backups and two extracted files to the host:
mkdir -p h90x-backup
scp -O \
root@192.168.1.1:/tmp/boot.bin \
root@192.168.1.1:/tmp/u-boot-env.bin \
root@192.168.1.1:/tmp/radio.bin \
root@192.168.1.1:/tmp/factory_data.bin \
root@192.168.1.1:/tmp/runtime_data.bin \
root@192.168.1.1:/tmp/MT7986_EEPROM.bin \
root@192.168.1.1:/tmp/default-mac \
h90x-backup/
Keep these files in a safe place.
4. Copy the stock-layout sysupgrade image to /tmp and install it:
prefix=openwrt-mediatek-filogic-mercusys_h90x-v1
sysupgrade -n "/tmp/${prefix}-squashfs-sysupgrade.bin"
Stock layout installation without UART:
Let ROUTER_IP be the stock firmware's configured LAN address.
1. Create and enable a guest network in the stock firmware and set
its SSID to:
""; $(telnetd -l /bin/sh)
Apply the configuration and connect to ROUTER_IP port 23 for a root
shell.
2. Check the active stock boot slot:
fw_printenv tp_boot_idx
If the result is tp_boot_idx=1, install MERCUSYS stock firmware
using the web interface and repeat this step after the router
reboots. Otherwise, continue to the next step.
3. Create the five raw recovery backups:
cat /dev/mtd0 > /tmp/boot.bin
cat /dev/mtd1 > /tmp/u-boot-env.bin
cat /dev/mtd4 > /tmp/radio.bin
cat /dev/mtd5 > /tmp/factory_data.bin
cat /dev/mtd6 > /tmp/runtime_data.bin
4. Temporarily clear the root password to enable stock SSH access:
passwd -d root
This creates passwordless root access through the OEM SSH server.
Use an isolated or trusted network and continue immediately.
5. Stock SSH listens on port 20001. Copy the five backups to the host:
mkdir -p h90x-backup
scp -O -P 20001 \
root@ROUTER_IP:/tmp/boot.bin \
root@ROUTER_IP:/tmp/u-boot-env.bin \
root@ROUTER_IP:/tmp/radio.bin \
root@ROUTER_IP:/tmp/factory_data.bin \
root@ROUTER_IP:/tmp/runtime_data.bin \
h90x-backup/
6. The stock firmware does not provide ubiupdatevol. Upload a static
AArch64 BusyBox providing it together with the stock-layout
initramfs:
scp -O -P 20001 \
busybox \
openwrt-mediatek-filogic-mercusys_h90x-v1-initramfs-kernel.bin \
root@ROUTER_IP:/tmp/
Recreate OEM kernel volume ID 1 as a static 12 MiB volume, write
the OpenWrt initramfs, and reboot:
image=openwrt-mediatek-filogic-mercusys_h90x-v1
chmod 755 /tmp/busybox
ubirmvol /dev/ubi0 -N kernel
ubimkvol /dev/ubi0 -n 1 -N kernel -t static -s 12MiB
/tmp/busybox ubiupdatevol /dev/ubi0_1 \
"/tmp/${image}-initramfs-kernel.bin"
sync
reboot
7. After OpenWrt initramfs boots, extract the calibration and MAC
files:
cp /tmp/factory_data/MT7986_EEPROM.bin /tmp/
cp /tmp/factory_data/default-mac /tmp/
Copy both files to the host:
scp -O \
root@192.168.1.1:/tmp/MT7986_EEPROM.bin \
root@192.168.1.1:/tmp/default-mac \
h90x-backup/
8. Copy the stock-layout sysupgrade image to /tmp and install it:
prefix=openwrt-mediatek-filogic-mercusys_h90x-v1
sysupgrade -n "/tmp/${prefix}-squashfs-sysupgrade.bin"
U-Boot layout installation using UART:
1. Boot the stock-layout OpenWrt initramfs and copy the five raw
backups and two extracted factory-data files to the host as
described above.
2. Reboot, interrupt stock U-Boot, and boot the UBI-layout recovery
image using the stock 192.168.0.1/192.168.0.2 addresses:
printenv ipaddr serverip
setenv image openwrt-mediatek-filogic-mercusys_h90x-v1-ubi
setenv bootfile ${image}-initramfs-recovery.itb
tftpboot 0x46000000 ${bootfile}
bootm 0x46000000#config-1
3. Continue with the common U-Boot layout installation below.
U-Boot layout installation without UART:
1. Follow the software-only stock-layout procedure through booting
the stock-layout OpenWrt initramfs and copying the five raw backups
and two extracted files to the host. Do not install the
stock-layout sysupgrade image.
2. Copy the UBI-layout recovery image to /tmp, replace the temporary
initramfs, and reboot:
prefix=openwrt-mediatek-filogic-mercusys_h90x-v1-ubi
ubiupdatevol /dev/ubi0_1 \
"/tmp/${prefix}-initramfs-recovery.itb"
sync
reboot
3. Continue with the common U-Boot layout installation below.
Common U-Boot layout installation:
1. Copy the H90X UBI profile artifacts and the extracted factory-data
files to /tmp from the host:
scp -O \
*h90x-v1-ubi-bl31-uboot.fip \
*h90x-v1-ubi-preloader.bin \
*h90x-v1-ubi-squashfs-sysupgrade.itb \
h90x-backup/MT7986_EEPROM.bin \
h90x-backup/default-mac \
root@192.168.1.1:/tmp/
2. Prepare UBI and install the FIP:
prefix=openwrt-mediatek-filogic-mercusys_h90x-v1-ubi
ubidetach -p /dev/mtd3
ubiformat /dev/mtd3 -y
ubiattach -d 0 -p /dev/mtd3
ubimkvol /dev/ubi0 -n 0 -N fip -t static -s 1MiB
ubiupdatevol /dev/ubi0_0 "/tmp/${prefix}-bl31-uboot.fip"
ubimkvol /dev/ubi0 -n 1 -N ubootenv -s 0x1f000
ubimkvol /dev/ubi0 -n 2 -N ubootenv2 -s 0x1f000
3. Install kmod-mtd-rw and unlock the boot subpartitions:
apk update && apk add kmod-mtd-rw
insmod mtd-rw i_want_a_brick=1
mtd unlock boot
mtd unlock bl2
mtd unlock factory
4. Create a 128 KiB factory erase block with the full 20 KiB
MT7986_EEPROM.bin at offset 0 and default-mac at offset 0x8000:
dd if=/dev/zero bs=$((0x20000)) count=1 2>/dev/null | \
tr '\000' '\377' > /tmp/factory.bin
dd if=/tmp/MT7986_EEPROM.bin of=/tmp/factory.bin \
conv=notrunc
dd if=/tmp/default-mac of=/tmp/factory.bin \
bs=1 seek=$((0x8000)) conv=notrunc
Write the factory data and preloader:
mtd write /tmp/factory.bin factory
mtd write "/tmp/${prefix}-preloader.bin" bl2
5. Install the UBI-layout sysupgrade image:
sysupgrade -n "/tmp/${prefix}-squashfs-sysupgrade.itb"
OpenWrt U-Boot layout recovery:
1. Configure a TFTP host as 192.168.1.254 and place this image in its
TFTP root:
openwrt-mediatek-filogic-mercusys_h90x-v1-ubi-initramfs-recovery.itb
2. Hold the reset button to make OpenWrt U-Boot download and boot it.
This recovery path was tested after installing the UBI layout.
Return to stock:
From the stock layout:
The stock-layout installation keeps stock U-Boot and the stock
partition map. No raw partition restoration is required. Continue with
the common stock U-Boot web recovery below.
From the OpenWrt U-Boot layout:
This procedure is the same for UART and software-only installations.
It requires these five stock partition backups:
boot.bin
u-boot-env.bin
radio.bin
factory_data.bin
runtime_data.bin
1. Put the stock-layout initramfs FIT in the TFTP root under the
filename expected by OpenWrt U-Boot layout recovery:
image=openwrt-mediatek-filogic-mercusys_h90x-v1
cp "/path/to/${image}-initramfs-kernel.bin" \
"/path/to/tftp-root/${image}-ubi-initramfs-recovery.itb"
2. Connect the TFTP host at 192.168.1.254 and hold the reset button.
The stock-layout FIT boots in RAM and exposes the stock partition
names.
3. Copy the five stock partition backups to /tmp.
4. Install kmod-mtd-rw and detach factory_data if it was attached by
preinit:
apk update && apk add kmod-mtd-rw
insmod mtd-rw i_want_a_brick=1
umount /tmp/factory_data 2>/dev/null || true
ubidetach -p /dev/mtd5 2>/dev/null || true
5. Erase both stock firmware slots:
mtd erase ubi0
mtd erase ubi1
6. Restore the stock environment and persistent data, then restore
the stock bootloader last:
mtd write /tmp/u-boot-env.bin u-boot-env
mtd write /tmp/radio.bin radio
mtd write /tmp/factory_data.bin factory_data
mtd write /tmp/runtime_data.bin runtime_data
mtd write /tmp/boot.bin boot
sync
reboot
Common stock U-Boot web recovery:
1. Connect the host to LAN1 and configure it as 192.168.0.2/24.
2. When returning from the stock layout, hold the reset button to enter
recovery. The OpenWrt U-Boot layout restore enters recovery after
reboot because both stock firmware slots were erased.
3. The recovery page is available at 192.168.0.1, but its browser
upload is unreliable. Upload the OEM image as the multipart form
field "firmware" with curl:
curl -v http://192.168.0.1/ \
-F "firmware=@/path/to/h90x-stock-firmware.bin"
Full bootloader recovery:
If BL2 or FIP is damaged, recover it over UART with mtk_uartboot.
Use the OpenWrt-built mt7986-ram-ddr3-bl2.bin as the BL2 payload:
https://github.com/981213/mtk_uartboot
Keep the five raw recovery backups and two extracted factory-data
files for future recovery.
Signed-off-by: Nadim Sbaihi <nadimsbaihi@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22877
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
0ac151eb8d |
gettext-full: disable SELinux support in host tools
The host configure script can detect libselinux in staging_dir/hostpkg when libselinux/host has already been built. This links msgfmt against libselinux.so.1 without a runtime search path to the staging directory, causing translation builds such as util-linux to fail on hosts without a system libselinux. Pass --without-selinux to avoid this optional dependency and keep the host tools independent of whether libselinux/host was built earlier. Rebuilt gettext-full/host and util-linux successfully. Link: https://github.com/openwrt/openwrt/pull/26843 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
73c3e16bac |
uboot-imx: fix pylibfdt and dtc host builds
Backport the Python 3 C API conversions for pylibfdt. SWIG 4.5 removed the Python 2 aliases used by the bundled bindings. Disable YAML support in the bundled dtc. Its build can find the system yaml.h even when OpenWrt pkg-config cannot find libyaml. Assisted-by: LLM Link: https://github.com/openwrt/openwrt/pull/26856 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
6bd48701ef |
perf: fix build failure caused by libelf-zstd feature probe
The perf build currently fails with the following error:
Error: libzstd is required by libelf, please do not set NO_LIBZSTD
This is caused by upstream kernel commit 44b44ffd5dce ("perf build:
Minor improvement for linking libzstd"), which strictly aborts the build
if the `libelf-zstd` feature is detected while `NO_LIBZSTD` is set.
Because OpenWrt explicitly sets `NO_LIBZSTD=1`, this upstream check
triggers a false positive whenever `libzstd` happens to be present in the
build staging directory. The probe only checks for a linkable `-lzstd`
and the `ELFCOMPRESS_ZSTD` macro in `elf.h`; it does not verify if
`libelf` actually requires it (OpenWrt configures elfutils
`--without-zstd`).
Fix this build failure by explicitly passing `feature-libelf-zstd=0` in
MAKE_FLAGS. This disables the auto-detection probe and prevents the
upstream Makefile from incorrectly enforcing a libzstd dependency.
Signed-off-by: Til Kaiser <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/25256
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
|
||
|
|
e91b8b7413 |
netfilter: drop iptables dependency from kmod-nf-ipvs
This dependency does not exist in the kernel and make it impossible to build nftables-only images. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> |
||
|
|
3a81d2af8f |
netfilter: drop kmod-nf-ipt dependency from kmod-nft-compat
According to the help text in the kernel, NFT_COMPAT is required to use
x_tables extensions over the nf_tables framework.
Commit
|
||
|
|
ee0cdcee02 |
netfilter: add kmod-nf-xtables
When building nftables-only images, with all iptables related packages disabled, NETFILTER_XTABLES is not enabled in the kernel, as it is enabled by kmod-ipt-core and kmod-nf-ipt. This makes it impossible to build e.g. kmod-nf-nathelper-rtsp from the xtables-addon package in the packages feed, without enabling unneeded packages. Add a new package kmod-nf-xtables that packages both the kernel modules that are built when NETFILTER_XTABLES is enabled in the kernel, and add dependencies to the new package in kmod-ipt-core, kmod-nf-ipt and kmod-nft-compat. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> |
||
|
|
557a1dc686 |
mbedtls: fix compilation with GCC 15 on x86
The x86/generic target has the same compile problem ARM32 has with GCC 15. Link: https://github.com/openwrt/openwrt/pull/26821 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
2fa9f21b6c |
valgrind: fix build on MIPS64 with GCC15
The patch fixes the following LTO linking problem: ``` /__w/openwrt/openwrt/openwrt/staging_dir/toolchain-mips64_mips64r2_64_gcc-15.3.0_musl/mips64-openwrt-linux-musl/bin/ld.bfd: /__w/openwrt/openwrt/openwrt/tmp/ccM29fOJ.ltrans6.ltrans.o: in function `handle_SCSS_change': /__w/openwrt/openwrt/openwrt/build_dir/target-mips64_mips64r2_64_musl/valgrind-3.26.0/memcheck/../coregrind/m_signals.c:1165:(.text+0x239c): undefined reference to `my_sigreturn' collect2: error: ld returned 1 exit status ``` Link: https://github.com/openwrt/openwrt/pull/26841 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
fc407036fc |
apex: fix compilation with GCC 15
GCC 15 defaults to GNU C23, where bool, true and false are keywords.
This conflicts with the definitions in APEX's bundled Linux headers.
Pass -std=gnu17 through KCFLAGS to retain the language dialect used by
GCC 14. APEX appends KCFLAGS to KBUILD_CFLAGS and does not use the
OpenWrt TARGET_CFLAGS for compiling its sources.
Tested with GCC 15.3.0 using:
make package/apex/{clean,refresh,compile} V=99 FIXUP=1
All four APEX images built successfully.
Link: https://github.com/openwrt/openwrt/pull/26842
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
6f628a16f1 |
at91bootstrap: fix compilation with GCC 15
This fixes the following compile error:
```
-Map=./build/binaries/sama7g5-sdcardboot-uboot-4.0.10.map --cref -static -z noexecstack --no-warn-rwx-segments -T elf32-littlearm.lds --gc-sections -Ttext 0x100000
CC device/sama7g5/sama7g5.c
In file included from include/string.h:10,
from device/sama7g5/sama7g5.c:12:
include/types.h:23:23: error: 'bool' cannot be defined via 'typedef'
23 | typedef unsigned char bool;
| ^~~~
include/types.h:23:23: note: 'bool' is a keyword with '-std=c23' onwards
include/types.h:23:1: warning: useless type name in empty declaration
23 | typedef unsigned char bool;
| ^~~~~~~
make[4]: *** [Makefile:371: build/device/sama7g5/sama7g5.o] Error 1
```
Upstream commit: https://github.com/linux4sam/at91bootstrap/commit/32bbb4f73a9f3e94326f709413c1b58baefdfbfa
Link: https://github.com/openwrt/openwrt/pull/26819
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
8fa5009d56 |
mediatek: add support for Zyxel NWA55AX PTP
The Zyxel NWA55AX PTP is a 802.11ax outdoor wireless bridge introduced in 2026.
Hardware
--------
| | |
|----------|----------------------------------------------------------------|
| SoC | MT7981B |
| RAM | 512 MB DDR4 |
| Flash | 256 MB SPI NAND, Winbond W25N02KVZEIR, 50 MB usable by OpenWrt |
| Ethernet | 1x RJ45 via SoC (1G/100M) |
| Wifi | 802.11ax via SoC |
| | - 5 GHz: 2x2:2SS, 9 dBi, HPBW 70°H / 22°V, internal detachable |
| | - 2.4 GHz: 1x1:1SS, 3 dBi, omni, internal soldered |
| Power | PoE 802.3af |
| LEDs | 1x multi-color |
| Button | 1x reset |
| Console | 115200n8 pin holes for GND/RX/TX/VCC @ 3V3 (VCC not needed) |
Installing OpenWrt via Web UI
-----------------------------
1. Download squashfs-factory.bin image, rename it to just factory.bin so it's short.
2. Boot the device, open its Web UI in a browser.
3. Upload factory.bin at Maintenance > File Manager > Firmware Package.
4. Wait for the device to reboot. Note that OpenWrt disables wifi by default.
If the device keeps rebooting into vendor firmware, you've hit the wrong A/B slot.
OpenWrt must be installed to the first slot (0), vendor firmware remains in the second slot (1).
You can flash any Zyxel firmware update to activate the respective other slot,
e.g. flash from 7.11 to 7.12, or from 7.11 to 7.10.
Afterwards another upload of OpenWrt factory.bin will succeed.
Installing OpenWrt via serial console
-------------------------------------
1. Attach to GND/RX/TX pins after opening the case and removing the antenna panel.
2. Serve initramfs-kernel.bin on TFTP 192.168.1.66.
3. Power on the device.
4. Interrupt U-Boot by pressing `Esc,Esc` when prompted.
5. Set device TFTP config:
- `atna 192.168.1.88 ; atnf initramfs-kernel.bin`
6. Boot from TFTP:
- `atns "192.168.1.66 ; tftpboot ; setenv fdt_high 0xffffffffffffffff ; bootm"`
7. Activate the first A/B slot:
- `zyxel-bootconfig /dev/mtd9 set-image-status 0 valid`
- `zyxel-bootconfig /dev/mtd9 set-active-image 0`
8. Use SCP to copy `squashfs-sysupgrade.bin` to the device, then run `sysupgrade`.
9. Wait for the device to reboot. Note that OpenWrt disables wifi by default.
Restoring factory firmware
--------------------------
OpenWrt installs into the first A/B slot, while vendor firmware remains in the second slot.
You can activate the second slot (1) from within OpenWrt:
zyxel-bootconfig /dev/mtd9 get-status
zyxel-bootconfig /dev/mtd9 set-image-status 1 valid
zyxel-bootconfig /dev/mtd9 set-active-image 1
reboot
MAC addresses
-------------
OpenWrt uses the same MAC addresses as vendor firmware and chassis labels.
The base address is read from the `mrd` flash partition.
- Ethernet: base address + 0
- Wifi 2.4G: base address + 1
- Wifi 5G: base address + 2
Notes/Quirks
------------
- The A/B partition layout has two slots of 50 MB each. OpenWrt installs into
the first slot, so you need to make sure to flash from within the second slot.
- The vendor Web UI requires the firmware image filename to be of a certain length,
otherwise you get the following error: `Warning ULCGI unalbe to parse CGI query!`.
Shorten the full squashfs factory image name to just factory.bin and it'll work.
- The model code `a4 e1` was found in tmp/root/upper/rw/fwversion,
extracted from clone_tmp.tar.gz from a vendor diaginfo dump.
Signed-off-by: Lars Gierth <larsg@systemli.org>
Link: https://github.com/openwrt/openwrt/pull/25510
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
|
||
|
|
0e2c2badbe |
mac80211: backport fix of AP VLAN tx from other interfaces
ieee80211_lookup_ra_sta() looks up the receiver of a frame sent on an
AP_VLAN interface in the whole BSS. A unicast frame that the bridge of
one VLAN floods to its AP_VLAN port is therefore sent to a station of
another VLAN of the same BSS, bypassing the bridge and firewall of that
VLAN. With wifi-vlan/wifi-station (PPSK) or RADIUS assigned VLANs, a
client can reach clients of the other VLANs on the same SSID
(CVE-2026-98822).
Backport commit 7f93ca31f7fd ("wifi: mac80211: prevent AP VLAN tx from
other interfaces") from wireless, and refresh the line numbers of the
later patches that change ieee80211_i.h and tx.c.
Link: https://lists.openwall.net/linux-cve-announce/2026/10/18/382
Signed-off-by: Miroslav Rýzek <miroslav.ryzek@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26810
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||
|
|
dc63bfff7a |
mediatek: add support for Zyxel WAX300H
The Zyxel WAX300H is an 802.11ax access point based on the MediaTek
MT7981B. It shares the flash layout, bootloader, dual-image handling
and image recipe of the NWA50AX Pro, but has an MT7531 switch with four
Ethernet ports instead of a single 2.5G PHY, and uses its own model ID
("84e1").
Hardware
--------
SoC: MediaTek MT7981B
RAM: 512M DDR4
FLASH: 256M SPI-NAND
ETH: 4x Gigabit Ethernet (MediaTek MT7531)
- Uplink (PoE-in)
- LAN1 (PoE-out passthrough, ~5W, only when powered by 802.3at;
hardware-controlled)
- LAN2
- LAN3
WiFi: MediaTek MT7981B + MT7976C (2.4/5GHz 802.11ax 2x2)
BTN: 1x Reset
LED: 1x Multi-Color (RGB)
Power: 802.3af/at PoE
All four ports are bridged into "lan". The stock firmware disables both
radios when powered by 802.3af, OpenWrt does not.
UART Console
------------
Externally accessible on the "CONSOLE" header.
Settings: 3.3V TTL, 115200 8N1
Layout: GND TX RX 3.3V (don't connect, marked with a triangle)
Installation Web-UI
-------------------
The device uses a dual-image setup and OpenWrt can only be installed as
image 0. When the currently running stock firmware is image 0, OpenWrt
will be installed as image 1, fail to boot and the device returns to
stock firmware. If this happens, install any version of stock firmware
so that it runs as image 1, before installing OpenWrt. Alternatively, if
there already is a valid stock firmware in image 1, the "debug
dual-image show" and "debug dual-image set boot-image image1" commands
can be used in the stock CLI via serial/SSH/telnet to switch to image 1.
* Rename the OpenWrt factory image to a shorter name, for example
"openwrt.bin" (the stock firmware has a character limit)
* In the web interface, go to "Maintenance" -> "File Manager" ->
"Firmware Package" (or click the link next to "Firmware Version"
under "Device Information" on the dashboard)
* Under "Upload File" browse to the renamed OpenWrt factory image and
click on "Upload"
The factory image is a UBI image wrapped in an outer FIT carrying the
device model ID ("84e1"), which the stock firmware checks before
accepting it. On first boot, zyxel-bootconfig marks the OpenWrt image
as the selected one so the bootloader keeps booting it.
Switch Boot Image
-----------------
OpenWrt to stock: "zyxel-bootconfig /dev/mtd9 set-active-image 1"
Stock to OpenWrt: "debug dual-image set boot-image image0"
Unbrick / Revert to Stock with the Boot Module
----------------------------------------------
* Disconnect the device from power
* Configure your machine to 192.168.1.103/24 and start a TFTP server
* Put the stock firmware image into the TFTP server root and rename it
to "ZLD-current"
* Establish a serial connection to the device through the console port
* Connect the device to power
* When prompted, press a key to abort automatic boot and enter debug
mode
* Use the "atnz" command to flash the firmware image
* Use the "atgo" command to boot from the newly flashed image
MAC addresses
-------------
Uplink: base MAC (mrd partition, offset 0x1fff8)
LAN1: base MAC + 1
LAN2: base MAC + 2
LAN3: base MAC + 3
2.4GHz: base MAC + 4
5GHz: base MAC + 5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mark Chiou <chiouss@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25506
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
|
||
|
|
f7d14dc28e |
kernel: bump 6.18 to 6.18.62
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.18.61* Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.18.62 Removed upstreamed: linux/generic/backport-6.18/503-01-v7.3-ksmbd-enable-tcp-keepalive-for-accepted-connections.patch[1] linux/generic/backport-6.18/734-v7.3-net-ethernet-mtk_wed-increase-WED-v2-WDMA-RESV_BUFF-.patch[2] linux/generic/backport-6.18/856-01-v7.3-xhci-include-all-root-port-children-in-recovery-prevention-on-link-error.patch[3] linux/generic/backport-6.18/755-v7.3-net-sfp-add-quirk-for-HORACO-copper-SFP-module.patch[4] Manually rebased: linux/generic/backport-6.18/441-v7.4-spi-spi-qpic-snand-publish-the-ECC-context-to-snandc.patch linux/generic/pending-6.18/739-03-net-pcs-pcs-mtk-lynxi-add-platform-driver-for-MT7988.patch linux/bcm27xx/patches-6.18/0120-hid-usb-Add-device-quirks-for-Freeway-Airmouse-T3-an.patch linux/bcm27xx/patches-6.18/0940-dma-dw-axi-dmac-fix-cyclic-DMA.patch All other patches automatically rebased via update_kernel.sh mac80211: 6.18.62 reverts the sockaddr_unsized conversion[5], so drop 160-backports-sockaddr_unsized-is-in-6.18.57.patch. ltq-ifxos: guard the sockaddr_unsized bind() cast on 6.19 instead of 6.18.57 for the same reason. * Skipped, 6.18.62 avoided distributing a kernel with known security flaws only to replace .61 almost immediately. CVE-2026-100080 CVE-2026-100081 CVE-2026-100082. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.62&id=b78a4334a8927d4dcc692382a45b420109bcb071 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.62&id=855236abde29727de86a39fa7b2371098f166f6b 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.62&id=89e76d0fc8d25a47c391b56d5c34367759612c8e 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.62&id=9fd6abedac7937edf7e9111cbabbd38defd45b75 5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.62&id=9d275d40b6ece705ba1f10410883b6c374b9e24b Build system: x86/64 Build-tested: x86/64-glibc Run-tested: x86/64-glibc Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/26530 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
ecd9120f04 |
wireguard-tools: contain a refused peer value to its line
wg's config parser refuses the whole configuration for one bad value, so since the ucode rewrite a peer section holding one value the parser refuses (an endpoint hostname that does not resolve, a malformed preshared key, a keepalive that is not a number) takes the whole interface down, and netifd's retry keeps it down until the section is fixed (#24511). This checks each peer value against wg's own grammar while the configuration is built, and a refused one costs its line instead of the tunnel: an endpoint that does not resolve omits its Endpoint= line (the peer stays installed and reachable inbound, and wg fills the endpoint in from the first authenticated handshake, as the watchdog already relies on), a malformed preshared key or a keepalive that is neither 0-65535 nor off omits its line, and a public_key that is not a WireGuard key skips the peer. Every refusal is logged with the interface, the peer's uci section and public key, and the refused value, so the operator can find the offending section; a peer section without a public_key is skipped and logged too. The preshared key warning stays valueless, because a key is a secret. The happy path is unchanged: one atomic syncconf, peer removals included. PKG_RELEASE is bumped so users on main receive it. Reviewer questions, answered: - a malformed PresharedKey omits its line only, the peer keeps running without it, an optional value fails open on its line rather than closed on the peer; - AllowedIPs entries stay unvalidated here, wg remains the judge, because a false omission would cost routes; - endpoint names resolve through nslookup at each setup, ucode has no getaddrinfo and wg set cannot run from the handler without touching the live interface. Fixes #24511. Assisted-by: OpenCode:mistral-large-4-0 Signed-off-by: Guy Godfroy <guy.godfroy@gugod.fr> Link: https://github.com/openwrt/openwrt/pull/26543 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
6b362ec039 |
qualcommax: ipq50xx: add support for Lite-On WPX8324
Add support for the Lite-On WPX8324, an IPQ5018 indoor Wi-Fi 6 access point. The same board is sold as WPX8324 (full hardware) and WPX8324-BT (with or without PoE). The -BT variants ship without TPM, USB and the Bluetooth antenna, but keep the PCB pads for them, so a single device tree covers all variants. Hardware specification: - SoC: Qualcomm IPQ5018, dual-core Arm Cortex-A53 - RAM: 512 MiB DDR3 - Boot flash: 16 MiB SPI NOR (Macronix MX25U12835F) - Data flash: 128 MiB SPI-NAND (W25N01GW) - Wi-Fi: IPQ5018 2x2 2.4 GHz + QCN6122 2x2 5 GHz (AX3000) - Ethernet: 1x Gigabit LAN (internal PHY), 1x 2.5G WAN (QCA8081) - LEDs: orange status (GPIO18), blue 5 GHz (GPIO19), green 2.4 GHz (GPIO39) - Button: reset (GPIO29) - UART: ttyMSM0 on GPIO20/21, 115200 8N1 - Power: 12 V DC; PoE on the WPX8324-BT PoE variant Flash instructions: The bootloader is U-Boot 2016.01 with a 5 second autoboot delay and the IPQ5018# prompt. Serve the images from 192.168.1.100 and use 192.168.1.3 for the device: setenv ipaddr 192.168.1.3 setenv serverip 192.168.1.100 tftpboot 0x50000000 openwrt-qualcommax-ipq50xx-liteon_wpx8324-initramfs-uImage.itb bootm 0x50000000 Then install openwrt-qualcommax-ipq50xx-liteon_wpx8324-squashfs-sysupgrade.bin from LuCI (System -> Backup / Flash Firmware) or with sysupgrade(8). The NAND rootfs partition starts at 0x80000 and is 0x3e00000 bytes long; only sysupgrade should write it. MAC address layout: The base MAC is stored in 0:ART at offset 0. LAN uses the base address, WAN is base + 1, 2.4 GHz is base + 2 and 5 GHz is base + 3, applied through the hw_mac_addr nvmem cell. Signed-off-by: Ayra Hikari <ayrahikari@linuxmail.org> Link: https://github.com/openwrt/openwrt/pull/26676 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
44fe8950f4 |
odhcpd: update to Git HEAD (2026-11-17)
4580970dabfb config: write pending state changes on exit 3a82f5cc6495 dhcpv6-ia: lazy store statefiles acc9fb073a49 dhcpv6-ia: update the state files when DHCPv6 leases expire c4d2cc04ac94 ubus: add dhcp.hosts.update event Change: https://github.com/openwrt/odhcpd/compare/1c66296296c5...4580970dabfb Signed-off-by: David Härdeman <david@hardeman.nu> Link: https://github.com/openwrt/openwrt/pull/26783 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
2d7bcf13d8 |
mbedtls: update to 3.6.8
In addition drop compatibility patch for GCC 14. The issue the patch solved was fixed upstream in mbed TLS 3.6.6, by commit https://github.com/Mbed-TLS/mbedtls/commit/292b96c0a69016a6d99ce324837a9e96d59e21f6. This release of Mbed TLS provides bug fixes and minor enhancements. This release includes fixes for security issues. Security fixes: * Fix resource leaks in TLS 1.3 transform setup when a setup step fails after allocating cipher contexts or importing the encryption traffic key. (CVE-2026-93843) * Fix a memory leak when a TLS 1.3 server receives a valid session ticket but has no compatible PSK key exchange mode enabled. (CVE-2026-115491) * Fixed a security issue in TLS 1.2 session resumption by rejecting session tickets issued for a different TLS version. (CVE-2026-93831) * Fix TLS 1.3 server handling of the second ClientHello after a HelloRetryRequest. (CVE-2026-116375) * Fix a TLS client vulnerability caused by accepting the TLS 1.3 version (0x0304) in the legacy_version field of a TLS 1.2 ServerHello. (CVE-2026-115490) * Fix incorrect bounds check while parsing ECDHE-RSA/ECDHE-ECDSA ClientKeyExchange in TLS 1.2 servers. * Document that CRL name matching does not fully normalize names. (CVE-2026-116462) * Fix a remotely exploitable buffer overflow in TLS in some configurations where ECJPAKE is enabled. (CVE-2026-90469) * Fix an out-of-bounds read when parsing truncated TLS 1.2 ECJPAKE peer messages. * When parsing a CRL, if the chain is not empty and the allocation of a new element fails, do not clear an existing element. (CVE-2026-90475) * Fix a client-authentication bypass in TLS servers that use SNI to support several virtual hosts with different client-authentication policies and use session resumption. (CVE-2026-93776) * Fix a side channel in the p256-m implementation of ECDH/ECDSA on NIST P-256. (CVE-2026-93845) * Build symbol MBEDTLS_PK_DECRYPT_MAX_ITERATIONS has been added to limit the maximum number of iterations for the PBKDF2 algorithm used when decrypting a PKCS#8 encrypted private key in PK module. (CVE-2026-50582) * Fix a Spectre v1 side channel in AES and GCM acceleration. (CVE-2026-115493) * Fix a Spectre v1 side channel in non-authenticated ciphers that can leak many key bits to powerful local attackers. (CVE-2026-93833) * Fix possible Spectre v1 side channels in mbedtls_cipher_setkey(), mbedtls_cipher_crypt(), mbedtls_cipher_auth_encrypt_ext() and mbedtls_cipher_auth_decrypt_ext() when MBEDTLS_USE_PSA_CRYPTO is enabled. (CVE-2026-93833) * Fix possible Spectre v1 side channels in mbedtls_cipher_auth_encrypt_ext() and mbedtls_cipher_auth_decrypt_ext() when MBEDTLS_NIST_KW_C is enabled. (CVE-2026-93833) * Fix a Spectre v1 side channel in ECDSA signature that may leak the secret key to powerful local attackers. (CVE-2026-93835) * Fix a Spectre v1 side channel in ECC operations that can leak part of a private key to powerful local attackers. (CVE-2026-93842) * Fix a use-after-free in TLS 1.2 clients when renegotiation starts while unread application data remains buffered, with variable buffer lengths enabled and a maximum fragment length negotiated. (CVE-2026-93844) * Reject handshakes with signature algorithms disabled via mbedtls_ssl_conf_sig_algs() in the TLS 1.2 server. (CVE-2026-93777) * Fix a potential information disclosure during TLS 1.2 renegotiation when MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH is enabled. If outgoing data is pending while the output buffer is resized, a peer could receive memory outside the output buffer. (CVE-2026-115488) * When verifying a certificate chain and passing a URI as the cn argument to the verify function, the URI was incorrectly matched against DNS wildcards if found in the certificate. (CVE-2026-90470) * In mbedtls_x509_dn_gets(), output a null terminator even when the output string is empty. (CVE-2026-115489) * Document the use of PEM decryption as deprecated, due its inherent security risks. Full release announcement: https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-3.6.8 Signed-off-by: Magnus Kroken <mkroken@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26780 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
41a0aea338 |
sunxi: add support for Avaota A1
Specifications: SoC: Allwinner T527 @ 1.8GHz (Octa-core Cortex-A55) Co-proc: HiFi4 DSP @ 600MHz, E906 RISC-V @ 200MHz DRAM: 1/2/4 GB LPDDR4 DRAM Power: 12V jack Video: HDMI (Type 2.0A), displayport, MIPI FPC Storage: microSD / optional 16MByte SPI flash Network: 2x Gbit ethernet (RTL8211F), AIC8800D wifi/BL (unsupported) Display: 240x135 1.14" ST7789v3 IPS screen via SPI (on FPC connector) Misc: LED controller, I2C, SPI Debug: serial UART (pin 6-8-10 on GPIO40) Flashing instructions: Standard sunxi SD card installation procedure - copy image to SD card, insert into SD card slot on the device and boot. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> |
||
|
|
395d934459 |
sunxi: add support for Radxa Cubie A5E
Specifications: SoC: Allwinner A527 SoC (Octa-core Cortex-A55) DRAM: 1/2/4 GB LPDDR4 DRAM Power: 5V USB-C Video: HDMI (Type 2.0A), MIPI FPC Storage: microSD / 16MByte SPI flash, m.2 2230 for SSD or wifi Network: 2x Gbit ethernet (1x with PoE), BLink BL-M8800DS2 (unsupported) Debug: serial UART This patchset also adds IOMMU, PCIe, USB3, LED and SPI support from backported patches for the A523/527 SoCs. Flashing instructions: Standard sunxi SD card installation procedure - copy image to SD card, insert into SD card slot on the device and boot. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> |