openwrt/target/linux
Michael Pratt 4ef86c620f ramips: add support for Senao Engenius EPG600
FCC ID: A8J-EPG600

Engenius EPG600 is an indoor wireless router with
1 Gb ethernet switch, dual-band wireless,
internal antenna plates, USB, and phone lines (not supported)

this board is a Senao device:
the hardware is equivalent to EnGenius ESR600 (except for phone lines)
the software is Senao SDK which is based on openwrt and uboot
which uses the legacy Senao header with Vendor / Product IDs
to verify the firmware upgrade image.

**Specification:**

  - MT7620 SOC		MIPS 24kec, 2.4 GHz WMAC, 2x2
  - RT5592N WLAN	PCI chip, 5 GHz, 2x2
  - QCA8337N Gb SW	RGMII GbE, SW P0 -- SOC P5, 5 LEDs
  - 40 MHz clock
  - 16 MB FLASH		MX25L12845EMI-10G
  - 64 MB RAM		NT5TU32M16
  - UART console	J2, populated
  - USB 2.0 port	direct to SOC
  - 6 GPIO LEDs		power, 2G, 5G, wps2g, wps5g, line
  - 3 buttons		reset, wps, "reg" (registeration)
  - 4 antennas		internal omni-directional plates

NOT YET SUPPORTED: VoIP

  - Si3050-FT + Si3019-FT	Voice DAA, SPI control, PCM data
  - Phone Ports "TEL", "LINE"	RJ11, 4P2C (2 pins)

**MAC addresses:**

  MAC address labeled as MAC ADDRESS
  MACs present in both wifi cal data and uboot environment

  eth0.1/phy1	----	*:82	rf 0x4
  phy0		----	*:83	factory 0x4
  eth0.2	MAC	*:b8	"wanaddr"

**Installation:**

  Method 1: Firmware upgrade page:

    (if you cannot access the APs webpage)
    factory reset with the reset button
    connect ethernet to a computer
    OEM webpage at 192.168.0.1
    username and password 'admin'

    Navigate to gear icon, "Device Management", "Tools"
    select the factory.dlf image
    Upload and verify checksum

  Method 2: Serial to upload initramfs:

    Follow directions for TFTP recovery
    upload and boot initramfs and do a sysupgrade

**TFTP recovery:**

  Requires UART serial console, reset button does nothing

  rename initramfs-kernel.bin to 'uImageEPG600'
  make available on TFTP server at 192.168.99.8
  power board, interrupt boot with "4"
  execute `tftpboot` and `bootm` (with the load address)

**Return to OEM:**

  Images from OEM are provided, but not compatible
  with openwrt sysupgrade. So it must be modified.

  Alternatively, back up all mtd partitions before flashing

**Note on switch registers:**

  The necessary registers needed for the QCA8337 switch
  can be read from interrupted boot (tftpboot, bootm)
  by using the following lines in the switch driver ar8327.c
  in the function 'ar8327_hw_config_of'
  where 'qca,ar8327-initvals' is parsed from DTS
  before the new register values are written:

    pr_info("0x04 %08x\n", ar8xxx_read(priv, AR8327_REG_PAD0_MODE));
    pr_info("0x08 %08x\n", ar8xxx_read(priv, AR8327_REG_PAD5_MODE));
    pr_info("0x0c %08x\n", ar8xxx_read(priv, AR8327_REG_PAD6_MODE));
    pr_info("0x10 %08x\n", ar8xxx_read(priv, AR8327_REG_POWER_ON_STRAP));

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2023-02-18 16:55:35 +01:00
..
airoha airoha: disable swconfig 2022-11-27 13:18:29 +01:00
apm821xx treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
archs38 treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
armvirt kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
at91 treewide: strip useless default n Kconfig lines 2023-02-03 12:50:15 +01:00
ath25 treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
ath79 kernel: bump 5.15 to 5.15.94 2023-02-18 15:06:04 +01:00
bcm27xx kernel: bump 5.15 to 5.15.93 2023-02-11 23:39:30 +01:00
bcm47xx bcm47xx: revert bgmac back to the old limited max frame size 2023-02-07 18:29:34 +01:00
bcm53xx bcm53xx: fix shebang in packet_steering.sh 2023-02-15 19:44:11 +01:00
bcm63xx bcm63xx: fix dts whitespace 2023-02-09 03:03:50 +01:00
bcm4908 bcm4908: refactor packet steering init 2023-02-15 19:44:11 +01:00
bmips treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
gemini gemini: add generic subtarget 2022-12-23 19:44:20 +01:00
generic kernel: bump 5.15 to 5.15.94 2023-02-18 15:06:04 +01:00
imx cypress-nvram: consolidate NVRAM packages 2022-11-16 20:14:13 +01:00
ipq40xx treewide: replace /sys/devices/virtual/ubi by /sys/class/ubi 2023-02-15 03:27:59 +00:00
ipq806x Revert "ipq806x: disable ea8500 image by default" 2023-02-17 04:27:16 +01:00
ipq807x ipq807x: Add bluetooth driver to zyxel nbg7815 2023-02-18 16:23:31 +01:00
kirkwood treewide: replace /sys/devices/virtual/ubi by /sys/class/ubi 2023-02-15 03:27:59 +00:00
lantiq lantiq: ar9/vr9: add fritz-tffs package 2023-02-08 00:19:54 +01:00
layerscape layerscape: Add CONFIG_NVMEM_LAYERSCAPE_SFP kernel configuration option 2023-01-08 18:51:27 +01:00
malta treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
mediatek mediatek: add support for Netgear WAX206 2023-02-18 15:46:45 +01:00
mpc85xx mpc85xx: p2020: kernel: enable CONFIG_BLK_DEV_NVME 2023-02-07 21:24:37 +01:00
mvebu treewide: replace /sys/devices/virtual/ubi by /sys/class/ubi 2023-02-15 03:27:59 +00:00
mxs mxs: switch default kernel to 5.15 2023-01-30 11:13:14 +01:00
octeon kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
octeontx octeontx: add sqaushfs and ramdisk to features 2023-01-06 19:44:35 +01:00
omap treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
oxnas treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
pistachio pistachio: Cleanup kernel configuration 2023-01-28 19:58:20 +01:00
qoriq qoriq: drop unused kernel config 2023-01-09 21:39:45 +02:00
ramips ramips: add support for Senao Engenius EPG600 2023-02-18 16:55:35 +01:00
realtek kernel: bump 5.15 to 5.15.94 2023-02-18 15:06:04 +01:00
rockchip treewide: update NVMEM symbols 2023-01-07 01:30:31 +01:00
sunxi treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
tegra treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
uml treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
x86 x86: add Barracuda Networks F12 interfaces 2023-02-03 14:05:37 +01:00
zynq zynq: remove kconfig for 5.10 2023-01-30 18:01:14 +08:00
Makefile build: fix issues with targets installed via feeds 2022-09-27 13:41:12 +02:00