How to Flash OpenWRT on a DIR-615 C1 Router

Before I explain the ‘how to’ part, please allow me to explain everything I tried to do first in case some of these key words save someone else the pain:

-I tried everything I could find on the well meaning but horrendous pages of OpenWRT.  Specifically this one for this router located here.

-I tried the ‘upload via recovery mode browser’ method.  Fail.

-I tried a variety of different browsers including a few versions of Firefox.  Fail.

-I tried that ‘curl’ command on that chaotic page in full recovery mode and regular boot mode (make sure you read till the bottom if you are at this step now as you should be a bit happy you found my post)

-I tried hex-editing the file according to all that hex editing crap.  It was a cool learning experience but at the end of the day the file that ended up working didn’t have needs of the hexing 🙁

-I tried doing every form of TFTP, ATFTP and some other something or another.  During this process, I was ‘nearly’ successful getting it on the router, but it kept snagging at block 7560 and then timing out and then aborting.  I tried the ‘option blksize’ option in atftp and tried increasing, reducing, etc, etc, and none of that worked.  This was my favourite and most useful link on the subject, though, if that’s worth anything.

-I tried increasing the timeout from 1 to 10 to 30 to 60 to who knows how the heck long.  But none of that worked either.

-I tried doing all of the above in regular boot (just plugging it in) and recovery mode boot (with the pen jammed in there) and none of that worked

-I tried smashing my head into the wall and laughing hysterically.  Fail.

-I tried drinking a lot of alcohol and doing all of the above again.  Still failed!

-Finally, because I’m so sadistic, I tried a bunch of new things…. but one of them worked!  And I hope it works for you, too.   It was the curl command BUT….

…BUT… a few changes were applied:

  • I inserted a HUB/SWITCH between the router and computer (i’m not sure if this is needed yet)
  • I followed these very specific curl steps
  1. made sure laptop was set to static
  2. pre-entered the command in the terminal as follows from instructions:

    curl -0vF files=@openwrt-ar71xx-dir-615-c1-squashfs-factory.bin

  3. put pen in the reset button of router in same way you do recovery mode
  4. start the curl command in the terminal
  5. power on the router by plugging in
  6. watch the commands so that they look like this hopefully:

* Hostname was NOT found in DNS cache
*   Trying…
* Connected to ( port 80 (#0)
> POST /cgi/index HTTP/1.0
> User-Agent: curl/7.35.0
> Host:
> Accept: */*
> Content-Length: 3932431
> Content-Type: multipart/form-data; boundary=————————464dbec1925a46d8
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: uIP/0.9 (
< Content-type: text/html
<title>backup loader</title>
<script language=”javascript”>
var count = 0;
function count_down(){
if (count == 101) {return;}
get_by_id(“show_sec”).innerHTML = count;
if (count < 101) {count++;setTimeout(‘count_down()’, 1000);}
function get_by_id(id){with(document){return getElementById(id);}}
<font color=blue face=verdana size=3><b>Device is Upgrading the Firmware</b></font>
<tr><td align=center><font face=Arial size=2 color=red>
<b><span id=”show_sec”></span>&nbsp;&#37;</b>
<hr><ul><font face=Verdana color=red size=4>NOTICE !!</font><br>
<font face=Verdana size=1><li>Don’t turn the device off before the Upgrade jobs done !

7. wait for the reboot.  Nothing will seem to happen.  You will wonder if you have need of bashing your head on your wall, but just wait for light to go out and on again.  Still nothing will happen.  I thought I had failed again until one *very* critical step did I.

8. change your static IP of your computer BACK TO DHCP (or to the same network as your new router which will magically change from to!  Once I did this, restarted the connection, I was finally able to access the openwrt login page!

I hope this helps someone tremendously.

Tags : , , , , , , , , ,

4 thoughts on “How to Flash OpenWRT on a DIR-615 C1 Router”

  1. Thanks so much for your post. Your last line to change from static IP to dynamic IP made my day. I was uploading the bin file on the recovery page, waited and waited but nothing happened. But when I followed what you said, restart the router and static to dynamic got me to the dd-wrt page. I did not need a hub/switch.

Leave a Reply

Your email address will not be published. Required fields are marked *