<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>pig-monkey.com - os x</title><link href="https://pig-monkey.com/" rel="alternate"></link><link href="https://pig-monkey.com/tag/os-x/feed" rel="self"></link><id>https://pig-monkey.com/</id><updated>2012-12-22T00:00:00-08:00</updated><entry><title>Recovering the Linksys WRT54GL via TFTP</title><link href="https://pig-monkey.com/2008/07/recovering-the-linksys-wrt54gl-via-tftp/" rel="alternate"></link><published>2008-07-18T00:00:00-07:00</published><updated>2012-09-15T00:00:00-07:00</updated><author><name>Pig Monkey</name></author><id>tag:pig-monkey.com,2008-07-18:/2008/07/recovering-the-linksys-wrt54gl-via-tftp/</id><summary type="html">&lt;p&gt;Last May, &lt;a href="http://www.dd-wrt.com"&gt;DD-WRT&lt;/a&gt; released the (long in development) v24 of their firmware. I had been running one of the release candidates for it on my Linksys WRT54GL, but decided today to upgrade to the stable release. I downloaded the appropriate file (&lt;code&gt;dd-wrt.v24_std_generic.bin&lt;/code&gt;), followed the &lt;a href="http://www.dd-wrt.com/wiki/index.php/Installation#Upload_The_Firmware"&gt;instructions for flashing through …&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;p&gt;Last May, &lt;a href="http://www.dd-wrt.com"&gt;DD-WRT&lt;/a&gt; released the (long in development) v24 of their firmware. I had been running one of the release candidates for it on my Linksys WRT54GL, but decided today to upgrade to the stable release. I downloaded the appropriate file (&lt;code&gt;dd-wrt.v24_std_generic.bin&lt;/code&gt;), followed the &lt;a href="http://www.dd-wrt.com/wiki/index.php/Installation#Upload_The_Firmware"&gt;instructions for flashing through the web GUI&lt;/a&gt;, and promptly bricked the router.&lt;/p&gt;
&lt;p&gt;It wasn&amp;rsquo;t totally destroyed. I could still ping the router, but couldn&amp;rsquo;t access it in any other way. The power light would flash repeatedly, and no other lights came on. No amount of hard resets would fix it.&lt;/p&gt;
&lt;!--more--&gt;

&lt;p&gt;According to &lt;a href="http://www.dd-wrt.com/wiki/index.php/Recover_from_a_Bad_Flash#WRT54G.2FGL.2FGS"&gt;DD-WRT&amp;rsquo;s wiki article on bad flashes&lt;/a&gt;, the repetitive blinking of the power light means that the bootloader is defective, but that the problem might be solved using a TFTP recovery. The idea is that when the router first boots up, there&amp;rsquo;s a brief moment where it will accept an upload. By pushing through firmware, you are able to temporarily boot the router.&lt;/p&gt;
&lt;p&gt;On older Linksys routers, this only works with the official Linksys firmware, so I downloaded the latest version from &lt;a href="http://www.linksys.com/servlet/Satellite?c=L_CASupport_C2&amp;childpagename=US%2FLayout&amp;cid=1166859841350&amp;packedargs=sku%3DWRT54GL&amp;pagename=Linksys%2FCommon%2FVisitorWrapper&amp;lid=4135041350B01&amp;displaypage=download"&gt;Linksys&amp;rsquo; support page for the WRT54GL&lt;/a&gt;. Because the router will only accept the firmware at the very start of the boot process, I first unplugged the router, turning it off. To monitor the router during the process, I started a ping from my machine.&lt;/p&gt;
&lt;pre&gt;
$ ping 192.168.1.1
&lt;/pre&gt;

&lt;p&gt;Then, using the TFTP client that ships with OS X, I executed the upload&lt;/p&gt;
&lt;pre&gt;
$ echo "put FW_WRT54GL_4.30.12.3_US_EN_code.bin" | tftp -e 192.168.1.1
&lt;/pre&gt;
&lt;p&gt;and immediately plugged the router back in. In 10 seconds, TFTP reported that the file had been sent.&lt;/p&gt;
&lt;p&gt;At this point, the router stopped responding to my pings for about 30 seconds. When it began replying again, I was able to access the default Linksys web GUI. The first thing I did in the GUI was to hit the &amp;ldquo;reset to factory defaults&amp;rdquo; button, which clears the NVRAM of my bad DD-WRT image and installs the fresh Linksys image. After that, I installed a new DD-WRT &amp;ldquo;mini&amp;rdquo; image (the WRT54GL requires you flash with &amp;ldquo;mini&amp;rdquo; before upgrading to &amp;ldquo;standard&amp;rdquo; when moving from the default firmware), by uploading &lt;code&gt;dd-wrt.v24_mini_generic.bin&lt;/code&gt; via the upgrade page. This worked without a hitch.&lt;/p&gt;
&lt;p&gt;In the DD-WRT web interface, I tried to flash the router with the standard firmware, but was greeted by a vague error message that told me only that the upgrade had failed. I went &lt;a href="http://www.dd-wrt.com/wiki/index.php/What_is_DD-WRT%3F#File_Versions"&gt;back to the wiki to see what the differences were between mini and standard&lt;/a&gt; and decided that it would be find to leave the router with mini. All I needed was for the router to act as a wireless repeater with a virtual interfaces. The mini firmware supports this, so I was able to &lt;a href="http://pig-monkey.com/2007/12/02/escapades-in-the-art-of-wireless-piracy/"&gt;setup the router just as before&lt;/a&gt;.&lt;/p&gt;</content><category term="general"></category><category term="linksys"></category><category term="firmware"></category><category term="dd-wrt"></category><category term="wireless"></category><category term="os x"></category><category term="router"></category><category term="tftp"></category></entry><entry><title>An Update</title><link href="https://pig-monkey.com/2008/06/an-update/" rel="alternate"></link><published>2008-06-02T00:00:00-07:00</published><updated>2012-12-22T00:00:00-08:00</updated><author><name>Pig Monkey</name></author><id>tag:pig-monkey.com,2008-06-02:/2008/06/an-update/</id><summary type="html">&lt;p&gt;It&amp;rsquo;s been brought to my attention &amp;ndash; repeatedly &amp;ndash; that I neglected to post anything for the last month and a half. Oops. &lt;/p&gt;
&lt;p&gt;I upgraded my macbook to &lt;a href="http://support.apple.com/kb/HT1141"&gt;10.5.3&lt;/a&gt; earlier tonight. Upon reboot, everything was shiny till I attempted to launch Firefox. It did one little bounce in the …&lt;/p&gt;</summary><content type="html">&lt;p&gt;It&amp;rsquo;s been brought to my attention &amp;ndash; repeatedly &amp;ndash; that I neglected to post anything for the last month and a half. Oops. &lt;/p&gt;
&lt;p&gt;I upgraded my macbook to &lt;a href="http://support.apple.com/kb/HT1141"&gt;10.5.3&lt;/a&gt; earlier tonight. Upon reboot, everything was shiny till I attempted to launch Firefox. It did one little bounce in the dock and gave up. Attempting to run it from the terminal in safe mode was no better.&lt;/p&gt;
&lt;p&gt;Of course, OS X does its best to insulate the user from the system, so finding useful logs was out of the question. All &lt;code&gt;/var/log/system.log&lt;/code&gt; told me was that Firefox exited with error code 1.&lt;/p&gt;
&lt;p&gt;In a fit of desperation, I deleted my version of Firefox and downloaded Firefox 3 RC1. After the install, it launched. So now I&amp;rsquo;m running that less-than-polished software.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve been running the Firefox 3 betas on my Ubuntu machine at work since February or so. Each release seems to get progressively worse: they&amp;rsquo;re all of them unstable, slow, and have an annoying new address bar. Now that I made the mistake of updating the work machine to Ubuntu 8.04, I&amp;rsquo;m stuck with using Beta 5 everyday. (Dear Canonical: Please don&amp;rsquo;t ship stable releases with beta software. Thanks.) I&amp;rsquo;ve enjoyed coming home to the stable, usable, and speedy Firefox 2.&lt;/p&gt;
&lt;p&gt;To be fair, my Firefox 3 experience up to now was limited only to the Linux versions, and I&amp;rsquo;d not used the release candidate on any platform. So far, RC1 on OS X doesn&amp;rsquo;t seem too bad.&lt;/p&gt;</content><category term="general"></category><category term="os x"></category><category term="firefox"></category><category term="apple"></category><category term="linux"></category></entry><entry><title>TrueCrypt Now Cross-Platform</title><link href="https://pig-monkey.com/2008/02/truecrypt-now-cross-platform/" rel="alternate"></link><published>2008-02-06T00:00:00-08:00</published><updated>2012-12-22T00:00:00-08:00</updated><author><name>Pig Monkey</name></author><id>tag:pig-monkey.com,2008-02-06:/2008/02/truecrypt-now-cross-platform/</id><summary type="html">&lt;p&gt;&lt;a href="http://www.truecrypt.org/"&gt;TrueCrypt&lt;/a&gt; is finally &lt;a href="http://www.truecrypt.org/docs/?s=version-history"&gt;available for OS X&lt;/a&gt;! Though my primary OS was Linux up till just last November, I&amp;rsquo;ve been waiting on this for a while longer. Last year I used a Mac at work, and would frequently want to decrypt TrueCrypt disks that I carry around on my …&lt;/p&gt;</summary><content type="html">&lt;p&gt;&lt;a href="http://www.truecrypt.org/"&gt;TrueCrypt&lt;/a&gt; is finally &lt;a href="http://www.truecrypt.org/docs/?s=version-history"&gt;available for OS X&lt;/a&gt;! Though my primary OS was Linux up till just last November, I&amp;rsquo;ve been waiting on this for a while longer. Last year I used a Mac at work, and would frequently want to decrypt TrueCrypt disks that I carry around on my flash drive.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m plan to donate to the project when my next paycheck comes in.&lt;/p&gt;</content><category term="general"></category><category term="truecrypt"></category><category term="os x"></category><category term="mac"></category><category term="crypto"></category><category term="linux"></category></entry></feed>