D-Link DIR-825
Known Hardware Versions
| Revision | OpenWrt Version Supported | Model Specific Notes |
|---|---|---|
| A1 | not supported | |
| B1 | Kamikaze trunk | working with trunk as of r18621 |
| B2 | Kamikaze trunk | working with trunk as of r25121 |
| B1/2 | Attitude Adjustment trunk | Newer revisions (FW 2.05EU) store mac-addresses differently, which leads to non-working wlan0/1. Working with trunk as of r29119 |
NOTE: B2 appears to only be different in labeling. The default firmware claims B1 and even /proc/cpuinfo claim to be B1 revisions even though the packaging and the sticker say B2.
Hardware Highlights
| HW Rev | CPU | Ram | Flash | Network | Gigabit | USB | Serial | JTag |
|---|---|---|---|---|---|---|---|---|
| B1/B2 | Atheros AR7161@680MHz | 64MB | 8MB | 4x1 | Yes | Yes | Yes | Yes |
Installation
Consult Flash Layout for a better understanding.
There are two ways of installing firmware, either by using normal D-Link firmware update web-interface or by using firmware recovery mode.
Installation using firmware update page
Note: Since original Firmware 2.05WW Build: 05Beta01 it is not possible to flash OpenWrt via the firmware update page.
(worked on a B2 revision with Ubuntu's Firefox in 2.05NA and 2.06NA)
It looks like Firmware 2.01EU behaves the same way. Please use the firmware recovery mode instead.
- Login into the factory D-Link firmware web-interface as usual. Default procedure for the freshly purchased router is:
- Set the static IP
192.168.0.100/24on the PC - With any web browser go to http://192.168.0.1/, use "admin" as the username, and "" as the password (leave the field blank).
- Proceed into the firmware update page, click "Browse" and select your OpenWrt image file (openwrt-ar71xx-generic-dir-825-b1-squashfs-factory.bin)
- Click "Update" and let the router reflash itself.
- Device should now reboot itself and boot up the OpenWrt.
- Give the router some time to finish firstboot tasks (initial configuration, jffs2 initialization, e.t.c.).
- The router's power LED should blink orange during bootup, as soon as it stops flashing, you can connect to it
- obtain new IP from the router via DHCP and follow firstlogin
Installation using firmware recovery mode
Note: The firmware recovery mode has following quirks:
- If you have a Windows machine available you can use Microsoft Internet Explorer 7 ( a Windows running on a VM, like VMware, does not work)
- If you are running Linux you can:
- Set your interface to 100Mbps using
sudo ethtool -s eth0 speed 100 autoneg off, install IE7 in Wine and use it to flash. - Later models (or some hardware combinations) may need
sudo ethtool -s eth0 speed 100 duplex half autoneg off(e.g. B2, FW ver 2.05EU). - Use the following script.
- If you are running MacOS you can use
Google ChromeOpera - FW version 2.05EU seems very difficult to flash, there may be timing issues (that's just a guess). After downgrading to 2.04EU (get it from ftp.dlink.de) it worked the first time, using IE7 on a virtualbox Win XP "guest". YMMV.
- Get into the D-Link recovery console with the steps below:
- While powering up the router, press and hold the reset button until the power LED starts blinking orange (usually takes around 45 (forty-five) seconds )
- Set a static IP on your PC to
192.168.0.100/24 - connect to http://192.168.0.1, mind the quirks!
- Click "Browse" and select your OpenWrt image file (openwrt-ar71xx-dir-825-b1-squashfs-factory.bin, this binary image is available in the Backfire 10.03.1rc1 download directory and above)
- Click "Update" and let router flash the image (don't worry if it reboots before it reaches 100%). The page should display "Device is Upgrading the Firmware" in blue letters with the current percentage in red (with an incompatible Browser it doesn't).
- The router's power LED should blink orange during bootup, as soon as it stops flashing, you can connect to it
- obtain new IP from the router via DHCP and follow firstlogin
Upgrading OpenWrt
Firmware recovery
OpenWrt failsafe mode
Basic configuration
Since this part is identical for all devices, see Basic configuration.
→wireless.overview This router requires the packages kmod-ath9k and wpad-mini.
Hardware
Info
| Architecture: | MIPS |
| Vendor: | Qualcomm Atheros |
| Bootloader: | U-Boot |
| System-On-Chip: | AR7161 rev 2 (MIPS 24Kc V7.4) |
| CPU/Speed | 24Kc V7.4 680 MHz |
| Flash-Chip: | Spansion S25FL064A |
| Flash size: | 8192 KiB |
| RAM: | 64 MiB |
| Wireless: | 2 x Atheros AR922X 2.4GHz/5.0GHz 802.11abgn |
| Ethernet: | RealTek RTL8366S Gigabit w/ port based vlan support |
| Internet: | n/a |
| USB: | Yes 2 x 2.0 (Only 1 header to the outside) |
| Serial: | Yes /dev/ttyS0 |
| JTAG: | Yes |
Photos
Physically breaking into the DIR-825
Note: This may void your warranty!
To remove the cover simply:
- Remove the two (2) back rubber feet. (closest to the ethernet ports and antennas)
- Unscrew the two (2) screws underneath the feet.
- Pry case halves apart from back side to front side, carefully.
To remove the board from the casing:
- Unscrew the two (2) front (inner) screws and remove the LED shield.
- Lift board from front and slide out in a forward motion.
Serial
PIN1–>3.3V
PIN2–>RX
PIN3–>TX
PIN4–>GND
|
Remember to use 12V↔3.3V serial port voltage converter or you might break the router by over-voltage.
COM port settings: Speed:115200, Data bits:8, Stop bits:1, Parity:none, Flow control:none
JTAG
How to connect to JTAG interface, and how to reflash the device with JTAG tools
See port.jtag for more JTAG details.
LEDs
See the LED section in /etc/config/system on general LED configuration.
The DIR-825 has 11 blue and 2 orange LEDs: The four LAN LEDs are controlled by the switch chip. By default they show link and blink for activity. They are LED Bank 0. To configure the RealTek RTL8366S, you can use swconfig, e.g.
swconfig dev rtl8366s port 0 set led 2
| LED name | LED symbol | Internal name blue | Internal name orange |
|---|---|---|---|
| unknown | D-Link | unknown | n/a |
| Power | Power | dir825b1:blue:power | dir825b1:orange:power |
| Planet | Planet | dir825b1:blue:planet | dir825b1:orange:planet |
| Wireless LAN 2.4 GHz | Waves (2.4GHz) | ath9k-phy0::phy0tpt | n/a |
| Wireless LAN 5 GHz | Waves (5GHz) | ath9k-phy1::phy0tpt | n/a |
| LAN Port 1 | PC (1) | n/a | n/a |
| LAN Port 2 | PC (2) | n/a | n/a |
| LAN Port 3 | PC (3) | n/a | n/a |
| LAN Port 4 | PC (4) | n/a | n/a |
| Universal Serial Bus | USB | dir825b1:blue:usb | n/a |
| WPS | Two arrows | dir825b1:blue:powersave | n/a |
Buttons
The D-Link DIR-825 has two buttons:
| BUTTON | Event |
|---|---|
| Reset | reset |
| WPS | powersave |
The WPS (WiFi Protected Setup) button is located at the right side (or the top when standing) and can be easily pressed with a finger. Also the WPS LED is integrated into the Button. For some unknown reason this control is named powersave in various places.
The Reset button is located at the back and cannot be pressed with a finger, you need a small item to push it in.
Hardware Mods
Second USB port
It was reported that in order to enable second USB port it is sufficient to solder in two straight bridges in place of L66 (take a look to the corresponding photo in the "Photos" section). After that you will need to solder in second USB header or - easier way - to solder in short-tailed female USB type A connector (sample photo is also available in the "Photos" section).
Discussion and more information can be found in this thread.
128 MB RAM Mod
vavasik did this mod and reported his experiences in this thread.
He used two Samsung K4H511638D-UCB3 chips from Samsung DDR SODIMM 512 MB. Maybe other chips from other manufacturers can be used, only they has to have 32Mx16 organization. Chips with other organization, such as 64Mx8, are not suitable.
Next to the soldering, the bootloader (U-Boot) and the calibration data partition has to be changed, because the D-Link bootloader/calibration data partition does not start with the 128 MB RAM. He used the bootloader/calibration data partition from Netgear WNDR3700. It's done through a full reflash, check the forum for the binary. It turn the D-Link DIR-825 into an Netgear WNDR3700.
The Netgear stock firmware does not recognize the 128 MB RAM, it only shows/uses 64 MB RAM, but it starts.
An detailed tutorial from vavasik can be found here.
Don't do this if your are inexperienced in soldering, you will for sure destroy the contacts→Trash!
Connection Information
Other Info
Feel free to add here any info we haven't covered yet! Thank you!
I was able to upload the openwrt-ar71xx-generic-dir-825-b1-squashfs-factory.bin in recovery mode with Internet Explorer with compatibility view enabled (menu Tools/Compatibility View). Without it it was loading forever. Other browsers (Chrome, Firefox, Opera) were not working. Tested with Windows and Linux. Also I switched my 1Gbit cart into 100Mbit mode.
It may be necessary to run the original firmware and configure the device at least once. I flashed the router right away using the firmware recovery interface which resulted in configuration problems in OpenWrt. All wireless network devices did not have valid MACs instead they used 00:00:00:00:00:00 and refused therefore to work properly. Even trying to read the MAC from the sysfs failed. After flashing the original firmware and configuring the device once using the D-Link Webinterface everything worked as expected after flashing OpenWrt again.
Besides flashing in recovery mode from a MacBook Pro using Google Chrome and the default Gigabit plug worked just fine!
A simple script to flash DIR-825
We have recently developed a script and performed some correction based on your work you can find it here
http://openwisp.caspur.it/wiki/owf/FlashingDlinkDIR825#notextile-Automatic-flashing-script-notextile
With this script it's not necessary to force your NIC to work @ 10/100 Mb/s and it's not necessary using IE7
toh/d-link/dir-825.txt · Last modified: 2012/04/30 01:36 by anwe79



