aboutsummaryrefslogtreecommitdiff
path: root/target/linux
Commit message (Collapse)AuthorAge
...
* kernel: backport list_count_nodes()Rafał Miłecki2023-12-15
| | | | | | | It's needed by various stuff we backport. That includes NVMEM changes queued for v6.8. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ipq807x: add support for ZTE MF269Chukun Pan2023-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware specifications: SoC: Qualcomm IPQ8071A RAM: 512MB of DDR3 Flash1: Eon EN25S64 8MB Flash2: MX30UF2G18AC 256MB Ethernet: 2x 2.5G RJ45 port Phone: 1x RJ11 port (SPI) USB: 1x Type-C 2.0 port WiFi1: QCN5024 2.4GHz WiFi2: QCN5054 5GHz Button: Reset, WPS Flash instructions: 1. Connect the router via serial port (115200 8N1 1.8V) 2. Download the initramfs image, rename it to initramfs.bin, and host it with the tftp server. 3. Interrupt U-Boot and run these commands: tftpboot initramfs.bin bootm 4. After openwrt boots up, use scp or luci web to upload sysupgrade.bin to upgrade. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Reviewed-by: Robert Marko <robimarko@gmail.com>
* realtek: Clean up and standardize realtek-poe supportRaylynn Knight2023-12-13
| | | | | | | | | | | | | | | | This patch cleans up and standardizes realtek-poe support for realtek based switches that have supported PoE ports. The power output of switches supported by realtek-poe package can be configured in the 02_network ucidef_set_poe() function. This was missed when some PoE capable switches supported by realtek-poe were added. The realtek-poe package at one point replaced a lua-rs232 based script and some devices were not updated to use the realtek-poe package. Consistently add realtek-poe package to DEVICE_PACKAGES for switches with supported PoE. Signed-off-by: Raylynn Knight <rayknight@me.com>
* ipq807x: fix edgecore EAP102 lan/wanDirk Buchwalder2023-12-13
| | | | | | | | | | | | | | | We have a report in the forum, that lan/wan is non-functional on the EAP102 (https://forum.openwrt.org/t/edgecore-eap102/178449) Fixing that by swapping label and phy-handle of the dp-nodes and updating the lan/wan bmp. Note: the original commiter of the device support seems absent for a long time in the forum and on the OpenWrt github group. Tested-by: Antonio Della Selva <antonio.dellaselva@uniurb.it> Signed-off-by: Dirk Buchwalder <buchwalder@posteo.de> Reviewed-by: Robert Marko <robimarko@gmail.com>
* ipq807x: add Arcadyan AW1000 supportChukun Pan2023-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | Hardware specification: SoC: Qualcomm IPQ8072A Flash: Toshiba NAND 1GiB RAM: 1 GiB of DDR3 466 MHz Ethernet: 4x 1Gbps + 1x 2.5Gbps WiFi1: QCN5024 2.4GHz ax 4x4 WiFi2: QCN5054 5GHz ax 4x4 Button: WiFi, WPS, Reset Modem: RG500Q-EA USB: 1 x USB 3.0 Power: DC 12V 4A Flash instructions: 1. Download the initramfs image, rename it to initramfs.bin, and host it with tftp server. 2. Interrupt U-Boot and run these commands: tftpboot initramfs.bin bootm 3. After openwrt boots up, use scp or luci web to upload sysupgrade.bin to upgrade. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Reviewed-by: Robert Marko <robimarko@gmail.com>
* qualcommax: cleanup whitespace and sort-orderChukun Pan2023-12-13
| | | | | | | Replace blanks with tabs, also sort base-files alphabetically. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Reviewed-by: Robert Marko <robimarko@gmail.com>
* kernel: add support for Toshiba TH58NYG3S0HBAI4Chukun Pan2023-12-13
| | | | | | | | | | | | | | | | | | | | | | Correct oob size from 128 to 256 for Toshiba TH58NYG3S0HBAI4 flash. Since it is not ONFI compliant NAND, the model name cannot be read from anywhere, add a static NAND ID entry to correct this. However, the NAND ID of this flash is inconsistent with the datasheet. The actual NAND ID is only 4 ID bytes, the last ID byte is missing.[1] Maybe this flash is counterfeit, or maybe it's another problem. Another Toshiba flash had the same problem before. Refer to commit a83dc6b ("kernel: move Toshiba-TC58NVG0S3H patch to ipq40xx"), put the patch into qualcommax target to avoid affecting other devices. The patch is verified on Arcadyan AW1000. [1] Datasheet available at (the ID table is on page 50): https://europe.kioxia.com/content/dam/kioxia/newidr/productinfo/datasheet/201910/DST_TH58NYG3S0HBAI4-TDE_EN_31565.pdf Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Reviewed-by: Robert Marko <robimarko@gmail.com>
* package: kernel: detach of-mdio dependency from stmmac-coreChristian Marangi2023-12-13
| | | | | | | | | | | | | Detach of-mdio dependency from stmmac-core kmod to fix support for x86_64 target. This target doesn't use OpenFirmware infrastructure and stmmac-core for the dwmac-intel driver doesn't depends on it. Add kmod-of-mdio to any other user of stmmac-core as it's not inherit from stmmac-core anymore. Fixes: #14209 Fixes: 4b4c940fbc8f ("x86: Add kmod-dwmac-intel") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* package: kernel: move pcs-xpcs from armsr to genericChristian Marangi2023-12-13
| | | | | | | | | | Move pcs-xpcs kmod from armsr modules.mk to generic modules package. Also add additional dependency to x86_64 as stmmac-core it's now used by x86_64 target and depends on this package. Fixes: 4b4c940fbc8f ("x86: Add kmod-dwmac-intel") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* rockchip: fix eth1 irq affinityFurong Xu2023-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NanoPi R2S and some other RK3328 boards use RTL8152 as eth1, which is connected to xhci-hcd:usb1 but not xhci-hcd:usb3 |:~# cat /proc/interrupts | CPU0 CPU1 CPU2 CPU3 | 11: 53449 171813 129595 87823 GICv2 30 Level arch_timer | 18: 0 0 0 0 GICv2 94 Level rockchip_usb2phy | 19: 0 0 0 0 GICv2 32 Level ff1f0000.dma-controller | 20: 0 0 0 0 GICv2 33 Level ff1f0000.dma-controller | 21: 4 0 0 0 GICv2 89 Level ttyS2 | 22: 0 0 0 0 GICv2 43 Level ff350800.iommu | 23: 0 0 0 0 GICv2 106 Level ff360480.iommu | 24: 0 1417932 0 0 GICv2 56 Level eth0 | 25: 334 0 0 4422194 GICv2 99 Level xhci-hcd:usb1 | 26: 0 0 0 0 GICv2 48 Level ehci_hcd:usb3 | 27: 0 0 0 0 GICv2 49 Level ohci_hcd:usb2 | 28: 3285 0 0 0 GICv2 69 Level ff160000.i2c | 29: 0 0 0 0 rockchip_gpio_irq 24 Level rk805 | 30: 0 0 0 0 rk805 0 Edge rk805_pwrkey_fall | 35: 0 0 0 0 rk805 5 Edge RTC alarm | 37: 0 0 0 0 rk805 7 Edge rk805_pwrkey_rise | 38: 0 0 0 0 GICv2 90 Level rockchip_thermal | 39: 0 0 0 0 GICv2 72 Edge ff1a0000.watchdog | 40: 2601 0 0 0 GICv2 44 Level dw-mci | 41: 0 0 0 0 rockchip_gpio_irq 0 Edge keys |IPI0: 1559 1208 893 1131 Rescheduling interrupts |[...] Fix 40-net-smp-affinity to match the correct device irq name. Signed-off-by: Furong Xu <xfr@outlook.com>
* ath79: make boot-leds service executableEric J. Anderson2023-12-12
| | | | | | | | | This service was unfunctional due to not having its executable bit set. Fixes #13500. Signed-off-by: Eric J. Anderson <eric.j.ason256@gmail.com>
* imx: enable CONFIG_CPU_FREQ_THERMALLech Perczak2023-12-12
| | | | | | | Without that, imx_thermal fails to initialize on deferred probe, because it fails to register cpufreq cooling device. Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
* imx: imx7d-pico-pi: add CPU supply nodes to device treeLech Perczak2023-12-12
| | | | | | | Attach sw1a as "cpu-supply" to both CPUs in order to cpufreq driver to prove successfully. Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
* imx: enable CONFIG_REGULATOR_PFUZE100 globallyLech Perczak2023-12-12
| | | | | | | PFUZE100 series of PMICs are used on boards supported by both subtargets. Enable this for whole i.MX target. Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
* kirkwood: add 6.1 kernel as testingPawel Dembicki2023-12-12
| | | | | | It allow to test 6.1 kernel in Kirkwood. Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
* kirkwood: 6.1: refresh kernel configPawel Dembicki2023-12-12
| | | | | | Done by 'make kernel_oldconfig'. Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
* kirkwood: kernel: refresh 6.1 patchesPawel Dembicki2023-12-12
| | | | | | Kernel patches copied from 5.15 need to be refreshed. Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
* kirkwood: copy config 5.15 to 6.1Pawel Dembicki2023-12-12
| | | | | | Config was just copied. Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
* kirkwood: copy patches 5.15 to 6.1Pawel Dembicki2023-12-12
| | | | | | | | | | | Simple copy 5.15 patches. Upstreamed patch dropped: 001-5.18-Add-Ctera-C-200-V1-board.patch Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com> (kirkwoor -> kirkwood in subject) Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kirkwood: fix Ctera C200 V1 ubi part namePawel Dembicki2023-12-12
| | | | | | | | | | | In 749237967a12 downstream dts was replaced with upstream accepted patch. But in upstream version last partition was called "rootfs" instead "ubi". OpenWrt require "ubi" label for ubi rootfs. This patch restore proper label. Fixes: 749237967a12 ("kirkwood: Replace dtses with upstream accepted") Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
* octeon: upgrade to 6.1 kernelChristian Svensson2023-12-12
| | | | | | | | The kernel patches apply with only minor changes. The only other notable change is that octeon-usb has moved from staging and had its config macro renamed from CONFIG_OCTEON_USB to CONFIG_USB_OCTEON_HCD. Signed-off-by: Christian Svensson <blue@cmd.nu>
* kernel: bump 6.1 to 6.1.66John Audia2023-12-12
| | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.66 All patches automatically rebased. Build system: x86/64 Build-tested: x86/64/AMD Cezanne Run-tested: x86/64/AMD Cezanne Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: backport upstream nvmem fix for "fixed-layout"Rafał Miłecki2023-12-12
| | | | | | It replaces a pretty much identical downstream patch. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ipq806x: drop useless uci-defaults compat version scriptChristian Marangi2023-12-12
| | | | | | | | | | | | | | Drop useless uci-defaults compat version script as it's not needed anymore and should have been dropped on DSA conversion. The script was needed for Linksys EA7500 and EA8500 for the kernel space migration. We now handle compat version setting in board.d scripts. Having this script with actually the wrong value (2.0) cause upgrade problem and conflicts with board.d script. Fixes: 337e36e0ef98 ("ipq806x: convert each device to DSA implementation") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* mediatek: bananapi-r3: add overlay for ReSpeaker 2-mic hatDaniel Golle2023-12-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add DT overlay to allow using the ReSpeaker 2-mic hat connected to the 26-pin header of the BananaPi BPi-R3. Supported sample formats: S16_LE, S24_LE, S32_LE Supported sample rates: 8/12/16/24/32/48/96/192 kHz | BPi-R3 | ReSpeaker 2-mic Signal | 26-pin | 40-pin ----------+----------+------------------- VCC 5V | 2 | 2 I2C SDA | 3 | 3 I2C SCL | 5 | 5 GND | 6 | 6 PCM CLK | 12 | 12 PCM FS | 15 | 35 PCM DIN | 26 | 38 GND | 25 | 39 PCM DOUT | 22 | 40 Once connected, install the driver and tell U-Boot to apply the DT overlay: opkg kmod-sound-soc-mt7986-wm8960 fw_setenv bootconf_base "config-mt7986a-bananapi-bpi-r3#mt7986a-bananapi-bpi-r3-respeaker-2mics" reboot To setup the ReSpeaker for Stereo out on the Headphone plug: amixer sset 'Right Output Mixer PCM' on amixer sset 'Left Output Mixer PCM' on amixer sset 'PCM Playback -6dB' off amixer sset 'O018 I150_Switch' on amixer sset 'O019 I151_Switch' on amixer sset 'O124 I032_Switch' on amixer sset 'O125 I033_Switch' on amixer sset 'Headphone' 121 amixer sset 'Playback' 255 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: modules: break-out WM8960 codec moduleDaniel Golle2023-12-11
| | | | | | | Package codec module for WM8960 in its own package to be used by more than one target. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: backport MT7986 audio driverMaso Huang2023-12-11
| | | | | | | | Pick commits adding drivers for audio engine found in MT7986 from Linux 6.6 as well as follow-up fixes from Linux 6.7. Signed-off-by: Maso Huang <maso.huang@mediatek.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: bump 5.15 to 5.15.142John Audia2023-12-11
| | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.142 All patches automatically rebased. Build system: x86_64 Build-tested: ramips/tplink_archer-a6-v3 Run-tested: ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me>
* mediatek: add support for Adtran SmartRG Bonanza Peak seriesDaniel Golle2023-12-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Bonanza Peak series are a couple of MT7986-powered 2.5 GBit/s Wi-Fi 6 residential gateway, access point and mesh router products. All of them come with an eMMC to boot from, are powered via USB-C and got a USB 3.0 type-A port. All of them got a Dialog (Renesas) DA14531 Bluetooth module connected via UART. If the device was previously running stock firmware, the BT chip's internal flash has been loaded with firmware and it can be attached using hciattach when using OpenWrt. SOC: MediaTek MT7986A RAM: 2 GiB DDR4 eMMC: 8 GiB Bluetooth: BLE5 (DA14531) Serial: 3.3V level, 115200 8n1 on 4-pin connector * SDG-8612 - Dual-band RJ-45 gateway 2x 2.5G MaxLinear PHY for WAN port 3x 1GE LAN ports via MT7531 switch * SDG-8614 - Dual-band SFP gateway 1x SFP cage with up to 2.5G speed 1x 2.5G MaxLinear PHY for LAN port 3x 1GE LAN ports via MT7531 switch * SDG-8622 - Tri-band mesh router 2x 2.5G MaxLinear PHY The MT7986 2G and 5G are used as 2G and 5G high band. There’s a MT7915 PCIe card for 5G low band. * SDG-8632 - Tri-band mesh router with 6 GHz 2x 2.5G MaxLinear PHY The MT7986 serves the 2G and 6G bands. There’s a MT7915 PCIe card for 5G. Installation via U-Boot serial console: 0. setup TFTP server with IP 192.168.1.10/24, place initramfs image renamed to openwrt.XXX where XXX is the internal product number: SDG-8612: XXX = 412 SDG-8614: XXX = 414 SDG-8622: XXX = 422 SDG-8632: XXX = 432 1. connect to the serial console and power on the device. Interrupt the bootloader by pressing 'st' 2. setenv boot_mode openwrt ; saveenv 3. run boot1 Load firmware via TFTP and write to flash 4. run boot2 Now OpenWrt initramfs should boot 5. upload sysupgrade.bin via scp to /tmp 6. sysupgrade Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: import driver for Adtran SmartRG RGBW LEDDaniel Golle2023-12-10
| | | | | | | Import driver for I2C-connected HolTek MCU controlling the RGBW LED found in Adtran SmartRG devices. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: hack: support inverted LEDs on MaxLinear GPY211 PHYDaniel Golle2023-12-10
| | | | | | | | Add downstream DT property to setup the PHY LEDs of the MaxLinear GPY211 PHY in such way that the VDD of the LED is driven by the SoC pin rather than the GND (which is the default). Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* generic: 6.1: fix patch 814 Add Qualcomm secure QFPROM supportAndrey VOLKOV2023-12-09
| | | | | | | | | | | | | The backported patch is broken, since kernel 6.1 has not 'include/linux/firmware' directory yet. Fix the include to the correct path. Fixes: #14115 Fixes: 52c365f055f6 ("kernel: backport v6.6 nvmem changes") Signed-off-by: Andrey VOLKOV <andrey@volkov.fr> [ improve commit description and title ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: remove mac-address-ascii dts supportRosen Penev2023-12-09
| | | | | | | Deprecated and replaced treewide with mac-base. Remove to avoid modern usage. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* kernel: of: remove mac-address-increment support hackRosen Penev2023-12-09
| | | | | | | | The MAC address increment has been replaced by the new "mac-base" NVMEM fixed layout. This old implementation can be removed now. Signed-off-by: Shiji Yang <yangshiji66@qq.com> Signed-off-by: Rosen Penev <rosenp@gmail.com>
* x86: remove unused 5.15 kernel configs and patchesPascal Coudurier2023-12-09
| | | | | | As we move to 6.1 by default, remove unused 5.15 kernel configs and patches Signed-off-by: Pascal Coudurier <coudu@gmx.com>
* x86: move to 6.1 kernel by defaultPascal Coudurier2023-12-09
| | | | | | 6.1 kernel has been in testing for a few month without issues Signed-off-by: Pascal Coudurier <coudu@gmx.com>
* ipq806x: fix leading 0 warningsRosen Penev2023-12-09
| | | | | | dtc warns about leading 0s. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ipq806x: avoid duplicate partition nodesRosen Penev2023-12-09
| | | | | | Avoids dtc warnings by moving it in a subnode. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ipq806x: reset-gpio to reset-gpiosRosen Penev2023-12-09
| | | | | | The former is deprecated. Fixes dtc warning. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ixp4xx: add Generic subtarget definitionChristian Marangi2023-12-09
| | | | | | | | | Add Generic subtarget definition. This is needed to keep consistent name on every other target/subtarget and also to permit correct work of CI workflows that expect a target/subtarget pattern. Fixes: c16b2293fe71 ("ixp4xx: Resurrect IXP4xx support using device tree") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ramips: refresh patchesDaniel Golle2023-12-08
| | | | | | | | Refresh ramips patches which got out of sync due to backported changes of the MediaTek Ethernet driver. Fixes: 6407ef8d2bcb ("kernel: backport upstream mediatek WED changes") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: remove already backported patch, fix buildFelix Fietkau2023-12-08
| | | | | Fixes: 6407ef8d2bcb ("kernel: backport upstream mediatek WED changes") Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: backport upstream mediatek WED changesFelix Fietkau2023-12-08
| | | | | | Reorder and update existing patches Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: add TP-LINK TL-WR902AC v4Kamil Jońca2023-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Seems to be very similar to: https://openwrt.org/toh/tp-link/tl-wr902ac_v3 1 x usb 1 x eth Powered by mini usb port. Installation: Can use TFTP method to install: 1. establish TFTP server at 192.168.0.66 2. provide tp_recover.bin file to the TFTP server 3. turn on router with reset button pressed 4. wait for led blinking, then release reset Specification based on dmesg from already flashed device: SoC Type: MediaTek MT7628AN ver:1 eco:2 CPU0 revision is: 00019655 (MIPS 24KEc) Memory: 56028K/65536K available CPU Clock: 580MHz WiFi: MT7613BE MAC addresses are all the same, except wifi5g which last part is decrement by one, ie.: eth0 40:ed:00:cf:b9:9b br-lan 40:ed:00:cf:b9:9b phy0-ap0 40:ed:00:cf:b9:9b phy1-ap0 40:ed:00:cf:b9:9a Signed-off-by: Kamil Jońca <kjonca@onet.pl>
* ipq806x: Fix nighthawk R7800/XR450/XR500 wan MACHannu Nyman2023-12-06
| | | | | | | | | | Correct the NVMEM mac-base field usage to read the wan MAC correctly from flash. Reference to discussion at https://github.com/openwrt/openwrt/pull/13952#issuecomment-1842749122 Fixes: d264d3a60 ("ipq806x: remove mac-address-increment") Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* mediatek: add SPDX header for Confiabits MT7981 DTSLuis Mita2023-12-06
| | | | | | Fixing ambiguous licensing. Signed-off-by: Luis Mita <luis@luismita.com>
* ramips: add support for Rostelecom RT-FE-1AMikhail Zhilkin2023-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rostelecom RT-FE-1A is a wireless WiFi 5 router manufactured by Sercomm company. Device specification -------------------- SoC Type: MediaTek MT7621AT RAM: 256 MiB Flash: 128 MiB Wireless 2.4 GHz (MT7603EN): b/g/n, 2x2 Wireless 5 GHz (MT7615E): a/n/ac, 4x4 Ethernet: 5x GbE (WAN, LAN1, LAN2, LAN3, LAN4) USB ports: No Button: 2 buttons (Reset & WPS) LEDs: - 1x Power (green, unmanaged) - 1x Status (green, gpio) - 1x 2.4G (green, hardware, mt76-phy0) - 1x 2.4G (blue, gpio) - 1x 5G (green, hardware, mt76-phy1) - 1x 5G (blue, gpio) - 5x Ethernet (green, hardware, 4x LAN & WAN) Power: 12 VDC, 1.5 A Connector type: barrel Bootloader: U-Boot Installation ----------------- 1. Login to the router web interface (default http://192.168.0.1/) under "admin" account 2. Navigate to Settings -> Configuration -> Save to Computer 3. Decode the configuration. For example, using cfgtool.py tool (see related section): cfgtool.py -u configurationBackup.cfg 4. Open configurationBackup.xml and find the following block: <OBJECT name="User." type="object" writable="1" encryption="0" > <OBJECT name="1." type="object" writable="1" encryption="0" > <PARAMETER name="Password" type="string" value="<some value>" writable="1" encryption="1" password="1" /> </OBJECT> 5. Replace <some value> by a new superadmin password and add a line which enabling superadmin login after. For example, the block after the changes: <OBJECT name="User." type="object" writable="1" encryption="0" > <OBJECT name="1." type="object" writable="1" encryption="0" > <PARAMETER name="Password" type="string" value="s0meP@ss" writable="1" encryption="1" password="1" /> <PARAMETER name="Enable" type="boolean" value="1" writable="1" encryption="0"/> </OBJECT> 6. Encode the configuration. For example, using cfgtool.py tool: cfgtool.py -p configurationBackup.xml 7. Upload the changed configuration (configurationBackup_changed.cfg) to the router 8. Login to the router web interface (superadmin:xxxxxxxxxx, where xxxxxxxxxx is a new password from the p.5) 9. Enable SSH access to the router (Settings -> Access control -> SSH) 10. Connect to the router using SSH shell using superadmin account 11. Run in SSH shell: sh 12. Make a mtd backup (optional, see related section) 13. Change bootflag to Sercomm1 and reboot: printf 1 | dd bs=1 seek=7 count=1 of=/dev/mtdblock3 reboot 14. Login to the router web interface under admin account 15. Remove dots from the OpenWrt factory image filename 16. Update firmware via web using OpenWrt factory image Revert to stock --------------- Change bootflag to Sercomm1 in OpenWrt CLI and then reboot: printf 1 | dd bs=1 seek=7 count=1 of=/dev/mtdblock3 mtd backup ---------- 1. Set up a tftp server (e.g. tftpd64 for windows) 2. Connect to a router using SSH shell and run the following commands: cd /tmp for i in 0 1 2 3 4 5 6 7 8 9; do nanddump -f mtd$i /dev/mtd$i; \ tftp -l mtd$i -p 192.168.0.2; md5sum mtd$i >> mtd.md5; rm mtd$i; done tftp -l mtd.md5 -p 192.168.0.2 MAC Addresses ------------- +-----+------------+---------+ | use | address | example | +-----+------------+---------+ | LAN | label | f4:*:66 | | WAN | label + 11 | f4:*:71 | | 2g | label + 2 | f4:*:68 | | 5g | label + 3 | f4:*:69 | +-----+------------+---------+ The label MAC address was found in Factory, 0x21000 cfgtool.py ---------- A tool for decoding and encoding Sercomm configs. Link: https://github.com/r3d5ky/sercomm_cfg_unpacker Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
* tools: add tmon packageFlorian Eckert2023-12-05
| | | | | | | | | | | | | | Add the 'tmon' packages. This is as a tool to help visualize, tune, and test the complex thermal subsystem. We get a compile warning for the tool that the printf format does not fit. This commit contains a patch that fixes this warning. This patch has also been sent upstream to the Linux kernel [1]. Links: [1] https://lore.kernel.org/all/20231204141335.2798194-1-fe@dev.tdt.de/ Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mediatek: filogic: add Acelink EW-7886CAX supportRafał Miłecki2023-12-05
| | | | | | | | | | | | | | | | | Acelink EW-7886CAX is an MT7986A (AKA Filogic 830) based access point. It has 512 MiB of RAM, one 2.5 Gbps PoE (802.3at) Ethernet port and on-SoC Wi-Fi. There is no printed MAC label (on my unit). My unit came with Mediatek's firmware (based on OpenWrt 21.02) installed. It was possible to simply upgrade using OpenWrt's sysupgrade tool. Another verified upgrade method is using U-Boot (requires UART). During every boot there is "U-Boot Boot Menu". Selecting option "2. Upgrade firmware" allows using U-Boot's tftp client to load and flash factory image. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* mpc85xx: allow mapping of cpu1 spin-table pageDavid Bauer2023-12-04
| | | | | | | | | | | The no-map property was incorrectly added, which kept the system-memory available on the WS-AP3825 limited to 190MB. We are allowed to map the page containing the CPU1 spin-table, we are just not allowed to write to it. Fixes: 57d7382cb159 ("mpc85xx: increase available RAM on Extreme Networks WS-AP3825i") Signed-off-by: David Bauer <mail@david-bauer.net>