aboutsummaryrefslogtreecommitdiff
path: root/target
Commit message (Collapse)AuthorAge
...
* uml: drop 6.1 kernel support filesChristian Lamparter2024-06-17
| | | | | | | | Drop config+patches for kernel 6.1. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15713 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* uml: switch to 6.6 kernelChristian Lamparter2024-06-17
| | | | | | | | Switch the uml target to kernel 6.6. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15713 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* uml: define "generic" subtargetChristian Lamparter2024-06-17
| | | | | | | | | | | | | | | | | | UML didn't have a subtarget defined. While this compiled fine, the patch caused funny filenames for the generated files to appear: - "openwrt-uml--vmlinux" - "openwrt-uml--squashfs.img" - "openwrt-uml--ext4.img" - ... since "generic" is implied anyway, let's just set it. Fixes: d997477775bf ("treewide: remove implicit SUBTARGET") Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15713 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* apm821xx: drop 6.1 kernel support filesChristian Lamparter2024-06-17
| | | | | | | | Drop config+patches for kernel 6.1. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15721 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* apm821xx: switch to 6.6 kernelChristian Lamparter2024-06-17
| | | | | | | | | Switch the apm821xx targets to kernel 6.6. no complains received. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15721 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* treewide: gpio to gpiosRosen Penev2024-06-17
| | | | | | | | | | gpio is deprecated. Found with dtc's -Wdeprecated_gpio_property Used git grep -E $'\tgpio = <' to make the changes. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15681 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: ipq807x: use ath11k_patch_mac for SXK80Andrew Smith2024-06-17
| | | | | | | | Use ath11k_patch_mac and ath11k_set_macflag functions for SXK80 Signed-off-by: Andrew Smith <gul.code@outlook.com> Link: https://github.com/openwrt/openwrt/pull/15732 Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: armsr: Renesas: RZ: Ethernet module and ttySC0John Vincent2024-06-17
| | | | | | | | Ethernet module enable for Renesas RZ platform inittab fix for ttySC0 Fixes: #15284 Signed-off-by: John Vincent <john.vincent.xa@bp.renesas.com>
* ramips: add support for OpenFi 5Pro Travel RouterSven Huang2024-06-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenFi 5Pro is a DualBand Travel Router, based on MT7621A. Specification: - Type : Travel Wi-Fi Router(built-in Type-C Power Cable) - Size : 63 x 93 x 24mm - Power : Internal Type-C Cable PD/DC 5V@2A - SoC : MediaTek MT7621A - RAM : DDR3 512 MB - Flash : SPI-NOR 64MB (W25Q512) - WLAN : 2.4/5GHz 2T2R (MediaTek MT7603e/MT7613) - Ethernet : 2x 10/100/1000Mbps - USB : 1 x USB 2.0 - SDHCI : 1 x TF Slot (Max 512GB) - LEDs : 3 x LEDs (GPIO#16 gpio#17 gpio#14) - Button : 1 x Reset (GPIO#18), 1 x WPS (GPIO#13) - UART : 1 x UART for Debug, 115200 8N1 (Pinout: GND TX RX 3.3V) - UART 2 : 1xUART2 (Pinout: GND TX2 RX2 3.3V ) How to upgrade image in uboot 1. press reset button when boot for 5sec. 2. access 192.168.21.1 in web ui. 3. select image and upload Signed-off-by: Sven Huang <1036456939@qq.com>
* ramips: add support for WINSTARS WS-WN536P3Sven Huang2024-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | WS-WN536P3 is a 2.4/5 GHz band 11ac router, based on MT7621DA. Specification: - SoC : MediaTek MT7621DA - RAM : DDR3 128 MB - Flash : SPI-NOR 16MB - WLAN : 2.4/5 GHz 2T2R (MediaTek MT7603e/MT7613) - Ethernet : 5x 10/100/1000 Mbps - LEDs : 1x Sys 1x WIFI 5x Ethernet LEDs(connect to switch) - Keys : 1x Reset 1x WPS 1x Turbo - USB : x1 - UART : 1xUART - settings : 115200n8 How to upgrade image in uboot 1. press reset button when boot for 5sec. 2. access 192.168.10.1 in web ui. 3. select image and upload Signed-off-by: Sven Huang <1036456939@qq.com>
* kernel: generic: refresh patchesMieczyslaw Nalewaj2024-06-16
| | | | | | | Refresh patches by 'make target/linux/refresh' Fixes: 487cc3831ce8 ("generic: 6.6: drop patch adding support for multiple MTK PPE") Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ath79: diable some 6 MiB image size TP-Link devicesShiji Yang2024-06-16
| | | | | | The max image sizes are too small to generate images. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ath79: drop factory image for DIR-825 and TEW-673GRUShiji Yang2024-06-16
| | | | | | The max image sizes are too small to generate factory images. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* rockchip: Add cache information to the SoC dtsi for RK356xMilinda Brantini2024-06-16
| | | | | Fix cacheinfo: Unable to detect cache hierarchy for CPU 0. Signed-off-by: Milinda Brantini <C_A_T_T_E_R_Y@outlook.com>
* ramips: tplink_8m: cleaning up nvmem-cells definitionsMieczyslaw Nalewaj2024-06-16
| | | | | | | Move nvmem-cells definitions to dts files for compatibility with other files in which mt7628an_tplink_8m.dtsi is loaded, to prevent overwriting Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: netgear_r6xxx: cleaning up nvmem-cells definitionsMieczyslaw Nalewaj2024-06-16
| | | | | | Move nvmem-cells definitions to dts files to prevent overwriting Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: elecom_wrc-gs-1pci: cleaning up nvmem-cells definitionsMieczyslaw Nalewaj2024-06-16
| | | | | | Move nvmem-cells definitions to dts files to prevent overwriting Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: cudy_x6: cleaning up nvmem-cells definitionsMieczyslaw Nalewaj2024-06-16
| | | | | | Move nvmem-cells definitions to dts files to prevent overwriting Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: xiaomi,mi-ra75: cleaning up nvmem-cells definitionsMieczyslaw Nalewaj2024-06-16
| | | | | | | Remove nvmem-cells definitions due to duplication in mt7628an_xiaomi_mi-router-4.dtsi Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: tplink,archer-c2-v1: cleaning up nvmem-cells definitionsMieczyslaw Nalewaj2024-06-16
| | | | | | | Remove nvmem-cells definitions due to duplication in mt7620a_tplink_8m.dtsi Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: hiwifi,hc5861: cleaning up nvmem-cells definitionsMieczyslaw Nalewaj2024-06-16
| | | | | | | Remove nvmem-cells definitions due to duplication in mt7620a_hiwifi_hc5x61.dtsi Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* generic: 6.6: drop patch adding support for multiple MTK PPEDaniel Golle2024-06-16
| | | | | | | | Partially revert commit 98ddfbc56a ("generic: 6.6: backport upstream commits for mtk_eth_soc") as the commit breaks WED. A better solution to assign PPE units in case of WED has still to be found. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* generic: 6.6: update NVMEM-on-MMC seriesDaniel Golle2024-06-16
| | | | | | | | | | | | | | | Allow a wider audience to test this pending series. Use about to be submitted v3 which factors out block notification support. Apart from dropping the no longer needed (and problematic) fallback for for the 'partitions' node being present at the device parent there are no intended functional changes. As opening a block device as file is not supported yet in Kernel v6.6, use the previous method as backporting seems a bit too involving. Fixes: #15642 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* generic: 6.6: move NVMEM-on-UBI patches from pending to backportsDaniel Golle2024-06-16
| | | | | | The series was merged for Linux v6.9, so move it to backports. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* generic: 6.6: backport upstream commits for mtk_eth_socDaniel Golle2024-06-16
| | | | | | | | | | | | Backport two commits for mtk_eth_soc: * net: ethernet: mtk_eth_soc: handle dma buffer size soc specific (torvalds/linux@c57e558194430d10d5e5f4acd8a8655b68dade13) * net: ethernet: mtk_eth_soc: ppe: add support for multiple PPEs (torvalds/linux@dee4dd10c79aaca192b73520d8fb64628468ae0f) Refresh pending patches which require that. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mpc85xx: fix label-mac-address for Enterasys WS-AP3710iDavid Bauer2024-06-16
| | | | | | | | | The WS-AP3710i does not correctly expose its label-mac on eth0 anymore since the change to simpleLoader. Fix this by obtaining the label-mac from the U-Boot environment. Signed-off-by: David Bauer <mail@david-bauer.net>
* ramips: fix MAC address for some devicesShiji Yang2024-06-15
| | | | | | | 1. Remove unused macaddr NVMEM cells. 2. Fix "mac-base" compatible cells references. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* kernel: bump 6.6 to 6.6.33 and adjust subarchesJohn Audia2024-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit accomplishes three goals: 1. bump 6.6 to 6.6.33 2. kernel: modules: video: change package definition for fb for upstream changes[1] 3. kernel/multiple subtargets: add CONFIG_FB_IOMEM_FOPS=y to all subtargets which also set CONFIG_FB_CORE=y. Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.33 Removed upstreamed: pending-6.6/195-block-fix-and-simplify-blkdevparts-cmdline-parsing.patch[2] gemini/patches-6.6/0003-net-ethernet-cortina-Locking-fixes.patch[3] Manually rebased: ramips/patches-6.6/810-uvc-add-iPassion-iP2970-support.patch All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.6.y&id=c00e8fd749502c02085534c60b1edca4fc479c91 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.33&id=99bbbd9aea059f8a206736dc601be2ae61d366fb 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.33&id=8f6f82d6a205ceb3aba8d279f9ff6eeea0b1689b Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Tested-by: Stijn Segers <foss@volatilesystems.org> Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: bump 6.1 to 6.1.93Zxl hhyccc2024-06-15
| | | | | | | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.93 Removed upstreamed: bcm27xx/patches-6.1/950-0081-smsx95xx-fix-crimes-against-truesize.patch reference: https://github.com/gregkh/linux/commit/517e64bcc9634bb46f8fc6421e272b8da3d7d953 Manually rebased: bcm27xx/patches-6.1/950-0712-drm-vc4-Use-phys-addresses-for-slave-DMA-config.patch All other patches automatically rebased. Build system: bcm53xx ath79 Signed-off-by: Zxl hhyccc <zxlhhy@gmail.com>
* mpc85xx: fix Enterasys WS-AP3710i eth mac-addressDavid Bauer2024-06-14
| | | | | | | | | | With the introduction of the simpleImage loader, the MAC address is not set by the bootloader anymore. Fix this by reading the MAC address from the U-Boot environment partition. Signed-off-by: David Bauer <mail@david-bauer.net>
* ath79: fix MAC address for senao loader devicesShiji Yang2024-06-14
| | | | | | | The "mac-base" nvmem-cell-cells size is 1. Fixes: b2f1c6ed52af ("ath79: qca: remove mac-address-increment") Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ath79: switch default kernel to 6.6Shiji Yang2024-06-14
| | | | | | | We haven't received any bug reports in the past few weeks. So it's time to set kernel 6.6 as the default and remove kernel 6.1 support. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ath79: refresh 6.6 kernel configShiji Yang2024-06-14
| | | | | | | Add the missing kernel symbols by `make kernel_oldconfig CONFIG_TARGET={target,subtarget}`. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* bcm47xx: Remove profiles for broadcom-wlHauke Mehrtens2024-06-14
| | | | | | | | The broadcom-wl driver was removed from OpenWrt, remove also the profiles using it. Fixes: e772b75d5d50 ("broadcom-wl: remove package") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* bcm47xx: Remove exports for braodcom-wl driverHauke Mehrtens2024-06-14
| | | | | | | | The braodcom-wl driver was removed from OpenWrt, remove the special exports it needed. Fixes: e772b75d5d50 ("broadcom-wl: remove package") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: fix wrong dts file permissionMikhail Zhilkin2024-06-14
| | | | | | | | | This file is executable: target/linux/ramips/dts/mt7621_dlink_dir-2150-a1.dts Has to be fixed. Fixes: 30e8fd73ec54 ("ramips: Add support for D-Link DIR-2150-A1") Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
* ramips: fix random LAN MAC for sercomm dxx devicesMikhail Zhilkin2024-06-14
| | | | | | | This commit fixes random lan mac for sercomm dxx devices. Fixes: 339518482578 ("ramips: mt7621: nix mac-address-increment") Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
* ramips: fix wrong eeprom data for sercomm dxx devicesMikhail Zhilkin2024-06-14
| | | | | | | | | This commit fixes wrong WiFi eeprom data: /sys/kernel/debug/ieee80211/phy0/mt76/eeprom /sys/kernel/debug/ieee80211/phy1/mt76/eeprom Fixes: fb4cea45ec55 ("ramips: convert MT7603 EEPROM to NVMEM format") Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
* ath79: fix wrong mac address for ecb1xx0Rosen Penev2024-06-14
| | | | | | | | 0db4f9785ca30f79fa1abbffb0fab5a6053f68f5 changed the variable name from athaddr to ethaddr. Restore. Fixes: 0db4f9785ca3 ("ath79: convert ath10k calibration data to NVMEM (ASCII MAC)") Signed-off-by: Rosen Penev <rosenp@gmail.com>
* qualcommax: ipq807x: fix sysupgrade for ZBT-Z800AXChukun Pan2024-06-13
| | | | | | | | | | | This router has two rootfs partitions and dualboot is used. Vendor firmware may swap the rootfs partition location, u-boot append 'ubi.mtd=rootfs' in the end of cmdline. Since we use fixed-partitions, force boot from the first rootfs partition to avoid boot failure. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Link: https://github.com/openwrt/openwrt/pull/15700 Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: 6.6: prevent garbage-cleanup of BPF kfuncsTony Ambardar2024-06-13
| | | | | | | | | | | | | | | | | | | | | | | | Backport an upstream Linux fix to prevent BPF kfunc functions from being removed during linker optimization when building BTF-enabled vmlinux. The telltale sign of this occurring is build log warnings (e.g. mips64el): BTFIDS vmlinux WARN: resolve_btfids: unresolved symbol bpf_verify_pkcs7_signature WARN: resolve_btfids: unresolved symbol bpf_lookup_user_key WARN: resolve_btfids: unresolved symbol bpf_lookup_system_key WARN: resolve_btfids: unresolved symbol bpf_key_put WARN: resolve_btfids: unresolved symbol bpf_iter_task_next WARN: resolve_btfids: unresolved symbol bpf_iter_css_task_new WARN: resolve_btfids: unresolved symbol bpf_get_file_xattr WARN: resolve_btfids: unresolved symbol bpf_ct_insert_entry NM System.map SORTTAB vmlinux Link: https://lore.kernel.org/bpf/ZlkoM6%2FPSxVcGM6X@kodidev-ubuntu/ Signed-off-by: Tony Ambardar <itugrok@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/15697 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: ipq807x: wax620 and wax630: fix wifi mac addressKristian Skramstad2024-06-13
| | | | | | | | | | | | The wifi radios on wax620 and wax630 got a random mac address on boot. So fix this by using ath11k_patch_mac and give a static mac address from label-mac-device. Tested and working on wax620 and wax630. Signed-off-by: Kristian Skramstad <kristian+github@83.no> Link: https://github.com/openwrt/openwrt/pull/15597 Signed-off-by: Robert Marko <robimarko@gmail.com>
* octeontx: drop targetRobert Marko2024-06-12
| | | | | | | | | | octeontx is currently stuck on kernel 5.15 since using 6.1 breaks booting, and unfortunately nobody has stepped up to fix this issue. Gateworks who were primary users have supported the removal. Link: https://github.com/openwrt/openwrt/pull/15686 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq40xx: fix invalid GPIO numbers since kernel 6.6Koen Vandeputte2024-06-12
| | | | | | | | | | | | | | | | | | | | | | | The bump to kernel 6.6 increased the GPIO base from 412 to 512 on this target. We need to compensate for that in the GPIO numbers being passed to uci to fix following kernel report: [ 24.176183] export_store: invalid GPIO 423 Tested on a Wallys DR40x9 board. Please note that: Boards "rtl30vw" and "wpj428" are not being altered here. They define GPIO numbers which are even below the previous base of 412 which looks wrong. Actual testing on these boards should be conducted to validate and optionally fix GPIO numbering. Suggested-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* ramips: add support for 7Links WLR-1240Sebastian Schaper2024-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WLR-1240 (ZX-5434) is an AC1200 Wave 2 outdoor repeater with omnidirectional antennas for wall or pole mounting. The device is manufactured by Todaair and meant to be used with a tuya-based app, there is no webinterface for configuration. Specifications: - MT7628AN, 8 MiB SPI NOR flash, 64 MiB RAM, 2x2 802.11n - MT7613 2x2 802.11ac Wave 2 - 802.3af PoE or 12V 1A 5.5x2.1 power supply (included) - top RGB LED ring TFTP installation: - rename sysupgrade to `firmware_auto.bin` - provide at 192.168.1.10 during boot HTTP installation: - keep reset button pressed for 5 seconds during power on (light blue LED flashes slowly, then quickly to confirm, then remains steady on) - recovery web interface is at 192.168.1.1, upload sysupgrade Opening the device - use suction cup to remove top cap within LED ring - two screws are located in holes underneath silicone sealant - two further screws are located at the bottom initramfs boot - open device, connect serial console (pins are labelled) - keep pressing `4` during second tftp attempt to enter uboot shell - run `tftpboot 82000000` to avoid memory overlap, then `bootm` Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
* ramips: add support for 7Links WLR-1230Sebastian Schaper2024-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WLR-1230 (ZX-5207) is an AC1200 Wave 2 outdoor repeater with sector antennas for wall or pole mounting. The device is manufactured by Todaair and meant to be used with a tuya-based app, there is no webinterface for configuration. Specifications: - MT7628AN, 8 MiB SPI NOR flash, 64 MiB RAM, 2x2 802.11n - MT7613 2x2 802.11ac Wave 2 - 802.3af PoE or 12V 1A 5.5x2.1 power supply (included) - 3 LEDs WLAN, LAN, RES; PWR LED is not software-controllable TFTP installation: - rename sysupgrade to `firmware_auto.bin` - provide at 192.168.1.10 during boot HTTP installation: - keep reset button pressed for 5 seconds during power on (LEDs flash slowly, then quickly to confirm, then remain steady on) - recovery web interface is at 192.168.1.1, upload sysupgrade Opening the device - two screws are located in the bottom left and right corners underneath the label, inner tray slides out easily initramfs boot - open device, connect serial console (pins are labelled) - keep pressing `4` during second tftp attempt to enter uboot shell - run `tftpboot 82000000` to avoid memory overlap, then `bootm` Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
* mediatek: Ruijie RG-X60 Pro: Add kmod-mt7915eHauke Mehrtens2024-06-10
| | | | | | | | | Add the kmod-mt7915e wifi driver to the default packages for the Ruijie RG-X60 Pro. kmod-mt7915e has to be added recently and was not done before merging the support for Ruijie RG-X60 Pro. Fixes: 3de3c2bdfa6b ("mediatek: add support for Ruijie RG-X60 Pro") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: sync Cudy TR1200 v1 namingLuis Mita2024-06-10
| | | | | | | | | Cudy assigns hardware versions to its devices on its website, and the Cudy TR1200 router is now Cudy TR1200 v1. OpenWrt currently uses both variants, and this commit removes inconsistencies using only the new name. Signed-off-by: Luis Mita <luis@luismita.com>
* mediatek: convert eeprom/macaddr to nvmem format for jdcloud re-cp-03Tianling Shen2024-06-10
| | | | | | | | | Switch to new nvmem binding. Also fixes a issue that the MAC address assigned to lan/wan was reversed. Tested-by: Yangyu Chen <cyy@cyyself.name> Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* mediatek: filogic: Add support for Wavlink WL-WN586X3Sijia Huang2024-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware -------- - SOC: MediaTek MT7981 - ram: 256MB DDR3 - FLASH: 16MB SPI-NOR - Ethernet: 2x1Gb Lan 1x1Gb Wan - WIFI: MediaTek MT7981 2x2 DBDC 802.11ax 2T2R (2.4/5) - LEDs: 2xLan 1x Wan 1x WIFI 1xSTATUS MAC table, same as stock firmware: LAN: 80:3F:5D:xx:xx:x1 partition "hw" at 0x44e (ASCII) WAN: 80:3F:5D:xx:xx:x2 partition "hw" at 0x460 (ASCII) 2G: 80:3F:5D:xx:xx:x3 partition "factory" at 0x4 (binary), on label 5G: 80:3F:5D:xx:xx:x3 Same as 2G Installation Method 1: ssh -------------------------- 1. Connect PC to the lan port. Set the PC IP to 192.168.10.100 if required. 2. Navigate to http://192.168.10.1/ 3. Log into the Wavlink WebGUI. Default username/password is admin/admin. 4. Use WebGUI to upgrade the firmware to WAVLINK_WN586X3-A_M86X3A_V240113_WO-GDBYFM-modified.bin downloaded from https://github.com/themaverickdm/firmware-misc/tree/main/wavlink/wl-wn586x3 Warning: All settings will be lost! 5. Wait about 5 minutes, and after flashing is completed, log into the router using (with admin123 as password): ssh root@192.168.10.1 6. scp the openwrt image file onto the router, usually under /tmp somewhere. openwrt-mediatek-filogic-wavlink_wl-wn586x3-squashfs-sysupgrade.bin 7. Flash openwrt image file like so: mtd write \ openwrt-mediatek-filogic-wavlink_wl-wn586x3-squashfs-sysupgrade.bin \ firmware Warning: Previous firmware will be overwritten! 8. Wait about 5 minutes, and after the flashing is completed, set the PC IP to 192.168.1.100 if required and log into the router like so: ssh root@192.168.1.1 Installation Method 2: u-boot ----------------------------- 1. Connect UART: TX-> 586X3 RX, RX-> 586X3 TX, GND-> 586 GND. 2. Connect PC to the wan (not lan!) port. 3. Setup the tftp server on PC, set IP to 192.168.10.100, 4. Power on the device. Select '2' to upgrade firmware in Uboot. 5. Input the image name and start to upgrade. Uboot console log: CPU: MediaTek MT7981 Model: mt7981-rfb DRAM: 256 MiB Core: 34 devices, 13 uclasses, devicetree: embed Loading Environment from nowhere... OK In: serial@11002000 Out: serial@11002000 Err: serial@11002000 Net: Warning: ethernet@15100000 (eth0) using random MAC address - 02:47:fb:b2:53:2d eth0: ethernet@15100000 UBOOT WN586X3A gpio: pin 9 (gpio 9) value is 0 gpio: pin 10 (gpio 10) value is 0 gpio: pin 5 (gpio 5) value is 0 gpio: pin 12 (gpio 12) value is 0 gpio: pin 13 (gpio 13) value is 0 *** U-Boot Boot Menu *** 1. Startup system (Default) 2. Upgrade firmware 3. Upgrade ATF BL2 4. Upgrade ATF FIP 5. Upgrade single image 6. Load image 0. U-Boot console Co-authored-by: R Maru <deviantmaru@gmail.com> Signed-off-by: R Maru <deviantmaru@gmail.com> Signed-off-by: Sijia Huang <engineer31@win-star.com>