Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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] – [Installation] rikka0w0toh:d-link:dir-853_a1 [2024/02/13 05:05] – [Hardware mods] rikka0w0
Line 40: Line 40:
 } --> } -->
  
-===== Installation ===== 
-__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. ''screen /dev/ttyUSB0'' on linux, or [[https://putty.org/]] on Windows) with the settings mentioned above. 
-  - 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, then hit enter. 
-  - Wait until it boots to OpenWrt, the default IP address is 192.168.1.1, you need to change your PC network adapter to use DHCP in order to access LUCI. 
-  - 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 "firmware" partition) in Luci. 
-  - To permantly install OpenWrt to the device , click on "System -> Backup/Flash Firmware" in Luci and flash xxx-ramips-mt7621-dlink_dir-853-a1-squashfs-sysupgrade.bin 
  
 ==== 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:guide-user:installation:recovery_methods:d-link_recovery_gui#about_encrypted_firmwares|Since 2018, D-Link added encryption to its firmware files and the stock web interface only accepts encrypted and valid firmware.]] It is possible to install OpenWrt from the stock web interface without having to open the case of the router. [[docs:guide-user:installation:recovery_methods:d-link_recovery_gui#about_encrypted_firmwares|Since 2018, D-Link added encryption to its firmware files and the stock web interface only accepts encrypted and valid firmware.]]
  
-You would need the imgcrypt tool to encrypt a OpenWrt factory binary file so that the stock web interface accepts it:+**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://github.com/openwrt/openwrt/files/10833430/dir-853-a1-fac-enc.bin.zip 
 + 
 +The above image was generated by the imgcrypt encryption tool from an official OpenWrt factory image:
 <code> <code>
 ./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 63: Line 54:
  
 The imgcrypt tool is only available in source code at https://dlink-gpl.s3.amazonaws.com/GPL1700193/DIR853A2_V1.00B03.tar.gz. The imgcrypt tool is only available in source code at https://dlink-gpl.s3.amazonaws.com/GPL1700193/DIR853A2_V1.00B03.tar.gz.
 +
 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://forum.openwrt.org/t/re-dir-853-a2/152308/18?u=rikka0w0 https://forum.openwrt.org/t/re-dir-853-a2/152308/18?u=rikka0w0
  
 +https://github.com/openwrt/openwrt/pull/12087
 +
 +===== Basic configuration =====
 +-> [[docs:guide-user:base-system:start|Basic configuration]] After flashing, proceed with this.\\
 +
 +Known problems:
 +
 +  * WLAN0 defaults to 5G after a fresh installation, to enable 2.4G network, you need to config it manually in LUCI.
 +  * If you see jffs2 related warnings/errors after updating from the stock web interface, you need to do a reset in LUCI. The error will be gone after a cold reboot.
 +
 +
 +==== OEM installation and Debricking using the serial TFTP method ====
 +
 +->  [[docs:guide-user:installation:generic.flashing.tftp]]
 +
 +-> [[docs:guide-user:troubleshooting:generic.debrick]]
 +
 +__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. ''screen /dev/ttyUSB0'' on linux, or [[https://putty.org/]] on Windows) with 57600 8N1.
 +  - 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, then hit enter.
 +  - Wait until it boots to OpenWrt, the default IP address is ''192.168.1.1'', you need to change your PC network adapter to use DHCP in order to access LUCI.
 +  - **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 "firmware" partition) in Luci.
 +  - To permantly install OpenWrt to the device , click on "System -> Backup/Flash Firmware" in Luci and flash ''xxx-ramips-mt7621-dlink_dir-853-a1-squashfs-sysupgrade.bin''
 +
 +Note:
 +
 +**You should never flash images named ''xxx-initramfs-kernel.bin'' to the flash!**
  
 ===== Flash Layout ===== ===== Flash Layout =====
Line 85: Line 114:
 0x000000fb0000-0x000001000000 : "Private" 0x000000fb0000-0x000001000000 : "Private"
 </code> </code>
 +
  
 OpenWrt: OpenWrt:
Line 104: Line 134:
 | :::                                  :::                                                            |  :::                              :::                          |  :::                                |  :::                              |  ''/'' as OverlayFS, **rw**                                         | :::                                  | | :::                                  :::                                                            |  :::                              :::                          |  :::                                |  :::                              |  ''/'' as OverlayFS, **rw**                                         | :::                                  |
  
-==== OEM installation using the TFTP method ==== 
- 
-->  [[docs:guide-user:installation:generic.flashing.tftp]] 
- 
-=== Specific values needed for tftp === 
- 
-<WRAP BOX> 
- 
-FIXME Enter values for "FILL-IN" below 
- 
-^ Bootloader tftp server IPv4 address  | FILL-IN   | 
-^ Bootloader MAC address (special)     | FILL-IN   | 
-^ Firmware tftp image                  | [[:downloads|Latest OpenWrt release]] (**''NOTE:''** Name must contain //"tftp"//) | 
-^ TFTP transfer window                 | FILL-IN seconds                                | 
-^ TFTP window start                    | approximately FILL-IN seconds after power on   | 
-^ TFTP client required IP address      | FILL-IN                                        | 
- 
-</WRAP> 
  
 ===== Upgrading OpenWrt ===== ===== Upgrading OpenWrt =====
 ->  [[docs:guide-user:installation:generic.sysupgrade]] ->  [[docs:guide-user:installation:generic.sysupgrade]]
  
-<WRAP BOX> +Both LuCI web upgrade and terminal upgrade works.
- +
-FIXME These are generic instructions. Update with your router's specifics. +
- +
-==== LuCI Web Upgrade Process ==== +
- +
-  * Browse to ''<nowiki>http://192.168.1.1/cgi-bin/luci/mini/system/upgrade/</nowiki>'' LuCI Upgrade URL +
-  * 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 upgrade via the command line. +
-There are two command line methods for upgrading: +
- +
-  * ''sysupgrade'' +
-  * ''mtd'' +
- +
-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, then enter the following commands: +
- +
-<code> +
-cd /tmp +
-wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc +
-sysupgrade /tmp/xxx.abc +
-</code> +
- +
-=== mtd === +
- +
-If ''sysupgrade'' does not support this router, use ''mtd''+
- +
-  * Login as root via SSH on 192.168.1.1, then enter the following commands: +
- +
-<code> +
-cd /tmp +
-wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc +
-mtd write /tmp/xxx.abc linux && reboot +
-</code> +
- +
-</WRAP> +
- +
-===== Debricking ===== +
--> [[docs:guide-user:troubleshooting:generic.debrick]]+
  
 ===== Failsafe mode ===== ===== Failsafe mode =====
 -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]] -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]]
  
-===== Basic configuration ===== 
--> [[docs:guide-user:base-system:start|Basic configuration]] After flashing, proceed with this.\\ 
-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 the EXAMPLEs+==== MAC addresses on OEM firmware ==== 
 +^ Interface Name   ^ Location on the flash ^ Note    ^ 
 +| lan (eth2)       | @factory + 0xe000     | on label   | 
 +| wan (eth3)       | @factory + 0xe006                | 
 +| 2.4g (rax0)      | not on flash          | lan + 1    | 
 +| 5g (ra0)         | not on flash          | lan + 2    |
  
-==== Network interfaces ==== +==== Info ====
-The default network configuration is: +
-^ Interface Name   ^ Description                  ^ Default configuration    ^ +
-| br-lan           | EXAMPLE LAN & WiFi           | EXAMPLE 192.168.1.1/24   | +
-| vlan0 (eth0.0)   | EXAMPLE LAN ports (1 to 4)   | EXAMPLE None             | +
-| vlan1 (eth0.1)   | EXAMPLE WAN port             | EXAMPLE DHCP             | +
-| wl0              | EXAMPLE WiFi                 | EXAMPLE Disabled         |+
  
-</WRAP>+  * LEDs: Power Blue+Orange,Wan Blue+Orange,WPS Blue,"2.4G"Blue, "5G" Blue, USB Blue 
 +  * 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     | 
- 
-</WRAP> 
- 
-==== Buttons ==== 
--> [[docs:guide-user:hardware: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. 
- 
-<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                       ^ Event   ^ 
-| EXAMPLE Reset                |  reset  | 
-| EXAMPLE Secure Easy Setup    |   ses   | 
-| EXAMPLE No buttons at all.      -    | 
- 
-</WRAP> 
- 
-===== Hardware ===== 
-==== Info ==== 
 <WRAP BOX> <WRAP BOX>
 FIXME FIXME
Line 244: Line 175:
 ---- ----
  
-==== Photos ==== 
-/* =====>>>>> Standard size for photos: add ?400 to the medialink                                */ 
-/* When uploading photos, **name them** intelligently. Nobody knows what 20100930_000602.jpg is! */ 
-/* e.g. {{:media:yourbrand:yourbrand_yourmodel_front.jpg?400|}}                                  */ 
-/* Thanks, your wiki administration - Oct. 2015 */ 
  
-//Front://\\ +==== Opening the case ====
-**Insert photo of front of the casing**+
  
-//Back://\\ +Remove four screws on the bottom of the device. No adhesive.
-**Insert photo of back of the casing** +
- +
-//Backside label://\\ +
-**Insert photo of backside label** +
- +
-==== Opening the case ====+
  
 **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 
-</WRAP> 
  
 //Main PCB://\\ //Main PCB://\\
-**Insert photo of PCB** +{{media:dlink:dir-853_a1:internal.jpg}}
 ==== Serial ==== ==== Serial ====
 -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc. -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc.
  
-How to connect to the Serial Port of this specific device:\\ +The serial header locate near the power jack and it is not populated by default. Soldering is necessary.
-**Insert photo of PCB with markings for serial port**+
  
-<WRAP BOX> +^ Serial connection parameters\\ for D-Link DIR-853 A1 | 57600, 8N1, 3.3V |
-FIXME //Replace EXAMPLE by real values.// +
-</WRAP> +
- +
-^ 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:techref:hardware:port.jtag]] general information about the JTAG port, JTAG cable, etc.+
  
-How to connect to the JTAG Port of this specific device:\\ +{{media:dlink:dir-853_a1:serial.png}}
-**Insert photo of PCB with markings for JTAG port**+
  
 ===== Bootloader mods ===== ===== Bootloader mods =====
Line 294: 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:dlink:dir-853_a1:usb_mod.jpg}} 
 + 
 +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 ''mt7621.dtsi'' suggests that it is enabled by default.
  
  
Line 744: 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, to enable 2.4G network, you need to config it manually in LUCI.
 +  * If you see jffs2 related warnings/errors after updating from the stock web interface, you need to do a reset in LUCI. The error will be gone after a cold reboot.
 ===== Tags ===== ===== Tags =====
 <WRAP BOX> <WRAP BOX>
  • Last modified: 2024/02/13 05:08
  • by rikka0w0