<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://blog.vodkamelone.de/feeds/atom.xml" rel="self" title="ixs' Vodkamelone" type="application/atom+xml" />
    <link href="http://blog.vodkamelone.de/"                        rel="alternate"    title="ixs' Vodkamelone" type="text/html" />
    <link href="http://blog.vodkamelone.de/rss.php?version=2.0"     rel="alternate"    title="ixs' Vodkamelone" type="application/rss+xml" />
    <title type="html">ixs' Vodkamelone</title>
    <subtitle type="html">rants and raves...</subtitle>
    <icon>http://blog.vodkamelone.de/templates/default/img/s9y_banner_small.png</icon>
    <id>http://blog.vodkamelone.de/</id>
    <updated>2009-07-27T06:59:08Z</updated>
    <generator uri="http://www.s9y.org/" version="1.3-beta1">Serendipity 1.3-beta1 - http://www.s9y.org/</generator>
    <dc:language>de</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:" />

    <entry>
        <link href="http://blog.vodkamelone.de/archives/157-BTRFS-und-die-Lizenz....html" rel="alternate" title="BTRFS und die Lizenz..." />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2009-07-26T22:20:33Z</published>
        <updated>2009-07-27T06:59:08Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=157</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=157</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
            <category scheme="http://blog.vodkamelone.de/categories/3-Unix" label="Unix" term="Unix" />
    
        <id>http://blog.vodkamelone.de/archives/157-guid.html</id>
        <title type="html">BTRFS und die Lizenz...</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Mein <a onclick="javascript: pageTracker._trackPageview('/extlink/blog.koehntopp.de');"  href="http://blog.koehntopp.de">geschätzter Kollege Kris</a> schreibt etwas über <a onclick="javascript: pageTracker._trackPageview('/extlink/blog.koehntopp.de/archives/2566-Unix-Standards.html');"  href="http://blog.koehntopp.de/archives/2566-Unix-Standards.html">Unix und Standards</a>. Neben der Tatsache dass das schöne an Standards ist, dass es so viele gibt und man sich einen aussuchen kann, erwähnte Kris auch die Befürchtung dass BTRFS möglicherweise relizensiert werden könnte.</p>

<p>Die Gefahrt dass BTRFS relizensiert wird besteht nicht.</p>

Zwar wurde die BTRFS Entwicklung bzw. der BTRFS-Haupt-Entwickler durch Oracle finanziert, der Code selber befindet sich jedoch mittlerweile im Upstream-Tree des Kernels. Damit gilt die GPL2 und diese Lizensierung kann nachträglich nicht geändert werden.<br />
Eine andere Lizenz würde nur für zukünftige Versionen relevant sein.</p>

<p>In diesem Fall kann die relizensierte Version als Fork angesehen werden und die bekannten Probleme kommen dann zur Geltung.<br />
Der Spruch mit Eiche und Sau dürfte in diesem Fall nicht unangebracht sein.</p>

Passend dazu hat die aktuelle Ausgabe der <a onclick="javascript: pageTracker._trackPageview('/extlink/lwn.net');"  href="http://lwn.net">Linux Weekly News</a> eine <a onclick="javascript: pageTracker._trackPageview('/extlink/lwn.net/SubscriberLink/342892/64d645b2d3364c5b/');"  href="http://lwn.net/SubscriberLink/342892/64d645b2d3364c5b/">schöne Erklärung der technischen Features und der Architektur von BTRFS und erklärt nebenbei die Entstehungsgeschichte und warum es viel besser ist als ZFS</a>.   
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/156-LinuxTag-2009-Recap-Day-One.html" rel="alternate" title="LinuxTag 2009 Recap - Day One" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2009-06-29T23:30:49Z</published>
        <updated>2009-07-02T14:46:44Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=156</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=156</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
    
        <id>http://blog.vodkamelone.de/archives/156-guid.html</id>
        <title type="html">LinuxTag 2009 Recap - Day One</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>My first day at LinuxTag was rather uneventful as I only arrived in Berlin during the evening and thus couldn't attend the fair during the day. In short, the day looked as follows:</p>

<p>Took the car to Berlin, went directly to the hotel, handed the car off, dropped off the luggage and went for Dinner with the other Fedora guys waiting in front of the hotel.</p>

<p>Dinner was at a steakhouse a few minutes from the hotel and was enjoyable. The steak was nice and the opportunity to catch up on things with <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/User:Andreasr');"  href="https://fedoraproject.org/wiki/User:Andreasr">Andreas</a>, <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/User:Cwickert');"  href="https://fedoraproject.org/wiki/User:Cwickert">Christoph</a>, <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/User:Fab');"  href="https://fedoraproject.org/wiki/User:Fab">Fabian</a>, <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/User:Geroldka');"  href="https://fedoraproject.org/wiki/User:Geroldka">Gerold</a>, <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/User:Robert');"  href="https://fedoraproject.org/wiki/User:Robert">Robert</a>, <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/User:Red');"  href="https://fedoraproject.org/wiki/User:Red">Sandro</a> and <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/User:Twoerner');"  href="https://fedoraproject.org/wiki/User:Twoerner">Thomas</a> was even better.</p>

<p>Afterwards we returned to the Hotel and spent a few hours in the lobby, chatting some more with the other Fedora people sharing the same hotel. As the night was still young we moved outside to a few tables in front of the hotel, enjoying the warm summer night and exchanging some more gossip and ranting about the things in Fedora which made us unhappy.</p>

<p>After all, a very nice first day where I could catch up with old friends and had the ability to make some new acquaintances.</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/155-Dear-FUDCon.html" rel="alternate" title="Dear FUDCon" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2009-06-27T11:35:03Z</published>
        <updated>2009-06-30T06:22:50Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=155</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=155</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
    
        <id>http://blog.vodkamelone.de/archives/155-guid.html</id>
        <title type="html">Dear FUDCon</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><img class="serendipity_image_center" width="17" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/DD.GIF" alt=""  /><img class="serendipity_image_center" width="11" height="32" style="border: 0px; padding-left: 0px; padding-right: 0x;" src="http://blog.vodkamelone.de/uploads/writing/e.GIF" alt=""  /><img class="serendipity_image_center" width="12" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/a.GIF" alt=""  /><img class="serendipity_image_center" width="9" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/r.GIF" alt=""  /><img class="serendipity_image_center" width="14" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/space.GIF" alt=""  /><img class="serendipity_image_center" width="14" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/FF.GIF" alt=""  /><img class="serendipity_image_center" width="12" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/UU.GIF" alt=""  /><img class="serendipity_image_center" width="17" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/DD.GIF" alt=""  /><img class="serendipity_image_center" width="17" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/CC.GIF" alt=""  /><img class="serendipity_image_center" width="10" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/o.GIF" alt=""  /><img class="serendipity_image_center" width="10" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/n.GIF" alt=""  /><img class="serendipity_image_center" width="6" height="32" style="border: 0px; padding-left: 0px; padding-right: 0px;" src="http://blog.vodkamelone.de/uploads/writing/comma.GIF" alt=""  /></p>

<p>I enjoy you immensly, it's been great meting old friends and making some new ones. Furthermore you are perfect for catching up with some former colleagues, other developers and for talking about lingering issues in a much more sensible setting than a mailing list filled with people with too much time for pointless bickering.</p>

<p>Ignore the people claiming that you're at the wrong time, the wrong location or the wrong anything. Sure, you're not always next door and sometimes you're even at the other end of the world. I won't be attending you in such cases, but there's always a FUDCon closer by which is worth it. Ignore the haters, they are just cramping your style.<p>

<p>But talking about style, I would really, really pretty please with sugar on top have you offering a more relaxed setting for conducting chats between a small group of people or just one-on-one talks. You have something called a lounge, but it's not really conductive for staying longer, the chairs are horrible. And your little brother FUDPub is too wild. No time there.<br />
So please FUDCon, improve your style a bit and make your &quot;lounge&quot; a real lounge. I'll love you for that even more.</p>

<p>I'm thinking about something like that here:<br />
<div class="serendipity_imageComment_center" style="width: 110px"><div class="serendipity_imageComment_img"><a class='serendipity_image_link' href='http://blog.vodkamelone.de/uploads/Narita-sakura-lounge.jpg'><!-- s9ymdb:183 --><img class="serendipity_image_center" width="110" height="73" src="http://blog.vodkamelone.de/uploads/Narita-sakura-lounge.serendipityThumb.jpg" alt=""  /></a></div><div class="serendipity_imageComment_txt">Sakura Lounge for Japan Airlines at Narita Airport Terminal 2 by Hirohisat</div></div></p>

<p>Your biggest fan</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/154-No-good-deed-goes-unpunished..html" rel="alternate" title="No good deed goes unpunished." />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2009-06-09T21:20:48Z</published>
        <updated>2009-06-11T15:45:47Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=154</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=154</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
    
        <id>http://blog.vodkamelone.de/archives/154-guid.html</id>
        <title type="html">No good deed goes unpunished.</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>I've been traveling to Amsterdam today and as usual for airtravel, you spend an awful lot of time with the security theater. Today cost me about ~15 minutes. Unlike the normal horror stories however, today was a notable exception. In fact, what happened today at the security checkpoint of the Stuttgart airport was a very interesting experience.</p>

<p>I was asked to take my notebook out of my bag and put it on the belt by itself.  Easily done. Usually the security guys ask you to switch it on for a moment. No idea why that is though.<br />
Anyway, this time it was a bit different, the security guy asked me if the notebook sporting the Linux advertisement (lovingly applied by Alex Maier) is actually running Linux. After confirming this and stating that it's only natural as I've been with Red Hat in the past, was wearing my Spacewalk Hacker shirt and am still doing Fedora work, the guy was very happy as he seemingly could vent his frustration with Linux at someone knowledgable.</p>

<p>The security guy was telling me that he's been using Linux in the past, but it's just not user friendly enough. His pet peeve was the need to mount and unmount removable media.<br />
Especially the unmounting was a major hassle for him as it makes working with the system difficult for the inexperienced user.<br />
I explained to him the technical reasons why the system is acting as it is, how the filesystem cache is playing it's part and the need to sync data before being able to remove a disk and how the eject button on his cd drive is disabled. After having explained the technical details of the kernel, I told him that the current Desktops do automounting of CDs and other removable media but that I wasn't sure about removal. This should at least partly solve his problem with the mounting. About unmounting, I have no idea as it has been more than 5 years since I last touched a CD. Fast Networks and PXE all but obsoleted optical media for my use-cases.</p>

<p>After this was cleared up, he mentioned another problem he considered important: The claimed amount of technical knowledge needed to expertly use linux.<br />
I tried explaining my point of view, that a certain amount of technical knowledge is immensely helpful in order to understand the system and thus being able to spot problems and fix them accordingly. Without the technical knowledge, which can be picked up rapidly by the way, the user would be forced to always get help from a third party for each small problem. Not optimal either.<br />
At the same time however, I stressed the fact that the current distributions are all trying very hard to be usable, even for the inexperienced user.</p>

<p>As a good deed for the day, I mentioned that F11 is being released today and that he should give the Live-CD a shot, he might like it. The security guy was countering that the Live-CD might be nice, but what he would really like is a Live-USB media with persistent storage. Luckily, Fedora can score big time here and satisfy that requirement: Live USB with added persistence was one of the main features touted at last year's Linuxtag.</p>

<p>As I had to leave for my plane which was starting to board, I left a business card with my personal email address and asked 
the guy to please report back on his experience with the Live-USB. Feedback is always good, especially if it is about a failure in our system.<br />
It might give us some nice usability data and show where we can improve our documentation or presentation.<br />
Anyone in Fedoraland interested in the possible follow-up?</p>

<p>But as interesting that chat was, no good deed goes unpunished:  I'll have to find out now where these imbeciles in Schiphol lost my luggage with my documents and all clothes for tomorrow's meeting and my hayfever medicine.</p>

<p><b>*RAGE*<br />
HATE U!</b></p>
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/153-Dont-blame-me,-I-voted-for-the-right-guy..html" rel="alternate" title="Don't blame me, I voted for the right guy." />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2009-06-07T14:54:28Z</published>
        <updated>2009-06-09T01:59:10Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=153</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=153</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
    
        <id>http://blog.vodkamelone.de/archives/153-guid.html</id>
        <title type="html">Don't blame me, I voted for the right guy.</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Today it's voting day for me. As <a onclick="javascript: pageTracker._trackPageview('/extlink/www.braincache.de/wp/2009/06/07/european-election/');"  href="http://www.braincache.de/wp/2009/06/07/european-election/">Hendrik</a> already mentioned, it's time to vote for the European Parliament.</p>

<p>Besides that, I had to fill in three local ballots. One for my town council, and two times for the regional council.</p>

<p>But there's an even more important vote going on: Fedora has three elections running, one for the next Release name, one deciding about 5 seats on the next <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/Development/SteeringCommittee');"  href="http://fedoraproject.org/wiki/Development/SteeringCommittee">FESCO</a> and three seats for the <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/Board');"  href="http://fedoraproject.org/wiki/Board">Board</a>.</p>

<p>Unfortunately my preferred candidate, Cthulhu, wasn't running for any of the elections which meant I indeed had to settle for the lesser evil.<br /><!-- s9ymdb:170 --><img class="serendipity_image_center" width="420" height="420" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/cthulhu.jpg" alt=""  /></p>

<p>In case you haven't voted yet, do so at <a onclick="javascript: pageTracker._trackPageview('/extlink/admin.fedoraproject.org/voting/');"  href="https://admin.fedoraproject.org/voting/">https://admin.fedoraproject.org/voting/</a>.<br />
You can find out about the candidates and their platforms at <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/Development/SteeringCommittee/Nominations');"  href="http://fedoraproject.org/wiki/Development/SteeringCommittee/Nominations">the nominataion page for FESCO</a> or <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/Board/Elections/Nominations');"  href="http://fedoraproject.org/wiki/Board/Elections/Nominations">the nomination page for the Board</a>.<br />
Another good way of understanding the candidates and their intentions is the Questionaire every candidate was asked to fill in. This was the first time we've ever tried gathering questions from the Fedora contributors and submitting them to the candidates. The answers are very interesting and can be found in either <a onclick="javascript: pageTracker._trackPageview('/extlink/www.leemhuis.info/files/fedora/answers.txt');"  href="http://www.leemhuis.info/files/fedora/answers.txt">plain text</a> or as an <a onclick="javascript: pageTracker._trackPageview('/extlink/www.leemhuis.info/files/fedora/answers-table.ods');"  href="http://www.leemhuis.info/files/fedora/answers-table.ods">OpenOffice Spreadsheet</a>. My suggestion would be to look at the spreadsheet, it's easier to compare the different stances of each candidate.<br />
And then, there are of course the Town Hall Meeting transcripts. The #fedora-townhall is a moderated IRC Chanel where the candidates are taking questions from the audience and try to answer them. The logs can be found on the normal <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/Elections');"  href="https://fedoraproject.org/wiki/Elections">Fedora Election</a> pages.<br />
There are a lot of worthwhile candidates, not the least your's truly. So don't waste your vote.</p>

<p><!-- s9ymdb:169 --><img class="serendipity_image_center" width="250" height="250" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/voted.png" alt=""  /></p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/151-Red-Hat-Enterprise-LinuxCentOS-5-minimal-installation.html" rel="alternate" title="Red Hat Enterprise Linux/CentOS 5 minimal installation" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2009-04-06T15:22:08Z</published>
        <updated>2009-04-21T11:32:44Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=151</wfw:comment>
    
        <slash:comments>4</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=151</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
    
        <id>http://blog.vodkamelone.de/archives/151-guid.html</id>
        <title type="html">Red Hat Enterprise Linux/CentOS 5 minimal installation</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>With current virtualization technology it is often desirable to install an absolute minimal system and then only add the one service running on the system.</p>

<p>Unfortunately, this is not as easy as the "Minimal Installation" of RHEL (I'm not even going to think about fedora) is rather huge and contains lots of unnecessary gems people do not want on a server.</p>

<p>The easiest way of achieving a minimal installation is to use a <a onclick="javascript: pageTracker._trackPageview('/extlink/www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/ch-kickstart2.html');"  href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/ch-kickstart2.html" title="kickstart installation">kickstart</a> file and select only the necessary packages.</p>

<p>The following kickstart file only installs a usable base system but leaves out the unnecessary stuff often being installed on a "server" installation.<br />
The %post script is used to do some final clean up.<br />
In this case i386 packages are removed if running on a x86_64 system in order to prevent having a mixed userland.<br />
For people not running with IPv6, v6 support is disabled/removed as well.</p>

<p>This template kickstart file should be customized and then be published on a ftp or http server.<br />
The anaconda installer can be instructed to use this file by passing <i>ks=http://your.server/minimal.ks</i> on the command line.</p>

<blockquote>
<pre>
#
# Minimal RHEL5 Installation
# http://blog.vodkamelone.de/archives/151-Red-Hat-Enterprise-LinuxCentOS-5-minimal-installation.html
#

install
# Mirror URL
url --url <i>Your Mirror URL, e.g. http://mirror.centos.org/centos/5/os/x86_64</i>
lang en_US.UTF-8
keyboard de-latin1-nodeadkeys
network --device eth0 --bootproto dhcp
# Your root password
rootpw --iscrypted <i>your root password as a crypted string</i>
firewall --enabled --ssh
firstboot --disable
authconfig --enableshadow --enablemd5
selinux --enforcing
# Timezone, change as needed
timezone --utc Europe/Berlin
bootloader --location=mbr
# Append the following line if you need serial console support
#--append="console=tty0 console=ttyS0,115200n8r"
# or for Xen:
#--append="console=tty0 console=xvc0"
key --skip
logging --host=<i>You syslog server</i>
skipx
# uncomment if you only need a text mode installation
#text
reboot
services --disabled ip6tables
clearpart --initlabel --all
autopart

# Packages selection.
%packages --nobase
kernel
yum
openssh-server
openssh-clients
dhclient
audit
man
logrotate
tmpwatch
vixie-cron
crontabs
# Remove some stuff we do not need.
-iptables-ipv6
-system-config-securitylevel-tui
-gnu-efi
-Deployment_Guide-en-US
-redhat-release-notes
-cryptsetup-luks
# Remove some further packages
-hal
-pm-utils
-dbus
-dbus-glib
# If you're using xen, the following packages can be removed as well
#-setserial
#-hal
#-pm-utils
#-kudzu
#-dbus
#-dbus-glib

# Run a post script to clean up a bit
%post
chvt 3
(
echo "Disabling IPv6"
sed -i -e 's/\(NETWORKING_IPV6=\).*/\1no/' /etc/sysconfig/network

cat << EOF >> /etc/modprobe.conf
# disable IPv6
alias net-pf-10 off
EOF

echo "Disabling Zeroconf"
grep -q '^NOZEROCONF=yes' /etc/sysconfig/network || sed -i -e '/^NETWORKING=yes/a NOZEROCONF=yes' /etc/sysconfig/network

# Running on x86_64? Remove i386 rpms
if [ "$(uname -m)" == "x86_64" ]; then
	echo "We're on x86_64, removing unwanted i386 libraries"
	rpm -qa --queryformat='%{n}-%{v}-%{r}.%{arch}\n' | grep '\.i[3456]86$' | xargs rpm -ev
	echo "done"
fi

# Adding ssh key
# You could add your ssh key here
#echo "Adding ssh key"
#mkdir -p /root/.ssh
#chmod 700 /root/.ssh
#echo '<i>your ssh key</i>' > /root/.ssh/authorized_keys
#chmod 600 /root/.ssh/authorized_keys


# Running on XEN? Add serial console if not already configured
if [ -f /proc/xen/capabilities ] &&amp; [ $(cat /proc/xen/capabilities | wc -l) -eq 0 ]; then
	echo "Adding XEN serial console support"
	# Check it's not already configured and add it and allow root-logins
	grep -q xvc0 /etc/inittab || sed -i -e '/^# Run gettys/a co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav ' /etc/inittab 
	grep -q xvc0 /etc/securetty || echo xvc0 >> /etc/securetty
fi

) 2>&1 | tee /root/ks-post.log
chvt 1
</pre>
</blockquote> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/150-Liebe-Gefaehrderinnen-und-Gefaehrder....html" rel="alternate" title="Liebe Gefährderinnen und Gefährder..." />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2009-02-21T16:30:38Z</published>
        <updated>2009-02-21T17:39:24Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=150</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=150</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/1-CCC" label="CCC" term="CCC" />
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
            <category scheme="http://blog.vodkamelone.de/categories/2-Fun" label="Fun" term="Fun" />
            <category scheme="http://blog.vodkamelone.de/categories/5-Politik" label="Politik" term="Politik" />
            <category scheme="http://blog.vodkamelone.de/categories/6-Teh-Intarweb" label="Teh Intarweb" term="Teh Intarweb" />
    
        <id>http://blog.vodkamelone.de/archives/150-guid.html</id>
        <title type="html">Liebe Gefährderinnen und Gefährder...</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><a onclick="javascript: pageTracker._trackPageview('/extlink/www.ccc.de');"  href="http://www.ccc.de">Den üblichen Verächtigen</a> dürfte bekannt sein, dass <a onclick="javascript: pageTracker._trackPageview('/extlink/blog.handelsblatt.de/indiskretion/eintrag.php?id=2047');"  href="http://blog.handelsblatt.de/indiskretion/eintrag.php?id=2047">unsere nicht vertrauenswürdige Familienministerin</a> gerade dabei ist die Weichen für das neue, kindersichere und reingewaschene Internet zu stellen.</p>

<p>Böse Zeitgenossen nehmen gerne das ebenso böse Wort &quot;Zensur&quot; in den Mund und vergessen dabei an die Kinder zu denken. Frau von der Leyens <a onclick="javascript: pageTracker._trackPageview('/extlink/blog.handelsblatt.de/indiskretion/eintrag.php?id=2013');"  href="http://blog.handelsblatt.de/indiskretion/eintrag.php?id=2013">Internetsperren weisen jedoch den richtigen Weg</a>.</p>

<p>Da dies ja ein hauptsächlich technisches Blog ist, hier also ein kleines Rezept für <a onclick="javascript: pageTracker._trackPageview('/extlink/httpd.apache.org/docs/2.2/mod/mod_rewrite.html');"  href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> um Besuchern der eigenen Webseite schonmal einen kleinen Vorgeschmack zu geben auf die Zukunft des deutschen Internets:</p>

<pre>
RewriteEngine on
RewriteCond %{HTTP_REFERER} ![den_eigenen_domainnamen_bitte_hier_einfügen] [NC]
RewriteCond %{HTTP_REFERER} !bmi\.pifo\.biz [NC]
RewriteRule ^(.*)$      http://bmi.pifo.biz/?http://%{HTTP_HOST}/$1 [R,L]
</pre>

<p>Sobald dieser Konfigurationsschnipsel in einer <i>.htaccess</i> Datei im Webroot einer Webseite abgelegt wurde, wird die Funktionsweise der bundesdeutschen Filterliste realitätsnah simuliert. Der Besucher wird beim ersten Aufruf einer Webseite auf eine täuschen echte Simulation der STOP Seite für gefährliche Internetangebote umgeleitet.</p>

<p>Sobald er sich von dieser humoristischen Seite auf die eigentlich besuchte Seite durchgeklickt hat, kann er diese jedoch normal durchklicken... Eigetnlich auch nicht anders als die blauen Free-Speech Schleifchen, die man vor vielleicht 12 Jahren überall im Web vorfand.</p>

<p>Ein kleines Beispiel für die in Zukunft sicher regelmäßig auftretenden, jedoch sehr bedauerliche Einzelfällen von Fehlkategorisierungen: <a onclick="javascript: pageTracker._trackPageview('/extlink/bmi.pifo.biz/?http://blog.vodkamelone.de');"  href="http://bmi.pifo.biz/?http://blog.vodkamelone.de">blog.vodkamelone.de auf der Sperrliste</a>. :-)</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/148-Installing-OpenWrt-on-a-Microtik-Routerboard-RB433.html" rel="alternate" title="Installing OpenWrt on a Microtik Routerboard RB433" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2008-11-13T22:56:00Z</published>
        <updated>2008-11-08T17:49:55Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=148</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=148</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
            <category scheme="http://blog.vodkamelone.de/categories/4-Hardware" label="Hardware" term="Hardware" />
            <category scheme="http://blog.vodkamelone.de/categories/3-Unix" label="Unix" term="Unix" />
    
        <id>http://blog.vodkamelone.de/archives/148-guid.html</id>
        <title type="html">Installing OpenWrt on a Microtik Routerboard RB433</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><!-- s9ymdb:160 --><img class="serendipity_image_left" width="67" height="110" style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/rb433s.serendipityThumb.jpg" alt=""  /><a onclick="javascript: pageTracker._trackPageview('/extlink/stoile.name/blog/');"  href="http://stoile.name/blog/" title="Dreams and Memories by Philipp Riegger">A friend of mine</a> wanted a small embedded linux router. After evaluating several options such as <a onclick="javascript: pageTracker._trackPageview('/extlink/www.routerboard.com/');"  href="http://www.routerboard.com/" title="Routerboard">Routerboard</a>, <a onclick="javascript: pageTracker._trackPageview('/extlink/www.soekris.com/');"  href="http://www.soekris.com/" title="Soekris Engineering">Soekris</a> or <a onclick="javascript: pageTracker._trackPageview('/extlink/www.pcengines.ch/alix.htm');"  href="http://www.pcengines.ch/alix.htm" title="PC Engines">ALIX</a> systems, he decided to get himself a <a onclick="javascript: pageTracker._trackPageview('/extlink/routerboard.com/comparison.html');"  href="http://routerboard.com/comparison.html" title="Routerboard overview">Microtik Routerboard 433</a>.</p>

<p>The RB433 is a small MIPS board based on the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.atheros.com/pt/AR7100.htm');"  href="http://www.atheros.com/pt/AR7100.htm" title="Atheros AR7100 Product Brief">Atheros AR7100 chipset</a> with a 300MHz CPU, 64MB RAM, 3 100Base-TX ethernet ports and three slots for <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/MiniPCI');"  href="http://en.wikipedia.org/wiki/MiniPCI" title="MiniPCI @ Wikipedia">MiniPCI Cards</a>.</p>

<p>The Routerboard manufacturer <a onclick="javascript: pageTracker._trackPageview('/extlink/www.mikrotik.com/');"  href="http://www.mikrotik.com/" title="Microtik">Microtik</a> delivers these systems with a software called "RouterOS". I haven't looked any closer at it but it seems to be Linux based system with some proprietary userspace management applications. RouterOS seems mostly to be just a Nortel-ish command line interface and a <a onclick="javascript: pageTracker._trackPageview('/extlink/www.urbandictionary.com/define.php?term=fugly');"  href="http://www.urbandictionary.com/define.php?term=fugly" title="Fugly - Fucking Ugly at UrbanDictionary">fugly</a> webinterface. Some people claim that RouterOS is kinda nifty, but it's definitely not hackable enough considering the plans my friend had with his device.</p>

<p>To solve his dilemma, we did what everyone else does in a similar situation, we put a <i>real</i> Linux on it:<br />
OpenWrt to the rescue!</p>

<h4>Getting to know the Routerboard</h4>

<p>When connecting the power to the Routerboard, the system beeps after a short time and outputs some status messages to the serial port. In order to read these, one has to connect to the serial port via a <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/Null_modem');"  href="http://en.wikipedia.org/wiki/Null_modem" title="Null modem cable">serial crossover cable</a> and use a terminal program.</p>

<p>Minicom is one such terminal program. Personally though, I prefer cu from the uucp package as it is rather lightweight. All one has to type is <i>cu -l ttyS0 -s 115200</i> and the bootup messages from the routerboard connected to COM1 will be visible. If you're using any other terminal program, the console settings are the usual 115200bps, <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/8-N-1');"  href="http://en.wikipedia.org/wiki/8-N-1" title="8n1 at Wikipedia">8 data bits, No parity bits and 1 stop bit</a>.</p>

<pre class="screen">
RouterBOOT booter 2.15

RouterBoard 433

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  64 MB

Press any key within 2 seconds to enter setup

</pre>
<p>Now is a good time to press any key to enter the setup mode in order to see what the device can do.<br />
You'll be presented with the following screen:</p>

<pre class="screen">
RouterBOOT-2.15
What do you want to configure?
   d - boot delay
   k - boot key
   s - serial console
   o - boot device
   u - cpu mode
   f - cpu frequency
   r - reset booter configuration
   e - format nand
   g - upgrade firmware
   i - board info
   p - boot protocol
   x - exit setup
your choice: 
</pre>

<p>Change the bootmode to tell the device _not_ to boot from the local flash chip (called NAND) but from the network. To do that, press "o" and "e".<br />
Afterwards press "x" to leave the setup.<br />
The device will try to boot and get its kernel from the network.</p>

<pre class="screen">
RouterBOOT booter 2.15

RouterBoard 433

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  64 MB

Press any key within 2 seconds to enter setup
trying dhcp protocol...........................................................
kernel loading failed
</pre>

<p>So it seems the device is looking for a kernel.<br />
Let's build one for it to boot sucessfully from...</p>

<h4>Building OpenWrt Kamikaze</h4>

<p>In order to correctly install the OpenWrt system a linux host is needed to build the kernel image on. I've been using <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/en/get-fedora');"  href="http://fedoraproject.org/en/get-fedora" title="Get Fedora">Fedora 9</a> from the <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/');"  href="http://fedoraproject.org/" title="Fedora Project">Fedora Project</a> which did the job perfectly. Any other recent distribution should work equally well.</p>

<p>First, check out the current development code via <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/Subversion_(software)');"  href="http://en.wikipedia.org/wiki/Subversion_(software)" title="Subversion Versioning System">Subversion</a> to have the greatest and latest code:
<pre class="screen">
[athienem@localhost ~]$ mkdir ~/openwrt
[athienem@localhost ~]$ cd ~/openwrt
[athienem@localhost openwrt]$ svn co https://svn.openwrt.org/openwrt/trunk/
[...]
Updated to revision 13193.
[athienem@localhost openwrt]$ 
</pre>

<p>In order to install the system correctly we'll be needing two different OpenWrt images:<br />
One image is a <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/JFFS2');"  href="http://en.wikipedia.org/wiki/JFFS2" title="JFFS2 at Wikipedia">JFFS2</a> or <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/SquashFS');"  href="http://en.wikipedia.org/wiki/SquashFS" title="SquashFS">SquashFS</a> image to install onto the target device.<br />
The other image is the so called ramdisk image which can be booted over the network and contains a minimal shell. This image will be used to install the JFFS2 or SquashFS image onto the device and will never again be used. Think of it as a "rescue image".</p>

<p>Both images are basically built the same way.<br />
First, change to the svn checkout directory called trunk and execute <i>make menuconfig</i> to configure the OpenWrt image.</p>

<pre class="screen">
[athienem@localhost openwrt]$ cd trunk/
[athienem@localhost trunk]$ make menuconfig
</pre>

<p>This command will start the ncurses interface to generate a .config file. It should look familiar to people having built kernels before.<br />
Make sure that "Atheros AR71xx [2.6]" is selected as the target system:<br />
<!-- s9ymdb:162 --><img class="serendipity_image_center" width="722" height="433" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/menuconfig.png" alt=""  /><br />
This will make sure that the resulting kernel is bootable on the Routerboard 433.</p>

<p>The next step is to select the target image format, chose ramdisk for now:<br />
<!-- s9ymdb:163 --><img class="serendipity_image_center" width="721" height="432" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/ramdisk.png" alt=""  /><br />
Now select &quot;&lt; Exit &gt;&quot; in the main menu and confirm that you want to save your new OpenWrt configuration.</p>

<p>The next step is to actually build the image by calling "make 
<pre class="screen">
*** End of OpenWrt configuration.
*** Execute 'make' to build the OpenWrt or try 'make help'.
[athienem@localhost trunk]$ make
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'bison'... ok.
Checking 'flex'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'wget'... ok.
Checking 'gnutar'... ok.
Checking 'autoconf'... ok.
Checking 'non-root'... ok.
Collecting target info: done
Collecting package info: done
Checking 'bison'... ok.
Checking 'automake'... ok.
<span style="color: chocolate;"> make[2] tools/install</span>
[...]
<span style="color: chocolate;"> make[2] target/install
 make[3] -C target/linux install
 make[2] package/index</span>
[athienem@localhost trunk]$ 
</pre>

<p>Everything went fine and there should be a ramdisk image in elf format:
<pre class="screen">
[athienem@localhost trunk]$ ls -all bin/openwrt-ar71xx-vmlinux-initramfs.elf 
-rwxrwxr-x 1 athienem athienem 3735060 2008-11-13 22:27 <span style="color: green;">bin/openwrt-ar71xx-vmlinux-initramfs.elf</span>
[athienem@localhost trunk]$ 
</pre>

<p>The next step is to build the system image to be installed on the device. Execute <i>make menuconfig</i> again but this time select either squashfs or jffs2 as the target image format instead of ramdisk:
<!-- s9ymdb:164 --><img class="serendipity_image_center" width="720" height="434" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/squashfs.png" alt=""  /><br />
After saving the config, execute <i>make</i> again. This time, it should be much faster as nearly everything is already compiled.</p>

<pre class="screen">
#
# using defaults found in .config
#


*** End of OpenWrt configuration.
*** Execute 'make' to build the OpenWrt or try 'make help'.

[athienem@localhost trunk]$ make
++ mkdir -p /home/athienem/openwrt/trunk/staging_dir/toolchain-mips_gcc4.1.2
++ cd /home/athienem/openwrt/trunk/staging_dir/toolchain-mips_gcc4.1.2
++ mkdir -p bin lib include stamp
<span style="color: chocolate;"> make[1] world</span>
[...]
<span style="color: chocolate;"> make[2] target/install
 make[3] -C target/linux install
 make[2] package/index</span>
[athienem@localhost trunk]$ 
</pre>

<p>Now the <i>bin/</i> directory should be filled with some files:</p>

<pre class="screen">
[athienem@localhost trunk]$ ls -all bin/
total 23656
drwxrwxr-x  3 athienem athienem    4096 2008-11-08 18:25 <span style="color: navy;">.</span>
drwxrwxr-x 15 athienem athienem    4096 2008-11-13 22:44 <span style="color: navy;">..</span>
-rw-rw-r--  1 athienem athienem     710 2008-11-13 22:46 md5sums
-rw-rw-r--  1 athienem athienem 1499367 2008-11-08 18:25 <span style="color: maroon;">openwrt-ar71xx-rootfs.tgz</span>
-rw-rw-r--  1 athienem athienem 1441792 2008-11-08 18:25 openwrt-ar71xx-root.squashfs
-rw-rw-r--  1 athienem athienem 2492740 2008-11-13 22:46 <span style="color: maroon;">openwrt-ar71xx-uImage.gz</span>
-rwxrwxr-x  1 athienem athienem 2248838 2008-11-08 18:25 <span style="color: green;">openwrt-ar71xx-vmlinux.bin</span>
-rwxrwxr-x  1 athienem athienem 2258096 2008-11-08 18:25 <span style="color: green;">openwrt-ar71xx-vmlinux.elf</span>
-rw-rw-r--  1 athienem athienem 1048576 2008-11-08 18:25 <span style="color: maroon;">openwrt-ar71xx-vmlinux.gz</span>
-rwxrwxr-x  1 athienem athienem 3725815 2008-11-13 22:46 <span style="color: green;">openwrt-ar71xx-vmlinux-initramfs.bin</span>
-rwxrwxr-x  1 athienem athienem 3735072 2008-11-13 22:46 <span style="color: green;">openwrt-ar71xx-vmlinux-initramfs.elf</span>
-rw-rw-r--  1 athienem athienem 2555904 2008-11-13 22:46 <span style="color: maroon;">openwrt-ar71xx-vmlinux-initramfs.gz</span>
-rw-rw-r--  1 athienem athienem 2293760 2008-11-13 22:46 <span style="color: maroon;">openwrt-ar71xx-vmlinux-initramfs.lzma</span>
-rw-rw-r--  1 athienem athienem  786432 2008-11-08 18:25 <span style="color: maroon;">openwrt-ar71xx-vmlinux.lzma</span>
drwxrwxr-x  3 athienem athienem    4096 2008-11-08 17:50 <span style="color: navy;">packages</span>
[athienem@localhost trunk]$ 
</pre>

<h4>Booting OpenWrt on the RouterBoard</h4>

<p>To boot the routerboard, a dhcp server is needed to tell the bootloader on the Routerboard which IP address it should use and where to get it's bootable kernel image.<br />
The tftp server is needed to actually serve said image to the RouterBoard.</p>

<p>Under Fedora linux, installing both just needs the command <i>yum install -y dhcp tftp-server</i>. To activate both services, chkconfig can be used as root:</p>

<pre class="screen">
[root@localhost ~]# chkconfig dhcpd on
[root@localhost ~]# chkconfig tftp on
</pre>

<p>The configuration for the dhcpd needs to be adapted to the local circumstances. The setup I've been using was a crosslinked cable between the notebook and the Routerboard with a manually configured IP address of 192.168.23.254/24. All that is configured in that file is to assign the RouterBoard an IP address and tell it to boot the file vmlinux. Adapt the following file as needed for your own circumstances:</p>

<pre class="screen">
[root@localhost ~]# cat /etc/dhcpd.conf 
# Global Parameters

authoritative;

max-lease-time 604800;
default-lease-time 3100;

ddns-update-style none;
ddns-ttl 7200;

allow booting;
allow bootp;
one-lease-per-client true;

subnet 192.168.23.0 netmask 255.255.255.0 {
	option routers 192.168.23.254;
	option subnet-mask 255.255.255.0;
	option broadcast-address 192.168.23.255;
	ignore client-updates;
}

group {
	host routerboard {
		hardware ethernet 00:0c:42:32:43:8a;
		next-server 192.168.23.254;
		fixed-address 192.168.23.2;
		filename "vmlinux";
	}

}
[root@localhost ~]# 
</pre>

<p>Start the dhcp server by calling <i>service dhcpd start</i>, if there are any problems, look into <i>/var/log/messages</i> and fix the issues noted there.</p>

<p>The tftp-server has already been activated earlier but might need a <i>service xinetd restart</i> to be really started. Do that.<br />
Then copy the ramdisk image named <i>openwrt-ar71xx-vmlinux-initramfs.elf</i> to the tftproot. This is <i>/tftpboot</i> on older systems or <i>/var/lib/tftpboot/</i> on newer systems. Name the copied file vmlinux.</p>

<p>If everything is working fine, the system should boot:</p>

<pre class="screen">
RouterBOOT booter 2.15

RouterBoard 433

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  64 MB

Press any key within 2 seconds to enter setup...

trying dhcp protocol... OK
resolved mac address 00:1C:23:03:AA:F8
Gateway: 192.168.23.254
transfer started ............................ transfer ok, time=1.68s
setting up elf image... OK
jumping to kernel code
Linux version 2.6.26.7 (athienem@localhost.localdomain) (gcc version 4.1.2) #1 Sat Nov 8 18:11:40 CET 2008
console [early0] enabled
CPU revision is: 00019374 (MIPS 24K)
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->    16384
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    16384
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=000227c0
Readback ErrCtl register=000227c0
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 60768k/65536k available (1762k kernel code, 4700k reserved, 312k data, 1572k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 484 bytes
NET: Registered protocol family 16
MIPS: machine is MikroTik RouterBOARD 433/AH
registering PCI controller with io_map_base unset
PCI: mapping irq 33 to pin1@0000:00:13.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Nov  8 2008 18:08:56 Installing. 
msgmni has been set to 118
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth1: Atheros AG71xx at 0xb9000000, irq 4
NAND flash driver for RouterBoard 4xx series version 0.1.10
NAND SPI clock 25000 kHz (AHB 150000 kHz / 6)
FLASH SPI clock 25000 kHz (AHB 150000 kHz / 6)
NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 828 at 0x00cf0000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "booter"
0x00040000-0x00400000 : "kernel"
0x00400000-0x04000000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bit"
Atheros AR71xx SPI Controller driver version 0.2.2
Atheros AR71xx hardware watchdog driver version 0.1.0
Registered led device: rb4xx:yellow:user
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Freeing unused kernel memory: 1572k freed
Algorithmics/MIPS FPU Emulator v1.5
[sighandler]: No more events to be processed, quitting.
[cleanup]: Waiting for children.
[cleanup]: All children terminated.
- preinit -
Press CTRL-C for failsafe

Please press Enter to activate this console. br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
device eth0 entered promiscuous mode
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2008-10-02 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, DFS, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: trunk
PCI: Enabling device 0000:00:13.0 (0000 -> 0002)
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_pci: wifi0: Atheros 5212: mem=0x10000000, irq=33
eth0: link up (100Mbps/Full duplex)
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state



BusyBox v1.11.2 (2008-11-08 17:55:16 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r13141) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/# 
</pre>

<p>If something didn't work out, check your system log to see what happens. Adding the &quot;-s&quot; parameter to the tftpd binary might be useful as it will log single requests.</p>

<h4>Permanently installing OpenWrt on the RouterBoard</h4>

<p>As we have an accessible Linux system running now on the RouterBoard the available tools such as scp and mtd can be used to copy the needed files onto the NAND device and thus permanently install OpenWrt on the device.</p>

<p>Under Linux the NAND device is partitioned and can be accessed through the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.linux-mtd.infradead.org/');"  href="http://www.linux-mtd.infradead.org/" title="Memory Technology Device Framework">mtd framework</a> which exports some information to userspace through the <i>/proc</i> filesystem:
<pre class="screen">
root@OpenWrt:/# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00040000 00004000 "booter"
mtd1: 003c0000 00004000 "kernel"
mtd2: 03c00000 00004000 "rootfs"
</pre>

<p>As can easily be seen, there are three &quot;partitions&quot; available. Leave the one called &quot;booter&quot; alone, it might be important and contain the bootloader. I haven't checked. All we're interested in is &quot;kernel&quot; and &quot;rootfs&quot;. The former contains the kernel, the latter the root filesystem.</p>

<p>To install the elf kernel binary named openwrt-ar71xx-vmlinux.elf, it has to be transferred onto the RouterBoard and written onto the second mtd partition. Make sure that the file is called <i>kernel</i>.<br />
<b>Note:</b> OpenWrt configures its IP address to be 192.168.1.1 on bootup. You might have to change this with <i>ifconfig</i>.</p>

<pre class="screen">
root@OpenWrt:/# scp athienem@192.168.23.254:openwrt/trunk/bin/openwrt-ar71xx-vmlinux.elf /tmp/
root@OpenWrt:/# mount /dev/mtdblock1 /mnt/
yaffs: dev is 32505857 name is "mtdblock1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.1, "mtdblock1"
root@OpenWrt:/# mv /tmp/openwrt-ar71xx-vmlinux.elf /mnt/kernel
root@OpenWrt:/# ls /mnt
kernel      lost+found
root@OpenWrt:/# umount  /mnt/
save exit: isCheckpointed 0
root@OpenWrt:/# 
</pre>

<p>The kernel image is installed.<br />
The rootfs is even easier, as the mtd-device does not need to be mounted at all to write the squashfs image called openwrt-ar71xx-root.squashfs in my case.<br />
This just needs to be written as is onto the mtd block device named rootfs:</p>

<pre class="screen">
root@OpenWrt:/# scp athienem@192.168.23.254:openwrt/trunk/bin/openwrt-ar71xx-root.squashfs /tmp/
root@OpenWrt:/# cat /tmp/openwrt-ar71xx-root.squashfs > /dev/mtdblock2
root@OpenWrt:/# 
</pre>

<p>After a few seconds the squashfs image has been written and the device can be rebooted. Don't forget to disable the network boot in the Bios:</p>

<pre class="screen">
root@OpenWrt:/# reboot
root@OpenWrt:/# br-lan: port 1(eth0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
eth0: link down
Restarting system.


RouterBOOT booter 2.15

RouterBoard 433

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  64 MB

Press any key within 2 seconds to enter setup..

RouterBOOT-2.15
What do you want to configure?
   d - boot delay
   k - boot key
   s - serial console
   o - boot device
   u - cpu mode
   f - cpu frequency
   r - reset booter configuration
   e - format nand
   g - upgrade firmware
   i - board info
   p - boot protocol
   x - exit setup
your choice: 
</pre>

<p>Press &quot;o&quot; twice and &quot;x&quot; once to continue booting normally from the NAND.</p>


<pre class="screen">
RouterBOOT booter 2.15

RouterBoard 433

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  64 MB

Press any key within 2 seconds to enter setup..
loading kernel from nand... OK
setting up elf image... OK
jumping to kernel code
Linux version 2.6.26.7 (athienem@localhost.localdomain) (gcc version 4.1.2) #2 Sat Nov 8 18:25:41 CET 2008
console [early0] enabled
CPU revision is: 00019374 (MIPS 24K)
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->    16384
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    16384
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=000227c0
Readback ErrCtl register=000227c0
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 62208k/65536k available (1762k kernel code, 3252k reserved, 312k data, 124k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 484 bytes
NET: Registered protocol family 16
MIPS: machine is MikroTik RouterBOARD 433/AH
registering PCI controller with io_map_base unset
PCI: mapping irq 33 to pin1@0000:00:13.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Nov  8 2008 18:08:56 Installing. 
msgmni has been set to 121
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth1: Atheros AG71xx at 0xb9000000, irq 4
NAND flash driver for RouterBoard 4xx series version 0.1.10
NAND SPI clock 25000 kHz (AHB 150000 kHz / 6)
FLASH SPI clock 25000 kHz (AHB 150000 kHz / 6)
NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 828 at 0x00cf0000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "booter"
0x00040000-0x00400000 : "kernel"
0x00400000-0x04000000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bit"
Atheros AR71xx SPI Controller driver version 0.2.2
Atheros AR71xx hardware watchdog driver version 0.1.0
Registered led device: rb4xx:yellow:user
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
- init -

Please press Enter to activate this console. br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
device eth0 entered promiscuous mode
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team

nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2008-10-02 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, DFS, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
eth0: link up (100Mbps/Full duplex)
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
ath_pci: trunk
PCI: Enabling device 0000:00:13.0 (0000 -> 0002)
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_pci: wifi0: Atheros 5212: mem=0x10000000, irq=33



BusyBox v1.11.2 (2008-11-08 17:55:16 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r13141) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/# 
</pre>

<p>Done.</p>

<p>OpenWrt has been installed on the device and can be used and configured as usual.</p>
<p>For more information about configuring, using and customizing OpenWrt see the <a onclick="javascript: pageTracker._trackPageview('/extlink/downloads.openwrt.org/kamikaze/docs/openwrt.html');"  href="http://downloads.openwrt.org/kamikaze/docs/openwrt.html" title="OpenWrt Kamikaze Manual">Kamikaze Manual</a>, the <a onclick="javascript: pageTracker._trackPageview('/extlink/wiki.openwrt.org');"  href="http://wiki.openwrt.org" title="OpenWrt Wiki">OpenWrt Wiki</a> or use the source. For network related configuration issues, <i>/lib/network/config.sh</i> and the files in <i>/lib/wifi/</i> are a good start. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/146-Unbricking-an-Intel-Pro1000-e1000-network-interface.html" rel="alternate" title="Unbricking an Intel Pro/1000 (e1000) network interface" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2008-10-16T21:23:31Z</published>
        <updated>2008-10-17T12:42:44Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=146</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=146</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/10-BawueNet" label="Bawue.Net" term="Bawue.Net" />
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
            <category scheme="http://blog.vodkamelone.de/categories/4-Hardware" label="Hardware" term="Hardware" />
    
        <id>http://blog.vodkamelone.de/archives/146-guid.html</id>
        <title type="html">Unbricking an Intel Pro/1000 (e1000) network interface</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><!-- s9ymdb:152 --><img class="serendipity_image_left" width="110" height="110" style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/e1000.serendipityThumb.jpg" alt=""  />As most readers of this blog are probably aware, pre-releases of the Linux Kernel 2.6.27 are able to trash the NVRAM/EEPROM of certain Intel Network cards. As usual, lwn.net has <a onclick="javascript: pageTracker._trackPageview('/extlink/lwn.net/Articles/300202/');"  href="http://lwn.net/Articles/300202/">a nice writeup</a> of the issue including some background information.<br />
I had a similar problem in the past and as a favour for some friends of mine, I've written down a small description to restoring the ethernet firmware in these cards. This guide should serve as a good primer on reflashing your broken nic but probably needs to be adapted for your own use case.</p>

<p>NB: Instead of just giving a command by command description of what I did, I'll try explaining a bit more about the background and the process of fixing the problem at hand. Maybe this gives other people some insight into valuable problem solving skills.</p>

<p>Some years back we bought quite some <a onclick="javascript: pageTracker._trackPageview('/extlink/www.tyan.com/archive/products/html/tomcati7210.html');"  href="http://www.tyan.com/archive/products/html/tomcati7210.html" title="Tyan S5112 Tomcat i7210">Tyan S5112 machines</a> for <a onclick="javascript: pageTracker._trackPageview('/extlink/www.bawue.net');"  href="http://www.bawue.net" title="Baden-Württembergs nichtkommerzieller Internetprovider">bawue.net</a>.<br />
The idea was to fit these machines with the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.tyan.com/archive/products/html/m3289.html');"  href="http://www.tyan.com/archive/products/html/m3289.html" title="m3289 Server Management Daughter Card">Tyan m3289 server management card</a>, an <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/IPMI');"  href="http://en.wikipedia.org/wiki/IPMI" title="Intelligent Platform Management Interface at Wikipedia">IPMI</a> card allowing remotely powercycling of the machines and offering a serial console via the network.</p>

<p>In order to have the whole setup work, the IPMI management module needs support from the network interface in order to receive IP packets while the machine is powered off. After contacting the Tyan support, we were offered a firmware file to flash into the network adapter activating the needed &quot;management mode&quot;. This firmware file came in the form of a .bin file and an accompanying eeupdate.exe file for flashing the firmware image.</p>

<p>The mainboard has two ethernet controllers, with the 82547EI one being the controller utilized by the management card. The lspci output on this board looks as follows:
<pre class="screen">[root@selene ~]# lspci|grep Ethernet
01:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller
03:02.0 Ethernet controller: Intel Corporation 82541GI Gigabit Ethernet Controller
[root@selene ~]#</pre>
</p>

<p>The instructions for flashing the firmware were relatively simple: Boot with a DOS bootdisk and execute <i>eeupdate -nic=1 -d 82547EI.eep</i><br />
After I pressed enter, nothing much happened. The system wasn't reading anything from the disk, there was no progress message on the screen, just the general start-message of the firmware update tool.</p>

<p>When nothing happened after 5 minutes of waiting, I foolishly reset the system. <b>Big mistake!</b>.</p>

<p>On the next boot of the system, there were no PXE messages from the network card and during bootup the e1000 linux driver only threw out the ominous message <i>The EEPROM Checksum Is Not Valid</i> without loading the network interface.<br />
It turns out, I just trashed the firmware of my on-board network interface.<br />
Calling the eeupdate program again did not work as it bailed out because the eeprom was corrupted<br />
At such times, I firmly believe in the use of swearwords accompanied by heavy googling for some advice. Alas, googling told me only that I broke my hardware and needed new one.</p>

<p>As returning hardware because of a problem is akin to giving up, which is generally unacceptable, I decided to look into the issue a bit more and find a workable solution to unbrick the network interface.<br />
To recap, I had the following:
<ul>
 <li>One on-board network interface with a corrupted nvram</li>
 <li>One eeprom image for said network interface (For reference: <a href="http://blog.vodkamelone.de/uploads/82547EI.EEP" title="82547EI.EEP" target="_blank">82547EI.EEP</a>)</li>
 <li>No working flash program</li>
 <li>No working driver</li>
 <li>One working Linux system without network</li>
 <li>One working Linux notebook with network</li>
</ul>
Luckily, the working Linux system and network access is all I needed:</p>

<p>The first step was getting the sources of the e1000 driver from the <a onclick="javascript: pageTracker._trackPageview('/extlink/sourceforge.net/projects/e1000');"  href="http://sourceforge.net/projects/e1000" title="e1000 at sf.net">project page</a>. As this was a few years ago, I chose the <a onclick="javascript: pageTracker._trackPageview('/extlink/downloads.sourceforge.net/e1000/e1000-7.3.15.tar.gz?modtime=1161336542&amp;amp;big_mirror=0');"  href="http://downloads.sourceforge.net/e1000/e1000-7.3.15.tar.gz?modtime=1161336542&amp;big_mirror=0" title="e1000 Linux driver, version 7.3.15">version 7.3.15</a> which was current at this time.</p>

<p>After untaring the sources, a quick <i>grep -R 'The EEPROM Checksum Is Not Valid' e1000-7.3.15</i> turned up one hit in <i>e1000-7.3.15/src/e1000_main.c</i>:

[geshi lang=c]
        /* make sure the EEPROM is good */

        if (e1000_validate_eeprom_checksum(&adapter->hw) < 0) {
                DPRINTK(PROBE, ERR, "The EEPROM Checksum Is Not Valid\n");
                err = -EIO;
                goto err_eeprom;
        }
[/geshi]
So there is a function called <i>e1000_validate_eeprom_checksum</i> responsible for checking the validity of the eeprom. During the main initialization of the card this function is called and in case the checksum is not valid, the error handler err_eeprom is executed which aborts the module load.<br />
On a hunch, I removed the whole check logic containted in this function located in </i>e1000-7.3.15/src/e1000_hw.c</i>. After I was done, the whole function body consisted only of a "return 0" statement meaning that the checksum check will always succeed.</p>

<p>Building the modified module by calling <i>make</i> in the src dir resulted in a e1000.ko file which could be loaded into the running kernel by executing "insmod ./e1000". (Note, this will probably not work with current kernels as the buildscripts have changed. Use a current version of the e1000 driver instead.)<br />
To my great relief the driver returned the following message:
<pre class="screen">Intel(R) PRO/1000 Network Driver - version 7.3.15
Copyright (c) 1999-2006 Intel Corporation.
e1000: 0000:01:01.0: e1000_probe: (PCI:33MHz:32-bit) ff:ff:ff:ff:ff:ff
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: 0000:03:02.0: e1000_probe: (PCI:33MHz:32-bit) 00:e0:81:55:f2:01
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection</pre>
So even though the mac address of the card is broken, at least the card is somewhat detected and I can work on restoring the eeprom.</p>

<p>For modifying low-level settings of network interfaces under Linux one can usually use the fabulous <a onclick="javascript: pageTracker._trackPageview('/extlink/sourceforge.net/projects/gkernel/');"  href="http://sourceforge.net/projects/gkernel/" title="kernel related software">ethtool</a> utility.<br />
Using the -e parameter dumps the eeprom values of the specified network interface onto the screen. This is great for getting a backup of the eeprom:
<pre class="screen">[root@selene ~]# ethtool -e eth1 | head -n 5
Offset		Values
------		------
0x0000		00 e0 81 55 f2 01 10 02 ff ff 06 20 ff ff ff ff 
0x0010		ff ff ff ff 0b 64 76 10 86 80 76 10 86 80 84 b2 
0x0020		dd 20 22 22 00 00 90 2f 80 23 12 00 20 1e 12 00 
[root@selene ~]# </pre>
</p>

<p>Even better is the -E parameter as it allows changing a single byte at a specified address in the eeprom:
<pre class="screen">[root@selene ~]# ethtool -E eth0 magic 0x10198086 offset 0x0 value 0x00
[root@selene ~]# </pre>
This command would change the byte at the address 0x0 (the first byte) into the value 0x00. The 0x10198086 value is the "magic" value needed to "unlock" this write operation. Depending on the driver and the card this value is different for each system. In the case of the intel e1000 driver, the magic value is the Device ID and Vendor ID of the selected network card. This value can be gathered by examining the lspci -n output.</br>
As I was in a hurry back then to get the machine working again, I didn't try to find out what exactly the magic value was but just commented out this check in the e1000_ethtool.c file.<br />
For reference, the patch of my modifications to the e1000 driver are <a href="http://blog.vodkamelone.de/uploads/e1000-repair.patch" title="e1000-repair.patch" target="_blank">e1000-repair.patch</a>downloadable as a unified diff.
</p>

<p>Now, that I could change single values in the eeprom, it was time to take a look at the Tyan provided eeprom file:
<pre class="screen">[root@localhost root]# head -n 5 82547.eep 
E000 2A81 0855 0A10 FFFF FFFF FFFF FFFF 
FFFF FFFF 640B 1019 8086 1019 8086 B200 
1F35 002A 0E00 0012 0E00 20DD 7777 1F95 
0001 1F73 0098 1F72 3FB0 0009 1200 3649 
00CF 8FA7 290E 0305 0CCA FFFF FFFF FFFF 
</pre>
Comparing this eeprom file with the dump taken earlier from the second network interface in the machine showed that the .eep file from intel was in "<a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/Little_Endian#Middle-endian');"  href="http://en.wikipedia.org/wiki/Little_Endian#Middle-endian" title="Endianess at Wikipedia">mixed-endian</a>" format, meaning I had to shuffle the values around a bit before being able to rewrite the image. The file contains the eeprom values as groups of two bytes each in reversed order. The first four byte-values in the file are <i>0xe0 0x00 0x2a 0x81</i> while in the eeprom they would be <i>0x00 0xe0 0x81 0x2a</i>.</p>

<p>After I found the correct byte ordering, I could simply call ethtool -E manually with the correct addresses and just write each byte into the eeprom or automate this and reduce the possibility of mistakes. Naturally, automation it is. Back then I chose to do this script in PHP as a small exercise in command-line-interface programming.<br />

The PHP script can be downloaded as <a href="http://blog.vodkamelone.de/uploads/eepromer.phps" title="eepromer.php" target="_blank">eepromer.php</a> and executed by calling <i>php eepromer.php</i> on the shell.<br />
In order to explain it's working, the code is printed below:
[geshi lang=php]<?php
$file = "82547.eep";

$handle = fopen($file, "r");
$contents = fread($handle, filesize($file));
fclose($handle);

$tok = strtok($contents, " \n\r");
$eepdata = "";

$i = 0;
while ($tok !== false) {
	$eepdata .= substr($tok, 2,2).' ';
	$eepdata .= substr($tok, 0,2).' ';
	$tok = strtok(" \n\r");
	$i++;
}

$tok = strtok($eepdata, " ");
$i = 0;
while ($tok !== false) {
	$offset = sprintf("%x", $i);
	echo "ethtool -E eth0 magic 0x00 offset 0x$offset value 0x$tok\n";
	$tok = strtok(" ");
	$i++;
}
?>[/geshi]
At the start, the variable file contains the filename to read in. This file is then opened and read into memory as it is only 6K large. The <a onclick="javascript: pageTracker._trackPageview('/extlink/php.net/manual/en/function.strtok.php');"  href="http://php.net/manual/en/function.strtok.php" title="String Tokenizer">PHP String Tokenizer function</a> is used to extract the values from the script and the bytes in each extracted group are then swapped around to put them into big endian byte-order. When the eeprom file has been completely parsed the ethtool commands to write the gathered data into the eeprom are printed to STDOUT:
<pre class="screen">[root@localhost root]# php eepromer.php | head -n 5
ethtool -E eth0 magic 0x00 offset 0x0 value 0x00
ethtool -E eth0 magic 0x00 offset 0x1 value 0xE0
ethtool -E eth0 magic 0x00 offset 0x2 value 0x81
ethtool -E eth0 magic 0x00 offset 0x3 value 0x2A
ethtool -E eth0 magic 0x00 offset 0x4 value 0x55
[root@localhost root]# </pre>
By piping the output of this quick-and-dirty script into a shell (php eepromer.php | sh), the content of the .eep file is written for real into the eeprom. The last step is changing the first 6 bytes of the eeprom (offset 0x0 to 0x5) to the original mac address of the network interface.</br>
After this has been done, the network card is considered repaird or unbricked.</p>

<p>Now, this explanation should give anyone some hints on fixing his network card's eeprom should this be needed because of problems with the kernel releases mentioned in the beginning. It is unlikely that following the procedure above to the letter is going to have any usable results as every system and situation is different.<br />
The major problem would be, that not everyone has a working .eep file from Intel available after his own card is trashed. My suggestion would be to look for a friend who has exactly the same card. This can be achieved by using lspci:
<pre class="screen">[root@selene ~]# lspci | grep Ethernet
01:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller
03:02.0 Ethernet controller: Intel Corporation 82541GI Gigabit Ethernet Controller
[root@selene ~]# lspci -n | grep '01:01\.0'
01:01.0 0200: 8086:1019
[root@selene ~]# </pre>
If a friend has the same network card as indicated by the Vendor and Device ID (8086 == Intel, 1019 == 82547EI Gigabit Ethernet Controller in my example) he should be able to take eeprom dump by calling ethtool -e [device] > /tmp/eeprom-[device].dump.:
<pre class="screen">[root@selene ~]# ethtool -e eth0 | head -n 8
Offset		Values
------		------
0x0000		00 e0 81 55 f2 00 10 0a ff ff ff ff ff ff ff ff 
0x0010		ff ff ff ff 0b 64 19 10 86 80 19 10 86 80 00 b2 
0x0020		35 1f 2a 00 00 0e 12 00 00 0e dd 20 77 77 95 1f 
0x0030		01 00 73 1f 98 00 72 1f b0 3f 09 00 00 12 49 36 
0x0040		cf 00 a7 8f 0e 29 05 03 c8 0c ff ff ff ff ff ff 
0x0050		ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02 06 
[root@selene ~]# </pre>
</p>

<p>This dump file can then be written into your own nvram by an easier procedure then described above. After all, no endianness swapping is necessary as ethtool already returned the data correctly. A bit of reformatting of the import is necessary however but can be accomplished in a simple bash script:
[geshi lang=bash]magic=0x0
j=0
for i in `sed -e '1,2d' /tmp/eeprom-[device].dump | cut -c 9- | tr -d "\n"`
do
    echo ethtool -E magic $magic offset 0x$(printf %x ${j}) value 0x${i}
    j=$(($j + 1))
done
[/geshi]
This script, which can be written as one single line, will remove the header and other superfluous data from the dumpfile, leaving only the values itself which are then echoed to STDOUT in the form of an ethtool command.
<pre class="screen">[root@selene ~]# magic=0x0; j=0; for i in `sed -e '1,2d' /tmp/eeprom-[device].dump | cut -c 9- |
tr -d "\n"`; do echo ethtool -E magic $magic offset 0x$(printf %x ${j}) value 0x${i}; j=$(($j + 1)); done | head -n 5
ethtool -E magic 0x0 offset 0x0 value 0x00
ethtool -E magic 0x0 offset 0x1 value 0xe0
ethtool -E magic 0x0 offset 0x2 value 0x81
ethtool -E magic 0x0 offset 0x3 value 0x55
ethtool -E magic 0x0 offset 0x4 value 0xf2
[root@selene ~]#</pre>
Piping this into a shell will restore your eeprom meaning only the mac address has to be reverted to the old one.
The correct working of the above bash line should be tested however, as the output of ethtool differs depending on the card and the driver.
</p>

<p>Should the network interface not even be visible on the PCI bus anymore (possible due to the usage of the ibautil.exe tool mentioned on some webpages) reflashing the main bios might work for some systems. The <a onclick="javascript: pageTracker._trackPageview('/extlink/www.coreboot.org/Flashrom');"  href="http://www.coreboot.org/Flashrom" title="Flashrom">flashrom utility</a> from the coreboot project might come in handy for this.<br />
Otherwise it might be necessary to rewrite the necessary part of the eeprom first through the SPI, a serial programming interface, in order to have it enumerate again on the pci bus.<br />
Should this be the case, it might be easier to just return your mainboard for repair though.<br />
Should you be willing however, to try your luck and certainly void any little bit of warranty you had left, Intel offers a nice <a onclick="javascript: pageTracker._trackPageview('/extlink/download.intel.com/design/network/applnots/ap496.pdf');"  href="http://download.intel.com/design/network/applnots/ap496.pdf" title="Intel I/O Controller Hub 8 LAN NVM Map and Information Guide">manual explaining the firmware format</a> of it's ICH8 system.</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/144-Fedora-Installation-from-a-bootable-USB-stick.html" rel="alternate" title="Fedora Installation from a bootable USB stick" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2008-07-20T21:36:06Z</published>
        <updated>2008-07-20T21:36:06Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=144</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=144</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
    
        <id>http://blog.vodkamelone.de/archives/144-guid.html</id>
        <title type="html">Fedora Installation from a bootable USB stick</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><!-- s9ymdb:150 --><img class="serendipity_image_left" width="110" height="110" style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/usbstick.serendipityThumb.png" alt=""  /><a onclick="javascript: pageTracker._trackPageview('/extlink/hansdegoede.livejournal.com/4573.html');"  href="http://hansdegoede.livejournal.com/4573.html" title="Rawhide install howto">Hans wrote about a different way of preparing a bootable USB stick</a> for a Fedora installation then I did in <a href="http://blog.vodkamelone.de/archives/139-Installing-Fedora-9-from-a-small-USB-stick.html" title="Installing Fedora 9 from a (small) USB stick">Installing Fedora 9 from a (small) USB stick</a>.<br />
Unfortunately, his blogpost is set to only accept comments from "friends" and does not even accept the <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/FedoraSummit/OpenId');"  href="http://fedoraproject.org/wiki/FedoraSummit/OpenId" title="Fedora OpenID">Fedora OpenID</a> url as a "friend". :-( Thus I'll reply as an article:</p>

<p>While my recipe wrote the data directly onto the USB stick without creating any partitions ont it, Hans suggests to format the USB stick similar to a normal hard drive with a <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/Master_boot_record');"  href="http://en.wikipedia.org/wiki/Master_boot_record" title="Master Boot Record at Wikipedia">Master Boot Record</a> and a single partition holding the data. This is based on the hope that it makes it more likely that the stick is in fact bootable.</p>

<p>Fedora, and in extension Red Hat Linux before it, has always created partition-less diskboot.img files. The commands I listed in my <a href="http://blog.vodkamelone.de/archives/139-Installing-Fedora-9-from-a-small-USB-stick.html" title="Installing Fedora 9 from a (small) USB stick">article</a> are taken directly from the sourcecode of the anaconda-runtime scripts, which have in the past generated the shipped diskboot.img file.</p>

<p>I might not remember the exact date but I'm certain I've been booting installation images from USB sticks for more than 5 years now and never had a problem with the partition-less disk-image as found on the installation CDs in the <i>/images</i>-folder.<br />
In fact, I remember some problems with an older <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/EPIA');"  href="http://en.wikipedia.org/wiki/EPIA" title="EPIA at Wikipedia">EPIA-M</a> board which absolutely refused to boot from an USB stick formatted as either a hard-drive or a ZIP-drive with the data contained on the 4th partition.<br />
But that was in 2003 and I'd really expect current BIOS implementations to correctly boot from whatever disk is plugged in. Yeah, right...</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/143-Abysmal-harddrive-performance-and-the-uselessness-of-forums.html" rel="alternate" title="Abysmal harddrive performance and the uselessness of forums" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2008-07-17T10:46:00Z</published>
        <updated>2008-07-17T10:47:03Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=143</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=143</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
    
        <id>http://blog.vodkamelone.de/archives/143-guid.html</id>
        <title type="html">Abysmal harddrive performance and the uselessness of forums</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><a class='serendipity_image_link' href='http://blog.vodkamelone.de/uploads/defrag2.jpg'><!-- s9ymdb:21 --><img class="serendipity_image_left" width="110" height="82" style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/defrag2.serendipityThumb.jpg" alt=""  /></a>
While working with the "new" <a href="http://blog.vodkamelone.de/archives/142-lm_sensors-on-an-ASUS-Pundit-R350.html">ASUS Pundit-R350</a> I found the IO performance of the system severely lacking.</p>

<p>When doing anything IO heavy on the box system load goes up and the system becomes basically unresponsive. I noticed that while preparing an image for an USB stick:</p>

<pre class="screen">[root@workstation ~]# dd if=/dev/zero of=usbstick.img count=1024 bs=1M
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 300.266 s, 3.6 MB/s
[root@workstation ~]# uptime
 14:51:02 up 7 min,  2 users,  load average: 4.53, 3.63, 1.66
[root@workstation ~]#
</pre>

<p>3.6 MB/s transfer rate is completely unacceptable. I'm feeling as if 1994 called and asked for the <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/wiki/History');"  href="http://fedoraproject.org/wiki/History" title="Red Hat Linux 3.0.3">Red Hat Linux 3.0.3 (Picasso)</a> install CDs.<br />
To solve this mystery, why a SATA disk is running that slow a bit of digging is needed.</p>

<p>Usually, such slow IO access means the drive in question is not using <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/Direct_memory_access');"  href="http://en.wikipedia.org/wiki/Direct_memory_access" title="Direct Memory Access at Wikipedia">DMA transfer </a> but one of the slower <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/Programmed_input/output');"  href="http://en.wikipedia.org/wiki/Programmed_input/output" title="Programmed Input/Output at Wikipedia">PIO</a> modes.<br />
This can be checked with the hdparm utility:</p>

<pre class="screen">
[root@workstation ~]# hdparm -I /dev/sda | grep '[DP][MI][AO]:'
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 &lowast;udma5 udma6 
	PIO: pio0 pio1 pio2 pio3 pio4 
[root@workstation ~]# </pre>

<p>As can be seen, the udma5 entry has an asterisk in front of it, identifying the currently used transfer mode is in fact <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/UDMA#ATA_standards_versions.2C_transfer_rates.2C_and_features');"  href="http://en.wikipedia.org/wiki/UDMA#ATA_standards_versions.2C_transfer_rates.2C_and_features" title="ATA Speeds at Wikipedia">UDMA/100</a>.<br />
Considering the claimed transfer mode and the actual speed I'd suspect a kernel problem. The tool for viewing the kernel log is <i>dmesg</i>. Using this command in combination with <i>grep</i> allows one to quickly find anything related to ata:</p>

<pre class="screen">[root@workstation ~]# dmesg | grep ata
 BIOS-e820: 000000003bf40000 - 000000003bf50000 (ACPI data)
Memory: 965836k/982272k available (2233k kernel code, 15736k reserved, 1120k data, 284k init, 64768k highmem)
      .data : 0xc062e7b5 - 0xc0746800   (1120 kB)
Write protecting the kernel read-only data: 908k
libata version 3.00 loaded.
scsi0 : pata_atiixp
scsi1 : pata_atiixp
ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00 irq 14
ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xff08 irq 15
ata1.00: ATAPI: _NEC DVD_RW ND-4550A, 1.06, max UDMA/33
ata1.00: configured for UDMA/33
ata2.00: ATA-7: ST3250823AS, 3.03, max UDMA/133
ata2.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata2.00: simplex DMA is claimed by other device, disabling DMA
ata2.00: configured for PIO4
EXT3-fs: mounted filesystem with ordered data mode.
[root@workstation ~]#</pre>

<p>The line <i>ata2.00: simplex DMA is claimed by other device, disabling DMA</i> and <i>ata2.00: configured for PIO4</i> explain the problem. The disk was in fact only being accessed by one of the PIO modes. <a onclick="javascript: pageTracker._trackPageview('/extlink/www.google.com/search?q=simplex+DMA+is+claimed+by+other+device%2C+disabling+DMA');"  href="http://www.google.com/search?q=simplex+DMA+is+claimed+by+other+device%2C+disabling+DMA" title="Google results for simplex DMA is claimed by other device, disabling DMA">Googling for the first line</a>, gives several results. Of interest are the different hits from the Arch-Linux, the Ubuntu and the Fedora forums. Seems other people have the same problems. The first hit however is from the Ubuntu Wiki suggesting that the problem is caused by the ata_generic module which prevents the pata_atiixp module from correctly driving the interface.</p>

<p>It quickly turns out however, that the wiki entry is incorrect and the forums are completely useless as nobody really looked into the issue at all. <a onclick="javascript: pageTracker._trackPageview('/extlink/dominion.thruhere.net/koen/cms/community-interaction');"  href="http://dominion.thruhere.net/koen/cms/community-interaction" title="Community interaction">Koen, explains this nicely</a>.</p>

<p>A bit of googling for Simplex DMA shows that the kernel driver is simply buggy/the way fedora loads sata drivers is buggy.<br />
Happily, <a onclick="javascript: pageTracker._trackPageview('/extlink/www.redhat.com/archives/fedora-extras-commits/2008-June/msg01488.html');"  href="http://www.redhat.com/archives/fedora-extras-commits/2008-June/msg01488.html" title="pata_atiixp patch">cebbert (one of our kernel wranglers) already applied a patch fixing this problem.</a></p>

<p>This nicely shows that even though fedora's way of trailing the bleeding edge quite closely may lead to strange hardware problems from time to time, the fix is usually pretty quickly applied.<br />
Considering that the relatively large number of users allows for a larger testing base and therefore improving the software for every user in the long run I find this is an acceptable compromise.</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/142-lm_sensors-on-an-ASUS-Pundit-R350.html" rel="alternate" title="lm_sensors on an ASUS Pundit-R350" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2008-07-15T22:12:37Z</published>
        <updated>2008-07-17T10:43:41Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=142</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=142</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
            <category scheme="http://blog.vodkamelone.de/categories/4-Hardware" label="Hardware" term="Hardware" />
    
        <id>http://blog.vodkamelone.de/archives/142-guid.html</id>
        <title type="html">lm_sensors on an ASUS Pundit-R350</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>I've recently started to unpack some of the boxes from my last move. In there I found an older Booksize PC, an <a onclick="javascript: pageTracker._trackPageview('/extlink/www.asus.com/products.aspx?modelmenu=1&amp;amp;model=571&amp;amp;l1=1&amp;amp;l2=3&amp;amp;l3=0');"  href="http://www.asus.com/products.aspx?modelmenu=1&amp;model=571&amp;l1=1&amp;l2=3&amp;l3=0" title="ASUS Product Page">ASUS Pundid-R350</a>. It's not the nicest system I've ever had, the fan is incredibly noisy and it's constantly switching to full speed when the system is loaded. I guess I should swap the fan for something much quieter, but haven't had the time yet.</p>

<p>It took me some time to figure out the correct settings to have lm_sensors running on the device as there's been no template configuration to be found on google. To rectify this omission, I'm dumping mine on my blog:</p>

<pre># Asus Pundit-R350
chip "it8712-&lowast;"

# Voltage monitors as advised in the It8705 data sheet

    label in0 "VCore 1"
    label in2 "+3.3V"
    label in3 "+5V"
    label in4 "+12V"

    # Seem not to be connected on the Pundit-R
    ignore in1
    ignore in5
    ignore in6
    ignore in7
    ignore in8
    ignore cpu0_vid

    compute in3 ((6.8/10)+1)&lowast;@ ,  @/((6.8/10)+1)
    compute in4 ((30/10) +1)&lowast;@  , @/((30/10) +1)

# Set some upper and lower limits

    set in0_min 1.4 &lowast; 0.95
    set in0_max 1.4 &lowast; 1.05
    set in2_min 3.3 &lowast; 0.95
    set in2_max 3.3 &lowast; 1.05
    set in3_min 5.0 &lowast; 0.95
    set in3_max 5.0 &lowast; 1.05
    set in4_min 12 &lowast; 0.95
    set in4_max 12 &lowast; 1.05

# Temperature
    label temp1       "CPU Temp"
    set temp1_type 3
    set   temp1_max   75
    set   temp1_min   15
    label temp2       "M/B Temp"
    set temp2_type 2
    set   temp2_max   55
    set   temp2_min   15
    ignore temp3

# Fans
   set fan1_div 2
   set fan1_min 2500
   ignore fan2
   ignore fan3</pre>

<p>With this configuration written to <i>/etc/sensors3.conf</i> the freshly installed fedora 9 system correctly shows some sensible sensor readings:</p>

<pre class="screen">[root@workstation ~]# sensors
it8712-isa-0260
Adapter: ISA adapter
VCore 1:     +1.39 V  (min =  +1.33 V, max =  +1.47 V)
+3.3V:       +3.26 V  (min =  +3.14 V, max =  +3.47 V)
+5V:         +5.00 V  (min =  +4.76 V, max =  +5.24 V)
+12V:       +12.03 V  (min = +11.39 V, max = +12.61 V)
fan1:       3994 RPM  (min = 2657 RPM, div = 2)
CPU Temp:    +65.0°C  (low  = +15.0°C, high = +75.0°C)  sensor = thermal diode
M/B Temp:    +50.0°C  (low  = +15.0°C, high = +55.0°C)  sensor = transistor

[root@workstation ~]# </pre> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/141-Fixing-wireless-association-problems-on-RHEL.html" rel="alternate" title="Fixing wireless association problems on RHEL" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2008-07-04T11:12:55Z</published>
        <updated>2008-07-04T11:39:53Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=141</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=141</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
    
        <id>http://blog.vodkamelone.de/archives/141-guid.html</id>
        <title type="html">Fixing wireless association problems on RHEL</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>My notebook is running on Red Hat Enterprise Linux. 5.2 This is very nice on the one hand, as I do have stable software and it's very unlikely that I'll kill my system with a <i>yum update</i> call right before having a presentation. That happened in the past when running rawhide, but that's perfectly okay. I just have different requirements now.<br />
On the other hand, being on a stable operating system means I'm not having access to the latest and greatest releases of all software. A problem users on Debian stable are well acquainted with.</p>

<p>One of the problems I'm having is with NetworkManager 0.6.4-8.el5. One of the wireless networks I'm using is changing it's keys each quarter. This is actually a good idea. Unfortunately, NetworkManager on some systems seems not to be able to associate to the wireless network after the first keychange.<br />
It's trying again and again to associate, asks for a new password but even though the new password/hex-key is entered, no association is possible.</p>

<p>A quick workaround is possible though requiring removal of the password and the network data from the Gnome keyring as well as the gconf registry. After this has been done, NetworkManager is able to associate with the wireless network:</p>

<p>Make sure that the gnome-keyring-manager as well as the gconftool-2 binaries are installed:</p>

<pre class="screen">[root@localhost ~]# rpm -q gnome-keyring-manager GConf2
gnome-keyring-manager-2.16.0-3.el5
GConf2-2.14.0-9.el5
[root@localhost ~]#</pre>

<p>The next step is to remove the wireless network from the Gnome registry with the help of gconftools-2. Substitute <i>&lt;network-name&gt;</i> accordingly:</p>
<pre class="screen">[athienem@localhost ~]$ gconftool-2 --recursive-unset /system/networking/wireless/networks/&lt;network-name&gt;
[athienem@localhost ~]$</pre>

<p>The next step is to fire up gnome-keyring-manager from the shell or the Applications-menu under "System-Tools". Navigate to the entry named "Passphrase for wireless network &lt;network-name&gt;", select it and click on the "Keyring" entry in the menu and choose "Delete Key".<br />
Close gnome-keyring-manager.</p>

<p>You're done. Now NetworkManager has lost all knowledge about the existing wireless network and the entry can be added again as usual. NM should be able to associate then.</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/140-Mein-Internetprovider-hat-jetzt-ein-blog....html" rel="alternate" title="Mein Internetprovider hat jetzt ein blog..." />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2008-07-02T18:44:58Z</published>
        <updated>2008-07-04T12:29:14Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=140</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=140</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/10-BawueNet" label="Bawue.Net" term="Bawue.Net" />
    
        <id>http://blog.vodkamelone.de/archives/140-guid.html</id>
        <title type="html">Mein Internetprovider hat jetzt ein blog...</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Die Tatsache, dass Mailinglisten inzwischen nicht mehr das Mittel der Wahl zur Kommunikation sind, hat sich mittlerweile auch bei <a onclick="javascript: pageTracker._trackPageview('/extlink/www.bawue.net');"  href="http://www.bawue.net" title="DER NICHTKOMMERZIELLE INTERNET-PROVIDER BADEN-WÜRTTEMBERGS - bawue.net">Internet Provider meiner Wahl</a> herumgesprochen.</p>

<p>Die hohe Anzahl von unerwünschten Werbemails verleitet nicht nur mich dazu, einerseits extrem rigeros zu filtern, andererseits dennoch nur noch höchst widerwärtig in meinen E-Mail Client zu schauen.</p>

<p>Was liegt also näher, zur Kommunikation mit den Vereinsmitgliedern - aber auch mit den normalen Benutzern - ein Blog zu verwenden?</p>

<p>Die Wahl fiel auf <a onclick="javascript: pageTracker._trackPageview('/extlink/www.s9y.org');"  href="http://www.s9y.org">Serendipity</a> da es sowohl bereits bekannt ist, als auch einen Mehrbenutzermodus anbietet, bei dem verschiedene Personen Einträge bloggen können.</p>

<p>Zu finden ist das ganze unter <a onclick="javascript: pageTracker._trackPageview('/extlink/blog.bawue.net');"  href="http://blog.bawue.net" title="DER NICHTKOMMERZIELLE INTERNET-PROVIDER BADEN-WÜRTTEMBERGS - bawue.net">http://blog.bawue.net</a>. Ein paar Inhalte habe ich auch schon hinzugefügt, warten wir mal ab, ob das Konzept denn auch angenommen wird.</p>

<p>Als Bonus der ganzen Aktion habe ich mittlerweile herausbekommen, wie man ein Serendipity Template schreibt und habe auch wieder Einblick in den Code mancher Plugins gewonnen... Eine lohnenswerte Aktion also...</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.vodkamelone.de/archives/139-Installing-Fedora-9-from-a-small-USB-stick.html" rel="alternate" title="Installing Fedora 9 from a (small) USB stick" />
        <author>
            <name>andreas</name>
            <email>andreas@dicp.de</email>
        </author>
    
        <published>2008-06-21T15:07:09Z</published>
        <updated>2008-06-25T17:10:47Z</updated>
        <wfw:comment>http://blog.vodkamelone.de/wfwcomment.php?cid=139</wfw:comment>
    
        <slash:comments>8</slash:comments>
        <wfw:commentRss>http://blog.vodkamelone.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=139</wfw:commentRss>
    
            <category scheme="http://blog.vodkamelone.de/categories/8-Fedora" label="Fedora" term="Fedora" />
    
        <id>http://blog.vodkamelone.de/archives/139-guid.html</id>
        <title type="html">Installing Fedora 9 from a (small) USB stick</title>
        <content type="xhtml" xml:base="http://blog.vodkamelone.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><!-- s9ymdb:150 --><img class="serendipity_image_left" width="110" height="110" style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.vodkamelone.de/uploads/usbstick.serendipityThumb.png" alt=""  />With the release of Fedora 9, anaconda has <a onclick="javascript: pageTracker._trackPageview('/extlink/docs.fedoraproject.org/release-notes/f9/en_US/sn-Installer.html#sn-Changes-in-Anaconda');"  href="http://docs.fedoraproject.org/release-notes/f9/en_US/sn-Installer.html#sn-Changes-in-Anaconda" title="Fedora 9 Release Notes: Changes in Anaconda">introduced a new consolidated boot image</a>: </p>
<blockquote>&quot;Consolidated network booting ISO image, replacing old boot.iso, diskboot.img, and rescuecd.iso.&quot;</blockquote>
<p>The problem with this approach is, that the 12MB diskboot.img file has disappeared, which could be used to boot a system with a small USB stick. Awesome! Thank you very much. <b>&lowast;facepalm.jpg&lowast;</b></p>

<p>But luckily, it is not very hard to recreate this file on the shell and write it onto an USB stick afterwards. This serves as another installment of my <a href="http://blog.vodkamelone.de/archives/138-Rising-from-the-ashes....html" title="ixs' Vodkamelone">small article series announced earlier</a>.</p>

<p>I started with the boot.iso image which I downloaded from <a onclick="javascript: pageTracker._trackPageview('/extlink/download.fedoraproject.org/pub/fedora/linux/releases/9/Fedora/i386/os/images/boot.iso');"  href="http://download.fedoraproject.org/pub/fedora/linux/releases/9/Fedora/i386/os/images/boot.iso">http://download.fedoraproject.org/pub/fedora/linux/releases/9/Fedora/i386/os/images/boot.iso</a> and loopback mounted on <i>/mnt</i>:

<pre class="screen">[root@localhost ~]# wget -q -c
http://download.fedoraproject.org/pub/fedora/linux/releases/9/Fedora/i386/os/images/boot.iso
[root@localhost ~]# mount boot.iso /mnt -o loop,ro
[root@localhost NotBackedUp]# ls /mnt/
<span style="color: navy;">images</span>  <span style="color: navy;">isolinux</span>
[root@localhost NotBackedUp]# </pre>

<p>Now the steps to create the USB pendrive image are quite simple. A file is created, formatted and made bootable with syslinux and the appropriate files from the boot.iso are copied over:</p>

<pre class="screen">[root@localhost ~]# cd /tmp/
[root@localhost tmp]# mkdir pendrive
[root@localhost tmp]# cd pendrive/
[root@localhost pendrive]# dd if=/dev/zero of=diskboot.img bs=1M count=12
12+0 records in
12+0 records out
12582912 bytes (13 MB) copied, 0.0433931 seconds, 290 MB/s
[root@localhost pendrive]# mkdosfs diskboot.img 
mkdosfs 2.11 (12 Mar 2005)
[root@localhost pendrive]# syslinux diskboot.img 
[root@localhost pendrive]# mkdir mount
[root@localhost pendrive]# mount diskboot.img mount/ -o loop
[root@localhost pendrive]# cp -r /mnt/isolinux/&lowast; mount/
[root@localhost pendrive]# grep -v local mount/isolinux.cfg > mount/syslinux.cfg
[root@localhost pendrive]# rm -f mount/isolinux.&lowast;
[root@localhost pendrive]# umount -f mount
[root@localhost pendrive]# rm -rf mount/
[root@localhost pendrive]# cd
[root@localhost ~]# umount -f /mnt
[root@localhost ~]#
</pre>

<p>After these steps, a <i>diskboot.img</i> file is located in <i>/tmp/pendrive</i>. This file can be written to an USB stick with a command such as <i>dd if=diskboot.img of=/dev/sdb</i>. Special care should be taken to write to the correct device (<i>/dev/sdb</i> in this case)and _not_ overwrite one of your own harddrives. 
            </div>
        </content>
        
    </entry>

</feed>