Page 1 of 1

D'Link DIR-505L

Posted: Fri Mar 04, 2016 5:13 pm
by alanlara83
Hi!

Cannot install on DIR-505L, from factory stock firmware, tried the factory bin to gargoyle. :cry: Already tried normal and emergency flash mode, but always get the "not a valid firmware file"error.

What can I do?

Re: D'Link DIR-505L

Posted: Fri Mar 04, 2016 5:47 pm
by nworbnhoj
try giving the image file a shorter-name.bin

Re: D'Link DIR-505L

Posted: Fri Mar 04, 2016 6:04 pm
by alanlara83
Already tried. "Firmware.bin" for instance. Still no success :?

Re: D'Link DIR-505L

Posted: Fri Mar 04, 2016 6:25 pm
by nworbnhoj
Have you checked the integrity of the image file you downloaded with the sig? and/or redownload the image file.

Re: D'Link DIR-505L

Posted: Sat Mar 05, 2016 12:09 am
by Volaris
Are you putting it into D-Link recovery mode and using the factory.bin file as described in the OpenWRT wiki?
https://wiki.openwrt.org/toh/d-link/dir ... _interface

If yes to both, the only other thing I can suggest is using a different web browser. One of my D-Link's recovery mode only liked Internet Explorer... and I think Firefox.

Re: D'Link DIR-505L

Posted: Fri May 16, 2025 11:53 pm
by dir505l
This device is so old that probably nobody cares anymore, but for the sake of eternity...

The router's on-board recovery mode is looking for the exact model name/number (a null terminated ASCII string) in the first 64 bytes of the firmware file. You'll need to use your favorite hex editor to change "DIR505A1-3" to "DIR505LA1-3".

Here's the before:

Code: Select all

00000000  36 8f e1 65 00 78 00 00  00 10 00 00 48 4f 52 4e  |6..e.x......HORN|
00000010  45 54 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |ET..............|
00000020  48 4f 52 4e 45 54 2d 50  41 43 4b 45 54 2d 44 49  |HORNET-PACKET-DI|
00000030  52 35 30 35 41 31 2d 33  00 00 00 00 00 00 44 45  |R505A1-3......DE|
And here's the after:

Code: Select all

00000000  36 8f e1 65 00 78 00 00  00 10 00 00 48 4f 52 4e  |6..e.x......HORN|
00000010  45 54 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |ET..............|
00000020  48 4f 52 4e 45 54 2d 50  41 43 4b 45 54 2d 44 49  |HORNET-PACKET-DI|
00000030  52 35 30 35 4c 41 31 2d  33 00 00 00 00 00 44 45  |R505LA1-3.....DE|