mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-10-29 16:58:46 +00:00
- SoC : MediaTek MT7622A, dual-core 1.35 Ghz ARM Cortex-A53 CPU
- RAM : DDR3 512 MiB (Nanya NT5CC256M16ER-EKI)
- Flash : SPI-NAND 128 MiB (Winbond W25N01GVZEIG)
- Ethernet : 5 port Switch
- LAN :
4x 10/100/1000 Mbps RJ-45 Port
- WAN :
1x 10/100/1000 Mbps RJ-45 Port
- LED : 10x LEDs
1x Power (Blue, GPIO)
1x WiFi (Green, GPIO)
2x MiniPCIe (Orange)
1x M.2 B Key (Red)
5x Ethernet activity (White)
- UART : 1x4 pin header on PCB [J19]
- arrangement : 3.3V, TX, RX, GND
- settings : 115200, 8n1
- Button : 2x (Reset, WPS)
- GPS : 1x (Quectel L76-L)
- WiFi : 2x
WiFi 4 (MediaTek MT7622A)
WiFI HaLow (AsiaRF MM610X-001)
- BT : BT 4.2/BLE 5.0 (MediaTek MT7622A)
- Socket :
2x MiniPCIe (PCIe Gen2 + USB 2.0) with extra SPI interface (NI)
1x M.2 B key (USB 3.0)
1x SIM Card
1x USB-A (USB 2.0)
- Power : 12V DC, 1A
MAC addresses :
WLAN: 00:0A:52:xx:xx:xx (Factory, 0x6)
LAN: 00:0A:52:xx:xx:xx (Factory, 0x7fff4)
WAN: 00:0A:52:xx:xx:xx (Factory, 0x7fffa)
Note: To use SPI interface on mPCIe slot, weld 4x 0402 0R resistors on [R832-835] or [R960-963]
mPCIe mapping:
45# - SPI_CLK
47# - SPI_MISO
49# - SPI_MOSI
51# - SPI_CSN
Flash instruction through LuCI:
This device is flashed OpenWRT base firmware with this target.
The LuCI webpage is integrated in default for upgrading.
Flash instruction through u-boot:
1. Prepare the TFTP server on PC.
2. Connect uart to PC, select "2. System Load Linux Kernel then write to Flash via TFTP." in u-boot menu.
3. input flashed bin file path, server IP, client IP
4. Wait about 20 seconds to complete flashing
Signed-off-by: Elwin Huang <s09289728096@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19962
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
#
|
|
# Copyright (C) 2021 OpenWrt.org
|
|
#
|
|
|
|
[ -e /etc/config/ubootenv ] && exit 0
|
|
|
|
touch /etc/config/ubootenv
|
|
|
|
. /lib/uboot-envtools.sh
|
|
. /lib/functions.sh
|
|
|
|
ubootenv_add_mmc_default() {
|
|
ubootenv_add_mmc "ubootenv" "${1:-mmcblk0}" "0x0" "0x80000" "0x80000" "1"
|
|
ubootenv_add_mmc "ubootenv" "${1:-mmcblk0}" "0x80000" "0x80000" "0x80000" "1"
|
|
}
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
asiarf,ap7622-wh1)
|
|
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x1000" "0x10000"
|
|
;;
|
|
dlink,eagle-pro-ai-m32-a1|\
|
|
dlink,eagle-pro-ai-r32-a1)
|
|
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x2000" "0x2000"
|
|
;;
|
|
bananapi,bpi-r64|\
|
|
linksys,e8450-ubi)
|
|
. /lib/upgrade/fit.sh
|
|
export_fitblk_bootdev
|
|
case "$CI_METHOD" in
|
|
emmc)
|
|
bootdev=${EMMC_KERN_DEV%%p[0-9]*}
|
|
ubootenv_add_mmc_default "${bootdev#/dev/}"
|
|
;;
|
|
ubi)
|
|
ubootenv_add_ubi_default
|
|
;;
|
|
esac
|
|
;;
|
|
buffalo,wsr-2533dhp2)
|
|
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x1000" "0x20000"
|
|
;;
|
|
ruijie,rg-ew3200gx-pro)
|
|
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x20000" "0x20000"
|
|
;;
|
|
ubnt,unifi-6-lr-v1-ubootmod|\
|
|
ubnt,unifi-6-lr-v2-ubootmod|\
|
|
ubnt,unifi-6-lr-v3-ubootmod)
|
|
ubootenv_add_mtd "u-boot-env" "0x0" "0x4000" "0x1000"
|
|
;;
|
|
ubnt,unifi-6-lr-v2|\
|
|
ubnt,unifi-6-lr-v3)
|
|
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x1000" "0x1000" "1"
|
|
;;
|
|
xiaomi,redmi-router-ax6s)
|
|
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x40000"
|
|
ubootenv_add_uci_sys_config "/dev/mtd4" "0x0" "0x10000" "0x40000"
|
|
;;
|
|
esac
|
|
|
|
config_load ubootenv
|
|
config_foreach ubootenv_add_app_config ubootenv
|
|
|
|
exit 0
|