The D-Link DIR-878 is a Wi-Fi 5 Wave 2 router based on MediaTek MT7621A with 16 MB flash and 128 MB RAM. It has 5 Gigabit Ethernet ports and dual MediaTek MT7615N radios, capable of up to 4×4 streams on each band.
OpenWrt can't be installed through the stock firmware on this router, as it only accepts properly signed and encrypted files in D-Link SHRS format. Use the D-Link Recovery GUI instead to upload the OpenWrt factory image for this router.
Please read this article for a better understanding, as it contains a couple of explanations. The sections below describes the flash layout of this router when running the stock firmware and when running OpenWrt.
raw flash, 16384 KiB
Config partition stores the environment variables from U-Boot.
Factory partition stores the MAC addresses and calibration data of the MT7615N wireless modules.
Config2 partition stores the default country code, default WiFi password and unique D-Link FOTA identifiers.
Private partition stores the router settings. A factory reset erases all content from this partition.
Warning:Factory and Config2 partitions contains unique data, specific to each unit. If they get erased or corrupted, stock firmware will lose the ability to automatically apply firmware updates, will get stuck on a bootloop if a factory reset is performed and Wi-Fi won't work anymore. D-Link Recovery GUIcannot fix this.
raw flash, 16384 KiB
Different from stock firmware, OpenWrt doesn't make distinction between the Factory and Config2 partitions, instead it maps both of them to a single read-only partition, factory, at the same address range. Regardless, it still holds the same unique data specific to each unit, and all sorts of issues can happen if this partition gets corrupted or erased.
Although this router supports flashing the firmware and even the bootloader through TFTP, these flashing modes can only be selected by interacting with the U-Boot terminal at boot time, through the serial port. The section below lists the default values, although the router will always ask for the desired parameters when selecting any of the TFTP flash options on the U-Boot console.
In case of a brick, a new firmware can still be uploaded through D-Link Recovery GUI. Keep in mind the recovery GUI only accepts unencrypted firmware images. Alternatively, a new firmware can be flashed through the serial port or through TFTP, but you'll need to interact with the U-Boot console at power up to select any of these modes.
Be careful when playing around with the bootloader, as in case of a bootloader brick neither the emergency recovery mode nor the serial and TFTP flash options will be accessible. Since this router doesn't have a JTAG port, only reprogramming the flash chip through an external programmer can solve this kind of brick.
The stock firmware files provided by D-Link doesn't contain the bootloader, so obtaining a copy of it can be tricky. To help with that, an unmodified copy of the stock bootloader, dumped directly from the flash chip of a working unit, can be downloaded here.
Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on.
→ hardware.button on howto use and configure the hardware button(s).
Here, we merely name the buttons, so we can use them in the above Howto.
toh/d-link/d-link_dir-878_a1.txt · Last modified: 2020/07/30 08:01 by mbc07