OpenWrt Forum Archive

Topic: How To Download & Install Correct Firmware for D'link Dir-505

The content of this topic has been archived on 5 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am not getting any Idea on which file I should download for my D'link Dir-505 and how to upload it, please someone help.

All the details for the D'link Dir-505 can be found on this forum post https://forum.openwrt.org/viewtopic.php?id=38742

It's very simple:

- take plesiu's image out of the thread you mentioned (page 3)
- flash the DIR-505 following http://forums.dlink.com/index.php?topic … #msg162511

Before flashing, make sure your router is hardware revision A1 (A2 doesn't work with the given image).

@tmo26

I tried to do it how you said and it said Upgrade Successfully!, but after that also it is not working, I tried 3 times resetting but no luck smile

What exactly didn't work?
What did you do after flashing the router?
Telnet to which IP?
ssh to which IP?
Have you verified that your DIR-505 is really HW Rev. A1?

(Last edited by tmo26 on 22 Jul 2013, 17:42)

What exactly didn't work?
-After I uploaded the new firmware, it said Ugrade Successfully!, but after that non of ips showing any page,
192.168.0.1 - Router Default
192.168.1.1 - Openwrt Default
192.168.0.10 - System stactic ip

And there was no light on the device, but the pc still showing a computer with exclamation mark that mean it is still connected to a network.

What did you do after flashing the router?
-After success page, after waiting for few minutes I unplugged the device from power and then plugged it and then tried to open these ips:
192.168.0.1 - Router Default
192.168.1.1 - Openwrt Default
192.168.0.10 - System stactic ip

But non showed any page.

Telnet to which IP?
- I don't know about this

ssh to which IP?
- I don't know about this

Have you verified that your DIR-505 is really HW Rev. A1?
-Yes, I'm 100% sure that it is HW Rev. A1

So you tried to access those IPs with your browser, right?

If your answer is yes, then try

telnet 192.168.1.1

(Last edited by tmo26 on 22 Jul 2013, 20:45)

Via telnet successfully changed password but
This what I'm getting when doing SSH via Filezilla:

Status:    Connecting to 192.168.1.1...
Response:    fzSftp started
Command:    open "root@192.168.1.1" 22
Command:    Pass: *******
Status:    Connected to 192.168.1.1
Error:    Connection closed by server with exitcode 127
Error:    Could not connect to server

Use putty instead of filezilla.

Yes putty worked and successfully logged into SSH, now what how can I enable webUI ?

Getting error:

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/attitude_a … ckages.gz.
wget: bad address 'downloads.openwrt.org'
Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/attitude_a … ckages.gz, wget returned 1.
root@OpenWrt:~# root@OpenWrt:~# opkg update
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# Downloading http://downloads.openwrt.org/attitude_adjustment/12.
09/ar71xx/generic/packages/Packages.gz.
-ash: Downloading: not found

@nebbia88
I'm sorry this might be irritating but I am unable to get the internet connection working on my device, actually the problem is that I use this device only for repeater mode, so I'll have to connect to my existing wireless network but on the page you suggested for internet connection setup there is no info on connecting an existing wireless network.

no irritating at all!

now we know what the problem is wink

to solve it, could you connect the 505 to the main router with a lan cable on the wan port? it should get an ip with dhcp and then you can use opkg!

note that it MUST have the lan interface on a different SUBNET, so if main router ip is for example 192.168.1.1, the 505 must have something like 192.168.2.1...

once you get luci installed, have a read here to set up client mode wink

http://wiki.openwrt.org/doc/howto/clientmode

sorry if you already read that..

http://nazamarket.com/images/D-Link-DIR-505.jpg

as you can see in the pic above, if I connect the 505 to main router via lan cable then how I will connect the 505 to pc, as there is only one lan port on 505 ?

i assumed the main router has a built in switch -.-

or you can enable wifi on the 505 with:

http://wiki.openwrt.org/doc/uci/wireless

uci set wireless.@wifi-device[0].disabled=0; uci commit wireless; wifi

and then connect to the new network you will see wink

BUT

this is useless since the only port in 505 is not configured as WAN and will not get an ip via DHCP from the main router.

simplest thing, add default gateway and dns on lan:

uci set network.lan.ipaddr=192.168.1.2
uci set network.lan.gateway=192.168.1.1
uci set network.lan.dns=192.168.1.1
uci commit
/etc/init.d/network restart

this assumes your router is on 1.1, adapt it to your needs!

remember you will have to ssh to the new ip after those commands.

(Last edited by nebbia88 on 23 Jul 2013, 20:18)

Here what I have done till now,
1. Reset my Dir-505
2. Installed OpenWrt
3. Done telnet and changed password
4. Enabled wifi by uci set wireless.@wifi-device[0].disabled=0; uci commit wireless; wifi
5. Added default gateway and dns on lan by:

uci set network.lan.ipaddr=192.168.1.2
uci set network.lan.gateway=192.168.1.1
uci set network.lan.dns=192.168.1.1
uci commit
/etc/init.d/network restart

6. Connected Dir-505 Lan port to Main Router's Lan Port
7. As Dir-505 Is broadcasting a wirless network I connected my Laptop to it can I can now access the internet via that network.
** But Now I'm unable to ssh to 192.168.1.2, it gives error "Connection Timed Out"

Please tell me how this error can be fixed, and I think after this error will be fixed I wouldn't have any problem in installing 'luci'

Thanks
Please Reply!

Everything thing done.

But Please let me know how can I set the dir-505 in repeater mode so It connect to my existing wireless network and extend it with different SSID and key.

Thanks

The discussion might have continued from here.