OpenWrt稳定版本

阿里云教程2个月前发布
15 0 0
1、OpenWrt 23.05稳定版本

https://openwrt.org/releases/23.05/notes-23.05.6

详细的版本号信息如下:


  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 23.05.6, r24232-539228933c -----------------------------------------------------

OpenWrt 23.05 is EOL

根据OpenWrt 安全策略,OpenWrt 23.05 系列已终止服务(EOS)。OpenWrt 23.05 系列的最后一个版本是 23.05.6,在此日期之后,我们将不再为 OpenWrt 23.05 提供任何更新,即使是针对严重的安全问题。我们鼓励所有人升级到 OpenWrt 24.10,该版本将支持到 2026 年。

OpenWrt 23.05.5到OpenWrt 23.05.6的主要改动

下面介绍新版的主要改动,如果你想要了解更详细的信息,可以参见:

https://openwrt.org/releases/23.05/changelog-23.05.6

新设备支持

尽管已经是EOL(生命终结)版本,本次版本更新还是添加了许多新设备的支持,详见如下。

Added devices:

ath79: Huawei AP6010DN

ath79: MikroTik RouterBOARD 750 r2 (hEX lite)

ath79: Sophos AP15C

ramips: netis N6

ath79: ZTE MF286: fix 5GHz on QCA9886

ath79: add extended AR9344 reset sequence

ipq40xx: Aruba AP-303H: Fix PSE GPIO pin

ipq40xx: Meraki MR33 and MR74: fix MAC address

mediatek: Xiaomi Router AX3000T: Add support for Winbond W25N01KV flash

ramips: TP-Link RE200 v1 and RE210 v1: Fix booting stuck issue

octeon: ubnt-edgerouter: fix sysupgrade config backup/restore

BUG修复与提升

在修复的问题部分本次更新较少:

iptables: backport “nft: track each register individually” from 1.9

wifi-scripts: Fix parsing of Capabilities

核心组件更新

在系统核心组件方面,还是有不少的更新:

Update Linux from 5.15.167 to 5.15.189

Update mac80211 from 6.1.110-1 to 6.1.145-1

Update wireless-regdb from 2024.07.04 to 2025.07.10

Update openssl from 3.0.15 to 3.0.16

Update mbedtls from 2.28.9 to 2.28.10

Update wolfssl from 5.7.2 to 5.7.6

Update ca-certificates from 20230311 to 20241223

Update jsonfilter from 2024-01-23 to 2025-04-18

Update libxml from 2.12.5 to 2.14.5

已知缺陷

目前版本的已知缺陷有:

lantiq/xrx200 target shows error messages in DSA switch configuration of the integrated GSWIP switch. (see: https://github.com/openwrt/openwrt/pull/13200)

OpenWrt 23.05.6 was signed with the wrong signing keys. The keys from OpenWrt snapshot were used for OpenWrt 23.05.6, OpenWrt 23.05.5, OpenWrt 23.05.4, OpenWrt 23.05.3, OpenWrt 23.05.2, OpenWrt 23.05.0 and the release candidates. A later OpenWrt 23.05 service release will use a different key.

2、OpenWrt 24.10首个稳定版本发布

OpenWrt官方发布了首个24.10稳定版本,详细的版本号信息如下:


  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 24.10.0, r28427-6df0e3d02a -----------------------------------------------------

  本次发布的稳定版本完整版本号是OpenWrt 24.10.0,带来了很多核心组件的更新升级,详细的发布日志参看:

https://openwrt.org/releases/24.10/notes-24.10.0

OpenWrt 24.10.0从之前的OpenWrt 23.05版本开始合并了超过5400次提交,并且已经开发了一年多。本文接下来主要总结一下此次OpenWrt 24.10.0版本中的亮点。

常规更新

本次大版本升级,主要带来了下述核心组件的常规更新:

Linux Kernel版本从5.15升级到了6.6版本,准确的说是Linux 6.6.73版本。

mbedtls升级到了version 3.6版本,默认镜像中支持了TLS 1.3。

为大闪存设备上的所有文件系统激活POSIX访问控制列表和文件系统安全属性,这是现在docker所需要的。对于所有没有small_flash特性标志的目标来说,这是激活的。为ath79/tiny、bcm47xx/legacy、lantiq/ase、lantiq/xrx200_legacy、lantiq/xway_legacy、ramips/mt76x8、ramips/rt288x、ramips/rt305x和ramips/rt3883目标设置Small_flash。

在具有大闪存容量的设备上激活对Multipath TCP的内核支持。

改进了对WiFi6 (802.11ax)的支持和对WiFi7 (802.11be)的初步支持,但是目前OpenWrt支持的Wifi7设备还不多。

改进链路层发现协议(LLDP)支持。

OpenWrt 24.10只使用OPKG,不支持APK包。

新设备支持

OpenWrt 24.10目前支持超过1970款设备,本次相对于上一个23.05版本新增超过100款,需要特殊说明的如下。

增加对OpenWrt One这款官方路由器的支持

OpenWrt稳定版本

其他一些目标硬件的支持情况列举如下:

Added d1 target for AllWinner D1 RISC-V SoC

Added ixp4xx target for Intel XScale IXP4xx SoCs.

Added loongarch64 target for SoCs with Loongson LoongArch CPUs.

Added starfive target for StarFive JH71x0 (7100/7110) SoCs.

Added stm32 target for STMicroelectronics STM32 SoCs.

Renamed ipq807x target to qualcommax.

Removed ath25 target. It supported Atheros ieee80211g devices with maximum 16MB RAM

Removed bcm63xx target. It supported some Broadcom DSL MIPS SoCs and was replaced by the bmips target. The Broadcom DSL itself was never supported.

Removed octeontx target. It supported the Octeon-TX CN80XX/CN81XX based boards

Removed oxnas target. It supported the PLXTECH/Oxford NAS782x/OX8xx

The qoriq target for the NXP QorIQ (PowerPC) SoCs is built

The ipq806x target for Qualcomm Atheros IPQ806X SoCs was converted to DSA

Added support for Airoha AN8855 DSA Switch (Xiaomi AX3000T ship both Mediatek and Airoha Switch in the same revision)

核心组件更新

OpenWrt 24.10.0版本在如下核心组件方面做了升级:

Updated toolchain:

musl libc 1.2.5

glibc 2.38

gcc 13.3.0

binutils 2.42

Updated Linux kernel

6.6.73 for all targets

Network:

hostapd master snapshot from September 2024, dnsmasq 2.90, dropbear 2024.86

cfg80211/mac80211 from kernel 6.12.6

最后,大家在升级体验新版本之前,建议做好数据和配置备份,避免遗失。

3、OpenWrt 24.10.1稳定版本发布

OpenWrt 24.10的第二个稳定版本发布了,版本号OpenWrt 24.10.1:


  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 24.10.1, r28597-0425664679 -----------------------------------------------------

这个版本的发布日志参见:

https://openwrt.org/releases/24.10/notes-24.10.1

下面将介绍本次版本的一些主要升级,完整的修改记录参见:

https://openwrt.org/releases/24.10/changelog-24.10.1

核心组件更新

Update Linux from 6.6.73 to 6.6.86

Update mt76 from 2025-01-14 to 2025-02-14

Update mwlwifi from 2024-04-19 to 2025-02-06

Update wireless-regdb from 2024.10.07 to 2025.02.20

Update ucode from 2024-07-22 to 2025-02-10

Update unetd from 2024-12-17 to 2025-03-09

Update umdns from 2024-09-17 to 2025-02-10

Update omcproxy from 2021-11-04 to 2025-02-27

Update libnl-tiny from 2023-12-05 to 2025-03-19

Update ethtool from 6.10 to 6.11

Update openssl from 3.0.15 to 3.0.16

Update mbedtls from 3.6.2 to 3.6.3

Update ca-certificates from 20240203 to 20241223

Update bcm27xx-gpu-fw from 2024.11.26 to 2025.03.05

Update bcm27xx-utils from 2024.12.19 to 2025.03.14

Update r8125 from 9.014.01 to 9.015.00

Update r8126 from 10.014.01 to 10.015.00

Update r8168 from 8.054.00 to 8.055.00

Update bcm63xx-cfe from 2024-06-25 to 2025-04-02

Update intel-microcode from 20240531 to 20250211

Update firmware-utils from 2024-10-20 to 2025-02-16

新设备支持

Added new devices:

bmips: Actiontec T1200H

mediatek: CMCC A10

mediatek: Huasifei WH3000

mediatek: Keenetic KN-3811

mediatek: Keenetic KN-3911

mediatek: netis NX31

qualcommax: Linksys MX4300 (LN1301)

ramips: Cudy M1200 v1

ramips: Cudy M1300 v2

ramips: Genexis / Inteno Pulse EX400

ramips: Hongdian H8922 v30

ath79: mikrotik Routerboard 911G: Fix clock speed

ath79: NEC Aterm: Fix initramfs execution

bcm27xx: Raspberry Pi: Fixes for r8169 Ethernet driver

bcm27xx: Raspberry Pi: Update GPU firmware and drivers

imx: Gateworks boards: Misc fixes

mediatek: ASUS: RT-AX59U/TUF-AX4200/TUF-AX6000: Fix boot problems with recent bootloader

mediatek: Xiaomi AX3000t: Fix NMBM handling for devices with Winbond W25N01KVZEIR flash

mediatek: Zyxel EX5601-T0: Fix eth1 wan configuration

ramips: Dovado Tiny AC: Fix wifi MAC addresses

ramips: hiwifi hc5962: Fix reading MAC address

ramips: LAVA LR-25G001: Fix wifi MAC address

ramips: MT7621: Improve MT7621S core detection

ramips: TP-Link Deco M4R v4: Fix port name conflict

realtek: Add new auxiliary MDIO driver and switch devices to it

realtek: HPE 1920: Fix FAN configuration

realtek: Zyxel GS1900-8: Split into v1 and v2

Bug修复和提升

ath10k-ct: Silence some harmless noisy logs

build: build LLVM toolchain for BPF when packet selects it

dnsmasq: Fix handlers for options `filter_rr` and `cache_rr`

kernel: Fix IPv6 TCP GSO segmentation with NAT

kernel: Globally enable CONFIG_PCPU_DEV_REFCNT

kernel: usbnet: Restore usb%d naming for cdc-ethernet devices with local MAC

mac80211: rt2x00: Fix loading EEPROM from card

odhcpd: Fix missed packets in relay mode

umdns: Automatically configure firewall for umdns when needed

总结

本次小版本升级新增了11款新设备的支持,更重要的是对系统的稳定性带来一定的提升,修复了很多内核和单板适配的bug,同时软件组件也做了小幅升级,比如内核的小版本升级到了6.6.86。此外,请留意omcproxy版本做了升级,之前有网友反馈IPTV丢包的问题,这次可以试试升级之后是否已经解决。

4、OpenWrt 24.10.2稳定版本发布

OpenWrt 24.10的第三个稳定版本发布了,版本号OpenWrt 24.10.2:


  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 24.10.2, r28739-d9340319c6 -----------------------------------------------------

这个版本的发布日志参见:

https://openwrt.org/releases/24.10/notes-24.10.2

这个版本详细的修改日志参见:

https://openwrt.org/releases/24.10/changelog-24.10.2

新增设备支持

bcm27xx: bcm2712: RPi 5 (d0 rev)

bcm27xx: bcm2712: RPi 500

bcm27xx: bcm2712: RPi CM5

mediatek: filogic: ASUS RT-AX52

mediatek: filogic: Cudy WR3000E

mediatek: filogic: Cudy WR3000H

mediatek: filogic: Mercusys MR80X v3

mediatek: filogic: Routerich AX3000 v1

mediatek: filogic: TP-Link Archer AX80v1(US/RU/CA)

mediatek: filogic: WAVLINK WL-WN573HX3

ramips: mt7621: Arcadyan WE410443

ramips: mt76x8: Xiaomi MiWiFi 3A

ath79: TP-Link Archer C6 v2: fix 5GHz Wifi

bcm27xx: add BRCMSTB I2C driver

bcm27xx: select I2C and SPI packages by default

bcm27xx: switch to upstream SDHOST driver

bmips: backport bcm63xx SPI reset fix

bmips: backport brcm legacy dsa tag fix

ipq40xx: Teltonika RUTX50: turn on modem by default

ipq40xx: Teltonika RUTX50: use correct wired MAC-addresses

ipq806x: Extreme Networks AP3935: Fix LAN/WAN ports

ramips: Genexis EX400: add touch controller

ramips: mt7621: fix Ethernet stability (deactivate EEE)

realtek: fix mdio parent/child locking issues

realtek: proper RTL8214FC fibre/copper detection

rockchip: NanoPi R6C/R6S: fix SD card detection

核心组件更新

Linux kernel: update from 6.6.86 to 6.6.93

ucode: update from 2025-02-10 to 2025-05-11

netifd: update from 2024-12-17 to 2025-05-23

bcm27xx-gpu-fw: update to v1.20250430

kmod-phy-realtek: backport upstream v6.15 patches

kmod-phy-realtek: backport upstream v6.16 patches

kmod-r8125: update to v9.016.00

kmod-r8169: backport upstream v6.15 patches

kmod-r8169: backport upstream v6.16 patches

Bug修复和提升

GCC 15: multiple fixes to allow building with host GCC 15

kernel: generic: add Broadcom NetXtreme-C/E driver

kernel: generic: add DesignWare I2C driver

kernel: generic: add DesignWare SPI driver

kernel: generic: add Huawei HINIC driver

kernel: generic: add Microchip ENC28J60 SPI ethernet driver

kernel: generic: fix UDPv6 GSO segmentation with NAT

kernel: generic: net: phy: sfp: backport some FS copper SFP fixes

kmod-r8101: load module at boot time

kmod-r8125: load module at boot time, disable ASPM

kmod-r8125-rss: enable ENABLE_MULTIPLE_TX_QUEUE

kmod-r8126: load module at boot time

kmod-r8126-rss: enable ENABLE_MULTIPLE_TX_QUEUE

kmod-r8127: load module at boot time

kmod-r8127-rss: enable ENABLE_MULTIPLE_TX_QUEUE

kmod-r8168: load module at boot time

kmod-r8168-rss: add variant

lldpd: enable hardware inventory information (TLV) management

mac80211: add patch to suppress PREP when mesh forwarding is disabled

mac80211: ath11k: fix broadcast failures during GTK rekeying

qmi: increase SIM power-cycle timeouts

小结

本次版本做了小幅升级,在新增设备支持方面,可以关注目前开源硬件方面比较热门的RPi 5和Cudy WR3000。在软件方面,内核版本仍然是Linux 6.6,只是小版本做了升级;其他一些软件组件做了小幅升级和Bug修复,详细内容可以参见changelog中的内容。

5、OpenWrt 24.10.4稳定版本发布

OpenWrt官网就发布了第5个稳定版本24.10.4,这么高的更新频率属实罕见。老规矩,我们先看版本信息:


  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 24.10.4, r28959-29397011cc -----------------------------------------------------

这个版本的发布日志参见:

https://openwrt.org/releases/24.10/notes-24.10.4

这个版本详细的修改日志参见:

https://openwrt.org/releases/24.10/changelog-24.10.4

接下来,我们来详细看一下具体有哪些改动。

安全漏洞修复

CVE-2025-62525: ltq-ptm: local privilege escalation

CVE-2025-62526: ubusd: heap buffer overflow

新设备支持

这一次新增的设备列表比较少,详细列举如下:

Added new devices:

ramips: Qding QC202

ramips: Zbtlink ZBT-WG108

ath79: TP-Link Archer C59 v1: Fix 5 GHz Wifi

ath79: TP-Link Archer C60 v1: Fix 5 GHz Wifi

ipq40xx: Linksys WHW01: Improve MAC address and LED configuration

mediatek: filogic: GL.iNet GL-MT2500/GL-MT2500A: Add support for new hardware revision

mpc85xx: Aerohive BR200-WP: Fix flash usage

qualcommax: ipq807x: Linksys MX4200/MX4300/MX5300/MX8500: Improve upgrade stability

ramips: Hongdian H7920: Fix pin configuration and MAC addresses

Bug修复和提升

mac80211: ath10k: improve “failed to flush transmit queue” errors

rockchip: rk3399: Fix PCIe

kernel: ksmbd: Fix SMB access from Linux clients

bcm53xx: Fix bootup of devices

核心组件更新

Linux kernel: update from 6.6.104 to 6.6.110

mac80211: update from 6.12.44 to 6.12.52

odhcpd: update from 2024-05-08 to 2025-10-02

ubus: update from 2025-07-02 to 2025-10-17

mbedtls: update from 3.6.4 to 3.6.5

openssl: update from 3.0.17 to 3.0.18

已知问题

本次发布的稳定版本遗留了2个已知问题,大家可以根据自己的业务需要评估:

LEDs for Airoha AN8855 are not yet supported. Devices like the Xiaomi AX3000T with an Airoha switch will have their switch LEDs powered off. This issue will be addressed in an upcoming OpenWrt SNAPSHOT and the OpenWrt 24.10 minor release.

5GHz WiFi is non-functional on certain devices with ath10k chipsets. Affected models include the Phicomm K2T, TP-Link Archer C60 v2, TP-Link Archer C60 v3 and possibly others. For details, see issue #14541.

总结

     从变更的内容来看,升级的必要性并不大,如果你的应用中很多核心业务使用到ubusd,那么可以修复上文提到的heap buffer overflow;否则,还真没有看出来有啥升级的必要。按照规划,整个24.10版本会支持到2026年年底,接下来还有大概1~2个小版本更新,但是整体框架不会做大的调整。如果你的项目选择的OpenWrt 24.10.3为基线,本次不推荐升级,可以再等等。

6、基于MT7981方案,下载openwrt官方代码为实例。

首先,需要从openwrt的官方代码仓库下载代码。有两种方法:

第一种是使用git克隆项目:

      git clone –branch openwrt-24.10 https://git.openwrt.org/openwrt/openwrt.git

第二种方式,直接去下面的网址下载打包好的源码包:

https://github.com/openwrt/openwrt

只需要按照下图所示的顺序依次点击选择对应的版本tag:

OpenWrt稳定版本

然后再点击页面右侧的Code按钮,在展开的窗口中选择下载源码包即可。

OpenWrt稳定版本

 这样你就得到了一个名称为openwrt-24.10.4.zip的源码包,全程图形化操作,上手难度更低。

更新软件源(feeds)

我们需要将源码包拷贝到编译服务器上(注意:推荐使用Ubuntu 24.04 LTS系统作为编译服务器),然后解压源码:


unzip openwrt-24.10.4.zip

接着依次执行下面的命令用于更新默认的软件源(feeds):

cd openwrt-24.10.4


./scripts/feeds update -a
./scripts/feeds install -a

配置单板信息和软件包定制

接下来就是需要执行如下命令配置单板信息:


make menuconfig

首先确保按照如下图所示红色方框中的内容确保跟笔者填写的一致:

OpenWrt稳定版本

然后需要注意,因为默认没有带Web配置界面的软件包luci,所以,为了后面操作设备和版本升级方便,需要大家手动选择。只需要按照下图所示,依次进入LuCI -> 1. Collections -> luci配置选项:

OpenWrt稳定版本

最后记得保存配置并推出配置菜单页面。

执行编译

一切配置准备就绪后,就可以直接编译了,一般也有两种方式。

第一种是将软件包下载过程和编译过程分开,依次执行:


make download V=s -j8
make V=s -j8

第二种方式,就是直接执行下面的命令,编译过程中检测到本地没有下载源码包的话会自动去尝试下载:


make V=s -j8

注:-j选项后面的数字可以根据你的编译服务器的CPU物理核心数量来定,比如8核处理器就用-j8,是指同时创建多少个线程并行执行,能一定程度上提高编译速度,但是提高不到8倍。

待到编译结束,我们就可以在bin/targets/mediatek/filogic目录下找到我们可以用于设备升级的固件了:


zw@Zw-MQTT:~/openwrt-24.10.4$ ls bin/targets/mediatek/filogic/config.buildinfo         openwrt-mediatek-filogic-glinet_gl-mt3000-initramfs-kernel.bin
feeds.buildinfo          openwrt-mediatek-filogic-glinet_gl-mt3000.manifest
mt7981-ram-ddr3-bl2.bin  openwrt-mediatek-filogic-glinet_gl-mt3000-squashfs-sysupgrade.bin
mt7981-ram-ddr4-bl2.bin  packages
mt7986-ram-ddr3-bl2.bin  profiles.json
mt7986-ram-ddr4-bl2.bin  sha256sums
mt7988-ram-comb-bl2.bin  version.buildinfo
© 版权声明

相关文章

暂无评论

none
暂无评论...