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:
- Prepare a TFTP server with 192.168.11.2
- Rename initramfs image to “linux.ubi-recovery” and put it to the TFTP directory
- Hold the “AOSS” button and power on WSR-3000AX4P, release after 7~ seconds
- The bootloader automatically downloads the initramfs image and boots with it
- After booting, upload a sysupgrade image to the device and perform sysupgrade with it
- Wait ~100 seconds to complete flashing
Reverting to stock image:
Download a official firmware and decrypt it by buffalo-enc
example:
buffalo-enc -i <official .bin> -o fw.dec -d -O 0xC8 -l
Upload the decrypted image to the device
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
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
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to build a complete firmware around it; for users this means the ability for full customization, to use the device in ways never envisioned.
Sunshine!
Download
Built firmware images are available for many architectures and come with a package selection to be used as WiFi home router. To quickly find a factory image usable to migrate from a vendor stock firmware to OpenWrt, try the Firmware Selector.
If your device is supported, please follow the Info link to see install instructions or consult the support resources listed below.
An advanced user may require additional or specific package. (Toolchain, SDK, …) For everything else than simple firmware download, try the wiki download page:
Development
To build your own firmware you need a GNU/Linux, BSD or macOS system (case sensitive filesystem required). Cygwin is unsupported because of the lack of a case sensitive file system.
Requirements
You need the following tools to compile OpenWrt, the package names vary between distributions. A complete list with distribution specific packages is found in the Build System Setup documentation.
Quickstart
Run
./scripts/feeds update -ato obtain all the latest package definitions defined in feeds.conf / feeds.conf.defaultRun
./scripts/feeds install -ato install symlinks for all obtained packages into package/feeds/Run
make menuconfigto select your preferred configuration for the toolchain, target system & firmware packages.Run
maketo build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.Related Repositories
The main repository uses multiple sub-repositories to manage packages of different categories. All packages are installed via the OpenWrt package manager called
opkg. If you’re looking to develop the web interface or port packages to OpenWrt, please find the fitting repository below.LuCI Web Interface: Modern and modular interface to control the device via a web browser.
OpenWrt Packages: Community repository of ported packages.
OpenWrt Routing: Packages specifically focused on (mesh) routing.
OpenWrt Video: Packages specifically focused on display servers and clients (Xorg and Wayland).
Support Information
For a list of supported devices see the OpenWrt Hardware Database
Documentation
Support Community
#openwrton oftc.net.Developer Community
#openwrt-develon oftc.net.License
OpenWrt is licensed under GPL-2.0