About open source, education and random other Stuff
OpenWRT on the D-Link DIR-825
Warning: This only works for Rev. B1 of the DIR-825. Rev. A1 will not work.
Since support for the D-Link DIR-825 Rev. B1 found it’s way into OpenWRT about 3 weeks ago I started playing around with it.
Here’s a little how-to on installing OpenWRT on the DIR-825. Basically it’s pretty easy. For those of you who just want to get started, I recommend the OpenWRT snapshots.
Here is what I did:
- Press and hold the reset button until the power LED starts blinking (usually takes around 45 seconds)
- Set your computer’s IP to anything but 192.168.0.1 in the 192.168.0.0/24 range.
- Browse to 192.168.0.1, make sure you use Internet Explorer or Chromium here. From my experience Firefox doesn’t work.
- Upload the openwrt-ar71xx-generic-dir-825-b1-squashfs-backup-loader.bin image
- Don’t be scared if the flash stops while progress is still under 100% and the box goes offline. That usually means the flash is done anyway.
- Power cycle your box and telnet to it on IP 192.168.1.1
- Don’t forget to set a password with passwd
Enjoy!
Restoring the original firmware works similarily: Follow steps 1 to 3 and in step 4 select the original D-Link .bin image instead.
By the way: If you prefer JFFS2 over SquashFS you can view the other images at http://downloads.openwrt.org/snapshots/trunk/ar71xx/
Edit:
Because I got some comments on not being able to bring the wifi up here’s a little guide to do that:
- Install the hostapd package:
- opkg update
opkg install wpad-mini kmod-ath9k
- Then go to Network -> Wifi
- Press Edit for the Radio controller you want to set up.
Note: The DIR-825 has two Radios: One 2.4GHz single band and one 5GHz single band.
On my device phy0 (radio0) is the 2.4GHz only and phy1 is the 5GHz radio - Enter your desired ESSID
- As network choose lan
- Mode: Access Point
- Encryption: WPA2-PSK
- Key: your WPA2 key
- Save and apply.
Edit: I forgot to mention that you need to install kmod-ath9k (Thanks Jeroen)
| Print article | This entry was posted by Felix Kaechele on December 24, 2009 at 10:44 am, and is filed under Fedora Planet, Linux. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 7 months ago
Works great! At least its routing…
(I try’d the method using the standard D-Link firmware upload page, that does not work)
The only problem is that when i browse to 192.168.1.1 it redirects to /luci and gives me a ‘not found’ the luci packages look installed, will need some diggin into this.
about 7 months ago
You can install luci by entering:
- opkg update
- opkg install luci-admin-full
about 7 months ago
Ok I was successful in putting on the openWRT firmware but I can’t get the Wireless to work on my Dlink DIR-825. Does wireless work with the openWRT on a DIR-825? How do I restore the original BIN from dlink? I downloaded the original BIN just not sure how to restore it.
about 7 months ago
Thanks for the guide.
I was able to flash openWrt in my 825 (curiously only with firefox, neither chrome or ie worked for me) but now I can’t get the wifi working. When I go to wifi in luci I have no device to choose and if I do ‘wifi detect’ I get no output as well…
about 7 months ago
I added the part on how to enable the wireless.
about 7 months ago
It doesn’t work for me. The firmware upload page says “Upload Failed”. I suspect it is because of my Rev. B1 having Version 2.00WW firmware (contrary to NA or EU firmware). Do you have any clue?
about 6 months ago
I tried it on a 825 with 2.01EU firmware. It works perfectly so far. Thanks a lot!
I flashed it with Firefox. While it doesn’t show the progress, it did work correctly.
For the wireless, after step 1, I also did ‘opkg install kmod-ath9k’ on the terminal and did a reboot from the web interface (which is silently assumed to be installed by step 2, this might need some clarification).
I got these hints from this discussion:
http://forums.dlink.com/index.php?topic=9920.0
about 6 months ago
Thanks for this guide!
I had a problem by accessing the LAN over WLAN and after some research I found out that the firewall blocked this by default. Maybe this information will be helpful for someone else…
Another question I have: Does anyone got an USB stick or HDD working with the DIR-825? I think I’ve loaded all the required modules but it seems like no device is detected (checked with dmesg).
about 6 months ago
I got lan-lan communication working by adding this to /etc/config/firewall
config ‘forwarding’
option ‘src’ ‘lan’
option ‘dest’ ‘lan’
about 6 months ago
I also successfully installed OpenWRT on my Dir 825 B (with 2.02NA firmware). I’d never used OpenWRT before (but have experience with other linxues).
Originally I was unable to get the firmware to install at all using these instructions, then I re-flashed my router using the 2.02NA firmware from the DLink website and I was then able to install OpenWRT without any trouble.
I haven’t been able to get the WiFi LEDs to work, and I have had some weird behavior from my PC when changing the wireless settings (usually requiring me to reboot to see the network again). But other than that I’m happy to finally have this router usable!
Thanks for these instructions, seeing that someone else got it to work without breaking anything gave me the encouragement I needed to give it a try.
about 6 months ago
Anyone tried new version yet and will this have GUI ?
openwrt-ar71xx-dir-825-b1-jffs2-backup-loader.bin 24-Jan-2010 12:50 3080222
openwrt-ar71xx-dir-825-b1-jffs2.bin 24-Jan-2010 12:50 3080196
openwrt-ar71xx-dir-825-b1-squashfs-backup-loade..> 24-Jan-2010 12:50 2424862
openwrt-ar71xx-dir-825-b1-squashfs.bin 24-Jan-2010 12:51 2424836
about 3 months ago
Hi!
How fast does it perform with the WRT firmware? What is the WAN-LAN throughput? Maximum concurrent connection?
about 3 months ago
I haven’t tested this, as I mainly use mine as a WLAN Access Point only, not as a router. However when I bridge the LAN and WAN interfaces I get near Gigabit speed. So I see no reason why this should not be possible in a routed setup.
about 3 months ago
Felix:
I just picked up one of these bad boys yesterday thinking it would be cake to flash from the recovery console using the current builds of 10.03.
Unfortunately when it’s in recovery mode, no matter what browser i’m using it seems like it starts the upload but just times out.
Tried so far:
* Chromium on Ubuntu 10.04
* FF on Ubuntu 10.04
* IE8 on Win 7 in a VM from Ubuntu 10.04 host
* FF on Win 7 in a VM from Ubuntu 10.04 host
All are doing the same behavior. Looking at a wireshark capture it seems like packets are going out of order for some reason every time i’m trying and then getting resent.
Any hints? Was that the same behaviors you were encountering?
about 3 months ago
Hi Mario,
I had the same problem here. I found no other way than using a pure Windows machine. That’s very unfortunate but that is the way it is. But I used the recovery mode for initial flashing only, anyway.
about 3 months ago
Felix:
Dang, don’t have one of those handy
I ended up following https://forum.openwrt.org/viewtopic.php?pid=108059 to get myself loaded up. Took a little TLC, but it worked out in the end.
Loving this router so far. Being able to have an external rootfs makes it all the better.
root@supermarioworld:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 1.8M 1.8M 0 100% /rom
tmpfs 30.3M 1.2M 29.1M 4% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 3.7G 88.9M 3.4G 2% /overlay
mini_fo:/overlay 1.8M 1.8M 0 100% /
about 2 months ago
Well, I’ve tried to install both http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-dir-825-b1-jffs2-backup-loader.bin and http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-dir-825-b1-squashfs-backup-loader.bin … I’ve go on the upload page, I’ve updated the file, somewhere at 60-66% firefox saying: “Connection reset” … after that I wait, and I wait, and I wait, and after 5 minutes I assuming that I have to reboot myself, so I pull down the switch (my router came with a switch on-off power supply, really useful for quick reseting) and the I pull up the switch … and … and … well my power button is yellow (not blinking), I see that my pc is connected (that blue light), and only that, I can’t ping either 192.168.0.1 nor 192.168.1.1 … I’ve repeated the procedure more then 5 time, should I use other file, or what did I do wrong
Oh, I’ve forgot, after I got this error, I gotta press reset button for 30 sec, turn off keeping the reset pressed for another 30 seconds and then turn on, keep reset pressed for another 20-30 seconds until I can re-flash … So… any tips, I really want to install apache, php, mysql on my router and from what I see OpenWRT is my only chance, I’ve tried DD-WRT, but I wasn’t able to install Optware (I’m not an Idiot, just that every tutorial was not working for me, and I really tried everything) … so my only chance is to get my DIR-825 to work with OpenWRT. If is it any use, my router is: Hardware Version: B1 / Firmware Version: 2.01EU.
Thanks in advance for replays.
about 1 month ago
Do you guys know if I can use the same image for version B2? It fails to load the image but I’m not sure if the problem is the hardware version or not?
about 1 month ago
B2 should be supported as well. At least that is what the OpenWRT wiki states.
about 1 month ago
Sorry for my English.
I have been installed DD-WRT in my DIR-825 Router.
But, DD-WRT too unstable, so I want to go back to the original firmware, but DD-WRT dosen’t support that.
Please, help me to go back to the original firmware.
Thank you.
about 1 month ago
Hello
Just do the same thing with original firmware file.
“Restoring the original firmware works similarily: Follow steps 1 to 3 and in step 4 select the original D-Link .bin image instead.”