ramips: add support for D-Link DIR-882 R1
authorAndrew Pikler <andrew.pikler@gmail.com>
Mon, 5 Oct 2020 14:16:44 +0000 (17:16 +0300)
committerPetr Štetiar <ynezz@true.cz>
Tue, 22 Dec 2020 18:11:50 +0000 (19:11 +0100)
commit28262f815e4d0fe5302babc696ed5ce518b33759
tree2d0cff9a36ae80ae550d363c0f2ff63dc9b9eeee
parent40437b18f41918d7bbbb7da986b8842bf82f9ff0
ramips: add support for D-Link DIR-882 R1

Specifications:
- SoC: MediaTek MT7621AT
- RAM: 128 MB (DDR3)
- Flash: 16 MB (SPI NOR)
- WiFi: MediaTek MT7615N (x2)
- Switch: 1 WAN, 4 LAN (Gigabit)
- Ports: 1 USB 2.0, 1 USB 3.0
- Buttons: Reset, WiFi Toggle, WPS
- LEDs: Power, Internet, WiFi 2.4G WiFi 5G, USB 2.0, USB 3.0

The R1 revision is identical to the A1 revision except
- No Config2 Parition, therefore
- factory partition resized to 64k from 128K
- Firmware partition offset is 0x50000 not 0x60000
- Firmware partitions size increased by 64K
- Firmware partition type is "denx,uimage", not "sge,uimage"
- Padding of image creation "uimage-padhdr 96" removed

Installation:
- Older firmware versions: put the factory image on a USB stick, turn on
the telnet console, and flash using the following cmd
"fw_updater Linux /mnt/usb_X_X/firmware.bin"

- D-Link FailsafeUI:
Power down the router, press and hold the reset button, then
re-plug it. Keep the reset button pressed until the internet LED stops
flashing, then jack into any lan port and manually assign a static IP
address in 192.168.0.0/24 other than 192.168.0.0 (e.g. 192.168.0.2)
and go to http://192.168.0.1
Flash with the factory image.

Signed-off-by: Andrew Pikler <andrew.pikler@gmail.com>
target/linux/ramips/dts/mt7621_dlink_dir-882-a1.dts
target/linux/ramips/dts/mt7621_dlink_dir-882-r1.dts [new file with mode: 0644]
target/linux/ramips/dts/mt7621_dlink_dir-882-x1.dtsi [new file with mode: 0644]
target/linux/ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi
target/linux/ramips/dts/mt7621_dlink_dir-8xx-r1.dtsi [new file with mode: 0644]
target/linux/ramips/dts/mt7621_dlink_dir-8xx-x1.dtsi [new file with mode: 0644]
target/linux/ramips/image/mt7621.mk
target/linux/ramips/mt7621/base-files/etc/board.d/01_leds