cdf4e36ffd
416 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2808857215 |
mediatek: filogic: add support for ZBT-Z8803BE
Specifications:
SoC: MediaTek MT7988A (4 cores)
RAM: 1024MiB
Flash: Winbond SPI-NAND 128 MiB
Network: 1 WAN (2.5G), 3 LAN (1G), 1 SFP+ (10G)
2 SIM slots
Buttons: Reset, WPS
Power: DC 12V 3A (Recommend 19V to avoid voltage drop)
WiFi: MT7996 2.4Ghz, 5.8Ghz and 6Ghz (BE19000)
- 2.4Ghz and 5.8Ghz share same dual band antenna (4)
- 6Ghz uses dedicated 6G antenna (4)
Misc: 1 USB2.0 port, UART header
Installation:
A. Through U-Boot menu:
- Prepare your connecting computer to use a static IP in
network 192.168.1.0/24
- Power down the router and hold in the Reset button.
- While holding in the button power up the router again.
- Hold the button in for 10 seconds and then release.
- Use your browser to go to 192.168.1.1
- If you see a GUI allowing for flashing firmware then
you got the right model.
- Upload the sysupgrade file.
Note 1: Recovery GUI can be used to recover from an incorrect
firmware flash.
Note 2: There is a GPIO watchdog that expires after 2 minutes
so flashing sysupgrade via U-boot needs to be done
quickly within that timer.
B. Through OpenWrt Dashboard:
If your router comes with OpenWrt preinstalled
(modified by the seller), you can easily upgrade
by going to the dashboard (192.168.1.1) and then
navigate to System -> Backup/Flash firmware,
then flash the firmware
MAC Addresses:
LAN(printed MAC) : F8:5E:3C:xx:xx:xx (Factory, 0xffff4)
WAN : F8:5E:3C:xx:xx:xx (Factory, 0xffffa)
SFP+ : F8:5E:3C:xx:xx:xx (Factory, 0xfffee)
2.4GHz : F8:5E:3C:xx:xx:xx (Factory, 0x4)
5GHz : F8:5E:3C:xx:xx:xx (Factory, 0x4) + 0x10
6Ghz : F8:5E:3C:xx:xx:xx (Factory, 0x4) + 0x20
Signed-off-by: Tuan Phan <pttuan@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23053
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
b2795a7908 |
mediatek: add Huasifei WH3000R NAND support
**Huasifei WH3000R NAND** Wi-Fi 6 router based on MediaTek MT7981B SoC. MT7981B+MT7976CN+MT7531AE **Specifications** SoC: Filogic 820 MT7981B (1.3GHz) RAM: DDR3 512MB Flash: 256MiB Winbond SPI NAND WiFi: MT7976C: 2.4GHz 2x2, 5GHz 2x2 Ethernet: MT7531: 3x 1GbE LAN + 1x 1GbE WAN USB: 1x USB 3.0 port Two buttons: reset and mesh LEDs: RGB (red, green, blue together) UART: 3.3V, TX, RX, GND / 115200 8N1 DC power interface +---------+-------------------+--------------------------+ | | MAC | Algorithm | +---------+-------------------+--------------------------+ | LAN | 58:23:BC:xx:xx:x2 | label+1 | | WAN | 58:23:BC:xx:xx:x1 | label+0 (eeprom) | | WLAN 2g | 58:23:BC:xx:xx:x3 | label+2 | | WLAN 5g | 58:23:BC:xx:xx:x4 | label+3 | +---------+-------------------+--------------------------+ Since it's convenient for the users to check and tell MAC to their internet providers from the router label, we set WAN as a base MAC located at 'Factory', 0x4. Discussed this with the vendor. **Installation via U-Boot rescue** 1. Set static IP 192.168.1.2 on your computer and default route as 192.168.1.1 2. Connect to the LAN port and hold the reset button while booting the device. 3. Wait for the LED to blink 5 times, and release the reset button. 4. Open U-boot web page on your browser at http://192.168.1.1 5. Select the OpenWrt sysupgrade image, upload it, and start the upgrade. 6. Wait for the router to flash the new firmware. 7. Wait for the router to reboot itself. **Installation via sysupgrade** Just flash sysupgrade file via [LuCI upgrade page](http://192.168.1.1/cgi-bin/luci/admin/system/flash) without saving the settings. **Installation via SSH** Upload the file to the router `/tmp` directory, `ssh root@192.168.1.1` and issue a command: ``` sysupgrade -n /tmp/openwrt-mediatek-filogic-huasifei_wh3000r-nand-squashfs-sysupgrade.bin ``` Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/23156 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
db7d264e47 |
mediatek: filogic: add support for AlwayLink M01K43
Add support for the AlwayLink M01K43 5G CPE router.
Hardware specifications:
- SoC: MediaTek MT7981B (Filogic 820), dual-core Cortex-A53
- RAM: 256 MiB DDR3 (0x40000000, size 0x10000000)
- Flash: 128 MiB SPI-NAND (UBI, root) + 4 MiB SPI-NOR (bootloader)
- Ethernet: 4x 1 GbE LAN + 1x 2.5 GbE WAN
(MT7531 DSA switch; WAN via RTL8221B 2.5GbE PHY on MAC1)
- WiFi: MT7981 built-in 2x2 802.11ax (2.4 GHz + 5 GHz)
- USB: 1x xHCI (USB 2.0 only; USB 3.0 PHY pins not routed)
- Modem: M.2 B-Key slot wired for USB (tested: Quectel RM551E-GL,
Quectel RM520N-GL via QMI)
- LEDs: 10x GPIO LEDs (status, WAN, LAN, WiFi 2.4/5, signal bars)
- Buttons: WPS, Reset, RFKill
- Power: 12 V DC barrel jack
- UART: 3.3 V TTL header on PCB, 115200 8N1, no flow control
PCB silkscreen: M01K43 v5.0
Manufacturer: Shenzhen AlwayLink Wireless Technology Co., Ltd.
MAC addresses come from the 'ledeinfo' partition (mtd6) at offset 0x18
(label macaddr_ledeinfo_18); the stored value is the LAN MAC.
interface this port vendor firmware
------------------- ----------- --------------------------
eth0 / LAN bridge base + 0 base + 0
eth1 / WAN base + 1 base + 1
wifi 2.4 GHz band@0 base + 2 base (driver-derived)
wifi 5 GHz band@1 base + 3 base + LAA bit (driver)
The vendor's ethernet scheme (LAN = base, WAN = base + 1) is reproduced
exactly. For WiFi the vendor's proprietary mt_wifi driver ignores the
stored per-radio MAC and derives each BSSID from the base by setting the
locally-administered bit, so the radios are not given clean unicast
offsets. Under mainline mt76 + DSA, reusing the base (LAN) MAC on a radio
collides at L2 with the gmac0 conduit, so this port assigns the 2.4 GHz
and 5 GHz radios base + 2 and base + 3 — unique unicast addresses in the
same OUI block.
Installation
------------
Stock firmware defaults (verified on shipping units):
LAN IP: 192.168.100.1
SSH/web: user 'root', password 'admin'
Serial: 3.3 V TTL UART header on PCB, 115200 8N1, no flow control
Image artifacts produced by this device definition:
openwrt-mediatek-filogic-alwaylink_m01k43-squashfs-factory.bin
openwrt-mediatek-filogic-alwaylink_m01k43-squashfs-sysupgrade.bin
Before flashing, back up the per-unit partitions (cannot be
regenerated):
ssh root@192.168.100.1
dd if=/dev/mtd3 of=/tmp/factory.bin bs=1 count=655360
dd if=/dev/mtd6 of=/tmp/ledeinfo.bin bs=1 count=65536
exit
scp root@192.168.100.1:/tmp/factory.bin .
scp root@192.168.100.1:/tmp/ledeinfo.bin .
Method 1 - From an existing OpenWrt install (sysupgrade):
IMG=openwrt-mediatek-filogic-alwaylink_m01k43-squashfs-sysupgrade.bin
scp "$IMG" root@192.168.1.1:/tmp/sysupgrade.bin
ssh root@192.168.1.1 sysupgrade -n /tmp/sysupgrade.bin
Method 2 - U-Boot serial recovery via TFTP (requires 3.3 V USB-UART
adapter):
1. Attach 3.3 V USB-UART (TX, RX, GND) to the PCB header. Open a
terminal at 115200 8N1, no flow control.
2. Configure a TFTP server on the host PC at IP 192.168.2.88.
Place the factory image in the TFTP root, renamed if desired.
3. Power on the router. The BL2/U-Boot banner prints within ~1
second; press any key during the autoboot countdown to enter
the U-Boot menu.
4. From the menu, select 'Upgrade ubi'. U-Boot's default IP is
192.168.2.1 and it expects the TFTP server at 192.168.2.88.
Provide the factory image filename when prompted.
5. Wait for the write to complete; U-Boot reboots into OpenWrt.
Method 3 - From a NAND programmer (brick-recovery path):
1. Clip onto or desolder the SPI-NAND chip and dump the full
128 MiB with a programmer (e.g. RT809H, CH341A with NAND
adapter). Keep the dump as a recovery image.
2. Using the same programmer, write the factory.bin image to
the UBI region of the NAND. The SPI-NOR (BL2/u-boot-env/
Factory/FIP/woem/ledeinfo/nvram) must NOT be erased - those
partitions are per-unit and live on the separate 4 MiB NOR.
3. Reseat the chip and power on. The bootloader on NOR will
load the new kernel and rootfs from UBI.
Signed-off-by: Richard Jones <richard@netsolution.shop>
Link: https://github.com/openwrt/openwrt/pull/22818
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
a3105d3f95 |
mediatek: filogic: add support for Globitel BT-R320
The Globitel BT-R320 (PCB rev V1.2) is an enterprise/ISP Wi-Fi 6 router based on the MediaTek MT7981B (Filogic 820) platform. Hardware specifications: SoC: MediaTek MT7981B (Filogic 820) RAM: 1GB DDR4 (Nanya NT5AD512M16C4-HR) Flash: 128GB eMMC (UNIC UNMEN07GC4C31BS) Switch: MediaTek MT7531AE Ethernet: 1x 1GbE WAN, 3x 1GbE LAN Wi-Fi: 2.4 GHz: 2x2 MT7976CN and 5 GHz: 2x2 MT7976CN (integrated FEM) USB: 1x USB 3.0 LEDs: 2x Green (WLAN 2.4G / 5G) Buttons: 1x Reset (GPIO 1, ACTIVE_LOW), 1x WPS (GPIO 0, ACTIVE_LOW) Power: 12V, 1.5A UART: 115200 8n1 Note on eMMC configuration (Addressing 52MHz limit on 128GB IC): Debugfs output from the OEM firmware (/sys/kernel/debug/mmc0/ios) confirms the manufacturer deliberately limits the eMMC to 52MHz High-Speed mode at 3.3V (actual clock: 52000000 Hz, bus width: 8 bits, timing spec: mmc high-speed). Therefore, the conservative DTS properties (max-frequency = <52000000> and lack of HS200/HS400 support) strictly reflect the OEM hardware design. Installation instructions: 1. SSH into the stock router (192.168.132.1, user: root, pass: password). 2. Back up existing partitions using dd. 3. Upload the OpenWrt-built GPT partition table (*-gpt.bin) and flash it: dd if=/tmp/gpt.bin of=/dev/mmcblk0 bs=512 count=34 conv=fsync echo -e 'w' | fdisk /dev/mmcblk0 4. Flash the OpenWrt-built U-Boot (*-bl31-uboot.fip) to the FIP partition: dd if=/tmp/uboot.fip of=$(blkid -t PARTLABEL=fip -o device) conv=fsync 5. Disconnect power. Connect PC with static IP 192.168.1.2. 6. Hold reset button, power on, and wait 10 seconds to enter U-Boot web UI. 7. Flash the OpenWrt sysupgrade image. Stock partition layout: p1: uboot_env p2: factory p3: fip p4: kernel p5: rootfs p6: userdata MAC address layout (factory partition, mmcblk0p2): WAN: xx:xx:xx:xx:xx:xx (factory offset 0x24) LAN: xx:xx:xx:xx:xx:xy (factory offset 0x2a) Label: Matches LAN MAC (0x2a) 2.4G: Base MAC (extracted from factory offset 0x4) 5G: Base MAC with Locally Administered bit set Signed-off-by: Kirill Molotov <kirill2015molotov@gmail.com> Link: https://github.com/openwrt/openwrt/pull/23188 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
6369c9e5c7 |
generic: net: phy: realtek: add 5G and 10G PHY support
The functionality/support for 5G and 10G PHYs was extracted from the realtek-phy driver and ported to the upstream Linux realtek PHY driver. These PHY chips need a sequence of register writes (and similar operations) for initialization. These sequences are provided as firmware files which are interpreted/applied by a new register patch engine. By switching to the upstream driver, it should be possible to get rid of a large chunk of (from OpenWrt perspective) unmaintained code from Realtek. The actual Linux phy-core infrastructure from Linux can be mostly used and only the Realtek specific quirks need to be handled. The files which need to be provided are depending on the PHY: * rtl8261n.bin (package "rtl8261n-firmware" or "rtl8261n-lp-firmware") - RTL8251L 5Gbps PHY - RTL8261BE 10Gbps PHY - RTL8261N 10Gbps PHY * rtl8264b.bin (package "rtl8264b-firmware") - RTL8254B 5Gbps PHY - RTL8264 10Gbps PHY - RTL8264B 10Gbps PHY Files which are affected by this change (DEVICE_PACKAGES dependencies, hwmon paths, default kernel configurations, refresh of patches, ...) are updated at the same times. Signed-off-by: Balázs Triszka <info@balika011.hu> Co-authored-by: Semih Baskan <strst.gs@gmail.com> Co-authored-by: Jonas Jelonek <jelonek.jonas@gmail.com> Co-authored-by: Gilly1970 <gilroyscott@hotmail.com> Co-authored-by: Aleksander Jan Bajkowski <olek2@wp.pl> Co-authored-by: Carlo Szelinsky <github@szelinsky.de> [sven: rebase, integrate suggestions from PR, add device packages, split] Signed-off-by: Sven Eckelmann <sven@narfation.org> [daniel: stripped to Linux 6.18 only, dropped unrelated changes] Signed-off-by: Daniel Golle <daniel@makrotopia.org> |
||
|
|
d2fabb974c |
mediatek: add support for Wavlink WL-WNT100X3 ubootmod
This allows us to use the full size of nand, which increases ubi size from 90M to 122.25M. Flashing instructions: 1. Login into the device and backup all your partitions, especially `Factory` and 'HW' to be able to come back to stock and use all Wavlink services. 2. Unlock mtd partitions: ``` apk update && apk add kmod-mtd-rw insmod mtd-rw i_want_a_brick=1 ``` 3. Upload new `bl2` and `fip` to the router /tmp and write them: ``` mtd write /tmp/openwrt-mediatek-filogic-wavlink_wl-wnt100x3-ubootmod-preloader.bin bl2 mtd write /tmp/openwrt-mediatek-filogic-wavlink_wl-wnt100x3-ubootmod-bl31-uboot.fip fip mtd erase ubi ``` 4. Set static IP on your PC: IP 192.168.1.254/24, GW 192.168.1.1 5. Serve OpenWrt initramfs image using TFTP server. 6. Cut off the power and re-engage, wait for TFTP recovery to complete. 7. After OpenWrt initramfs has booted, prepare ubi and envs: ``` ubidetach -p /dev/mtd4 && ubiformat /dev/mtd4 -y && ubiattach -p /dev/mtd4 && ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB && ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB ``` 8. Perform sysupgrade. Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22753 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
829d432ecd |
mediatek: add support for Wavlink WL-WNT100X3
Hardware -------- - SOC: MediaTek MT7981B - RAM: 512MB DDR3 - FLASH: 128MB SPI-NAND ESMT F50L1G41LB - NETWORK: 1 x1000M WAN, 1 x 1000M LAN - WIFI: MediaTek MT7981B 2x2 DBDC 802.11ax 2T2R (2.4/5) - LEDs: 1x STATUS (blue) - USB: 1x USB 3.0 (XHCI) - FAN: 1x 5V FAN Installation / Upgrade Procedure ----------------------------- 1.Log in to the web management page. 2.Select the country code and time zone, set the Wi-Fi password, and click Save. 3.Click "More", navigate to "Developer Options", and enable the SSH function. 4.Log in to the device via an SSH client (default IP is usually 192.168.20.1). 5.Use scp to upload the OpenWrt image(openwrt-mediatek-filogic-wavlink_wl-wnt100x3-squashfs-sysupgrade.bin) to the /tmp directory 6.Perform the flash by running the sysupgrade command (use -n to overwrite the existing configuration) 7.Wait for the device to reboot automatically. Once finished, access the OpenWrt web interface (LuCI) at the default IP 192.168.1.1. MAC Addresses ----------------------------- 2.4GHz: 80:3F:5D:xx:xx:93 (Factory 0x4) LAN : 80:3F:5D:xx:xx:91 (Factory, 0x3fff4) WAN : 80:3F:5D:xx:xx:92 (Factory, 0x3fffa) 5GHz : 02:3F:5D:xx:xx:93 (derived from 2.4GHz MAC, LAA)) Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22753 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
7449064f64 |
mediatek: filogic: add support for TP-Link F65
Add support for TP-Link Festa F65, an AX3000 ceiling mount WiFi 6 AP. Hardware -------- SOC : MediaTek MT7981B 2x A53 RAM : ESMT M15T4G16256A 512MiB Flash : ESMT F50L1G41LB 128 MiB ETH : 1x 1GbE WiFi : MT7976 Buttons : Reset Leds : Blue status led on top Power : DC 12V 1.2A / PoE Installation ------------ 1. Disassemble the device 2. Solder UART to pins VGRT right of the ethernet port 3. Connect UART console (3.3V) 4. Press Ctrl+b to stop in u-boot shell 5. Use `mtkload` to boot `openwrt-initramfs-kernel.bin` via tftp 6. Flash `openwrt-squashfs-sysupgrade.bin` via sysupgrade Revert to OEM firmware ---------------------- 1. Hold reset button while plugging in power 2. Configure host ethernet to 192.168.0.1/24 3. Go to http://192.168.0.254 4. Upload OEM firmware MAC Addresses ------------- LAN : DC:62:79:xx:xx:28 (printed on label) 2.4GHz: DC:62:79:xx:xx:28 5GHz : DC:62:79:xx:xx:29 Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22138 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
fe3efbd7da |
mediatek: add support for JioRouter AX6000 JIDU6101
| Component | Details | |------------------|-------------------------------------------------| | **SoC** | MediaTek MT7986A (4× ARM Cortex-A53 @ 2.0 GHz) | | **RAM** | 512 MB | | **Flash** | 256 MB NAND | | **Ethernet** | 5× 10/100/1000 Mbps (1 WAN + 4 LAN) | | **WLAN 2.4 GHz** | MediaTek MT7976GN — 802.11b/g/n/ax, 4×4 MIMO | | **WLAN 5 GHz** | MediaTek MT7976AN — 802.11n/ac/ax, 4×4 MIMO | | **LEDs** | 1× RGB LED (GPIO-controlled) | | **Button** | 1× Reset | | **USB** | Yes | **MAC Addresses:** | Interface | Source | |------------|-------------------------------------------------| | WAN/Label | u-boot-env MTD partition, "mac" (text) | | LAN | WAN + 1 | | 2.4 GHz | WAN + 2 | | 5 GHz | WAN + 3 | --- **1. Prepare TFTP server** Set a static IP on the ethernet interface of your computer (e.g. default: ip `192.168.1.2`, gateway `192.168.1.1`). Download the initramfs image and host it with the TFTP server. **2. Interrupt boot** Attach UART and power on the router. When the boot menu appears, select **Failsafe Mode**, then press `Ctrl-C` to interrupt and enter the U-Boot prompt. **3. Load and run initramfs image** ```sh setenv ipaddr 192.168.1.1 setenv serverip 192.168.1.2 tftpboot 0x46000000 openwrt-mediatek-filogic-jiorouter_ax6000-jidu6101-initramfs-kernel.bin fdt addr $(fdtcontroladdr) fdt rm /signature bootm ``` **4. Flash sysupgrade image** Place the sysupgrade image in `/tmp`, then run: ```sh sysupgrade /tmp/openwrt-mediatek-filogic-jiorouter_ax6000-jidu6101-squashfs-sysupgrade.bin ``` Alternatively, use the sysupgrade option in LuCI. Note: - The raw MTD u-boot-env partition is only used for MAC address storage, while the active U-Boot environment is stored in the UBI volume. - These devices ship with secure boot enabled and stock U-Boot only accepts vendor-signed FIT images. - BL2/FIP cannot be replaced, so the stock signature verification path cannot be disabled directly. - Setting ipaddr='' forces U-Boot to exit the web failsafe path and continue into autoboot. - The custom bootcmd loads OpenWrt from the UBI volume and removes the /signature node before bootm, allowing unsigned OpenWrt FIT images to boot. - Stock U-Boot expects its environment in a UBI volume named u-boot-env, so it is created during initial setup. Signed-off-by: sh3ikh-faisal <sheikhfaisal713@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22201 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
a07f62f65a |
mediatek/filogic: add support for COMFAST CF-XR186
The COMFAST CF-XR186 is a WiFi repeater. The original OEM firmware is a fork of OpenWrt 21.02. To replace the OEM firmware with OpenWrt, flash the sysupgrade image through the firmware upgrade option via the OEM firmware's web UI. The OEM firmware upgrade page does not provide an option to perform a factory reset, so after the flash completes and the device reboots, perform a reset by holding in the WPS/Reset button until the WiFi LED flashes red. The led-boot, led-failsafe, led-upgrade, and led-running aliases all point at the red WLAN GPIO LED. The green and blue WLAN GPIO LEDs are used to indicate activity on the 2.4GHz and 5GHz radios. 01_leds assigns netdev triggers for those LEDs to phy0-ap0 and phy1-ap0 respectively; if neither AP interface exists (e.g. station-only repeater setups), both LEDs stay dark even when WiFi traffic is flowing. Specifications: - SoC: MediaTek MT7981B - RAM: 256MB - Flash: SPI NAND - WiFi: 2.4GHz + 5GHz (AX3000, 4x 3dBi antennas) - Ethernet: 1x 10/100/1000M - LEDs: power (not controllable), blue Ethernet, blue/green/red WiFi - Button: WPS/Reset - Power: 100-240V AC (wall plug) - UART: 115200 8N1 MAC Addresses: - LAN : 40:A5:EF:xx:xx:2D (Factory, 0xe000) - 2.4GHz: 40:A5:EF:xx:xx:2F (Factory, 0x0004) - 5GHz : 40:A5:EF:xx:xx:30 (Factory, 0x8000) Signed-off-by: David Berdik <dgberdik@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22471 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
9fb9983467 |
uboot-mediatek: comfast cf-wr632ax: reduce ram speed to 1866 MT/s
Fix instability by reducing RAM speed to 1866 MT/s in line with Winbond W634GU6RB-11 specs. Signed-off-by: Andrii Kuiukoff <andros.ua@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22929 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
8d844758c2 |
mediatek: filogic: add support for netis MEX605
This commit adds support for the netis MEX605, which is a variant based on the netis NX30 V2. 1. Update brand naming from Netis to netis to follow the official branding. 2. Rename NX30V2 to NX30 V2 to correctly reflect it as the second version of the NX30. 3. Update variant notation for consistency. cherry picked from commit c982357 1. Add 'model' to the DTS for netis NX30 V2 and define WiFi LED. 4. Fix typo. Signed-off-by: Zhiwei Cao <bfdeh@126.com> Signed-off-by: David Han <h96643864@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22726 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
b7af9b49f8 |
mediatek: add support for Qihoo 360T7 (UBI layout)
This commit adds support for Qihoo 360T7 (UBI layout). Aims ---- 1. +20 MB additional free space for the packages 2. More reliable storage for the factory and fip partitions (in UBI) Install (from non-UBI OpenWrt) ------------------------------ 1. Navigate http://192.168.1.1/ and download mtd backups 2. Upgrade OpenWrt with installer initramfs image (force upgrade, don't keep settings). Wait until OpenWrt reboots and until installer: - Prepare new factory partition - Format new ubi - Make ubi volumes - Write new fip and bl2 3. Navigate http://192.168.1.1/ and Upgrade with OpenWrt 'sysupgrade.bin' image (don't keep settings) Installer --------- Based on OpenWrt UBI Installer Image Generator for Linksys E8450 and Belkin RT3200 Link: https://github.com/dangowrt/owrt-ubi-installer Ready installer image Link: https://github.com/csharper2005/owrt-ubi-installer/tree/qihoo/bin Installer script Link: https://github.com/csharper2005/owrt-ubi-installer/blob/qihoo/files/ installer/install.sh Committing to the parent Daniel's repository is not yet possible because there are no official images and imagebuilder for Qihoo 360T7 (UBI) yet. Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22797 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
2f4a052260 |
mediatek: filogic: Qihoo 360T7: fix DDR3 rate
According to the datasheet GigaDevice GDP1BFLM-CB is 1866 Mbps DDR3 chip.
This commit reduces DDR3 rate from 2133 to 1866 Mbps.
Link: https://static6.arrow.com/aropdfconversion/c24b4942a41810a1c921df04a
99d72101eb8cd30/ds-00843-gdp1bflm-rev1.0.pdf
Fixes:
|
||
|
|
a40a1e5d02 |
mediatek: add support for ELECOM WRC-X6000GSD
ELECOM WRC-X6000GSD is a 4804Mbps 4xMIMO 2.4/5 GHz 11ax (Wi-Fi 6) router
with 2.5Gbps WAN (stock: 1Gbps max.), based on MT7986B
Specification:
- SoC : MediaTek MT7986BLA
- RAM : DDR3 512 MiB (SoC)
- Flash : Winbond 128MiB SPI NAND (W25N01GVZEIG)
- WLAN : 2.4/5 GHz 4T4R (MediaTek MT7986)
- Ethernet : 5x 10/100/1000(/2500) Mbps
- wan : Maxlinear Ethernet GPY211C (max. 2500M)
- lan : MediaTek MT7531 (max. 1000M)
- LEDs/Keys (GPIO): 11x/4x
- UART : through-hole on PCB (J1)
- assignment : 3.3V, TX, RX, NC, GND from tri-angle marking
- settings : 115200n8
- Power : 12 VDC, 2 A
Flash layout:
dev: offset size name
mtd0: 0x00000000 0x00100000 "BL2"
mtd1: 0x00100000 0x00080000 "Ubootenv"
mtd2: 0x00180000 0x00200000 "Factory"
mtd3: 0x00380000 0x00200000 "FIP"
mtd4: 0x00580000 0x00020000 "Fwheader"
mtd5: 0x005a0000 0x03200000 "ubi"
mtd6: 0x037a0000 0x00380000 "Config"
mtd7: 0x03b20000 0x00020000 "Fwheader_2"
mtd8: 0x03b40000 0x03200000 "ubi_2"
mtd9: 0x06d40000 0x00380000 "Config_2"
mtd10: 0x070c0000 0x00100000 "persist"
mtd11: 0x071c0000 0x00040000 "Mrd"
mtd12: 0x07200000 0x00380000 "Backup"
Flash instruction using factory.bin image:
1. Boot WRC-X6000GSD in router mode normally
2. Access to the WebUI ("http://192.168.2.1/") on the device
-> その他設定 (Other settings)
-> フォームウェア更新 (Update firmware)
-> ローカルファイル指定 (Specify local file)
3. Select the OpenWrt factory.bin image and click apply ("適用") button
4. Wait ~120 seconds to complete flashing
Switching to the stock firmware:
1. Load the elecom.sh script
. /lib/upgrade/elecom.sh
2. Check the current index of firmware partition
mstc_rw_bootnum
3. Set the bootnum to opposite value between 1 and 2
mstc_rw_bootnum value
example:
- step2 returned "1": mstc_rw_bootnum 2
- step2 returned "2": mstc_rw_bootnum 1
4. Reboot, to stock FW
5. Flash the stock FW to fuly revert back to original.
Notes:
- With the stock firmware, it will flash to another partition and
toggle boot to that partition when any firmware is flashed.
For example when booting on ubi, the new firmware will be flashed
to ubi_2 and the router will boot from ubi_2 afterwards.
The 5th byte of the Persist partition is the boot value (0x01 or 0x02).
- bootmenu_delay=0 is set from factory so uboot menu is hidden by
default.
- The hardware of WRC-X6000GSD is almost identical to WRC-X6000QS, but
WAN (labeled as "INTERNET") port is limited to 1000 Mbps on stock FW.
On OpenWrt FW, 2500 Mbps connection is available on that port.
MAC Addresses:
LAN : 38:97:A4:xx:xx:58 (Factory, 0x2A(hex)/Ubootenv, "ethaddr"(text))
WAN : 38:97:A4:xx:xx:5B (Factory, 0x24(hex))
2.4GHz: 38:97:A4:xx:xx:59 (Factory, 0x4(hex))
5GHz : 38:97:A4:xx:xx:5A (Factory, 0xA(hex)
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22926
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
16d159c778 |
mediatek: add support for ELECOM WRC-X6000QS
ELECOM WRC-X6000QS is a 4804Mbps 4xMIMO 2.4/5 GHz 11ax (Wi-Fi 6) router
with 2.5Gbps WAN, based on MT7986b
Specification:
- SoC : MediaTek MT7986B
- RAM : DDR3 512 MiB
- Flash : Winbond 128MiB SPI NAND
- WLAN : 2.4/5 GHz 4T4R (MediaTek MT7986)
- Ethernet : 5x 10/100/1000 Mbps
- wan : Maxlinear Ethernet GPY211C
- lan : MediaTek MT7531
- LEDs/Keys (GPIO): 11x/4x
- UART : through-hole on PCB (J1)
- assignment : 3.3V, TX, RX, NC, GND from tri-angle marking
- settings : 115200n8
- Power : 12 VDC, 2 A
Flash layout:
dev: offset size name
mtd0: 0x00000000 0x00100000 "BL2"
mtd1: 0x00100000 0x00080000 "Ubootenv"
mtd2: 0x00180000 0x00200000 "Factory"
mtd3: 0x00380000 0x00200000 "FIP"
mtd4: 0x00580000 0x00020000 "Fwheader"
mtd5: 0x005a0000 0x03200000 "ubi"
mtd6: 0x037a0000 0x00380000 "Config"
mtd7: 0x03b20000 0x00020000 "Fwheader_2"
mtd8: 0x03b40000 0x03200000 "ubi_2"
mtd9: 0x06d40000 0x00380000 "Config_2"
mtd10: 0x070c0000 0x00100000 "persist"
mtd11: 0x071c0000 0x00040000 "Mrd"
mtd12: 0x07200000 0x00380000 "Backup"
UBI layout:
name: size:
kernel 0x00364000 dynamic
rootfs 0x00FFC000 dynamic
rootfs_data 0x01A47000 dynamic
Flash instruction using factory.bin image:
1. Boot WRC-X6000QS in router mode normally
2. Access to the WebUI ("http://192.168.2.1/") on the device
-> その他設定 (Other settings)
-> フォームウェア更新 (Update firmware)
-> ローカルファイル指定 (Specify local file)
3. Select the OpenWrt factory.bin image and click apply ("適用") button
4. Wait ~120 seconds to complete flashing
Switching to the stock firmware:
1. Load the elecom.sh script
. /lib/upgrade/elecom.sh
2. Check the current index of firmware partition
mstc_rw_bootnum
3. Set the bootnum to opposite value between 1 and 2
mstc_rw_bootnum value
example:
- step2 returned "1": mstc_rw_bootnum 2
- step2 returned "2": mstc_rw_bootnum 1
4. Reboot, to stock FW
5. Flash the stock FW to fuly revert back to original.
Note 1: With the stock firmware, it will flash to another partition and
toggle boot to that partition when any firmware is flashed.
For example when booting on ubi, the new firmware will be flashed
to ubi_2 and the router will boot from ubi_2 afterwards.
The 5th byte of the Persist partition is the boot value (0x01 or 0x02).
During my tests, it never switched to another boot partition if the
firmware failed boot. So if openwrt doesn't boot,
UART might be required to recover.
Note 2: bootmenu_delay=0 is set from factory so uboot menu is hidden.
[original work]
Signed-off-by: Yuhei Amemiya <minihui@me.com>
[fixes, improvements]
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22926
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
b84184a526 |
mediatek: filogic: add support for zbt-z8103ax-d
Device support for zbt-z8103ax-d
Model D DTS is identical to Model C zbt-z8103ax-c.
Both models share same motherboard.
Difference between models is
- Model C is a cylinder shape enclosure
containing internal antennas.
- Model D is a sandwich shape enclosure
with 6 external antennas.
Specifications:
SoC: MediaTek MT7981B
RAM: 256MiB
Flash: Winbond SPI-NAND 128 MiB
Switch: 1 WAN, 3 LAN (Gigabit) MediaTek MT7531
Buttons: Reset, Mesh
Power: DC 12V 1A
WiFi: MT7981B 2.4Ghz & 5.8Ghz
Led Layout from left to right:
Power
Mesh (RGB Led, user controllable, default set to OpenWrt Status)
WLAN 2.4G (user controllable)
WAN (user controllable)
LAN3
LAN2
LAN1
WLAN 5G (user controllable)
Installation:
A. Through U-Boot menu:
- Prepare your connecting computer to use static IP
(legacy notation) 192.168.1.10 netmask 255.255.255.0
(CIDR notation) 192.168.1.10/24
- Power down the router and hold in the Reset button.
- While holding in the button power up the router again.
- Hold the button in for 10 seconds and then release.
- Use your browser to go to 192.168.1.1
- If you see a GUI allowing for flashing firmware you are at the right spot.
- Upload the **Factory** image file.
Note: U-Boot GUI it can be used to recover from an incorrect firmware flash.
B. Through OpenWrt Dashboard:
If your router comes with OpenWrt preinstalled (modified by the seller),
you can easily upgrade by going to the dashboard (192.168.1.1)
and then navigate to
System -> Backup/Flash firmware, then flash the firmware
MAC Addresses:
MAC Addresses were found in Factory partition:
offset 0x4 F8:5E:3C:xx:xx:aa --> Router Label -2
offset 0xa F8:5E:3C:xx:xx:bb --> Router Label -1
offset 0x24 F8:5E:3C:xx:xx:cc --> Router Label +1
offset 0x2a F8:5E:3C:xx:xx:yy --> printed on Router Label
Signed-off-by: Jörg Seitz <github.joeterminal@xoxy.net>
Link: https://github.com/openwrt/openwrt/pull/21626
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
771e06352f |
mediatek: filogic: Add new Router model ZBT-Z8106AX-S
Device support for zbt-z8106ax-s Specifications: SoC: MediaTek MT7981B RAM: 256MiB Flash: Winbond SPI-NAND 128 MiB Switch: 1 WAN, 4 LAN (Gigabit) MediaTek MT7531 Buttons: Reset Power: DC 12V 1A WiFi: MT7981B 2.4Ghz & 5Ghz USB 3 M2 slot to hold LTE modem 1 nano SIM slot (user controllable) Hardware watchdog (confirmed to work) Router comes in a plastic tower with all antennas internal. - 4 antennas for LTE 4G/5G communication - 2 antennas for Wifi 2.4 GHz - 2 antennas for Wifi 5 GHz Led Layout: Power (green, user controllable, default set to OpenWrt Status) Mobile (green, user controllable) WLAN 2.4G (green, user controllable) WLAN 5G (green, user controllable) WAN (amber, user controllable, set to show eth1) LAN1 (amber, hardware controlled) LAN2 (amber, hardware controlled) LAN3 (amber, hardware controlled) LAN4 (amber, hardware controlled) SIM Slot: Controlled via exported GPIO named SIM. echo "0" > /sys/class/gpio/sim/value - turns off sim slot labelled SIM echo "1" > /sys/class/gpio/sim/value - turns on sim slot labelled SIM --- Installation: A. Through U-Boot menu: - Prepare your connecting computer to use a static IP in network 192.168.1.0/24 like a) 192.168.1.10 netmask 255.255.255.0 (legacy notation) b) 192.168.1.10/24 (CIDR notation) - Power down the router and hold in the Reset button. - While holding in the button power up the router again. - Hold the button in for 10 seconds and then release. - Use your browser to go to 192.168.1.1 - If you see a GUI allowing for flashing firmware then you got the right spot. - Upload the **Factory** image file. Note: U-Boot GUI it can be used to recover from an incorrect firmware flash. B. Through OpenWrt Dashboard: If your router comes with OpenWrt preinstalled (modified by vendor), you can easily upgrade by going to the dashboard (192.168.1.1) and then navigate to "System" -> "Backup/Flash firmware" Flash OpenWRT firmware. Important: Take care to deselect (untick) option "keep settings". Settings done by vendor are incompatible with versions 24.10 or 25.12. MAC Addresses: MAC Addresses were found in Factory partition: offset 0x4 F8:5E:3C:xx:xx:aa --> Router Label -2 offset 0xa F8:5E:3C:xx:xx:bb --> Router Label -1 offset 0x24 F8:5E:3C:xx:xx:cc --> Router Label +1 offset 0x2a F8:5E:3C:xx:xx:yy --> printed on Router Label Hardware Watchdog: Device features a GPIO controlled hardware watchdog. Verfied by removing procd controlled watchdog and seeing device rebooting. --- Notes: The zbt-z8106ax-s could be ordered from vendor with a variety of modems. Mine came with a 4G LTE modem Quectel EC200A. Quectel firmware was at EC200AEUHAR01A30M16. Choices for ordering with 5G LTE were available. Modem communication is set to ethernet control mode (ECM) by vendor. Package modemmanager works fine with Quectel EC200A. You may also decide to use FUjR/Qmodem github repository to have it manage LTE modem. Please take note that internal switch port named lan5 isn't wired to LTE modem in model S as opposed to model T. Just removing lan5 from DTS did cause unwanted reboots whenever a cable is plugged into LAN ports 1-4. Disabling port lan5 in DTS however works fine. No unwanted reboots due to plug/unplug cable into any lan or wan port. Signed-off-by: Jörg Seitz <github.joeterminal@xoxy.net> Link: https://github.com/openwrt/openwrt/pull/22912 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
c8aa9beb43 |
mediatek: add GL.iNET GL-MT3600BE support
Hardware specification:
SoC: MediaTek MT7987A 4x A53
Flash: 512 MB SPI-NAND
RAM: 512MB DDR4
Ethernet: 2x 2.5GbE (built-in + RTL8221B)
WiFi: MediaTek MT7990
USB: 1x USB 3.0 port
Button: Mode, Reset
Power: Type-C PD 5/9/12V
Flash instructions:
1. Power on the device with 'reset' key pressed for 5s
2. Set static IP on your PC:
IP 192.168.1.10/24, GW 192.168.1.1
3. Visit http://192.168.1.1 and upload sysupgrade.bin
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/22476
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
986ca4c887 |
mediatek: add support for BUFFALO WSR-3000AX4P
BUFFALO WSR-3000AX4P is a 2.4/5 GHz band 11ax (Wi-Fi 6) router, based on
MT7981B.
Specification:
- SoC : MediaTek MT7981B
- RAM : DDR4 512 MiB (ESMT M16U4G16256A-KJBG)
- Flash : SPI-NAND 128 MiB (Winbond W25N01GVZEIG)
- WLAN : 2.4/5 GHz 2T2R (MediaTek MT7981B (SoC))
- Ethernet : 4x 10/100/1000 Mbps
- switch : MediaTek MT7531A
- LEDs/Keys (GPIO): 6x/4x
- UART : through-hole on PCB (J1)
- assignment : 3.3V, GND, TX, RX from tri-angle marking
- settings : 115200n8
- Power : 12 VDC, 1.5 A (Max. 14.4 W)
Flash instruction using initramfs image:
1. Prepare a TFTP server with 192.168.11.2
2. Rename initramfs image to "linux.ubi-recovery" and put it to the TFTP
directory
3. Hold the "AOSS" button and power on WSR-3000AX4P, release after 7~
seconds
4. The bootloader automatically downloads the initramfs image and boots
with it
5. After booting, upload a sysupgrade image to the device and perform
sysupgrade with it
6. Wait ~100 seconds to complete flashing
Reverting to stock image:
1. Download a official firmware and decrypt it by buffalo-enc
example:
buffalo-enc -i <official .bin> -o fw.dec -d -O 0xC8 -l
2. Upload the decrypted image to the device
3. Flash the image to the UBI in "ubi_kernel" partition on the device
example:
. /lib/upgrade/common.sh
. /lib/upgrade/nand.sh
CI_UBIPART="ubi_kernel" nand_do_flash_file fw.dec
4. Reboot the device
reboot
Notes:
- WSR-3000AX4P has 2x OS images ("ubi"/"Kernel2"), but the second one
is only for backup and not used for booting.
image handling on the bootloader:
- "ubi" is broken : "Kernel2" --(copy)--> "ubi"
- "Kernel2" is broken : "ubi" --(copy)--> "Kernel2"
- "ubi" != "Kernel2" :
- boot_select=0: "ubi" --(copy)--> "Kernel2"
- boot_select=1: "Kernel2" --(copy)--> "ubi", set boot_select to '0'
MAC Addresses:
LAN : EC:5A:31:xx:xx:50 (board_data, "mac" (text))
WAN : EC:5A:31:xx:xx:50
2.4GHz: EC:5A:31:xx:xx:52
5GHz : EC:5A:31:xx:xx:59
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22587
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
a2dcbd79a4 |
mediatek: filogic: Add new Router model ZBT-Z8106AX-T
Device support for zbt-z8106ax-t Vendor Zbtlink advertizes this device as model Z8106AX-M2-T on their website www.zbtlink.com. Device label sticked on enclosure however states this is model Z8106AX version -T. I made firmware selector to show this device as - ZBT-Z8106AX-T to match information printed on the label and - ZBT-Z8106AX-M2-T to match information found on vendors web pages. Specifications: SoC: MediaTek MT7981B RAM: 256MiB Flash: Winbond SPI-NAND 128 MiB Switch: 1 WAN, 4 LAN (Gigabit) MediaTek MT7531 Buttons: Reset Power: DC 12V-32V 1A WiFi: MT7981B 2.4Ghz & 5Ghz USB 3 M2 slot to hold LTE modem 2x nano SIM slots (user controllable) Router comes in a flat metal box with all antennas detachable. - 4 antennas for LTE 4G/5G communication - 2 antennas for Wifi 2.4 GHz - 2 antennas for Wifi 5 GHz Power supply could be between 12V and 32V. This serves both cars equipped with 12V batteries and trucks equipped with 24V batteries. Led Layout: Power (green, user controllable, default set to OpenWrt Status) Mobile (green, user controllable) WLAN 2.4G (green, user controllable) WLAN 5G (green, user controllable) WAN (amber, user controllable, set to show eth1) LAN1 (amber, hardware controlled) LAN2 (amber, hardware controlled) LAN3 (amber, hardware controlled) LAN4 (amber, hardware controlled) SIM Slots: Controlled via exported GPIO named SIM. echo "0" > /sys/class/gpio/sim/value - selects upper sim slot labelled SIM1 echo "1" > /sys/class/gpio/sim/value - selects lower sim slot labelled SIM2 Slot SIM2 is set as default and matches label on Router enclosure --- Installation: A. Through U-Boot menu: - Prepare your connecting computer to use a static IP in network 192.168.1.0/24 like a) 192.168.1.10 netmask 255.255.255.0 (legacy notation) b) 192.168.1.10/24 (CIDR notation) - Power down the router and hold in the Reset button. - While holding in the button power up the router again. - Hold the button in for 10 seconds and then release. - Use your browser to go to 192.168.1.1 - If you see a GUI allowing for flashing firmware then you got the right spot. - Upload the **Factory** image file. Note: U-Boot GUI it can be used to recover from an incorrect firmware flash. B. Through OpenWrt Dashboard: If your router comes with OpenWrt preinstalled (modified by vendor), you can easily upgrade by going to the dashboard (192.168.1.1) and then navigate to "System" -> "Backup/Flash firmware" Flash OpenWRT firmware and take care to deselect (untick) option "keep settings". Settings done by vendor are incompatible with versions 24.10 or 25.12. MAC Addresses: MAC Addresses were found in Factory partition: offset 0x4 F8:5E:3C:xx:xx:aa --> Router Label -2 offset 0xa F8:5E:3C:xx:xx:bb --> Router Label -1 offset 0x24 F8:5E:3C:xx:xx:cc --> Router Label +1 offset 0x2a F8:5E:3C:xx:xx:yy --> printed on Router Label Hardware Watchdog: Device features a GPIO controlled hardware watchdog. Verfied by removing procd controlled watchdog and seeing device rebooting. --- Notes: The zbt-z8106ax-t could be ordered from vendor with a variety of modems. Mine came with a Quectel RM520N-GL. Quectel firmware was at RM520NGLAAR01A07M4G. This level of firmware made some trouble connecting with some of my SIM cardproviders. Newer firmware level RM520NGLAAR01A08M4G_01.205.01.205 was available searching github repositories. Upgrading my RM520-GL allowed to get successful connects that did fail with older Quectel firmware. Modem communication is set to ethernet control mode (ECM) by vendor. Vendor takes advantage of ECM by wiring modem to internal switch port WWAN. OpenWRT network configuration wants to define two network interfaces - Network interface covering USB0 set with high metric - Network interface covering WWAN set with low metric Network interface covering WWAN would be preferred default route. Please take note that internal switch port wired to LTE modem is named LAN5 in vendor provided firmwares. OpenWRT however names port as WWAN to better describe purpose of port. WWAN is suggested to be assigned to firewall zone WAN. Did use package qmodem from github repository FUjR/QModem to manage RM520N-GL LTE modem. Signed-off-by: Jörg Seitz <github.joeterminal@xoxy.net> Link: https://github.com/openwrt/openwrt/pull/21834 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
145bc7e52f |
filogic: add support for D-Link AQUILA PRO AI E30
Specification: The device is similar to the M30 but has only one LAN port and no WAN port. - MT7981 CPU using 2.4GHz and 5GHz WiFi (both AX) - 512MB RAM - 128MB NAND flash with two UBI partitions with identical size - 1 multi color LED (red, green, blue, white) connected via GCA230718 - 2 buttons (WPS, reset, LED) - 1 1Gbit LAN port Disassembly: - There are two screws at the power connector which must be removed. Afterwards the top case can be removed (it is clipped on, so some tools are required). Serial Interface: - The serial interface can be connected to the 4 pin holes on the board. Do NOT connect VCC. - The pins are labelled on the PCB (RX, TX, GND) - Settings: 115200, 8N1 MAC addresses: - LAN MAC is stored in partition "Odm" at offset 0x8f - WLAN MAC (2.4 GHz and 5GHz) is LAN MAC + 1 Reverting back to OEM firmware: - There is currently no easy way to revert back to the OEM image - The methods from M30 and M60 doesn't seem to work anymore - If you plan to revert back to OEM firmware later, do the following steps before flashing OpenWrt: - Boot from initramfs as described in "Flashing via U-Boot" but don't flash anything - Instead, make a backup of UBI and UBI1 partition - The created dumps must be written to the initial partitions to revert back to OEM Flashing via Recovery Web Interface: - Set your IP address to 192.168.200.10, subnetmask 255.255.255.0 - Press the reset button while powering on the device - Keep the reset button pressed until the LED blinks red - Open a Chromium based and goto http://192.168.200.50/ (recovery web interface) - Download openwrt-mediatek-filogic-dlink_aquila-pro-ai-e30-a1-squashfs-recovery.bin - Note: The recovery web interface always reports successful flashing, even if it fails - After flashing, the recovery web interface will try to forward the browser to 192.168.0.1 (can be ignored) - If flashing was successful, OpenWrt is accessible via 192.168.1.1 - The recovery image boots an initramfs image, flash the sys upgrade image to get to „normal“ OpenWrt mode Flashing via U-Boot: - Open the case, connect to the UART console - Set your IP address to 192.168.200.2, subnet mask 255.255.255.0. Connect to one of the LAN interfaces of the router - Run a tftp server which provides openwrt-mediatek-filogic-dlink_aquila-pro-ai-e30-a1-initramfs-kernel.bin - Supply the board with 12V - Select "7. Load image" in the U-Boot menu - Enter image file, tftp server IP and device IP (if they differ from the default). - TFTP download to RAM will start. After a few seconds OpenWrt initramfs should start - The initramfs is accessible via 192.168.1.1, change your IP address accordingly (or use multiple IP addresses on your interface) - Perform a sysupgrade using openwrt-mediatek-filogic-dlink_aquila-pro-ai-e30-a1-squashfs-sysupgrade.bin - Reboot the device. OpenWrt should start from flash now Flashing via OEM web interface is not possible, as it will change the active partition and OpenWrt is only running on the first UBI partition. Signed-off-by: Roland Reinl <reinlroland+github@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22776 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
bc0a2c933e
|
mediatek: filogic: fix EAX17 rootfs hash in FIT node for per-device rootfs builds
When CONFIG_TARGET_PER_DEVICE_ROOTFS is enabled (as in buildbot builds),
the final per-device rootfs is assembled at root.squashfs+pkg=<hash> rather
than root.squashfs. The gen_netgear_rootfs_node.sh script was always hashing
root.squashfs (the base rootfs without device-specific packages), causing the
size and hash in the FIT node to not match the actual rootfs written to the
UBI volume, resulting in boot failure on buildbot-produced images.
Fix by using the per-device rootfs path when TARGET_PER_DEVICE_ROOTFS is set,
consistent with how include/image.mk handles the same distinction elsewhere.
Fixes:
|
||
|
|
561e3cf678 |
mediatek: device tree overlay for BPI-R4 with BE14 module
Some Banana Pi BPI-R4 BE14 WiFi modules are shipped with zeroed
tx_power fields in EEPROM (2G/5G/6G). This leads to low transmit power
on affected bands.
This overlay provides known-good EEPROM data (including correct tx_power
values for 2G/5G/6G bands) dumped from a working BE14 module.
To enable BE14 overlay, add into u-boot bootconf_extra
parameter: 'mt7988a-bananapi-bpi-r4-wifi-be14'.
You can use example script:
overlay="mt7988a-bananapi-bpi-r4-wifi-be14"
current="$(fw_printenv -n bootconf_extra 2>/dev/null)"
if [ -n "${current}" ]; then
fw_setenv bootconf_extra "${current}#${overlay}"
else
fw_setenv bootconf_extra "${overlay}"
fi
Earlier proposal proposed in [1] was fallback to default values if
invalid EEPROM content is detected.
[1] https://github.com/openwrt/openwrt/pull/19503/
Fixes: https://github.com/openwrt/openwrt/issues/17489
Signed-off-by: Daniel Pawlik <pawlik.dan@gmail.com>
|
||
|
|
f4c211f635 |
mediatek: add Huasifei WH3000 Pro NAND support
This commit adds support for Huasifei WH3000 Pro NAND version. There is an eMMC already supported in OpenWrt. The only difference is NAND chip. This commit adds common .dtsi and separate .dts for eMMC and nand versions. **Huasifei WH3000 Pro NAND** Portable Wi-Fi 6 travel router based on MediaTek MT7981A SoC. MT7981B+MT7976CN+RTL8221B Dual Core 1.3GHZ with 5G modems module and PWM Fan. **Specifications** SoC: Filogic 820 MT7981A (1.3GHz) RAM: DDR4 1GB Flash: 256mb Winbond SPI NAND WiFi: 2.4GHz and 5GHz with 3 antennas Ethernet: 1x WAN (10/100/1000M) 1x LAN (10/100/1000/2500M) USB: 1x USB 3.0 port Two buttons: reset and mode (BTN_0) LEDS: blue, red, blue+red=pink UART: 3.3V, TX, RX, GND / 115200 8N1 M.2 (WWAN) slot **Installation via U-Boot rescue** 1. Set static IP 192.168.1.2 on your computer and default route as 192.168.1.1 2. Connect to the WAN port and hold the reset button while booting the device. 3. Wait for the LED to blink 5 times, and release the reset button. 4. Open U-boot web page on your browser at http://192.168.1.1 5. Select the OpenWRT sysupgrade image, upload it, and start the upgrade. 6. Wait for the router to flash the new firmware. 7. Wait for the router to reboot itself. **Installation via sysupgrade** Just flash sysupgrade file via [LuCI upgrade page](http://192.168.1.1/cgi-bin/luci/admin/system/flash) without saving the settings. **Installation via SSH** Upload the file to the router `/tmp` directory, `ssh root@192.168.1.1` and issue a command: ``` sysupgrade -n /tmp/openwrt-mediatek-filogic-huasifei_wh3000-pro-nand-squashfs-sysupgrade.bin ``` Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22694 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
776a926c25 |
mediatek: filogic: ASUS RT-AX52 PRO support
The board is exactly identical to the ASUS RT-AX52, I've literally not changed a single thing. Only AX52 is AX1800, PRO is AX3000. SOC: MediaTek MT7981b RAM: 256MB DDR3 FLASH: 128MB SPI-NAND (Winbond W25N01GV) WIFI: Mediatek MT7981b DBDC 802.11ax 2.4/5 GHz ETH: MediaTek MT7531 Switch UART: 3V3 115200 8N1 (Pinout silkscreened / Do not ocnnect VCC) Use the compiled asus_rt-ax52-pro-initramfs.trx file from the this repo. Connect the PC via LAN to one of the yellow router ports and wait until your PC to get a DHCP lease. Browse to http://192.168.50.1 or http://www.asusrouter.com/ If your router is brand new, finish the setup process and log into the Web-UI. Navigate to Administration → Firmware Upgrade or use this link http://www.asusrouter.com/Advanced_FirmwareUpgrade_Content.asp. Upload the .trx file to router Wait for it to reboot trx image is initramfs version. You must upgrade to squashfs version. Browse to http://192.168.1.1/cgi-bin/luci/admin/system/flash Upload asus_rt-ax52-pro-squashfs-sysupgrade.bin and use sysupgrade -n Wait for it to reboot SSH to 192.168.1.1 and set a root password, or browse to http://192.168.1.1 -------Revert to stock asus firmware ---------: 1: Download the rt-ax52 firmware from ASUS official website. Save the firmware to tftp server directory and rename to RT-AX52.trx 2: Connect the PC with TFTP server to the RT-AX52. Set a static ip on the ethernet interface of your PC. (ip address: 192.168.1.70, subnet mask:255.255.255.0) 3: Conect to the serial console, power on again, interrupt the autoboot process by pressing '4' when prompted. $ ubi remove linux $ ubi remove jffs2 $ ubi remove rootfs $ ubi remove rootfs_data $ ubi create linux 0x45fe000 $ reset then the dut will reboot,interrupt the autoboot process by pressing '2' when prompted. 2: Load System code then write to Flash via TFTP. Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N) $: enter y you will see the follow, type enter directly: Input device IP (192.168.1.1) ==: Input server IP (192.168.1.70) ==: Input Linux Kernel filename (RT-AX52.trx) ==: 4: wait for the device run up Signed-off-by: Emre Yavuzalp <emreyavuzalp2@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21905 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
eb6dd61a8d |
mediatek: add cudy wr3000h-v1 ubootmod
This allows us to use the full size of nand, which extends ubi size from 64Mb to 122.25Mb. 1. Log in to the device and backup all the partitions, especially unique "Factory" and "bdata" partitions from System -> Backup / Flash Firmware -> Save mtdblock contents. 2. Install kmod-mtd-rw to unlock mtd partitions for writing apk update && apk add kmod-mtd-rw && insmod mtd-rw i_want_a_brick=1 3. Write new OpenWrt (U-Boot Layout) "BL2" and "FIP": mtd -e BL2 write openwrt-mediatek-filogic-cudy_wr3000h-v1-ubootmod-preloader.bin BL2 mtd -e FIP write openwrt-mediatek-filogic-cudy_wr3000h-v1-ubootmod-bl31-uboot.fip FIP 4. Set static IP on your PC: "192.168.1.254", gateway "192.168.1.1" 5. Serve openwrt-mediatek-filogic-cudy_wr3000h-v1-ubootmod-initramfs-recovery.itb using TFTP server. 6. Connect Router LAN with PC LAN. 7. Cut off the power and re-engage, wait for TFTP recovery to complete. 8. After OpenWrt initramfs recovery has booted, clean "/dev/mtd5" ubi partition to utilize maximum of free space: ubidetach -p /dev/mtd5; ubiformat /dev/mtd5 -y; ubiattach -p /dev/mtd5 ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB 9. Perform sysupgrade. Signed-off-by: Dmitry Mostovoy <stavultras@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21943 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
cfc17e81e1 |
mediatek: add cudy wr3000e-v1 ubootmod
This allows us to use the full size of nand, which extends ubi size from 64Mb to 122.25Mb. 1. Log in to the device and backup all the partitions, especially unique "Factory" and "bdata" partitions from System -> Backup / Flash Firmware -> Save mtdblock contents. 2. Install kmod-mtd-rw to unlock mtd partitions for writing apk update && apk add kmod-mtd-rw && insmod mtd-rw i_want_a_brick=1 3. Write new OpenWrt (U-Boot Layout) "BL2" and "FIP": mtd -e BL2 write openwrt-mediatek-filogic-cudy_wr3000e-v1-ubootmod-preloader.bin BL2 mtd -e FIP write openwrt-mediatek-filogic-cudy_wr3000e-v1-ubootmod-bl31-uboot.fip FIP 4. Set static IP on your PC: "192.168.1.254", gateway "192.168.1.1" 5. Serve openwrt-mediatek-filogic-cudy_wr3000e-v1-ubootmod-initramfs-recovery.itb using TFTP server. 6. Connect Router LAN with PC LAN. 7. Cut off the power and re-engage, wait for TFTP recovery to complete. 8. After OpenWrt initramfs recovery has booted, clean "/dev/mtd5" ubi partition to utilize maximum of free space: ubidetach -p /dev/mtd5; ubiformat /dev/mtd5 -y; ubiattach -p /dev/mtd5 ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB 9. Perform sysupgrade. Signed-off-by: Dmitry Mostovoy <stavultras@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21943 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
b7b4938303 |
mediatek: add cudy wr3000s-v1 ubootmod
This allows us to use the full size of nand, which extends ubi size from 64Mb to 122.25Mb. 1. Log in to the device and backup all the partitions, especially unique "Factory" and "bdata" partitions from System -> Backup / Flash Firmware -> Save mtdblock contents. 2. Install kmod-mtd-rw to unlock mtd partitions for writing apk update && apk add kmod-mtd-rw && insmod mtd-rw i_want_a_brick=1 3. Write new OpenWrt (U-Boot Layout) "BL2" and "FIP": mtd -e BL2 write openwrt-mediatek-filogic-cudy_wr3000s-v1-ubootmod-preloader.bin BL2 mtd -e FIP write openwrt-mediatek-filogic-cudy_wr3000s-v1-ubootmod-bl31-uboot.fip FIP 4. Set static IP on your PC: "192.168.1.254", gateway "192.168.1.1" 5. Serve openwrt-mediatek-filogic-cudy_wr3000s-v1-ubootmod-initramfs-recovery.itb using TFTP server. 6. Connect Router LAN with PC LAN. 7. Cut off the power and re-engage, wait for TFTP recovery to complete. 8. After OpenWrt initramfs recovery has booted, clean "/dev/mtd5" ubi partition to utilize maximum of free space: ubidetach -p /dev/mtd5; ubiformat /dev/mtd5 -y; ubiattach -p /dev/mtd5 ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB 9. Perform sysupgrade. Signed-off-by: Dmitry Mostovoy <stavultras@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21943 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
6b3b7c7dc1 |
mediatek: add cudy wr3000p-v1 ubootmod
This allows us to use the full size of nand, which extends ubi size from 64Mb to 122.25Mb. 1. Log in to the device and backup all the partitions, especially unique "Factory" and "bdata" partitions from System -> Backup / Flash Firmware -> Save mtdblock contents. 2. Install kmod-mtd-rw to unlock mtd partitions for writing apk update && apk add kmod-mtd-rw && insmod mtd-rw i_want_a_brick=1 3. Write new OpenWrt (U-Boot Layout) "BL2" and "FIP": mtd -e BL2 write openwrt-mediatek-filogic-cudy_wr3000p-v1-ubootmod-preloader.bin BL2 mtd -e FIP write openwrt-mediatek-filogic-cudy_wr3000p-v1-ubootmod-bl31-uboot.fip FIP 4. Set static IP on your PC: "192.168.1.254", gateway "192.168.1.1" 5. Serve openwrt-mediatek-filogic-cudy_wr3000p-v1-ubootmod-initramfs-recovery.itb using TFTP server. 6. Connect Router LAN with PC LAN. 7. Cut off the power and re-engage, wait for TFTP recovery to complete. 8. After OpenWrt initramfs recovery has booted, clean "/dev/mtd5" ubi partition to utilize maximum of free space: ubidetach -p /dev/mtd5; ubiformat /dev/mtd5 -y; ubiattach -p /dev/mtd5 ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB 9. Perform sysupgrade. Signed-off-by: Dmitry Mostovoy <stavultras@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21943 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|
|
51abd131d1 |
mediatek: filogic: rename Cudy M3000 v1 to v1/v2
The Cudy M3000 v1/v2 seem to have mostly identical hardware. The M3000 v1 OpenWrt images work on the M3000 v2 (excluding the v2 parts with a different PHY). Cudy also distributes one firmware image that supports both routers. Rename the human-readable device variant to "v1/v2" to match this. Don't change the compatible property as that hooks into the attended sysupgrade process. The recent flash and PHY changes don't seem to be related to the v1/v2 split. There exist M3000 v2 with the Realtek PHY, see e.g. https://github.com/openwrt/openwrt/pull/21584#issuecomment-3864992555 Signed-off-by: Jakub Vaněk <linuxtardis@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22259 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
45b51ebaff |
mediatek: filogic: add support for Cudy M3000 w/ YT8821 PHY
The hardware is very close the the Cudy M3000 v1 (see commit |
||
|
|
09a0462ea8
|
mediatek: add support for Zyxel WX5600-T0
This access point is a ‘friend’ of the T56 supplied by Odido but with DDR3 RAM and with two Ethernet 2.5 (GPY211) The flash procedure is similar to other Zyxel T56/EX5600/EX5601 If you need backup please use the T56 guide Please refer to https://openwrt.org/inbox/toh/zyxel/wx5600-t0 for detailed flash informations Specifications: SOC: MT7986b RAM: 512MB Flash: 512 MB SPI NAND Ports: 2 LAN 2.5Gbps (GPY211C) WIFI: MT7976GN + MT7976AN LED: 3 bicolor LED - 1 monocolor LED Buttons: Reset and WPS We can install all with U-boot and mtk_uartboot. Load Uboot: ``` ./mtk_uartboot -a -p ./mt7986-ram-ddr3-bl2.bin -s /dev/ttyUSB0 -f openwrt-mediatek-filogic-zyxel_wx5600-t0-ubootmod-bl31-uboot.fip ``` **WARNING: Please use a GBIT ethernet or force it on system** **WARNING: Please use only LAN2 port in Uboot** Press 0 on Bootmenu ``` mtd erase ubi run ubi_format bootmenu ``` Load and write BL2 and U-boot: ``` 8 7 ``` Load and write recovery and production ``` 6 5 ``` Signed-off-by: Valerio 'ftp21' Mancini <ftp21@ftp21.eu> Co-authored-by: Hal Martin <halmartin@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18364 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> |
||
|
|
85250b94f6 |
mediatek: add the aquantia kmod to bpi-r4
The banana pi r4 comes with 2 sfp+ ports running at 10gbps
Readd support for aquantia sfp+ modules that was removed by
|
||
|
|
20644af030 |
mediatek: add support for Keenetic/Netcraze (K/N)AP-630
This commit adds support for Keenetic/Netcraze (K/N)AP-630
Specification:
- MT7981 CPU using 2.4GHz and 5GHz WiFi (both AX)
- 512MB RAM
- 128MB SPI NAND
- 1 led with two colors (green, orange)
- 1 button (reset)
- 1 2.5Gbit POE ethernet port based on Airoha EN8811H phy
Serial Interface:
- 3 Pins GND, RX, TX
- Settings: 115200, 8N1
Notes:
- The device supports dual boot mode
Flash instruction:
The only way to flash OpenWrt image is to use tftp recovery mode in U-Boot:
1. Configure PC with static IP 192.168.1.2/24 and tftp server.
2. Copy image to tftp server.
a) Keenetic
Rename "openwrt-mediatek-filogic-keenetic_kap-630-squashfs-factory.bin"
to "KAP-630_recovery.bin" and place it in tftp server directory.
b) Netcraze
Rename "openwrt-mediatek-filogic-netcraze_nap-630-squashfs-factory.bin"
to "NAP-630_recovery.bin" and place it in tftp server directory.
3. Connect PC with ethernet port, press the reset button, power up
the device and keep button pressed until status led start blinking.
4. Device will download file from server, write it to flash and reboot.
Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21634
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
0f713d5d11 |
mediatek: add support for netis NX32U
This PR adds support for netis NX32U router.
Specification
-------------
- SoC : MediaTek MT7981BA dual-core ARM Cortex-A53 1.3 GHz
- RAM : 256 MiB DDR3
- Flash : SPI-NAND 128 MiB (ESMT)
- WLAN : MediaTek MT7976CN dual-band WiFi 6
- 2.4 GHz : b/g/n/ax, MIMO 2x2
- 5 GHz : a/n/ac/ax, MIMO 2x2
- Ethernet : 10/100/1000 Mbps x3 (LAN, MediaTek MT7531AE)
10/100/1000 Mbps x1 (WAN, SoC internal phy)
- USB : 3.0
- Buttons : Mesh, Reset
- LEDs : 1x Power (green), unmanaged
1x Internet (green), gpio-controlled
1x WPS (green), gpio-controlled
1x WiFi 2.4 GHz (green), gpio-controlled
1x WiFi 5 GHz (green), gpio-controlled
1x LAN activity (green), switch-controlled
1x WAN activity (green), switch-controlled
1x USB (green), gpio-controlled
- Power : 12 VDC, 1 A
Installation
------------
1. Connect to the router using ssh (user: admin, pass: web interface
password)
2. Backup:
```
cat /dev/mtd0 | gzip -1 -c > /tmp/mtd0_spi0.0.bin.gz
cat /dev/mtd1 | gzip -1 -c > /tmp/mtd1_BL2.bin.gz
cat /dev/mtd2 | gzip -1 -c > /tmp/mtd2_u-boot-env.bin.gz
cat /dev/mtd3 | gzip -1 -c > /tmp/mtd3_Factory.bin.gz
cat /dev/mtd4 | gzip -1 -c > /tmp/mtd4_FIP.bin.gz
cat /dev/mtd5 | gzip -1 -c > /tmp/mtd5_ubi.bin.gz
```
3. Download mtd backup from the /tmp dir of the router to your PC using
scp protocol
4. Upload OpenWrt 'bl31-uboot.fip', 'preloader.bin' images to the /tmp
dir of the router using scp protocol
5. Write FIP and BL2 (replace bootloader):
```
mtd write /tmp/openwrt-mediatek-filogic-netis_nx32u-bl31-uboot.fip FIP
mtd write /tmp/openwrt-mediatek-filogic-netis_nx32u-preloader.bin BL2
```
6. Place OpenWrt
'openwrt-mediatek-filogic-netis_nx32u-initramfs-recovery.itb' image on
the tftp server (IP: 192.168.1.254)
7. Erase 'ubi' partition and reboot the router:
mtd erase ubi
reboot
8. U-Boot automatically boot OpenWrt recovery image from tftp server to
the RAM
9. Upload OpenWrt 'sysupgrade.itb' image to the /tmp dir of the router
(IP: 192.168.1.1) using scp protocol
10. Connect to the router using ssh and run:
```
ubidetach -p /dev/mtd4; ubiformat /dev/mtd4 -y; ubiattach -p /dev/mtd4
ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB
ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB
sysupgrade -n openwrt-mediatek-filogic-netis_nx32u-squashfs-sysupgrade.itb
```
Recovery
--------
1. Place OpenWrt
'openwrt-mediatek-filogic-netis_nx32u-initramfs-recovery.itb' image on
the tftp server (IP: 192.168.1.254)
2. Press “Reset” button and power on the router. After ~10 sec release
the button.
3. Use OpenWrt initramfs system for recovery
+---------+-------------------+-----------+
| | MAC | Algorithm |
+---------+-------------------+-----------+
| LAN | dc:xx:xx:d1:xx:18 | label |
| WAN | dc:xx:xx:d1:xx:1a | label+2 |
| WLAN 2g | de:xx:xx:11:xx:19 | |
| WLAN 5g | de:xx:xx:71:xx:19 | |
+---------+-------------------+-----------+
The LAN MAC was found in 'Factory', 0x1fef20
The WAN MAC was found in 'Factory', 0x1fef26
The WLAN 2g/5g MAC prototype was found in 'Factory', 0x4
Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21368
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
708dcca80a |
mediatek: TP-Link EAP683-UR support
The TP-Link EAP683-UR is identical to the EAP683-LR. Add it as ALT0 variant. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> |
||
|
|
f1749142ca |
mediatek: TP-Link EAP683-LR support
Add support for the TP-Link EAP683-LR, an AX6000 Ceiling Mount WiFi 6 AP. Hardware: * SoC: MediaTek MT7896AV * RAM: 1GiB DDR4 (Samsung K4A8G165WC-BCTD) * Flash: 128MiB SPI-NAND (ESMT F50L1G41LB) * Ethernet: 1x 10/100/1000/2500 Mbps PoE-PD (MaxLinear GPY211C) * WiFi: MT7976AN/MT7976GN 2.4/5GHz 4T4R * LEDS: 3x blue connected to a single GPIO line * Buttons: 1x reset * BLE/Thread/Zigbee: CC2652 Stock firmware uses a random MAC address for ethernet, label MAC for 2.4 and label MAC + for 5GHz. Installation via bootloader: * Solder JST??? connector on J255, alternatively solder wires on the TP13-TP15 pads. Pinout: TP13: TX, TP14: RX, TP15: GND, TP16: VCC. The pins for J255 are in the same order. * Interrupt boot process by repeatedly pressing Ctrl+b during boot * In the boot menu, select U-Boot console * Ensure the U-Boot environment variable "tp_boot_idx" is not set: # setenv tp_boot_idx # saveenv * Boot the OpenWrt initramfs: # tftpboot openwrt-mediatek-filogic-tplink_eap683-lr-initramfs-kernel.bin # bootm * copy openwrt-mediatek-filogic-tplink_eap683-lr-squashfs-sysupgrade.bin to /tmp and install it using sysupgrade Flashing via OEM firmware is currently not supported. The tplink-safeloader utility does not recognize the OEM firmware: DEBUG: can not find fwuphdr Firmware image partitions: base size name Segmentation fault (core dumped) To revert to the OEM firmware, you can set the U-Boot environment variable "tp_boot_idx" to 1 via bootloader, or using fw_setenv via OpenWrt. This should result in booting from the ubi1 partition, which OpenWrt should not touch. Then use the web interface to upgrade firmware: System > Firmware Update. The OEM firmware uses 0x800000 for the runtime_backup partition size. This causes the following warning: mtd: partition "runtime_backup" extends beyond the end of device "nmbm_spim_nand" -- size truncated to 0x600000 This is due to the NMBM reserved blocks. Use 0x600000 in our DTS. Thanks to init Lab's user890104, who soldered jumper wires on the TTL pads for me so I could have serial console. My soldering skills just aren't good enough to pull that off without risk damaging things. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> |
||
|
|
658e4adca4 |
mediatek: filogic: add support for Bazis AX3000WM
- SoC: MediaTek MT7981B - CPU: 2x 1.3 GHz Cortex-A53 - Flash: 128 MiB SPI NAND (Winbond W25N01GV) - RAM: 256 MiB (Nanya NT5CC128M16JR-EK) - WLAN: 2.4 GHz, 5 GHz (MediaTek MT7976CN, 802.11ax) - Ethernet: 1x 10/100/1000/2500 Mbps MaxLinear GPY211C WAN, 1x10/100/1000 Mbps MT7981 LAN - USB 3.0 port - 2x buttons: Reset, Mesh - 3x LEDs on top panel (red, green, blue) - 3x PHY port LEDs (1 amber, 2 green) - Board version: WD830M V2.0 - Power: 5 VDC, 3 A UART: internal test points, 3V3 115200 8N1 (RX, TX, GND) Interface MAC Algorithm LAN (label) 1c:bf:ce:xx:xx:x1 0x4 WAN 1c:bf:ce:xx:xx:x2 0xa WLAN 2.4G 1c:bf:ce:xx:xx:x3 0x2a WLAN 5G 1c:bf:ce:xx:xx:x4 0x24 At the moment installation is possible via UART only since SSH root is password protected. Set a static ip on the ethernet interface of your PC: (ip address: 192.168.1.2, subnet mask:255.255.255.0). Boot into initramfs via TFTP: ``` setenv serverip 192.168.1.2 tftpboot 0x46000000 openwrt-mediatek-filogic-bazis_ax3000wm-initramfs-recovery.itb bootm 0x46000000 ``` Install kmod-mtd-rw and activate it: ``` apk update && apk add kmod-mtd-rw insmod mtd-rw i_want_a_brick=1 ``` Upload to the router and write OpenWrt BL2 and FIP bootloader: ``` mtd write openwrt-mediatek-filogic-bazis_ax3000wm-preloader.bin BL2 mtd write openwrt-mediatek-filogic-bazis_ax3000wm-bl31-uboot.fip FIP ``` Prepare ubi partition: ``` ubidetach -p /dev/mtd4 ubiformat /dev/mtd4 -y ubiattach -p /dev/mtd4 ``` Upgrade via luci web interface with sysupgrade file or by issuing a command: ``` sysupgrade -n openwrt-mediatek-filogic-bazis_ax3000wm-squashfs-sysupgrade.itb ``` Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21813 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
31f30f5a6c |
mediatek: add Motorcomm PHY support to Cudy AP3000 v1
Newer Cudy AP3000 v1 routers feature a Motorcomm YT8821 PHY instead of the Realtek PHY [1]. Support for the YT8821 was recently introduced for the Cudy WR3000H router [2]. On the AP3000, the changes allow the PHY to be autodetected. [1]: https://forum.openwrt.org/t/cudy-ap3000-v1-indoor-wan-motorcomm-yt8821-support/245491 [2]: https://github.com/openwrt/openwrt/pull/21399 Signed-off-by: Anton Danilov <frimen.c@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21776 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
24af2fefbf |
mediatek: add support for netis NX62
Same hardware as Netcore N60 Pro Add: DEVICE_ALT0_VENDOR := netis DEVICE_ALT0_MODEL := NX62 DEVICE_ALT0_VARIANT := V1 Signed-off-by: Alexey Lotosh <lotosh@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21581 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
02b2dd3508 |
mediatek: filogic: add 8GB builds for BPI-R4
Add builds for Bananapi R4 with 8GB RAM. Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Link: https://github.com/openwrt/openwrt/pull/21437 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
7d79346581 |
mediatek: filogic: add support for Tenda BE12 Pro
This patch adds support for Tenda BE12 Pro. The stock bootloader requires a specific 16-byte header (Magic: "God1") to correctly verify and boot the Linux kernel from flash. A new image command `tenda-mkdualimageheader` is added to generate this header and append the checksum/size information required for the device to boot successfully. Hardware Specification: - SoC: MediaTek MT7987A (Quad-core ARM Cortex-A53 2.0 GHz) - RAM: 512 MiB DDR4 - Flash: 128 MiB SPI-NAND - WiFi: MediaTek MT7992E (WiFi 7) - 2.4GHz: b/g/n/ax/be (4x4 MIMO) - 5GHz: a/n/ac/ax/be (4x4 MIMO) - Ethernet: - 3x 10/100/1000 Mbps LAN (Airoha AN8855AE Switch) - 1x 10/100/1000/2500 Mbps LAN (SoC internal PHY) - 1x 10/100/1000/2500 Mbps WAN (Airoha EN8811H PHY) - Buttons: Reset, WPS - LEDs: 2x (Blue: System/Run, Red: Alarm) - UART: 115200 8n1 (VCC, RX, TX, GND) Flash Layout: - 0x000000 - 0x300000 : Bootloader - 0x300000 - 0x380000 : u-boot-env - 0x380000 - 0x780000 : Factory - 0x780000 - 0xd80000 : kernel - 0xd80000 - 0x6780000 : ubi (rootfs) - 0x6780000 - 0x6b80000 : CFG - 0x6b80000 - 0x6f80000 : MISC2 MAC Addresses (NVMEM): - Base MAC located at Factory partition offset 0x4 - gmac2 (WAN) : Base - 2 (Label MAC) - gmac0 (LAN) : Base - 1 - gmac1 (LAN) : Base - 3 - 2.4 GHz : Base - 5 GHz : Base + 1 Installation: 1. Connect via UART and interrupt U-Boot by pressing 'Ctrl+C' during boot. 2. Set up a TFTP server on a computer (IP 192.168.1.2) containing 'openwrt-initramfs.bin'. 3. Load the initramfs image: tftpboot openwrt-initramfs.bin 4. Boot the image: bootm 5. Once booted into OpenWrt initramfs, perform a sysupgrade with the sysupgrade image. Signed-off-by: Chen Minqiang <ptpt52@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21461 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
6ff4557317 |
mediatek: add support for Airpi AP3000M
This adds support for the Airpi AP3000M 5G CPE based on MediaTek MT7981B. Specifications: SoC: MediaTek MT7981B (dual-core ARM Cortex-A53) RAM: 1GB DDR4 Storage: 8GB or 16GB eMMC Ethernet: 1x 2.5GbE LAN, 1x 1GbE WAN Wireless: 2.4GHz/5GHz 802.11ax Buttons: Reset, WPS LEDs: System, 2.4GHz WiFi, 5GHz WiFi Cooling: PWM-controlled fan Expansion: M.2 slot for 5G modem The factory partition (mmcblk0p2) is empty in stock firmware. Execute via SSH before flashing OpenWrt: ``` dd if=/lib/firmware/MT7981_iPAiLNA_EEPROM.bin of=/dev/mmcblk0p2 bs=4k count=1 MAC addresses ``` Fixed MAC addresses are derived by macaddr_generate_from_mmc_cid. Installation via U-Boot web page Set static IP 192.168.88.2/255.255.255.0 on your computer. Connect to the 1GbE port (WAN) and hold the reset button while booting the device. Wait for about 6 seconds, and release the reset button. Open U-boot web page on your browser at http://192.168.88.1 Select the OpenWRT sysupgrade image, upload it, and start the upgrade. Wait for automatic reboot. Installation via sysupgrade Flash the sysupgrade file via LuCI upgrade page without saving the settings. Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21397 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
dbafbab876 |
mediatek: add Motorcomm PHY driver to Cudy WR3000H
Recent Cudy WR3000H v1 units have a Motorcomm YT8821 2.5G PHY for the WAN interface instead of the RTL8221B PHY used in earlier units, so add kmod-phy-motorcomm to be able to use it. Signed-off-by: Andrew MacIntyre <andymac@pcug.org.au> [linuxtardis@gmail.com: slightly reworded the commit description] Signed-off-by: Jakub Vaněk <linuxtardis@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21399 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
93e9e67ee9 |
mediatek: remove erroneous pipe action from BE7200 recipe
Remove the errorneous pipe action from the BE7200 device package list.
It causes visible errors into config:
perus@ub2510:/OpenWrt/aarch64$ make defconfig
...
tmp/.config-target.in:55023:warning: ignoring unsupported character '|'
tmp/.config-target.in:191877:warning: ignoring unsupported character '|'
tmp/.config-target.in:191878:warning: ignoring unsupported character '|'
tmp/.config-target.in:285812:warning: ignoring unsupported character '|'
tmp/.config-target.in:285815:warning: ignoring unsupported character '|'
tmp/.config-target.in:285819:warning: ignoring unsupported character '|'
tmp/.config-target.in:285820:warning: ignoring unsupported character '|'
#
# configuration written to .config
#
File tmp/.config-target.in:
55020 select DEFAULT_urandom-seed
55021 select DEFAULT_urngd
55022 select DEFAULT_wpad-basic-mbedtls
55023 select DEFAULT_|
55024 help
55025 Build firmware images for Routerich BE7200
Fixes:
|
||
|
|
479f1403f2 |
mediatek: add support for device zbt-z8103ax-c
- adopted MTD partition size increase from 64M to 128M
-> this allows boot to complete
- moved MAC addressing stuff out of partition definitions
- all MAC addressing stuff is in .dtsi
Specifications:
SoC: MediaTek MT7981B
RAM: 256MiB
Flash: Winbond SPI-NAND 128 MiB
Switch: 1 WAN, 3 LAN (Gigabit) MediaTek MT7531
Buttons: Reset, Mesh
Power: DC 12V 1A
WiFi: MT7981B 2.4Ghz & 5.8Ghz
Led Layout from bottom to top:
Power
Mesh (RGB Led, user controllable, default set to OpenWrt Status)
WLAN 2 GHz (user controllable)
WAN (user controllable)
LAN3
LAN2
LAN1
WLAN 5 GHz (Not on front panel but blinks through enclosure,
user controllable)
Buttons:
Reset
Mesh (user controllable, no default function)
Installation:
A. Through U-Boot menu:
- Prepare your connecting computer to use a static IP in
network 192.168.1.0/24
- Power down the router and hold in the Reset button.
- While holding in the button power up the router again.
- Hold the button in for 10 seconds and then release.
- Use your browser to go to 192.168.1.1
- If you see a GUI allowing for flashing firmware then
you got the right model.
- Upload the sysupgrade file.
Note: Recovery GUI can be used to recover from an incorrect
firmware flash.
B. Through OpenWrt Dashboard:
If your router comes with OpenWrt preinstalled
(modified by the seller), you can easily upgrade
by going to the dashboard (192.168.1.1) and then
navigate to System -> Backup/Flash firmware,
then flash the firmware
MAC Addresses were found in Factory partition:
offset 0x4 F8:5E:3C:xx:xx:aa --> Router Label -2
offset 0xa F8:5E:3C:xx:xx:bb --> Router Label -1
offset 0x24 F8:5E:3C:xx:xx:cc --> Router Label +1
offset 0x2a F8:5E:3C:xx:xx:yy --> printed on Router Label
Signed-off-by: Jörg Seitz <github.joeterminal@xoxy.net>
Link: https://github.com/openwrt/openwrt/pull/19823
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
afad4c71f8 |
mediatek: filogic: add support for Cudy AP3000 Wall v1
This commit adds support for the Cudy AP3000 Wall v1. SoC: MediaTek MT7981b RAM: 256MiB Flash: spi-nand spi0.0: 128 MiB Wifi: MediaTek MT7981 2x2 DBDC 802.11ax 2T2R (2.4 / 5) LEDs: 1 LED in two colors (red & white) Buttons: 1 reset, 1 led on/off Ethernet: 5x 1GbE Power: PoE powered (standalone) The stock firmware is a customized variant of OpenWrt, which implements a signature check that only allows flashing official firmware. Cudy offers intermediate OpenWrt firmware images on their website [1][2] which do not implement the signature check. After flashing the intermediate image the upstream official OpenWrt image can be installed. The stock firmware can be recovered via TFTP using the U-Boot based boot loader[3]. Set up a TFTP server on your computer with IP 192.168.1.88/24 serving the stock firmware from Cudy's website renamed to "recovery.bin". Press and hold the reset button while powering on the device, wait for the TFTP server to send the recovery.bin file, then release the reset button. The router will take a couple of minutes to reboot and set up the stock firmware. [1] https://www.cudy.com/blogs/faq/openwrt-software-download [2] https://drive.google.com/drive/folders/1BKVarlwlNxf7uJUtRhuMGUqeCa5KpMnj [3] https://www.cudy.com/en-us/blogs/faq/how-to-recovery-the-cudy-router-from-openwrt-firmware-to-cudy-official-firmware Signed-off-by: Derek Denk <derek.denk@live.com> Link: https://github.com/openwrt/openwrt/pull/21266 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
ff5e66a920 |
mediatek: add support for Routerich BE7200
This PR adds support for Routerich BE7200 router.
Specification
-------------
- SoC : MediaTek MT7987A Quad-core ARM Cortex-A53 2.0 GHz
- RAM : 1024 MiB DDR4
- Flash : SPI-NAND 512 MiB (Giga Device)
- WLAN : MediaTek MT7992E, WiFi 7
- 2.4 GHz : b/g/n/ax, MIMO 4x4
- 5 GHz : a/n/ac/ax, MIMO 4x4
- Ethernet : 10/100/1000 Mbps x3 (LAN, Airoha AN8855AE)
10/100/1000/2500 Mbps x1 (WAN, SoC internal phy)
- USB : 3.0 x1
- Buttons : Mesh, Reset
- LEDs : 1x Status (blue), gpio-controlled
1x WiFi (blue), gpio-controlled
1x mesh (blue), gpio-controlled
3x LAN activity (blue), gpio-controlled
1x WAN activity (blue), gpio-controlled
1x WAN no-link (red), gpio-controlled
- Power : 12 VDC, 1.5 A
Installation
------------
1. Update stock firmware via the web interface (don't keep settings).
Update U-Boot (optional)
------------------------
After installing OpenWrt, you may want to install opensource U-Boot.
1. Install kmod-mtd-rw:
apk update && apk add kmod-mtd-rw
2. Unlock bootloader:
insmod mtd-rw i_want_a_brick=1
mtd unlock BL2
mtd unlock FIP
3. Download and write open-source BL2 and FIP:
cd /tmp
wget https://.../openwrt-mediatek-filogic-routerich_be7200-preloader.bin
wget https://.../openwrt-mediatek-filogic-routerich_be7200-bl31-uboot.fip
mtd write /tmp/openwrt-mediatek-filogic-routerich_be7200-preloader.bin BL2
mtd write /tmp/openwrt-mediatek-filogic-routerich_be7200-bl31-uboot.fip FIP
4. Reboot the router.
Return to stock
---------------
1. Update OpenWrt wirh the vendor's firmware (don't keep settings).
Recovery (original U-Boot)
-----------------------------
1. Press Reset button and power on the router. After ~10 sec release
the button;
2. Upload and flash squashfs-sysupgrade.itb image via the web interface.
Recovery (open-source U-Boot)
-----------------------------
1. Place OpenWrt
'openwrt-mediatek-filogic-routerich_be7200-initramfs-recovery.itb'
image on the tftp server (IP: 192.168.1.254)
2. Press Reset button and power on the router. After ~10 sec release
the button.
3. Use OpenWrt initramfs system for recovery
Recovery (full disaster)
------------------------
Use UART and mtk_uartboot tool.
Link: https://github.com/981213/mtk_uartboot
USB power control
-----------------
Disable: echo disabled > /sys/devices/platform/usb-power/state
Enable: echo enabled > /sys/devices/platform/usb-power/state
UART
----
UART pins are silkscreened on the PCB. Don't connect Vcc.
Serial connection parameters: 115200, 8n1, 3.3V
MAC addresses
-------------
+---------+-------------------+-----------+
| | MAC | Algorithm |
+---------+-------------------+-----------+
| WAN | 24:0f:5e:xx:xx:30 | label |
| LAN | 24:0f:5e:xx:xx:31 | label+1 |
| WLAN 2g | 24:0f:5e:xx:xx:32 | label+2 |
| WLAN 5g | 24:0f:5e:xx:xx:33 | label+3 |
+---------+-------------------+-----------+
The WLAN 2g MAC was found in 'Factory', 0x4
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21235
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
b71f4665cd |
mediatek: filogic: fix supported_devices list for gl-mt2500
The SUPPORTED_DEVICES sets for both Maxlinear (v1) and Airoha (v2) devices were identical, so sysupgrade was unable to detect when an incorrect image was being installed. This caused "soft bricking" of devices when a v1 image was installed on a v2 device, and vice versa. Fix this by making the supported_devices distinct for each device version, by renaming the devices with a version-specific name. This is reflected in the file name and the image metadata. Fixes: https://github.com/openwrt/openwrt/issues/20566 Fixes: https://github.com/openwrt/asu/issues/1525 Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20632 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |