aboutsummaryrefslogtreecommitdiff
path: root/target/linux
Commit message (Collapse)AuthorAge
...
* Qualcommax: IPQ807x: update preinit factory partition mount scriptjonathan brophy2025-04-22
| | | | | | | | Patch script used for mounting of factory data partitions to not assume devices names or use hardcoded identifiers. Signed-off-by: jonathan brophy <professor_jonny@hotmail.com> Link: https://github.com/openwrt/openwrt/pull/16329 Signed-off-by: Robert Marko <robimarko@gmail.com>
* rockchip: fix the SD card detection on NanoPi R6C/R6SAntonio Flores2025-04-22
| | | | | | | | | This patch backport a fix for the SD card detection on NanoPi R6c/R6S from upstream commit https://github.com/torvalds/linux/commit/95147bb42bc163866fc103c957820345fefa96cd Signed-off-by: Antonio Flores <antflores627@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18553 Signed-off-by: Robert Marko <robimarko@gmail.com>
* mediatek: mt7623: validate uImage.FITDaniel Golle2025-04-21
| | | | | | Validate the uImage.FIT instead of only checking the image magic. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: mt7622: validate uImage.FITDaniel Golle2025-04-21
| | | | | | Validate the uImage.FIT instead of only checking the image magic. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* treewide: validate unified uImage.FIT images before flashingDaniel Golle2025-04-21
| | | | | | | | Prevent flashing truncated or otherwise corrupted uImage.FIT images by verifying checksums and hashes of all sub-images before flashing using the newly packaged fit_check_sign tool. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: filogic: add missing boards to platform_check_imageDaniel Golle2025-04-21
| | | | | | | Add all boards using uImage.FIT to platform_check_image() case section making sure we are dealing with a FIT image. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* rockchip: explicitly specify pine64_rockpro64 supported devicesSam Hegarty2025-04-21
| | | | | | | | | | | | | | | | | | | | | | The board name that goes into /etc/board.json and is used by sysupgrade for image verifications gets determined by the below command: `strings /proc/device-tree/compatible | head -1` as per package/base-files/files/lib/preinit/02_sysinfo On more recent firmware version for the Pine64 RockPro64 v2.1 devices the first entry is 'pine64,rockpro64-v2.1' however the metadata in the sysupgrade image only specifies 'pine64,rockpro64' as supported and image verification will fail. This change makes it so the image metadata will contain both 'pine64,rockpro64' and 'pine64,rockpro64-v2.1' allowing image verification to pass on both older and more recent firmware versions. Signed-off-by: Sam Hegarty <hegarty.sam@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18542 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* arm64: dts: qcom: ipq5018: add #clock-cells to GE PhyGeorge Moussalem2025-04-21
| | | | | | | | | | | | | The IPQ5018 GE Phy driver registers two fixed rate clocks which are passed on to the GCC which gatekeeps and passes them back to the phy. Fix 'bad phandle' warning and tell consumer (GCC) how many cells to expect when compiling. Warning (clocks_property): /soc@0/clock-controller@1800000: Missing property '#clock-cells' in node /soc@0/mdio@88000/ethernet-phy@7 or bad phandle (referred from clocks[5]) Signed-off-by: George Moussalem <george.moussalem@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18548 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ramips: Add support for Xiaomi MiWiFi 3AOlgun Demir2025-04-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Xiaomi MiWiFi 3A wireless router has a similar system architecture as the Xiaomi Mi 4A router, which is already officially supported by OpenWrt. Product website: https://www.mi.com/miwifi3a Device specification -------------------- SoC: MT7628AN MIPS_24KEc @ 580 MHz 2.4G-bgn 2x2 WiFi: MT7612EN 5G-an, ac 80 MHz 2T2R Flash: 16 MB DRAM: 64 MB Switch: MT7628AN (integrated in SoC) Ethernet: 1 x 10 /100 Mbps USB: None Antennas: 2 x 2,4 GHz and 2 x 5 GHz (all are external and non-detachable) LEDs: blue/red/amber Buttons: Reset Serial: 115200,8n1 MAC addresses as verified by OEM firmware: ------------------------------------------ use address source LAN *:DD factory 0x28 WAN *:DD factory 0x28 2g *:DE factory 0x4 5g *:DF factory 0x8004 OEM firmware uses VLAN's to create the network interface for WAN and LAN. Bootloader info: ---------------- The stock bootloader uses a "Dual ROM Partition System". OS1 is a deep copy of OS2. The bootloader starts OS2 by default. To force start OS1 it is needed to set "flag_try_sys2_failed=1". How to install: --------------- 1- Use OpenWRTInvasion to gain Telnet, SSH and FTP access: https://github.com/acecilia/OpenWRTInvasion [IP: 192.168.31.1 | Username: root | Password: root | FTP-Port: 21] 2- Connect to router using telnet or ssh. 3- Backup all partitions. Use command "dd if=/dev/mtd0 of=/tmp/mtd0". Copy /tmp/mtd0 to computer using ftp. 4- Copy openwrt-ramips-mt76x8-xiaomi_miwifi-3a-squashfs-sysupgrade.bin to /tmp in router using ftp. 5- Enable UART access and change start image to OS1. nvram set uart_en=1 nvram set flag_last_success=1 nvram set boot_wait=on nvram set flag_try_sys2_failed=1 nvram commit 6- Erase OS1 & OS2 and install OpenWrt mtd erase OS1 mtd erase OS2 mtd -r write /tmp/openwrt-ramips-mt76x8-xiaomi_miwifi-3a-squashfs-sysupgrade.bin OS1 Credits: -------- This PR is based on the work of Zehao Zhang (Github: @ZZH-Finalize) that he had published in the PR: #15698 Signed-off-by: Olgun Demir <olgun.demir@mail.com.tr> Link: https://github.com/openwrt/openwrt/pull/18427 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* qualcommax: ipq50xx: add support for GL.iNET GL-B3000Scott Mercer2025-04-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for GL.iNET (AX3000) B3000. Speficiations: * SoC: Qualcomm IPQ5018 (64-bit dual-core ARM Cortex-A53 @ 1.0Ghz) * Memory: Winbond W634GU6NQB-11 (512 MiB DDR3-933) * Serial Port: 3v3 TTL 115200n8 * Wi-Fi: IPQ5018 (2x2 2.4 Ghz 802.11b/g/n/ax) * Wi-Fi: QCN6102 (2x2:2 5 Ghz 802.11an/ac/ax) * Ethernet: IPQ5018 integrated virtual switch connected to an external QCA8337 switch (3 Ports 10/100/1000 GBASE-T) * Flash: Winbond W25N01GWZEIG (128 MiB) * LEDs: 1x single-color blue LED (GPIO 24 Active High) 1x single-color white LED (GPIO 23 Active High) * Buttons: 1x Reset (GPIO 27 Active Low) Flash Instructions: *** The .img files are now universal ! *** Openwrt --> openwrt-qualcommax-ipq50xx-glinet_gl-b3000-squashfs-factory.img GL.iNet OEM --> openwrt-b3000-4.5.18-0731-1722397535.img Either file can be flashed, in any of the available upgrade options, in both Firmwares. Pick a file .. pick a method .. and SEND IT !! Signed-off-by: Scott Mercer <TheRootEd24@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17903 Signed-off-by: Robert Marko <robimarko@gmail.com>
* stm32: Add kmod-stm32-thermalThomas Richard2025-04-19
| | | | | | | | This adds the Thermal framework support for STM32MP157. Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Link: https://github.com/openwrt/openwrt/pull/18119 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* stm32: sort kernel module packages in alphabetical orderThomas Richard2025-04-19
| | | | | | | | In modules.mk, sort packages in alphabetical order. Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Link: https://github.com/openwrt/openwrt/pull/18119 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* stm32: add missing SUBMENU for kmod-phy-stm32-usbphyc and kmod-stm32-timersThomas Richard2025-04-19
| | | | | | | | | Move kmod-phy-stm32-usbphyc in the "USB Support" menu and kmod-stm32-timers in "Other modules" menu. Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Link: https://github.com/openwrt/openwrt/pull/18119 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* stm32: add STM32MP157C-DK2 supportThomas Richard2025-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add STM32MP157C-DK2 support. This profile also supports the STM32MP157F-DK2 board. The only difference between these two boards is the CPU frequency (650MHz for 157C and 800MHz for 157F). A SCMI variant is available. With this variant the reset and clock resources are provided by OP-TEE and the associated SCMI services. It is the configuration recommended by STMicroelectronics, with secured system resources. The specifications bellow only list supported features. Specifications -------------- SOC: STM32MP157C RAM: 512 MiB Storage: SD Card Ethernet: 1x 1 Gbps Wireless: 2.4GHz Cypress CYW43455 (802.11b/g/n) LEDs: Heartbeat (Blue) USB: 4x 2.0 Type-A Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Link: https://github.com/openwrt/openwrt/pull/18119 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* generic: move TCP fraglist GRO patch to separate file in pendingMieczyslaw Nalewaj2025-04-19
| | | | | | | | | | Patch 87cb0446b7da also applies to higher kernel versions. To apply to them it has been moved to a separate file in pending. Fixes: 87cb0446b7da ("generic: fix broken TCP fraglist GRO patch") Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18511 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: fix PATH_MAX macro redefined in exec-cmd.c on macOS 15.4Georgi Valkov2025-04-19
| | | | | | | | | | | | | | | | | | | | | | | Fix an error while building target/linux x64 on macOS 15.4 host, due to the PATH_MAX macro being redefined: mkdir -p /Volumes/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.86/tools/objtool && make O=/Volumes/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.86 subdir=tools/objtool --no-print-directory -C objtool exec-cmd.c:15:9: error: 'PATH_MAX' macro redefined [-Werror,-Wmacro-redefined] 15 | #define PATH_MAX 4096 | ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/syslimits.h:103:9: note: previous definition is here 103 | #define PATH_MAX 1024 /* max bytes in pathname */ | ^ exec-cmd.c is compiled as part of objtool to run on the host, and therefore host headers are used, where PATH_MAX is already defined. Using an old OpenWRT snapshot from 2025-02-16, where linux-6.6.77 used to build correctly, does not help. Reverting from Xcode 16.3 to 16.2 does not help either. Signed-off-by: Georgi Valkov <gvalkov@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18530 Signed-off-by: Robert Marko <robimarko@gmail.com>
* mediatek: filogic: add support for WAVLINK WL-WN573HX3Sebastian Schaper2025-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WL-WN573HX3 is an AX3000 outdoor Access Point by WAVLINK, also sold in Europe as 7Links WLR-1300 (ZX-5612). Specifications: - MT7981B + MT7976 AX3000 2x2 DBDC (160 MHz) - 16 MiB SPI NOR, 256 MiB RAM - Gigabit ethernet port, 802.3af PoE - IP67 outdoor case for wall or pole mounting with four single band RP-SMA fiberglass antennas (8 dBi) Installation: - OEM Web UI is at 192.168.30.1 which will forward to http://netlogin.link (using a captive portal) - login with default password `admin` - skip setup wizard by navigating directly to http://netlogin.link/html/meshUpgrade.html - upload WN573HX3-sysupgrade.bin - reset to factory defaults to discard OEM UCI settings MAC address assignment: LAN 80:xx:xx:76:xx:25 hw 0x44e WLAN 2.4G 80:xx:xx:76:xx:27 factory 0x04 (label MAC) WLAN 5G 82:xx:xx:46:xx:27 pair key 8a:xx:xx:76:xx:27 also on label, not used by OpenWrt Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
* ramips: mt76x8: add support for Teltonika RUT200Simonas Tamošaitis2025-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628AN RAM: 128 MB EtronTech EM68C16CWQG-25IH Flash: 16MB Winbond W25Q128 SPI Switch: MediaTek MT7628AN, 2 ports 100 Mbps WiFi: MediaTek MT7628AN 2.4 GHz 802.11n Modem: Quectel EC200A 4G, cat 4 GPIO: - 1 button (Reset) - 8 LEDs (2G, 3G, 4G, RSSI 1,2,3,4,5) - 2 Modem control (power button, reset) - 1 Digital input - 1 Digital output Flashing via OEM WebUI: 1. Download the firmware image *-squashfs-factory.bin 2. Upload firmware image via OEM WebUI firmware update, do not keep settings To revert back to OEM firmware: https://wiki.teltonika-networks.com/view/Bootloader_menu To enable mobile data connection send command to modem: echo -ne 'AT+QNETDEVCTL=3,1\r\n' > /dev/ttyUSB2 Create DHCP interface with usb0 device. Signed-off-by: Simonas Tamošaitis <simsasss@gmail.com>
* ramips: mt76x8: add support for Teltonika RUT241Simonas Tamošaitis2025-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628AN RAM: 128 MB EtronTech EM68C16CWQG-25IH Flash: 16MB Winbond W25Q128 SPI Switch: MediaTek MT7628AN, 2 ports 100 Mbps WiFi: MediaTek MT7628AN 2.4 GHz 802.11n Modem: MeigLink SLM750 4G, cat 4 GPIO: - 1 button (Reset) - 8 LEDs (2G, 3G, 4G, RSSI 1,2,3,4,5) - 2 Modem control (power button, reset) - 1 Digital input - 1 Digital output Flashing via OEM WebUI: 1. Download the firmware image *-squashfs-factory.bin 2. Upload firmware image via OEM WebUI firmware update, do not keep settings To revert back to OEM firmware: https://wiki.teltonika-networks.com/view/Bootloader_menu Signed-off-by: Simonas Tamošaitis <simsasss@gmail.com>
* ramips: add support for Mofi 5500Rick Mac Gillis2025-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifications: SoC: Mediatek MT7621AT (880 MHz MIPS dual-core, quad-thread, CPU) 512 Megabyte DDR3 SDRAM 32 Megabyte NOR Flash 4 Gigabit RJ45 PoE ports 2 MT7615N wifi chips (2.4GHz and 5GHz) 2 USB ports (1xUSB2 and 1xUSB3 - GL3510 chip) RJ45 RS232 port on front panel (Max3232 chip) 2x mPCIe 2.0 slots for 4G/5G cards 2x SIM slot 1x SDCard Slot Power via DC12V 4x Cell Antennae 4x Wifi Antennae MAC Address Locations: Purpose Ex. Partition Offset 2.4 Ghz *:01 factory 0x4 5 GHz *:02 factory 0x8004 LAN *:03 factory 0xe000 WAN *:04 factory 0xe006 MAC address prefix E4:3A:65 is registered to MofiNetwork Inc and used as the prefix for all MAC addresses. Manual: https://mofinetwork.com/files/MoFi_Network_MOFI5500_5GXeLTE_EM7690_SPECS.pdf WiFi chip specs: https://www.mediatek.com/products/broadband-wifi/mt7615 CPU chip specs: https://www.mediatek.com/products/home-networking/mt7621 Teardown Pictures: https://fccid.io/2AE6X-MOFI5500/Internal-Photos/Internal-Photos-5591739 Installation: Update Mofi 5500 to at least stock firmware version 4.8.6. (Available on the Mofi website.) Previous versions are untested in the upgrade process. Log into the LuCI web interface, usually at 192.168.10.1 and visit the 'System->Backup/Flash Firmware' page. Upload and flash the firmware as usual. Note to Maintainers: Do not remove SUPPORTED_DEVICES from the Makefile! The customized Mofi version of OpenWRT (stock firmware) expects to see mofi5500 as the device name. The stock firmware does not allow for forcing an installation. Without this line, users cannot upload the new firmware through the stock Mofi firmware. This device uses cell modems that could use QMI or MBIM. Add LuCI Modem Manager to allow people to use these. Also, if they have two cell network cards, ethernet, USB, or other kinds of networks, they may wish to use MWAN3 to allow failover amongst their networks. Please compile it with mwan3 for multiple WAN connections. Co-authored-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Signed-off-by: Rick Mac Gillis <noreply@rickmacgillis.com>
* generic: fix broken ARM gc sections patchChristian Marangi2025-04-16
| | | | | | | | | | | | | Upstream version of ARM gc sections skip eeping some section. It was reported some kernel load hang hence restore what we original did and introduce a new patch that add the additional entry on top of the upstream version. Fixes: #18500 Fixes: 7843f21c5120 ("generic: replace ARM gc sections patch with upstream version") Tested-by: Stefan Kalscheuer <stefan@stklcode.de> (Turris Omnia) Link: https://github.com/openwrt/openwrt/pull/18503 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: fix broken TCP fraglist GRO patchChristian Marangi2025-04-15
| | | | | | | | | | | | Some regression were reported with the backported upstream version. Old kernel require an additional flush in some case and this was handled in the old downstream patch. Reintroduce the flush to fix the regression and refresh affected patch. Fixes: f63d64ede06b ("generic: move patch from pending to backport") Link: https://github.com/openwrt/openwrt/pull/18501 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: drop redundant ATS SFP GT-T quirk patchChristian Marangi2025-04-15
| | | | | | | | | | | | | | | | The ATS SFP GT-T quirk patch was backported to stable kernel 6.6 but was not notice while bumping the kernel version as they listed the quirk at the bottom of the SFP quirk table while our hack patch put it at the top. With migrating to the upstream version, the duplication was made more apparent. Drop the double entry for the SFP module as it's already there and not needed and refresh patches. Link: https://github.com/openwrt/openwrt/pull/18484 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* armsr: drop GC sections ARMv7 patchChristian Marangi2025-04-14
| | | | | | | | Drop GC sections ARMv7 patch as the new upstream version already handle it by disabling the config in the specific EFI boot stub driver. Link: https://github.com/openwrt/openwrt/pull/18464 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: replace ARM gc sections patch with upstream versionChristian Marangi2025-04-14
| | | | | | | | | | | | Replace ARM gc sections patch with upstream version. It seems this feature is finally supported upstream with some minor difference. In theory the upstream version should cut even more stuff, this really needs to be evaluated if it's OK also to handle regression with the kernel 6.12 update. Link: https://github.com/openwrt/openwrt/pull/18464 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: replace SFP ignore TX FAULT with upstream versionChristian Marangi2025-04-14
| | | | | | | | Replace SFP ignore TX FAULT with upstream version by backporting the 2 related upstream patch. Refresh SFP affected patch. Link: https://github.com/openwrt/openwrt/pull/18464 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: move patch from pending to backportChristian Marangi2025-04-14
| | | | | | | | | | | | | Move all patch that got merged upstream from pending to backport and add related tag. This is to make it easier to update to kernel 6.12. Patch 680 required some special care as the upstream version had to be split in a series of 6 patch. Referesh all affected patch. Link: https://github.com/openwrt/openwrt/pull/18464 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ath79: fix initramfs execution for NEC Aterm devicesINAGAKI Hiroshi2025-04-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix execution of initramfs image on NEC Aterm devices by increasing available memory for lzma extraction of lzma-loader. The size of initramfs image of v24.10.0 exceeds available memory (LZMA_TEXT_START - LOADADDR) and loader data running at LZMA_TEXT_START will be overwritten by extracted data. As a result, LZMA extraction will be broken and stuck (or unexpectedly reset). Fix that issue by setting higher LZMA_TEXT_START address to increase available memory for LZMA extraction by lzma-loader. log (v24.10.0): boot> tftpd tftpd start 192.168.0.1 boot> start tftp load openwrt-24.10.0-ath79-generic-ne end tftp load length = 6569768 start memory load ... memory load complete begin : 0x80040000 length : 6567044 startup: 0x80040000 boot> boot begin : 0x80040000 length : 6567044 startup: 0x80040000 option: 0x0 NEC Aterm series (QCA9558) Calibrating SGMII SGMII cal value = 0xe Configuring SGMII force mode SGMII_CONFIG : 0x000000a2 MR_AN_CONTROL: 0x00008140 MR_AN_CONTROL: 0x00000140 OpenWrt kernel loader for AR7XXX/AR9XXX Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org> Decompressing kernel... [:<syntax:value>]');retu <--- (stuck) IPL:SOFT-RESET <--- (reset by WDT) memory test ... ok flinstall OK boot version: 1.0.0 ... Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18476 Signed-off-by: Robert Marko <robimarko@gmail.com>
* layerscape: armv7: drop skipped packagesRobert Marko2025-04-13
| | | | | | | | | | Now that all packages that relied on the skip mechanism are selected via BUILD_DEVICES or by defaulting for the subtarget drop them from individual DEVICE_PACKAGES so that Image Builder works again for armv7. Fixes: #18411 Link: https://github.com/openwrt/openwrt/pull/18462 Signed-off-by: Robert Marko <robimarko@gmail.com>
* layerscape: armv8_64b: drop skipped packagesRobert Marko2025-04-13
| | | | | | | | | | Now that all packages that relied on the skip mechanism are selected via BUILD_DEVICES or by defaulting for the subtarget drop them from individual DEVICE_PACKAGES so that Image Builder works again for armv8_64b. Fixes: #18412 Link: https://github.com/openwrt/openwrt/pull/18462 Signed-off-by: Robert Marko <robimarko@gmail.com>
* bcm63xx-cfe: install into image staging dirRobert Marko2025-04-13
| | | | | | | | | | | | | | Currently, bcm63xx-cfe is being installed into kernel build dir, however that does not work for Image Builder as only certain artifacts from kernel build dir are included in Image Builder. So, simply install bcm63xx-cfe into image staging dir so its artifacts can be used in Image Builder as well. Fixes: #18408 Fixes: #18409 Link: https://github.com/openwrt/openwrt/pull/18463 Signed-off-by: Robert Marko <robimarko@gmail.com>
* rockchip: Add support for Radxa ROCK 4SEFUKAUMI Naoki2025-04-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Radxa ROCK 4SE[1] is a single board computer using the Rockchip RK3399-T. Hardware -------- - Dual-core Cortex-A72 and quad-core Cortex-A53 CPU - Mali-T860MP4 GPU - LPDDR4 4GB RAM - M.2 M Key slot (PCIe 2.1 x4) - eMMC connector - microSD card slot - Wi-Fi 5 (not supported) - Gigabit Ethernet with PoE support (additional PoE HAT required) - USB 3.0 Type-A OTG port - USB 3.0 Type-A HOST port - 2x USB 2.0 Type-A HOST ports - USB Type-C power port (5V only) - 40 Pin GPIO header [1] https://radxa.com/products/rock4/4se Installation ------------ Uncompress the OpenWrt sysupgrade and write it to the micro SD card or internal eMMC using dd. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com> Link: https://github.com/openwrt/openwrt/pull/17554 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* rockchip: Add support for Radxa ROCK 4C+FUKAUMI Naoki2025-04-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Radxa ROCK 4C+[1] is a single board computer with dual HDMI using the Rockchip RK3399-T. Hardware -------- - Dual-core Cortex-A72 and quad-core Cortex-A53 CPU - Mali-T860MP4 GPU - LPDDR4 4GB RAM - eMMC connector - microSD card slot - Wi-Fi 5 (not supported) - Gigabit Ethernet with PoE support (additional PoE HAT required) - USB 3.0 Type-A OTG port - USB 3.0 Type-A HOST port - 2x USB 2.0 Type-A HOST ports - USB Type-C power port (5V only) - 40 Pin GPIO header [1] https://radxa.com/products/rock4/4cp Installation ------------ Uncompress the OpenWrt sysupgrade and write it to the micro SD card or internal eMMC using dd. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com> Link: https://github.com/openwrt/openwrt/pull/17554 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* mediatek: add support for Mercusys MR80X v3Schneider Azima2025-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for Mercusys MR80X(EU) v3 router. Device specification: - SoC: Mediatek MT7981b, Cortex-A53, 64-bit - RAM: 512MB - Flash: SPI NAND GigaDevice GD5F1GQ5UEYIGY (128 MB) - Ethernet: 4x 100/1000 Mbps LAN1,LAN2,LAN3 & WAN - Wireless: 2.4GHz (802.11 b/g/n/ax) - Wireless: 5GHz (802.11 a/n/ac/ax) - LEDs: 1 orange and 1 green status LEDs, 4 green gpio-controlled LEDs on ethernet ports - Buttons: 1 (Reset) - Bootloader: Main U-Boot - U-Boot 2022.01-rc4. Additionally, both UBI slots contain "seconduboot" (also U-Boot 2022.01-rc4) Installation (UART): - Place OpenWrt initramfs-kernel image on tftp server with IP 192.168.1.2 - Attach UART, switch on the router and interrupt the boot process by pressing 'Ctrl-C'. - Set the uboot environment for startup. setenv tp_boot_idx 0; setenv bootcmd bootm 0x46000000; saveenv If the bootarg is set to boot from ubi1, also change it to ubi0. - Load and run OpenWrt initramfs image. setenv serverip 192.168.1.2; setenv ipaddr 192.168.1.1; tftpboot initramfs-kernel.bin; bootm - Browse IP 192.168.1.1, upload the 'sysupgrade' image and do upgrade. Recovery: - Press Reset button and power on the router. - Navigate to U-Boot recovery web server (http://192.168.1.1/) and upload the OEM firmware. Stock layout: 0x000000000000-0x000000200000 : "boot" 0x000000200000-0x000000300000 : "u-boot-env" 0x000000300000-0x000003500000 : "ubi0" 0x000003500000-0x000006700000 : "ubi1" 0x000006700000-0x000006f00000 : "userconfig" 0x000006f00000-0x000007300000 : "tp_data" ubi0/ubi1 format: U-Boot at boot checks that all volumes are in place: +-------------------------------+ | Volume Name: uboot Vol ID: 0| | Volume Name: kernel Vol ID: 1| | Volume Name: rootfs Vol ID: 2| +-------------------------------+ MAC addresses: +---------+-------------------+-----------+ | | MAC | Algorithm | +---------+-------------------+-----------+ | label | 94:0C:xx:xx:xx:12 | label | | WAN | 94:0C:xx:xx:xx:13 | label+1 | | LAN | 94:0C:xx:xx:xx:12 | label | | WLAN 2g | 94:0C:xx:xx:xx:11 | label-1 | | WLAN 5g | 94:0C:xx:xx:xx:10 | label-2 | +---------+-------------------+-----------+ label MAC address was found in UBI partition "tp_data", file "default-mac". Signed-off-by: Schneider Azima <Schneider-Azima12@protonmail.com> Link: https://github.com/openwrt/openwrt/pull/18181 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: bump 6.6 to 6.6.87John Audia2025-04-12
| | | | | | | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.87 Manually rebased: generic-hack/781-usb-net-rndis-support-asr.patch All other patches automatically rebased. Build system: x86/64 Build-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64 Run-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/18457 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* qualcommbe: ipq95xx: pcs: fix USXGMII link-up failureMantas Pucka2025-04-12
| | | | | | | | | USXGMII link-up may fail due to too short delay after PLL reset. Increase the delay to fix this. Signed-off-by: Mantas Pucka <mantas@8devices.com> Link: https://github.com/openwrt/openwrt/pull/18459 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommbe: ipq95xx: pcs: support 2.5G PHYMantas Pucka2025-04-12
| | | | | | | | Fixes to PCS driver to support 2.5G PHY Signed-off-by: Mantas Pucka <mantas@8devices.com> Link: https://github.com/openwrt/openwrt/pull/18459 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommbe: ipq95xx: nsscc: fix port5 clock parentMantas Pucka2025-04-12
| | | | | | | | Fix incorrect port5 clock management Signed-off-by: Mantas Pucka <mantas@8devices.com> Link: https://github.com/openwrt/openwrt/pull/18459 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommbe: ipq95xx: add bus clock for NSSCCMantas Pucka2025-04-12
| | | | | | | | | | Missing bus clock prevent access to NSSCC registers and thus it is impossible change clock configuration, when ethernet connection speed changes. Signed-off-by: Mantas Pucka <mantas@8devices.com> Link: https://github.com/openwrt/openwrt/pull/18459 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommbe: ipq95xx: fix PCIe operationMantas Pucka2025-04-12
| | | | | | | | | | Add patches that fix: * Wrong MSI interrups for PCIe3 * Hang during reboot due to stopped clocks Signed-off-by: Mantas Pucka <mantas@8devices.com> Link: https://github.com/openwrt/openwrt/pull/18459 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: fix kernel warning no previous prototype for ...Christian Marangi2025-04-11
| | | | | | | | | | | | | | It seems new kernel version introduced -Wmissing-prototypes. This new warning reported drivers that define non static function that are used statically in the driver. Fix this by declaring making those function actually static if not defined in any header and not used outside of the single driver. Co-authored-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18455 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: add missing of.h header to ar8327Christian Marangi2025-04-11
| | | | | | | | | | | | | | It seems new kernel linux version reorganized the header include and now of.h needs to be explicitly included. This should have been done from when the driver was introduced. Add the missing of.h header to fix compilation error in later kernel version. Co-authored-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18455 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: convert driver to .remove_newChristian Marangi2025-04-11
| | | | | | | Convert driver to .remove_new in preparation for kernel 6.12 support. Link: https://github.com/openwrt/openwrt/pull/18454 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: eap623od-hd-v1: fix phy node and LED configYang Xiwen2025-04-11
| | | | | | | | | | | | The reason phy fails to probe without explicitly overrided phy id is that the reset timing fails to match. Fix it with proper `reset-delay-us` and `reset-post-delay-us`. While at it, change LED settings to match EAP610-Outdoor. Signed-off-by: Yang Xiwen <forbidden405@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18450 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ramips: mt76x8: add support for MERCUSYS MB130-4G v1Sergii Shcherbakov2025-04-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628AN RAM: 128 MB, Zentel A3R1GE40JBF-8E Flash: 16MB, Winbond W25Q128JV Switch: rt3050-esw, 2 ports 100 Mbps WiFi: MediaTek mt7628-wmac 2.4GHz 802.11n and MediaTek MT7663 5GHz 802.11ac (PCIe) WWAN: Quectel EC200A-EL 4G modem (USB) GPIO: * 1 button (Reset/WPS) * 6 LEDs (Power+WPS, LAN, 3xSignal) * USB port power controls * Modem reset * Modem programming switch * Internal/external antenna switch for 4G Serial Interface: TP10 - 3.3V can be used for level shifter, if needed TP9 - TX TP8 - RX TP11 - GND Interface properties: 115200, 8N1 Access to console using serial port for OEM firmware: Username: admin Password: 1234 Flashing via TFTP (no disassembling or soldering required): 1. Connect your PC and router to port LAN 2. Configure PC interface using static IP 192.168.1.225, mask 255.255.255.0 3. Place OpenWRT firmware image (*-squashfs-tftp-recovery.bin) to TFTP root folder and renamed it to tp_recovery.bin 4. Unplug power from router 5. Press and hold Reset/WPS button 6. Power up the router 7. Wait until TFTP started uploading image (~10 seconds after power up) and release Reset/WPS button 8. Wait until image uploaded, i.e. until LAN LED start lighting 9. Enable DHCP address on PC interface and wait for assigning address 10. Use ssh (root@192.168.1.1) to configure router properties Depends on patch for firmware-utils package: https://github.com/openwrt/firmware-utils/commit/2051fe5b Signed-off-by: Sergii Shcherbakov <shchers@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17819 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* mediatek: filogic: add Netcore N60 Pro supportYujie Zhu2025-04-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware specification: SoC: MediaTek MT7986A 4x A53 Flash: ESMT F50L1G41LB 128MB RAM: M16U4G16256A DDR4 512MB Ethernet: 2x 2.5G + 3x 1G USB: 1x USB 3.0 WiFi1: MT7975N 2.4GHz 4T4R WiFi2: MT7975PN 5GHz 4T4R Button: Reset, WPS Power: DC 12V 2A Flash instructions: Connect to the router using ssh or telnet, username: useradmin, password is the web login password of the router. Use scp to upload bl31-uboot.fip and flash: "mtd write xxx-bl31-uboot.fip FIP" "mtd erase ubi" Connect to the router via the Lan port, set a static ip of your PC. (ip 192.168.1.254, gateway 192.168.1.1) Download initramfs image, reboot router, waiting for tftp recovery to complete. After openwrt boots up, perform sysupgrade. Note: Back up all mtd partitions before flashing. Signed-off-by: Yujie Zhu <libriunc@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18138 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* qualcommbe: disable CONFIG_QCOM_IPA kernel configChristian Marangi2025-04-10
| | | | | | | | | CONFIG_QCOM_IPA kernel cofig was enabled by mistake and conflicts with mac80211 as it indirectly selects QMI HELPERS. Backports project provid his own version of QMI HELPERS hence it should not be built-in. Link: https://github.com/openwrt/openwrt/pull/17788 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommbe: ipq95xx: Make RPM partition read-onlyChristian Marangi2025-04-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make the RPM partition read-only. This was a mistake and a leftover from staging branch but I can take this mistake as an excuse to document the current problem with RPM. It might happen that a board ship with a broken RPM .mbn, broken not in the sense that the board doesn't boot or it's a brick but broken in the sense that it's outdaed and suffer from a bug fixed in new version. This bug consist in a problem with the regulators between USB and NSS. The old RPM mess with the NSS regulator (l2) and change the voltage for it while configuring the USB regulator (l5). This cause the ethernet subsystem to malfunction with the port not working. To workaround this, it's needed to disable RPM handling and CPUFreq. With these 2 disabled, the old RPM doesn't touch regulators and Ethernet works correctly. New RPM correctly handle regulators for USB (l5) and doesn't suffer from this problem. A solution for this is getting discussed with QCOM hoping to get some good feedback for it. Link: https://github.com/openwrt/openwrt/pull/17788 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommbe: ipq95xx: Add pending patch fixing NSSCC boot stallChristian Marangi2025-04-10
| | | | | | | | | | | | | | Add pending patch fixing NSSCC boot stall. These patch are needed to prevent the ICC to disable critical clock for NSSCC NOC. Without these the system will stall and reboot with watchdog. While at it also remove an extra clock from DTSI as it currently have no use. Original patch is not modified to keep consistency with series proposed upstream. Link: https://github.com/openwrt/openwrt/pull/17788 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommbe: ipq95xx: Drop redundant comment in NSSCC clock patchChristian Marangi2025-04-10
| | | | | | | | Drop redundant comment in NSSCC clock patch. The problem has been identified hence the comment doesn't apply anymore. Link: https://github.com/openwrt/openwrt/pull/17788 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>