Tag: problems

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 192.168.0.2 static
  2. pre-entered the command in the terminal as follows from instructions:

    curl -0vF files=@openwrt-ar71xx-dir-615-c1-squashfs-factory.bin http://192.168.0.1/cgi/index

  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 192.168.0.1…
* Connected to 192.168.0.1 (192.168.0.1) port 80 (#0)
> POST /cgi/index HTTP/1.0
> User-Agent: curl/7.35.0
> Host: 192.168.0.1
> 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 (http://dunkels.com/adam/uip/)
< Content-type: text/html
<
<html>
<head>
<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);}}
</script>
</head>
<center>
<font color=blue face=verdana size=3><b>Device is Upgrading the Firmware</b></font>
<p>
<table>
<tr><td align=center><font face=Arial size=2 color=red>
<b><span id=”show_sec”></span>&nbsp;&#37;</b>
</font></td></tr>
</table>
<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 !
</center>
<script>
count_down();
</script>
</html>


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 192.168.0.1 to 192.168.1.1!  Once I did this, restarted the connection, I was finally able to access the openwrt login page!

I hope this helps someone tremendously.

Tags : , , , , , , , , ,

Audible for Ubuntu: Epic Fail

Trying to listen to an audio book from Audible.com on your Ubuntu machine?  Spare yourself the pain, and just ask to cancel and get your money back.  They have no plans to help you.  I hope I can one day edit this post with some good news, but until they they are in bed with proprietary operating systems of the world.  All you need to do is read this live-chat transcript I just had with them and the picture should be very clear:

Audible Your AccountAudible.com

Message From Customer Service

Hello,

Here’s a copy of the chat transcript you requested:

Initial Question: Technical support
I’m trying to listen to my book on my Ubuntu machine. Please tell me how to do it. Thanks

04:39 AM PDT Rose(Audible): Hello Wayne, thank you for contacting Audible. My name is Rose. I’ll be happy to help you today.
Is it running Windows?
04:40 AM PDT Wayne : I’ll repeat, it’s an Ubuntu machine.
Thanks
04:40 AM PDT Rose(Audible): Let me check.
04:40 AM PDT Wayne : Thanks. Much appreciated.
04:41 AM PDT Wayne : I followed the instructions: Listen on computer, click download button under ‘listen’ and it downloaded a .aa file which does not launch an audio player.
04:42 AM PDT Rose(Audible): Just to make sure, is it Linux operating system?
04:43 AM PDT Wayne : based on the fact that you are asking me this question, I will giev you a short answer: yes
04:44 AM PDT Wayne : (it’s the fastest growing OS in the world so I’m quite surprised that you asked)
04:45 AM PDT Rose(Audible): Linux-based operating system is not supported by Audible.
04:45 AM PDT Wayne : What are audible’s plans to help me?
04:46 AM PDT Rose(Audible): Do you any other listening devices?
04:46 AM PDT Wayne : Do you have a release date planned or any work planned?
No. I use just Ubuntu. I don’t have money for other players
04:46 AM PDT Rose(Audible): To see the list of compatible devices, please click here www.audible.com/dc
04:46 AM PDT Wayne : or another computer. I can’t afford to buy an operating system just to listen to the book I just bought from you.
Can you send me the file as an mp3?
or .wav?
04:47 AM PDT Wayne : Or why can’t I live stream it?
04:47 AM PDT Rose(Audible): Our files cannot be converted into MP3 or any other formats. The measures taken by Audible.com are required to protect both the intellectual property rights of our Content Providers, as well as the authors.
04:47 AM PDT Wayne : That was a nice copy/paste. I understand.
So how can I listen?
04:47 AM PDT Rose(Audible): Do you have a mobile phone? Like Smartphones?
04:47 AM PDT Wayne : It’s running ubuntu.  Do you support Ubunto Mobile?
04:48 AM PDT Wayne : http://www.ubuntu.com/phone
04:50 AM PDT Rose(Audible): Do you have Play Store or Market?
04:50 AM PDT Wayne : I want to share something else while you are checking that. I do not recall reading anywhere that you did not support Ubuntu. Nor do I recall reading what you do support (ie. Windows/Apple only). Before someone like me gives you money I deserve to know that I will be facing this kind of problem.
04:51 AM PDT Wayne : No. I will repeat. I cannot afford to buy a smartphone to listen to my simple audio book.  I thought I would be logging into the website and listening.
04:52 AM PDT Rose(Audible): I’m pertaining to the Ubuntu mobile.
At this time, we are working with the open-source developers of Linux to see if we can make our file format compatible with their operating system. If that happens, we do expect to expand our support to Linux computers in the future. We would love to make our content available to Linux users as soon as possible, as we often hear from Linux fans regarding Audible playback.
04:53 AM PDT Wayne : This was a copy/paste again. It was the same one I found online from 2013. This is a disappointing conversation, Rose.
So, let me keep it simple: Unless you buy me an operating system that you support I cannot listen to my file. Will you credit all my fees for the last two months (I didn’t have time to listen) and cancel my subscription please?
Immediately, please.
Or buy me a smartphone or new computer.
04:54 AM PDT Wayne : You can keep your credits until you finish your promise of making it available on linux.
04:54 AM PDT Rose(Audible): I am sorry to hear that you are looking to cease your Audible membership. No
Although I am sad to complete this request for you, I can definitely help you with your concern.
04:54 AM PDT Wayne : Thanks.
04:55 AM PDT Rose(Audible): With that being said, I have gone ahead and cancelled your Gold Monthly Membership which will ensure that you receive no charges from us. You will also receive an additional confirmation email regarding this cancellation.
$29.90 will be going back on your account within 2-3 business days.
04:56 AM PDT Wayne : You are amazing.
Great work, Rose, and I hope i can be your customer very, very soon.
Can you please put me on a list of people who want to give you money?
I am ready to give audible money when I can listen on my Ubuntu machine.
You can see that I have money to give you. I already gave it to you.
04:58 AM PDT Rose(Audible): Thank you for contacting us with your concern about downloading books on your Ubuntu machine. We appreciate your feedback on making it available on Linux OS in the future. I’ll be sure to pass it along to the department in charge.
04:58 AM PDT Wayne : Thank you so much for making the cancellation and credit fast and easy.
This was smart and good.
04:58 AM PDT Rose(Audible): Sure my pleasure. Is there anything else?
04:58 AM PDT Wayne : That’s it. I just want your books. 🙂
04:59 AM PDT Rose(Audible): That’s great to hear then. No worries, I’ll pass it along.
Thank you for contacting Audible! We look forward to seeing you again soon. Please click the end chat link to close this session. Have a great day!
04:59 AM PDT Wayne : Thanks. See you.

Thank you.
Audible.com

This email was sent from a notification-only address that cannot accept incoming email. Please do not reply to this message.

 

Tags : , , , , ,