OpenWRT support for EX820v

Specifications:
SoC: MediaTek MT7986
RAM: 512MiB
Flash: SPI-NAND 128 MiB
Ethernet: 2x 2.5G 3x 1G
USB: 1x USB 3.0
Power: 12 VDC, 2.5 A

Link: https://service-provider.tp-link.com/wifi-router/ex820v/
Currently being sold by some Italian ISPs such as PianetaFibra.

U-Boot:

MT7986> bdinfo                       
boot_params = 0x0000000040000100
DRAM bank   = 0x0000000000000000
-> start    = 0x0000000040000000
-> size     = 0x0000000020000000
flashstart  = 0x0000000000000000
flashsize   = 0x0000000000000000
flashoffset = 0x0000000000000000
baudrate    = 115200 bps
relocaddr   = 0x000000005ff32000
reloc off   = 0x000000001e132000
Build       = 64-bit
current eth = ethernet@15100000
ethaddr     = 32:1e:1c:44:ef:a0
IP addr     = 192.168.1.1
fdt_blob    = 0x000000005ffc52c0
new_fdt     = 0x0000000000000000
fdt_size    = 0x0000000000000000
lmb_dump_all:
 memory.cnt  = 0x1
 memory[0]  [0x40000000-0x5fffffff], 0x20000000 bytes flags: 0
 reserved.cnt  = 0x1
 reserved[0]  [0x5f7fb170-0x5fffffff], 0x00804e90 bytes flags: 0
devicetree  = embed
arch_number = 0x0000000000000000
TLB addr    = 0x000000005fff0000
irq_sp      = 0x000000005f7ffd90
sp start    = 0x000000005f7ffd90
Early malloc usage: 6c8 / 4000
MT7986> mtd list
List of MTD devices:
* spi-nand0
  - device: spi_nand@1
  - parent: spi@1100a000
  - driver: spi_nand
  - path: /spi@1100a000/spi_nand@1
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 24 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
* nmbm0
  - type: Unknown
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 24 bytes
  - 0x000000000000-0x000007800000 : "nmbm0"
    - 0x000000000000-0x000000200000 : "boot"
    - 0x000000200000-0x000000300000 : "u-boot-env"
    - 0x000000300000-0x000000900000 : "misc_ro"
    - 0x000000900000-0x000000f00000 : "misc_rw"
    - 0x000000f00000-0x000003700000 : "ubi0"
    - 0x000003700000-0x000005f00000 : "ubi1"

have fun!

Hello Michele @michelel , were you able to create a snapshot for this router? Thank you.

@nikdom I was able to get OpenWrt running but I still have issues with one of the two 2.5G ports. I will fix that and publish everything as soon as I have some time to work on it. If you want to try the snapshot yourself I have added installation instructions in a pull request: https://github.com/openwrt/openwrt/pull/13900

Thank you, Michele, I hope you can soon resolve any issues you have encountered! That way, I can finally use OpenWRT on the 2.5gb line to its full potential :smiley: