mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-05 01:46:11 +02:00
402 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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: 46ab9f3f1c ("filogic: add support for Netgear EAX17")
Signed-off-by: Jascha Sundaresan <flizarthanon@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22839
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||
|
|
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 20e4a18feb3f). However, the Motorcomm YT8821 PHY is tricky to support because of a MDIO address collision within the router. Specification: - MT7981BA CPU: dual-core ARM Cortex-A53 @ 1.3 GHz - 256 MiB RAM - 128 MiB SPI NAND - Ethernet: - 1x 1GbE LAN port driven by the internal MT7981 PHY - 1x 2.5GbE WAN port driven by the Motorcomm YT8821 - WiFi: - MT7981BA 2.4 GHz WiFi with 2x2:2 MIMO - MT7981BA 5 GHz WiFi with 2x3:2 MIMO - Buttons: Reset, WPS - LED: 1x combined red/white How to know if you have the a router with the YT8821 PHY: - Boot the router into the vendor's firmware. Go to Diagnostic Tools -> System Log. Try searching for "rtl8221b". - If there are some matches, you have the Cudy M3000 router with the Realtek PHY and you should NOT use the device defined in this commit. Instead, you should use the device defined in mt7981b-cudy-m3000-v1.dts. - If there are no matches, try searching for "yt8821". If that matches something, you have the Cudy M3000 with the Motorcomm PHY and you should use this device tree (mt7981b-cudy-m3000-v2-yt8821.dts). - If even the yt8821 string did not match anything, then something is wrong. Rebooting the router might help (the system log would be refreshed). Installation via the Cudy web UI: - Download the signed intermediary firmware from https://drive.google.com/drive/folders/1BKVarlwlNxf7uJUtRhuMGUqeCa5KpMnj - Flash the intermediary firmware using the Cudy web UI - Connect a PC/laptop to the "1Gbps LAN" port - Open http://192.168.1.1 in your browser, log in (the password should be empty) - Flash your desired OpenWrt firmware via LuCI - The router should reboot into the desired firmware How to access UART (citing from 20e4a18feb3f): - remove rubber ring on the bottom - remove screws - pull up the cylinder, maybe help by push on an ethernet socket with a screwdriver - remove the (3) screws holding the board in the frame - remove the board from the frame to get to the screws for the silver, flat heat shield - remove the (3) screws holding the heat shield - solder UART pins to the back of the board - make sure to have the pins point out on side with the black, finned heat spread - the markings for the pins are going to be below the silver heat shield - Vcc is not needed - the UART parameters are 115200 baud, 8n1 Installation via UART (citing from 20e4a18feb3f): - attach an Ethernet cable to the "1Gbps LAN" port on the router - hold the reset button while powering the router - press CTRL-C or wait for the timeout to get to the U-Boot prompt - prepare a TFTP server on the network to supply ..-initramfs-kernel.bin - use 'tftpboot 0x46000000 ..-initramfs-kernel.bin' in the U-Boot shell to pull the image (change the file name accordingly) - boot the image using 'bootm 0x46000000' - push the ..-sysupgrade to the router using your preferred method - perform the upgrade with 'sysupgrade -n' 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> |
||
|
|
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 57a127c9e79db96f4dbf262db9e1a808bd474ddf Closes: #19878 Signed-off-by: Felix Baumann <felix.bau@gmx.de> Link: https://github.com/openwrt/openwrt/pull/19884 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
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: ff5e66a9208a ("mediatek: add support for Routerich BE7200")
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Link: https://github.com/openwrt/openwrt/pull/21376
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
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> |
||
|
|
15df98f3b5 |
mediatek: add ubootmod layout for Cudy WBR3000UAX v1
This allows us to use the full size of nand, which extends ubi size from 64Mb to 122.25Mb. If you are at factory firmware, please refer to [PR](https://github.com/openwrt/openwrt/pull/21141) to boot into OpenWrt first. 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: ```bash 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`: ```bash mtd write openwrt-mediatek-filogic-cudy_wbr3000uax-v1-ubootmod-preloader.bin BL2 mtd write openwrt-mediatek-filogic-cudy_wbr3000uax-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_wbr3000uax-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 & create ubootenvs: ```bash 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 ``` 4. Perform sysupgrade. Tested-by: 4pda users Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21225 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
d7d6faf26f |
mediatek: add support for Cudy WBR3000UAX v1
Another OEM variation of a Cudy WR3000 series device made for Russian market. Hardware: - SoC: MediaTek MT7981B - CPU: 2x 1.3 GHz Cortex-A53 - Flash: 128 MiB GigaDevice SPI NAND. Flash Model: F50L1G41LB, ID: C801 - RAM: DDR3, 512 MiB - WLAN: 2.4 GHz, 5 GHz (MediaTek MT7976CN, 802.11ax) - 1x WAN MT7531 (JXD 2531Z) 10/100/1000 Mbps - 4x LAN 2x MT7530 (JXD 2529S) 10/100/1000 Mbps - USB 3.0 port - Buttons: Reset, WPS - 8x LEDs: 2x Red, 6x Blue - Serial console: no need to solder, just open the case and unskrew the radiator, TX-RX, RX-TX, GND-GND, VCC do not connect, 115200 8n1 - Power: 12 VDC, 1.5 A +---------+-------------------+-----------+ | | MAC | Algorithm | +---------+-------------------+-----------+ | WAN | 80:AF:CA:xx:xx:x1 | label+1 | | LAN | 80:AF:CA:xx:xx:x0 | label | | WLAN 2g | 80:AF:CA:xx:xx:x0 | label | | WLAN 5g | 82:AF:CA:xx:xx:x1 | label+1 | +---------+-------------------+-----------+ Based on a factory layout with only 64mb partition for easier transition from factory to OpenWrt for users if the "intermediate" RSA signed firmware will be provided by Cudy. **Installation** The installation must be done via UART & TFTP by disassembling the router. On other occasions Cudy has distributed intermediate firmware and dts to make installation easier, but since this router is OEM special WB order for local RU market there is a possibility they will not provide it. **Install using UART & TFTP** 1. Connect to UART. 2. Since the factory BL is locked and the boot process can not be stopped, you have to use mtkuartboot, hold reset, engage the power, boot into your payloaded bl2 & fip. 3. Connect to LAN and set your IP to 192.168.1.254. 4. Configure a TFTP server to serve openwrt-mediatek-filogic-cudy_wbr3000uax-v1-initramfs-kernel.bin file. 5. Run these steps in u-boot using the name of your file: ``` setenv bootfile openwrt-mediatek-filogic-cudy_wbr3000uax-v1-initramfs-kernel.bin setenv ipaddr 192.168.1.1 setenv serverip 192.168.1.254 tftpboot bootm ``` 6. Router will boot into OpenWrt initramfs recovery, just open your browser `192.168.1.1` and sysupgrade with the `Keep settings` option turned off. Tested-by: many 4pda users Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21225 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
f4c9ab6591 |
arm-trusted-firmware-mediatek: add Cudy DDR3 target
Since there are many similar devices from Cudy (TR3000 / WR3000E / WR3000P / WR3000S / WBR3000UAX) this will allow to create OpenWrt U-Boot layout for all of them using same DDR3 target. Tested-by: 4pda users Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21225 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
436c9af039 |
mediatek: add support for Elecom WRC-G01
Hardware is identical to WRC-X3200GST3. - SoC: MediaTek MT7622 - RAM: 512MB - Flash: 128MB SPI-NAND The -W suffix in the retail name (WRC-G01-W) denotes the casing color and is omitted from the model name in the OpenWrt configuration to maintain consistency with other Elecom devices. Signed-off-by: Yuhei Amemiya <minihui@me.com> Link: https://github.com/openwrt/openwrt/pull/21238 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
9da57e2f82 |
mediatek: add kmod-usb3 to default package set of WR3000P
Include XHCI USB drivers on the Cudy WR3000P v1 router, the drivers are required to be able to use the USB port for USD devices. Closes: https://github.com/openwrt/openwrt/issues/21231 Fixes: 04e9d154f209 ("mediatek: filogic: add support for Cudy WR3000P v1") Signed-off-by: Dmitry Mostovoy <dmitry.mostovoy@ceifx.com> Link: https://github.com/openwrt/openwrt/pull/21281 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
114b5c2063 |
mediatek: filogic: Add support ASUS RT-AX57M
ASUS RT-AX57M, RT-AX54HP V2, RT-AX1800HP V2, RT-AX1800S V2, and RT-AX3000S all use the same firmware and have identical hardware Hardware -------- SOC: MediaTek MT7981b RAM: 256MB DDR3L (Winbond W632GU6NB-09) FLASH: 128MB SPI-NAND (Winbond W25N01KVZEIR) WIFI: Mediatek MT7981b + Mediatek MT7976DAN 802.11ax 2.4/5 GHz ETH: MediaTek MT7531AE Switch UART: 3V3 115200 8N1 (Pinout silkscreened / Do not connect VCC) MAC addresses ------------- LAN Label MAC (stored in mtd ubi Factory partition at offset 0x4) WAN LAN 2.4G LAN + 2 in first octet 5G LAN Installation ----------------------------------------------------------- Vendor-UI Method ----------------------------------------------------------- 1. Download the OpenWrt initramfs.trx image. 2. Connect the PC via LAN to one of the yellow router ports and wait until your PC to get a DHCP lease. 3. Browse to http://192.168.1.1 (or whatever your router IP is configured as) 4. If your router is brand new, finish the setup process and log into the Web-UI. 5. Navigate to Administration -> Firmware Upgrade and upload the downloaded OpenWrt initramfs.trx image. 6. Wait for OpenWrt to boot. Open the default OpenWrt IP in a web browser and perform a system upgrade using the sysupgrade image as instructed in the top banner. --------------------------------------------------------------------------- Revert to stock firmware: 1: Install package facinstall -> https://forum.openwrt.org/t/facinstall-package-for-easy-installation-factory-images/177587 2. Install Asus stock trx image via OpenWRT LuCI interface. Signed-off-by: Garrett Mesmer <garrettmesm@gmail.com> Co-authored-by: Oleg S <remittor@gmail.com> Signed-off-by: Oleg S <remittor@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20491 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
79dac8f57c |
arm-trusted-firmware-mediatek: use MT/s as DDR speed unit
Usually we do not use MHz to describe the DDR transmission rate. In fact, the clock frequency of the DDR3-1866 is only 933 MHz. MT/s is a more commonly used unit. Signed-off-by: Shiji Yang <yangshiji66@outlook.com> |
||
|
|
6bfb305394 |
mediatek: filogic: TP-Link Archer AX80 v1 (EU) support
Device specification
SoC Type: MediaTek MT7986B, Cortex-A53, 64-bit 1.6GHz Quad Core
RAM: ESMT M15T4G16256 (512MB)
Flash: ESMT F50L1G41LB (128 MB)
Ethernet: MediaTek MT7531AE + 2.5GbE MaxLinear GPY211C0VC (SLNW8)
Ethernet: 1x2.5Gbe (WAN/LAN 2.5Gbps), 4xGbE (WAN/LAN 1Gbps, LAN1, LAN2, LAN3)
WLAN 2g: MediaTek MT7975
WLAN 5g: MediaTek MT7975
LEDs: All White(probably)
Buttons: 4 (Reset,ledswitch,wps,wlan),
USB ports: 1 (USB 3.0)
Power: 12 VDC, 2.0 A
Connector: Barrel
Bootloader: Main U-Boot - U-Boot 2022.01-rc4. Additionally, both UBI
slots contain "seconduboot" (also U-Boot 2022.01-rc4)
Serial console (UART)
V
+-------+-------+-------+-------+
| +3.3V | GND | TX | RX |
+---+---+-------+-------+-------+
|
+--- Don't connect
CPU BLOCK HERE LAN PORTS HERE
Installation (UART)
Note: There might be methods without UART possible soon.
Place OpenWrt initramfs image on tftp server with IP 192.168.1.2
Attach UART, switch on the router and interrupt the boot process by pressing 'Ctrl-C'
Load and run OpenWrt initramfs image:
tftpboot initramfs-kernel.bin
bootm
!!Attention!! is very important! After entering OpenWrt, please set / update the environment variables:
fw_setenv bootargs "ubi.mtd=ubi0 console=ttyS0,115200n1 loglevel=8 earlycon=uart8250,mmio32,0x11002000 init=/etc/preinit"
fw_setenv mtdids "spi-nand0=spi-nand0"
fw_setenv mtdparts "spi-nand0:2M(boot),1M(u-boot-env),50M(ubi0),50M(ubi1),8M(userconfig),4M(tp_data),8M(mali_data)"
fw_setenv tp_boot_idx 0
Run 'sysupgrade -n' with the sysupgrade OpenWrt image from console or Luci WebUI.
Recovery
Press Reset button and power on the router
Navigate to U-Boot recovery web server (192.168.1.1) and upload the OEM firmware
Stock layout
0x000000000000-0x000000200000 : "boot"
0x000000200000-0x000000300000 : "u-boot-env"
0x000000300000-0x000003500000 : "ubi0"
0x000003500000-0x000006700000 : "ubi1"
0x000006700000-0x000006f00000 : "userconfig"
0x000006f00000-0x000007300000 : "tp_data"
0x000007300000-0x000007B00000 : "mali_data"
ubi0/ubi1 format
U-Boot at boot checks that all volumes are in place:
+-------------------------------+
| Volume Name: uboot Vol ID: 0|
| Volume Name: kernel Vol ID: 1|
| Volume Name: rootfs Vol ID: 2|
+-------------------------------+
MAC addresses
+---------+-------------------+-----------+
| label | 00:eb:xx:xx:xx:be | label |
| LAN | 00:eb:xx:xx:xx:be | label |
| WAN | 00:eb:xx:xx:xx:bf | label+1 |
| WLAN 2g | 00:eb:xx:xx:xx:be | label |
| WLAN 5g | 00:eb:xx:xx:xx:bd | label-1 |
+---------+-------------------+-----------+
label MAC address was found in UBI partition "tp_data", file "default-mac".
OEM wireless eeprom is also there (file "MT7986_EEPROM.bin").
Signed-off-by: Emre Yavuzalp <emreyavuzalp2@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20630
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
344bb7f916 |
mediatek: filogic: add support Netcore NX30V2/N30PRO/POWER30AX/W7/GW3001
Hardware specification:
SoC: MediaTek MT7981B
Flash: ESMT F50L1G41LB 128MB
RAM: ESMT M15T2G16128A DDR3 256MB
Ethernet: 3x 1G
Button: Reset, WPS
MAC addresses
LAN: Label MAC (stored in Factory partition offset 0x1fef20)
WAN: LAN + 1
WiFi: LAN
Official LED layout, from left to right:
[power] [internet] [wps] [wifi] [lan3/2/1] [wan]
Redefinition for OpenWrt:
[power]: used for led-boot, led-failsafe, and led-running
[internet]: used for WAN RX/TX indication
[wps]: used for led-upgrade
[wifi] and [lan3/2/1]: unchanged
[wan]: used for WAN link indication
Installing OpenWrt:
- Setup a tftp server on your PC. Copy
xxx-preloader.bin, xxx-bl31-uboot.fip and
xxx-initramfs.itb to tftp root directory.
- Connect to the router via ssh or telnet,
username: useradmin, password is the web
login password of the router.
- Backup all critical flash partitions with
the following commands where x.x.x.x is
the IP of your PC.
IP=x.x.x.x
cd /dev
for d in /sys/class/mtd/mtd?; do
if [ "$(cat $d/name)" = "BL2" ]; then
tftp -l $(basename $d) -r bl2.img -p $IP
elif [ "$(cat $d/name)" = "FIP" ]; then
tftp -l $(basename $d) -r fip.bin -p $IP
elif [ "$(cat $d/name)" = "Factory" ]; then
tftp -l $(basename $d) -r factory.bin -p $IP
fi
done
for d in /sys/devices/virtual/ubi/ubi0/ubi0_*; do
[ "$(cat $d/name)" != "customer" ] && continue
tftp -l $(basename $d) -r customer -p $IP
break
done
- Flash with the following commands:
cd /tmp
tftp -r xxx-preloader.bin -g x.x.x.x
tftp -r xxx-bl31-uboot.fip -g x.x.x.x
mtd write xxx-preloader.bin spi0.0
mtd write xxx-bl31-uboot.fip FIP
mtd erase ubi
- Set a static ip(192.168.1.254) for your PC.
And then reboot the router. It will run
initramfs image automatically.
- After openwrt boots up, perform sysupgrade
via web UI.
Reverting to the vendor firmware:
- Setup a tftp server on your PC with ip
address 192.168.1.254. And make sure
bl2.img, fip.bin, factory.bin and customer
are located in tftp root directory.
- Power off the router.
- Press and hold WPS key, then power on
the router.
- Release WPS key, when internet/wifi/wps
leds are blinking.
- Wait until internet/wifi/wps leds light
up, power off the router.
- Press and hold reset key, power up the
router, release reset key 15s later.
- Connect to http://192.168.1.1, now you
can upload vendor .bin firmware.
Uboot netconsole:
Uboot netconsole can be enabled by WPS
or reset key.
- Setup a linux PC with ip 192.168.1.254.
Open a new terminal and execute
'stty -isig -echo cbreak; nc -lup 6666'
- Press and hold WPS(or reset) key, then
power on the router.
- Release key once internet/wifi/wps leds
are all on.
NOTE: don't hold the key more than 5s
after internet/wifi/wps leds on, or it
will try to revert to vendor firmware.
- 5s later, uboot bootmenu will show on
the terminal.
Signed-off-by: Zhiwei Cao <bfdeh@126.com>
Link: https://github.com/openwrt/openwrt/pull/18631
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
26ff8efc8a |
mediatek: filogic: replace spaces with tabs for indentation
This commit replaces the 7-8 spaces with 1 tab to modify the indentation appropriately. Signed-off-by: Brian Lee <larte332@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21018 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
011890ad93 |
mediatek: filogic: add support for Kebidumei AX3000-U22
Kebidumei AX3000-U22 is one of many clones of the same range extender
that can be found on Aliexpress or other Chinese portals.
The easiest way to identify this model is by searching for "AX3000
Repeater" and picking the device that looks like mine [0].
Specification:
- SoC: MediaTek MT7981B (1.3 GHz)
- RAM: 256 MB
- Flash: 16 MB SPI NOR
- Ports: 1 x 1 GbE
- Antenna: 6 (2 fake)
- WiFi: MediaTek dual-band WiFi 6
- 2.4 GHz: b/g/n/ax, MIMO 2x2
- 5 GHz: a/n/ac/ax, MIMO 2x2
- Buttons: Reset & WPS
- LEDs: Ethernet (green), Status (red, green, blue)
- Power: 110–240 V AC (internal PSU, board uses 12 V DC)
- Serial: unmarked connector on PCB
[1: Vcc, 2: RX, 3: TX, 4: GND]
Install via OEM web UI:
1. Use reset button to perform factory reset.
2. Connect PC to LAN port and obtain DHCP address.
3. Upload the sysupgrade image via OEM firmware upgrade page,
e.g. http://192.168.18.1/upgrade.html
4. After reboot, hold reset button to clear leftover vendor config.
Install via serial:
1. Connect serial console (115200 8N1).
2. Enter the console.
3. Backup mtd4 partition if you want to restore OEM FW later.
4. Download image.
5. Run 'sysupgrade -n'.
Revert to stock:
1. Run sysupgrade without keeping config using mtd4 backup.
[0] https://openwrt.org/_media/media/kebidumei_ax3000-u22.png
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20287
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
cc2aefe619 |
mediatek: add Keenetic KN-1812/Netcraze NC-1812 support
This commit adds support for Keenetic KN-1812/Netcraze NC-1812
Device specification
--------------------
SoC Type: MediaTek MT7988D, Cortex-A73, 64-bit
RAM: 1024MB DDR4 Micron MT40A512M16TB-062E:R
Flash: SPI NAND Winbond W25N02KV (256 MiB)
Ethernet: 4x1GbE (internal MT7988 built-in) + 2.5GbE (internal MT7988 phy) + 10GbE (RTL8261BE)
WLAN: MT7992AV
WLAN 2g: MediaTek MT7975N, b/g/n/ax/be, MIMO 4x4
WLAN 5g: MediaTek MT7977B, a/n/ac/ax/be, MIMO 4x4
LEDs: 5 LEDs, 1 power green, 1 internet green,
2x fn green, 1 wlan green, gpio-controlled
Button: 4 (Reset, WPS, FN1, FN2)
USB port: Yes, 1xUSB3.2 and 1xUSB2.0 (via GL850G)
Power: 12 VDC, 3 A
Notes:
* The device supports dual boot mode
* Fn2 led reassigned to wlan 2.4
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. a) Keenetic
Rename "openwrt-mediatek-filogic-keenetic_kn-1812-squashfs-factory.bin"
to "KN-1812_recovery.bin" and place it in tftp server directory.
b) Netcraze
Rename "openwrt-mediatek-filogic-netcraze_nc-1812-squashfs-factory.bin"
to "NC-1812_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/20737
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||
|
|
ff1419f895 |
mediatek: filogic: add support for Widelantech WAP430X
This AX3000 flying saucer-shaped device is sold under a few names: - Widelantech WAP430X http://www.widelantech.com/?m=home&c=View&a=index&aid=131 - Felicomm - UeeVii UAP200 (sold on amazon.com) True name, as marked on the PCB and as appears in the DTS, is WAP430X. Hardware: - SoC: Mediatek MT7981B - RAM: 256MiB DDR3 - ROM: 16MiB NOR flash (Winbond 25Q128JVSQ) - Wired: one GbE RJ45 port - Wireless: Mediatek MT7976CN DBDC - Antennas: Internal (two 2.4 GHz 4.5 dBi, three 5 GHz 6 dBi) - GPIO: two blue LEDs (status, WLAN), one button (reset) - Power: DC5521 (12V) or 802.3af PoE (48V 0.3A) - UART: J500 on PCB [3v3] (Rx) (Tx) (Gnd), 115200n Original firmware is GECOOS 8.0_2024081000, a fork of OpenWrt 21.02 created by Widelantech. All ports are closed except 443 (web management interface) and 80 (redirects to 443). UART is locked down, but U-Boot bootloader is friendly. Installation is done via UART (see note below). Method 1: press any key during boot to enter MTK U-Boot bootloader, then choose option 2 (Upgrade firmware) and upload sysupgrade binary via TFTP (or via Xmodem). Method 2: put sysupgrade binary on a webserver (http, not https); after GECOOS loads, choose option 4 (固件在线升级 = online firmware upgrade) in the menu and enter the URL to the sysupgrade binary. Note: GECOOS has a slick web management, and firmware can be uploaded at https://6.6.6.6/#/system/sysupgrade but it's still not clear how to convert the sysupgrade binary to a factory binary accepted by the web interface (WIP). Signed-off-by: Rani Hod <rani.hod@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20402 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|
|
b2648d8951 |
mediatek: add support for Mercusys MR85X
This commit adds support for Mercusys MR85X router. Device specification: - SoC: Mediatek MT7981b, Cortex-A53, 64-bit - RAM: 512MB - Flash: SPI NAND GigaDevice GD5F1GQ5UEYIGY (128 MB) - Ethernet: Realtek rtl8367s + 2.5Gbe Airoha en8811h - Ethernet: 1x2.5Gbe (WAN 2.5Gbps), 3xGbe (LAN 1Gbps, port0, port1, port2) - Wireless: 2.4GHz (802.11 b/g/n/ax) - Wireless: 5GHz (802.11 a/n/ac/ax) - LEDs: 1 amber and 1 green status LEDs, 4 green gpio-controlled LEDs on ethernet ports - Buttons: 2 (reset,wps) - Bootloader: Main U-Boot - U-Boot 2022.07-rc3. Additionally, both UBI slots contain "seconduboot" (also U-Boot 2022.07-rc3) Installation (UART): - Place OpenWrt initramfs-kernel image on tftp server with IP 192.168.1.2 - Attach UART, switch on the router and interrupt the boot process by pressing 'Ctrl-C'. - Set the uboot environment for startup. setenv tp_boot_idx 0; saveenv If the bootarg is set to boot from ubi1, also change it to ubi0. - Load and run OpenWrt initramfs image. setenv serverip 192.168.1.2; setenv ipaddr 192.168.1.1; tftpboot initramfs-kernel.bin; bootm - Browse IP 192.168.1.1, upload the 'sysupgrade' image and do upgrade. Recovery: - Press Reset button and power on the router. - Navigate to U-Boot recovery web server (http://192.168.1.1/) and upload the OEM firmware. Stock layout: 0x000000000000-0x000000200000 : "boot" 0x000000200000-0x000000300000 : "u-boot-env" 0x000000300000-0x000003500000 : "ubi0" 0x000003500000-0x000006700000 : "ubi1" 0x000006700000-0x000006f00000 : "userconfig" 0x000006f00000-0x000007300000 : "tp_data" ubi0/ubi1 format: U-Boot at boot checks that all volumes are in place: +-------------------------------+ | Volume Name: uboot Vol ID: 0| | Volume Name: kernel Vol ID: 1| | Volume Name: rootfs Vol ID: 2| +-------------------------------+ MAC addresses: +---------+-------------------+-----------+ | | MAC | Algorithm | +---------+-------------------+-----------+ | label | 00:FF:xx:xx:xx:EE | label | | WAN | 00:FF:xx:xx:xx:EF | label+1 | | LAN | 00:FF:xx:xx:xx:EE | label | | WLAN 2g | 00:FF:xx:xx:xx:ED | label-1 | | WLAN 5g | 00:FF:xx:xx:xx:EC | label-2 | +---------+-------------------+-----------+ label MAC address was found in UBI partition "tp_data", file "default-mac". OEM wireless eeprom is also there, file "MT7981_EEPROM.bin". Signed-off-by: Schneider Azima <Schneider-Azima12@protonmail.com> Link: https://github.com/openwrt/openwrt/pull/19187 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |