Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:d-link:dir-853_a1 [2024/02/13 04:09] – [Supported Versions] rikka0w0 | toh:d-link:dir-853_a1 [2024/02/13 05:05] – [Hardware mods] rikka0w0 | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| - | ===== Installation | + | ===== Supported Versions |
| + | <!-- ToH: { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } --> | ||
| <!-- ToH: { | <!-- ToH: { | ||
| " | " | ||
| Line 31: | Line 40: | ||
| } --> | } --> | ||
| - | __Opening the case of the router may avoid its warranty. You may only consider this approach if you familiar with soldering. Otherwise, please proceed to **OEM easy installation**.__ | ||
| - | - Open the case, and solder the 4-pin header near the WAN port. | ||
| - | - Connect it to a USB-UART TTL (3.3V) adapter, no need to connect VCC. | ||
| - | - Open a terminal emulator (e.g. '' | ||
| - | - Setup a TFTP server on your PC that can serve xxx-ramips-mt7621-dlink_dir-853-a1-initramfs-kernel.bin. | ||
| - | - Connect any LAN port to your PC and set a static IPv4 address to 192.168.0.101 (netmask 255.255.255.0). | ||
| - | - Power on the device and keeps pressing 1 until you see the prompt. | ||
| - | - Use default IP addresses and enter the file name accordingly, | ||
| - | - Wait until it boots to OpenWrt, the default IP address is 192.168.1.1, | ||
| - | - So far, the OpenWrt runs in RAM and the flash contents are not touched. You can try OpenWrt without having to overwrite the stock firmware, a reboot clears all changes. | ||
| - | - Optionally, backup the stock firmware (the " | ||
| - | - To permantly install OpenWrt to the device , click on " | ||
| ==== OEM easy installation ==== | ==== OEM easy installation ==== | ||
| It is possible to install OpenWrt from the stock web interface without having to open the case of the router. [[docs: | It is possible to install OpenWrt from the stock web interface without having to open the case of the router. [[docs: | ||
| - | You would need the imgcrypt tool to encrypt a OpenWrt factory | + | **To walk around that and ease the installation of OpenWrt, first install this encrypted OpenWrt image (become dated), and then upgrade (using Luci Sysupgrade) to the latest OpenWrt: |
| + | |||
| + | https:// | ||
| + | |||
| + | The above image was generated by the imgcrypt | ||
| < | < | ||
| ./imgcrypt openwrt-ramips-mt7621-dlink_dir-853-a1-squashfs-factory.bin dir-853-a1-fac-enc.bin | ./imgcrypt openwrt-ramips-mt7621-dlink_dir-853-a1-squashfs-factory.bin dir-853-a1-fac-enc.bin | ||
| Line 53: | Line 54: | ||
| The imgcrypt tool is only available in source code at https:// | The imgcrypt tool is only available in source code at https:// | ||
| + | |||
| You need to compile it on a 32-bit Linux or add 32-bit support to your AMD64 Linux distro. | You need to compile it on a 32-bit Linux or add 32-bit support to your AMD64 Linux distro. | ||
| + | |||
| See: | See: | ||
| https:// | https:// | ||
| + | https:// | ||
| + | |||
| + | ===== Basic configuration ===== | ||
| + | -> [[docs: | ||
| + | |||
| + | Known problems: | ||
| + | |||
| + | * WLAN0 defaults to 5G after a fresh installation, | ||
| + | * If you see jffs2 related warnings/ | ||
| + | |||
| + | |||
| + | ==== OEM installation and Debricking using the serial TFTP method ==== | ||
| + | |||
| + | -> [[docs: | ||
| + | |||
| + | -> [[docs: | ||
| + | |||
| + | __Opening the case of the router may avoid its warranty. You may only consider this approach if you familiar with soldering. Otherwise, please proceed to **OEM easy installation**.__ | ||
| + | |||
| + | In this method, we first load an OpenWrt image into the RAM from the stock U-boot serial interface, then we install OpenWrt permanently to the flash. | ||
| + | |||
| + | - Open the case, and solder the 4-pin header near the WAN port. | ||
| + | - Connect it to a USB-UART TTL (3.3V) adapter, no need to connect VCC. | ||
| + | - Open a terminal emulator (e.g. '' | ||
| + | - Setup a TFTP server on your PC that can serve '' | ||
| + | - Connect any LAN port to your PC and set a static IPv4 address to '' | ||
| + | - Power on the device and keeps pressing 1 until you see the prompt. | ||
| + | - Use default IP addresses and enter the file name accordingly, | ||
| + | - Wait until it boots to OpenWrt, the default IP address is '' | ||
| + | - **So far, the OpenWrt runs in RAM and the flash contents are not touched.** You can try OpenWrt without having to overwrite the stock firmware, a reboot clears all changes. | ||
| + | - Optionally, backup the stock firmware (the " | ||
| + | - To permantly install OpenWrt to the device , click on " | ||
| + | |||
| + | Note: | ||
| + | |||
| + | **You should never flash images named '' | ||
| ===== Flash Layout ===== | ===== Flash Layout ===== | ||
| Line 75: | Line 114: | ||
| 0x000000fb0000-0x000001000000 : " | 0x000000fb0000-0x000001000000 : " | ||
| </ | </ | ||
| + | |||
| OpenWrt: | OpenWrt: | ||
| Line 94: | Line 134: | ||
| | ::: | | ::: | ||
| - | ==== OEM installation using the TFTP method ==== | ||
| - | |||
| - | -> [[docs: | ||
| - | |||
| - | === Specific values needed for tftp === | ||
| - | |||
| - | <WRAP BOX> | ||
| - | |||
| - | FIXME Enter values for " | ||
| - | |||
| - | ^ Bootloader tftp server IPv4 address | ||
| - | ^ Bootloader MAC address (special) | ||
| - | ^ Firmware tftp image | [[: | ||
| - | ^ TFTP transfer window | ||
| - | ^ TFTP window start | approximately FILL-IN seconds after power on | | ||
| - | ^ TFTP client required IP address | ||
| - | |||
| - | </ | ||
| ===== Upgrading OpenWrt ===== | ===== Upgrading OpenWrt ===== | ||
| -> [[docs: | -> [[docs: | ||
| - | <WRAP BOX> | + | Both LuCI web upgrade |
| - | + | ||
| - | FIXME These are generic instructions. Update with your router' | + | |
| - | + | ||
| - | ==== LuCI Web Upgrade Process ==== | + | |
| - | + | ||
| - | * Browse to ''< | + | |
| - | * Upload image file for sysupgrade to LuCI | + | |
| - | * Wait for reboot | + | |
| - | + | ||
| - | ==== Terminal Upgrade Process ==== | + | |
| - | + | ||
| - | If you don't have a GUI (LuCI) available, you can alternatively | + | |
| - | There are two command line methods for upgrading: | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing. | + | |
| - | + | ||
| - | === sysupgrade === | + | |
| - | + | ||
| - | * Login as root via SSH on 192.168.1.1, | + | |
| - | + | ||
| - | < | + | |
| - | cd /tmp | + | |
| - | wget http:// | + | |
| - | sysupgrade / | + | |
| - | </ | + | |
| - | + | ||
| - | === mtd === | + | |
| - | + | ||
| - | If '' | + | |
| - | + | ||
| - | * Login as root via SSH on 192.168.1.1, | + | |
| - | + | ||
| - | < | + | |
| - | cd /tmp | + | |
| - | wget http:// | + | |
| - | mtd write / | + | |
| - | </ | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | ===== Debricking ===== | + | |
| - | -> [[docs: | + | |
| ===== Failsafe mode ===== | ===== Failsafe mode ===== | ||
| -> [[docs: | -> [[docs: | ||
| - | ===== Basic configuration ===== | ||
| - | -> [[docs: | ||
| - | Set up your Internet connection, configure wireless, configure USB port, etc. | ||
| - | ===== Specific Configuration ===== | ||
| - | <WRAP BOX> | + | ===== Hardware ===== |
| - | FIXME Please fill in real values for this device, then remove | + | ==== MAC addresses on OEM firmware ==== |
| + | ^ Interface Name ^ Location on the flash ^ Note ^ | ||
| + | | lan (eth2) | ||
| + | | wan (eth3) | ||
| + | | 2.4g (rax0) | ||
| + | | 5g (ra0) | not on flash | lan + 2 | | ||
| - | ==== Network interfaces | + | ==== Info ==== |
| - | The default network configuration is: | + | |
| - | ^ Interface Name ^ Description | + | |
| - | | br-lan | + | |
| - | | vlan0 (eth0.0) | + | |
| - | | vlan1 (eth0.1) | + | |
| - | | wl0 | EXAMPLE WiFi | EXAMPLE Disabled | + | |
| - | </ | + | * LEDs: Power Blue+Orange, |
| + | * Buttons: Reset,WPS, Wifi | ||
| - | ==== Switch Ports (for VLANs) ==== | ||
| - | <WRAP BOX> | ||
| - | FIXME Please fill in real values for this device, then remove the EXAMPLEs | ||
| - | |||
| - | Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on. | ||
| - | ^ Port ^ Switch port ^ | ||
| - | | Internet (WAN) | EXAMPLE 4 | | ||
| - | | LAN 1 | EXAMPLE 3 | | ||
| - | | LAN 2 | EXAMPLE 2 | | ||
| - | | LAN 3 | EXAMPLE 1 | | ||
| - | | LAN 4 | EXAMPLE 0 | | ||
| - | |||
| - | </ | ||
| - | |||
| - | ==== Buttons ==== | ||
| - | -> [[docs: | ||
| - | Here, we merely name the buttons, so we can use them in the above Howto. | ||
| - | |||
| - | <WRAP BOX> | ||
| - | FIXME Please fill in real values for this device, then remove the EXAMPLEs | ||
| - | |||
| - | The D-Link DIR-853 has the following buttons: | ||
| - | |||
| - | ^ BUTTON | ||
| - | | EXAMPLE Reset | reset | | ||
| - | | EXAMPLE Secure Easy Setup | | ||
| - | | EXAMPLE No buttons at all. | ||
| - | |||
| - | </ | ||
| - | |||
| - | ===== Hardware ===== | ||
| - | ==== Info ==== | ||
| <WRAP BOX> | <WRAP BOX> | ||
| FIXME | FIXME | ||
| Line 234: | Line 175: | ||
| ---- | ---- | ||
| - | ==== Photos ==== | ||
| - | /* =====>>>>> | ||
| - | /* When uploading photos, **name them** intelligently. Nobody knows what 20100930_000602.jpg is! */ | ||
| - | /* e.g. {{: | ||
| - | /* Thanks, your wiki administration - Oct. 2015 */ | ||
| - | // | + | ==== Opening |
| - | **Insert photo of front of the casing** | + | |
| - | // | + | Remove four screws on the bottom |
| - | **Insert photo of back of the casing** | + | |
| - | + | ||
| - | //Backside label:// | + | |
| - | **Insert photo of backside label** | + | |
| - | + | ||
| - | ==== Opening | + | |
| **Note:** This will void your warranty! | **Note:** This will void your warranty! | ||
| - | |||
| - | <WRAP BOX> | ||
| - | FIXME //Describe what needs to be done to open the device, e.g. remove rubber feet, adhesive labels, screws, ...// | ||
| - | * To remove the cover and open the device, do a/b/c | ||
| - | </ | ||
| //Main PCB://\\ | //Main PCB://\\ | ||
| - | **Insert photo of PCB** | + | {{media: |
| ==== Serial ==== | ==== Serial ==== | ||
| -> [[docs: | -> [[docs: | ||
| - | How to connect to the Serial Port of this specific device:\\ | + | The serial |
| - | **Insert photo of PCB with markings for serial | + | |
| - | <WRAP BOX> | + | ^ Serial connection parameters\\ for D-Link DIR-853 A1 | 57600, 8N1, 3.3V | |
| - | FIXME //Replace EXAMPLE by real values.// | + | |
| - | </ | + | |
| - | + | ||
| - | ^ Serial connection parameters\\ for D-Link DIR-853 A1 | EXAMPLE 115200, 8N1, 3.3V | | + | |
| - | ==== JTAG ==== | + | There is no need to connect Vcc to an external 3.3V. |
| - | -> [[docs: | + | |
| - | How to connect to the JTAG Port of this specific device:\\ | + | {{media:dlink: |
| - | **Insert photo of PCB with markings for JTAG port** | + | |
| ===== Bootloader mods ===== | ===== Bootloader mods ===== | ||
| Line 284: | Line 200: | ||
| ===== Hardware mods ===== | ===== Hardware mods ===== | ||
| - | None so far. | + | **Not verified!** |
| + | |||
| + | There is an unpopulated USB 2.0 port on the PCB. To use it, you need to short circuit R31, LB15, R35, R38, and R37 on the PCB: | ||
| + | |||
| + | {{media: | ||
| + | |||
| + | The pin out of the USB socket (from the top to bottom) is: | ||
| + | - Vcc, 5V | ||
| + | - D- | ||
| + | - D+ | ||
| + | - GND | ||
| + | |||
| + | This port should work on the official OpenWrt firmware, as '' | ||
| Line 734: | Line 662: | ||
| ===== Notes ===== | ===== Notes ===== | ||
| - | //Space for additional notes, links to forum threads or other resources.// | + | Known problems: |
| - | + | ||
| - | * ... | + | |
| + | * WLAN0 defaults to 5G after a fresh installation, | ||
| + | * If you see jffs2 related warnings/ | ||
| ===== Tags ===== | ===== Tags ===== | ||
| <WRAP BOX> | <WRAP BOX> | ||