<?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>Zeta-Puppis.com &#187; Kernel</title>
	<atom:link href="http://zeta-puppis.com/category/kernel/feed/" rel="self" type="application/rss+xml" />
	<link>http://zeta-puppis.com</link>
	<description>my very own personal corner</description>
	<lastBuildDate>Wed, 07 Apr 2010 15:36:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fonera and its MTU (and the non-working wireless connection)</title>
		<link>http://zeta-puppis.com/2007/02/06/fonera-and-its-mtu-and-the-non-working-wireless-connection/</link>
		<comments>http://zeta-puppis.com/2007/02/06/fonera-and-its-mtu-and-the-non-working-wireless-connection/#comments</comments>
		<pubDate>Tue, 06 Feb 2007 11:14:34 +0000</pubDate>
		<dc:creator>kratorius</dc:creator>
				<category><![CDATA[Geekness]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kratorius.simosnap.net/2007/02/06/fonera-and-its-mtu-and-the-non-working-wireless-connection/</guid>
		<description><![CDATA[A friend of mine recently bought the La Fonera (no, not really&#8230; he just had it as gift since the fon&#8217;s guys were givin&#8217; it for free during the holidays), but he had some issues: the wireless connection wasn&#8217;t working as expected: most of the time the signal was lost and I can&#8217;t understand why [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine recently bought the La Fonera (no, not really&#8230; he just had it as gift since the fon&#8217;s guys were givin&#8217; it for free during the holidays), but he had some issues: the wireless connection wasn&#8217;t working as expected: most of the time the signal was lost and I can&#8217;t understand why since the signal&#8217;s power was strong enough. So I said to myself &#8220;that&#8217;s time to work on&#8221;.  And now here I am&nbsp;:)</p>
<p><span id="more-35"></span><br />
Let say that I first thought that the problem was the WPA, so I changed the authentication to WEP but the result didn&#8217;t&nbsp;changed.</p>
<p>First of all: this Fonera comes with the 0.7.1-1 (or 0.7.1 r1, as you want to call it, it&#8217;s the same) firmware, so it&#8217;s &#8220;hackable&#8221; with exploits published by several sources. But as you connect the Fonera to internet, it automatically downloads the new 0.7.1-2 firmware that apply a patch to the web interfaces so you can&#8217;t use that exploits anymore. Why do I wanted to exploit it? Well, my intentions wasn&#8217;t to exploit it to get the Fonera unlocked, I just needed a ssh connection because I wanted to understand why the wireless signal was&nbsp;lost.</p>
<p>When you exploited it (I won&#8217;t tell you how to do, google is full of this information) and finally you had access to a ssh connection, you&#8217;ll get something like&nbsp;this:</p>
<pre><code>kratorius@becks:~$ ssh root@169.254.255.1
root@169.254.255.1's password:

BusyBox v1.1.3 (2006.11.21-19:49+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______  _______  _______
|   ____||       ||   _   |
|   ____||   -   ||  | |  |
|   |    |_______||__| |__|
|___|
Fonera Firmware (Version 0.7.1 rev 1) -------------
*
* Based on OpenWrt - http://openwrt.org
* Powered by FON - http://www.fon.com
---------------------------------------------------

root@OpenWrt:~#</code></pre>
<p>The root&#8217;s password for ssh is &#8220;admin&#8221;.  Well, we have access into the router, so where should we begin to look at? Obviously, let see what dmesg says. You&#8217;ll soon notice that the log is literally full of this&nbsp;printk&#8217;statement:</p>
<pre><code>wifi0: stuck beacon; resetting (bmiss count 4)</code></pre>
<p>And let see the ifconfig&#8217;s&nbsp;output:</p>
<pre><code>root@OpenWrt:~# ifconfig
ath1      Link encap:Ethernet  HWaddr 00:18:84:18:0A:72
inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:2290  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:18:84:18:0A:70
UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
RX packets:743 errors:0 dropped:0 overruns:0 frame:0
TX packets:1415 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63354 (61.8 KiB)  TX bytes:630340 (615.5 KiB)
Interrupt:4 Base address:0x1000

eth0:1    Link encap:Ethernet  HWaddr 00:18:84:18:0A:70
inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
Interrupt:4 Base address:0x1000
lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wifi0     Link encap:Ethernet  HWaddr 00:18:84:18:0A:71
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:2119 errors:0 dropped:0 overruns:0 frame:128
TX packets:280 errors:116 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:124155 (121.2 KiB)  TX bytes:31857 (31.1 KiB)
Interrupt:3 Memory:b0000000-b00ffffc</code></pre>
<p>Do you see anything strange? Sure? Did you look at the <acronym title="Maximum Transfer Unit">MTU</acronym> value in ath1? Yes, it&#8217;s 2290. And it&#8217;s so damn high. For an ethernet connection such value should be between 1000 and 2000 but usually for wireless connection it is set to 1492. Well change it to 1492&nbsp;with:</p>
<pre><code>root@OpenWrt:~# ifconfig ath1 mtu 1492</code></pre>
<p>And you&#8217;ll get everything working. Obviously, you should disable the automatic firmware update, otherwise as soon as the Fonera updates its firmware you&#8217;ll get your wireless connection not working again. This is done by commenting the last line in /bin/thinclient (there&#8217;s written &#8220;. /tmp/.thinclient.sh&#8221;, just put a # in front of it). And now you can use the&nbsp;Fonera.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeta-puppis.com/2007/02/06/fonera-and-its-mtu-and-the-non-working-wireless-connection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Give me more penguins</title>
		<link>http://zeta-puppis.com/2006/12/04/give-me-more-penguins/</link>
		<comments>http://zeta-puppis.com/2006/12/04/give-me-more-penguins/#comments</comments>
		<pubDate>Mon, 04 Dec 2006 13:15:46 +0000</pubDate>
		<dc:creator>kratorius</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kratorius.simosnap.net/2006/12/04/give-me-more-penguins/</guid>
		<description><![CDATA[Yesterday I were bored. So I took the linux sources and I began thinking at some interesting modify I could&#160;make.
So, ehm, well&#8230; I did something unusual. I&#8217;m proud to present the&#160;really-very-most-useless-patch-of-the-year:
Add a boot option &#8220;logonum&#8221; that allow the user to choose how many penguins to show in the framebuffer at startup. If no &#8220;logonum&#8221; is [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I were bored. So I took the linux sources and I began thinking at some interesting modify I could&nbsp;make.</p>
<p>So, ehm, well&#8230; I did something unusual. I&#8217;m proud to present the&nbsp;really-very-most-useless-patch-of-the-year:</p>
<p>Add a boot option &#8220;logonum&#8221; that allow the user to choose how many penguins to show in the framebuffer at startup. If no &#8220;logonum&#8221; is specified, it shows  as many penguins as the online cpus (the default&nbsp;behavior).</p>
<p>Signed-off-by: Giuliani Vito, Ivan&nbsp;&lt;giuliani.v@gmail.com&gt;</p>
<p>The patch can be found here: <a href="http://lugbari.org/~kratorius/patches/give-me-more-penguins-2.6.19.patch" title="give-me-more-penguins patch">http://lugbari.org/~kratorius/patches/give-me-more-penguins-2.6.19.patch</a><br />
This patch applies to 2.6.19 vanilla&nbsp;sources.</p>
<p><span id="more-33"></span> Compile your kernel with this patch and modify your grub&#8217;s menu.lst file in this way, 		from something like this: <code>kernel /boot/vmlinuz-2.6.19 root=/dev/hda6 ro vga=0x318</code> 		to to something like this: <code>kernel /boot/vmlinuz-2.6.19 root=/dev/hda6 ro vga=0x318 logonum=5</code> 		to show 5 penguins. If you don&#8217;t tell to grub how many penguins to show, it will use the default behavior 		(it will show as many penguins as your online&nbsp;cpus).</p>
<p><a href="/wp-content/uploads/2006/12/p1010048.JPG" title=")"><img src="/wp-content/uploads/2006/12/p1010048.thumbnail.JPG" alt=")" /></a> <a href="/wp-content/uploads/2006/12/p1010049.JPG" title=") /2"><img src="/wp-content/uploads/2006/12/p1010049.thumbnail.JPG" alt=") /2" /> </a><a href="/wp-content/uploads/2006/12/p1010050.JPG" title=") /3"><img src="/wp-content/uploads/2006/12/p1010050.thumbnail.JPG" alt=") /3" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://zeta-puppis.com/2006/12/04/give-me-more-penguins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
