• November 04, 2024, 12:53:29 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: OpenWRT for the DGL-5500 FAQ  (Read 20427 times)

antonelli3573

  • Level 2 Member
  • **
  • Posts: 38
OpenWRT for the DGL-5500 FAQ
« on: January 28, 2016, 09:20:23 AM »

Step by step guide to install OpenWRT on D-Link DGL-5500

OpenWRT's DGL-5500 web page:
https://wiki.openwrt.org/toh/d-link/dgl-5500

----BEFORE FLASHING----

1 - Download Putty
link: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
Putty is easy to use. Don't need installation, its a standalone .exe file.

2 - Download current stable OpenWRT Firmware for DLINK DGL5500: openwrt-15.05-ar71xx-generic-dgl-5500-a1-squashfs-factory.bin
https://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/

or beta dev builds:
http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/openwrt-ar71xx-generic-dgl-5500-a1-squashfs-factory.bin

Note: after flashing, the router's default IP will be set to 192.168.1.1. If you have any host on your network that uses this IP, change it prior to installation to avoid any conflict. I recommend changing your modem IP address to 192.168.1.2. This way, your newly flashed router will automatically detect WAN activity and you will already ready to navigate the Internet.

----FLASHING PROCEDURE----

1 - Enter your D-Link routers page and save your current settings to file.

2 - Flash the firmware downloaded above just like you were flashing a stock new firmware. Don't need to reset to factory default or anything else. Just flash and wait

3 - Wait 240 seconds

4 - After flashing is done, you will probably already ready to navigate the Internet, if there is a modem connected to the WAN port.

Your router is now running OpenWRT. Test Internet connectivity.
NOTE: If something happens and the OpenWRT fails to load correctly, fails to work or the router seems to be bricked, don't worry, just download the lastest DGL-5500 D-Link OEM FW and follow this to recover the router:
Emergency Recovery Mode

----ACCESSING OpenWRT COMMAND LINE INTERFACE TO SET DEFAULT PASSWORD----

1 - Open Putty
2 - Enter the router IP address (192.168.1.1), select SSH and click connect. Choose "YES" if a security alert pops up.
3 - A black screen will appear with a command line interface
4 - Log in as root (just type "root")
4 - Hit enter
5 - You will see something like this:

BusyBox v1.17.3 (2011-02-22 23:42:42 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ATTITUDE ADJUSTMENT (bleeding edge, r26290) ----------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@openwrt:~$

6 - Type passwd
7 - Type your new password, hit enter and type again to confirm. (ignore weak password confirmation if you wish)
8 - Type exit to exit.

----INSTALLING LUCI (REQUIRED TO ACCESS ROUTER CONFIG VIA WEB BROwSER)----

0 - Pre-requisite: You must be connected to the Internet. If there is a modem convected to the WAN port, you are good to go.
1 - Log in again to your router using Putty. Use SSH.
2 - Log in with your root password you just created.
3 - Type "opkg update"
4 - Type "opkg install luci" to install the Luci UI for web browsers.
5 - Type "opkg install kmod-ath10k" can be installed here, if you want the 5ghz wifi radio support.
6 - Type "opkg install luci-app-sqm" can be installed here, if you want the QoS support.
NOTE: Other packages maybe installed and included at this stage as well.

----INSTALLING 5Ghz WiFi Radio Support (ath10k)----

0 - Pre-requisite: You must be connected to the Internet. If there is a modem connected to the WAN port, you are good to go.
1 - Log in again to your router using Putty. Use SSH.
2 - Log in with your root password you just created.
3 - Type "opkg update"
4 - Type "opkg install kmod-ath10k"
5 - After it installs, reboot the router fully from the LuCI UI.
6 - Setup> Select Networking/Wifi
Generic MAC80211 802.11nac (radio0) and Generic MAC80211 802.11bgn (radio1) should be displayed however are disabled by default.
Select Edit or Add, on the next screen you can edit the SSID name, set channel, channel width, operating modes and security modes.
I recommend Mixed G and N or single mode N, manual channel 11, channel with 20 or 40Mhz and WPA2-PSK only on 2.4Ghz and Mixed mode, manual channel 48, channel width 40 or 80Mhz and WPA2-PSK on 5Ghz.
Note: I recommend that users in the NA region to keep to channels 1 6 and 11. Don't want any trouble with the FCC here. Users in other regions outside of the NA region can use channels 13 and 14 if needed. Older wireless devices my not support 40 or 80Mhz channel width so test and adjust to what your older devices can connect at. OpenWRT doesn't have a Auto Channel Width mode.
I recommend leaving power at 1mW to set first the graduate by testing signal and operation with your wireless devices. Increase the power one step at a time to find what works best for you.

----OPTIONAL STEP: INSTALLING SQM----

What is SQM: SQM is a modern QoS engine and prioritizing engine.
https://wiki.openwrt.org/doc/uci/sqm
1 - Log in to your router using Putty as root
2 - Type the following command: opkg install luci-app-sqm --force-depends

You will be able to configure SQM settings via Browser, on Luci web interface:
https://wiki.openwrt.org/doc/howto/sqm
http://forums.dlink.com/index.php?topic=61634.msg267126#msg267126

----OPTIONAL STEP: Configure Front LED Behavior----
https://wiki.openwrt.org/_media/media/dlink/7_repair_leds.png?w=400&tok=a9a472
Ref: =enable&s[]=5ghz]https://wiki.openwrt.org/toh/d-link/dir-825?s[]=enable&s[]=5ghz
Use ETH0.2 for d-link green planet/Trigger=netdev/Device= selection.

Tested this and it works on the 5500. Got the Internet globe to blink on RCV activity as well where OEM FW doesn't.  ;D
You can select RX or TX Activity or both to see the Globe LED blink. I chose RX.

----OPTIONAL STEP: Configure Firewall Behavior----
https://forum.openwrt.org/viewtopic.php?id=62944

-------------------------------------

OpenWRT advantages over D-Link 1.14 Firmware

- It supports IPV6
- It has multiple information about router CPU/RAM usage, Flash usage, total connections, many real time graphs..
- Possibility to install optional packages to do whatever you want to do. Like installing a VPN, media server, torrent server...
- Possibility to create multiple WLAN SSIDs
- And lots of customizations..
https://wiki.openwrt.org/doc/howto/start

Please comment or FAQ additions, corrections and modifications, post here:
http://forums.dlink.com/index.php?topic=61634.0
« Last Edit: March 22, 2016, 09:07:22 AM by FurryNutz »
Logged