<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ewald.tienkamp.nl &#187; Wireless networking</title>
	<atom:link href="http://ewald.tienkamp.nl/category/wireless-networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://ewald.tienkamp.nl</link>
	<description>Gentoo Linux and whatever else I think needs to be shot into cyberspace.</description>
	<lastBuildDate>Sat, 04 Sep 2010 08:39:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Flashing OpenWrt on a WRT54G using Gentoo Linux and atftp</title>
		<link>http://ewald.tienkamp.nl/2009/05/26/flashing-openwrt-on-a-wrt54g-using-gentoo-linux-and-atftp/</link>
		<comments>http://ewald.tienkamp.nl/2009/05/26/flashing-openwrt-on-a-wrt54g-using-gentoo-linux-and-atftp/#comments</comments>
		<pubDate>Tue, 26 May 2009 21:34:54 +0000</pubDate>
		<dc:creator>Ewald</dc:creator>
				<category><![CDATA[Gentoo Linux]]></category>
		<category><![CDATA[Wireless networking]]></category>
		<category><![CDATA[atftp]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[lost password]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[WRT54G]]></category>

		<guid isPermaLink="false">http://ewald.tienkamp.nl/?p=25</guid>
		<description><![CDATA[As I had been gifted a nice WRT54G (v3.1, so nice for tinkering), I wanted to toy around with it. Unfortunately I did not have the right username and password combination to access the webinterface. My solution: trying to reflash or reset the device. The Linksys router had already been fitted with a previous OpenWrt [...]]]></description>
			<content:encoded><![CDATA[<p>As I had been gifted a nice <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Linksys_WRT54G_series" title="Wikipedia on the WRT54G series">WRT54G</a> (v3.1, so nice for tinkering), I wanted to toy around with it. Unfortunately I did not have the right username and password combination to access the webinterface. My solution: trying to reflash or reset the device.<br />
<span id="more-25"></span><br />
The Linksys router had already been fitted with a previous <a href="http://openwrt.org/" title="OpenWrt.org">OpenWrt</a> install, so the resetbutton does not work as expected. Or actually, once you are aware of the change OpenWrt applies, it&#8217;s totally expected, but it did take me a couple of tries before finding out it&#8217;s not used to reset firmware settings anymore, but to <a href="http://oldwiki.openwrt.org/OpenWrtDocs(2f)Troubleshooting.html" title="OpenWrt Docs - Troubleshooting information, includes section on failsafe mode">boot in failsafe mode</a> instead.</p>
<p>So that didn&#8217;t work. Then, on to flash it with a brand new install. Even though many step-by-step guides on doing this seem to be online, I couldn&#8217;t quite get it to work as smoothly as expected. So here&#8217;s my own little guide to add to the mix <img src='http://ewald.tienkamp.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Before starting, make sure that while you still have a working connection to the internet, you have already downloaded the <a href="http://kamikaze.openwrt.org/" title="OpenWrt official firmware repository">latest OpenWrt firmware</a>. Make sure you pick <a href="http://oldwiki.openwrt.org/TableOfHardware.html" title="OpenWrt wiki - Use the Table of Hardware to find the cpu used by your make and model">the right bin-file for your specific router</a>. Also, you may not have Advanced TFTP (atftp) installed yet, so make sure you take care of that as well:<br />
<code>emerge -av atftp</code></p>
<p>After making all the preparations, you&#8217;ll first want to shut down any networkmanager you may have running at the moment in KDE or Gnome. That also includes managers such as <a href="http://wicd.sourceforge.net/" title="Wicd">Wicd</a> (which I have grown quite fond of lately).</p>
<p>Second, switch off the Linksys WRT54G by cutting it&#8217;s power. Leave a standard ethernetcable between your router and the machine you are working on. You may want to disconnect any other machines connected to the router for clarity.</p>
<p>Third, open two terminals, so you can view both at the same time. Make sure you enter into superuser mode in both terminals.</p>
<p>Fourth, in one of the terminals, enter the following to lock your eth0 (change if needed) interface settings:<br />
<code>ifconfig eth0:1 192.168.1.5 netmask 255.255.255.0</code></p>
<p>Fifth, in the first terminal enter the following:<br />
<code>ping -f 192.168.1.1</code><br />
And press enter. Dots will run across the terminal.</p>
<p>Sixth, in the second terminal, cd to the directory you downloaded the bin-file to and enter the following command:<br />
<code>atftp --trace --option "timeout 1" --option "mode octet" --put --local-file openwrt-xxx-x.x-xxx.bin 192.168.1.1</code><br />
Change openwrt-xxx-x.x-xxx.bin to the name of your firmware bin-file, do <strong>NOT</strong> hit enter, but do keep this terminal in focus.</p>
<p>Now, plug back the powercord to boot the Linksys WRT54G. As soon as the dots in the first terminal stop running, hit enter in the second terminal. If you responded timely, a lot of information on progressing uploads will float by and your router should reboot itself.</p>
<p>Once this is done, you&#8217;ll have to wait for it to be fully rebooted after which you can restart your networkmanager of choice, be assigned an ip-adress by dhcp and navigate towards the webinterface by entering http://192.168.1.1 in your browser of choice. From here it&#8217;s pretty much self-explanatory.</p>
<p>If I discover any other tricks, happen to start experimenting with my Neo FreeRunner again or feel that anything else needs to be added to or shared with the internet, I&#8217;ll post again. For now, I need to study <img src='http://ewald.tienkamp.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>(Note: large part of this post is an adaptation of the <a href="http://oldwiki.openwrt.org/OpenWrtDocs(2f)Installing(2f)TFTP.html">OpenWRT wiki on using TFTP</a>)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://ewald.tienkamp.nl/2009/05/26/flashing-openwrt-on-a-wrt54g-using-gentoo-linux-and-atftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

