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

<channel>
	<title>Linux User Group of Mauritius &#187; FreeBSD</title>
	<atom:link href="http://lugm.org/category/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://lugm.org</link>
	<description>Promoting open source software in our beautiful island</description>
	<lastBuildDate>Sat, 17 Jul 2010 16:29:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FreeBSD8.0rc1 &#8220;run_interrupt_driven_hooks&#8221;</title>
		<link>http://lugm.org/2009/09/24/freebsd8-0rc1-run_interrupt_driven_hooks/</link>
		<comments>http://lugm.org/2009/09/24/freebsd8-0rc1-run_interrupt_driven_hooks/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 19:18:16 +0000</pubDate>
		<dc:creator>Selven</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[QuickHack]]></category>

		<guid isPermaLink="false">http://lugm.org/?p=266</guid>
		<description><![CDATA[As soon as FreeBSD8.0rc1 came out (some hours after being uploaded) i wanted to try it out on my new work laptop (HP DV6 1160ei), surprised and sad i was to find that the installer itself couldn&#8217;t proceed further&#8230;i got bumped with this error:
lots of stuffs after the bootloader&#8230;.
:
:
:
uhub7: 8 ports with 8 removable, self [...]]]></description>
			<content:encoded><![CDATA[<p>As soon as FreeBSD8.0rc1 came out (some hours after being uploaded) i wanted to try it out on my new work laptop (HP DV6 1160ei), surprised and sad i was to find that the installer itself couldn&#8217;t proceed further&#8230;i got bumped with this error:</p>
<blockquote><p><em>lots of stuffs after the bootloader&#8230;.<br />
:<br />
:<br />
:<br />
uhub7: 8 ports with 8 removable, self powered<br />
ugen7.2:  at usbus7<br />
ugen4.2:  at usbus4<br />
ugen5.2:  at usbus5<br />
run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config<br />
run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config<br />
run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config<br />
run_interrupt_driven_hooks: still waiting after 240 seconds for xpt_config<br />
run_interrupt_driven_hooks: still waiting after 300 seconds for xpt_config</em></p></blockquote>
<p>stalls here and freezes forever. Which means your installation cannot proceed further.</p>
<p>Seems the problem is related to the firewire support, this problem has been here since FreeBSD7.2,<br />
it seems to affect mostly gigabyte and asus mainboards (others plz do comfirm??). Seems the systems tries to query for firewire storage devices and then is stucked at that point..</p>
<p>The <strong>easy fix to this is to just go into your BIOS and disable firewire device </strong>and install your FreeBSD leisurely&#8230;.</p>
<p>but but but&#8230; poor me, i just got a damned new HP Pavillon DV6 sexy lookin <strong>laptop which doesn&#8217;t have any advanced BIOS settings to disable firewire</strong> .<br />
I definitely couldn&#8217;t be vulgar and just open that up and take out the firewire port :p that would be gross&#8230; specially since the laptop isn&#8217;t my property.</p>
<p>So my my my, i had to find a way out of this, googling around, it seems there&#8217;s no fix for that, since most are lucky enough to have disable firewire in their bios itself,<br />
unless i was crazy and maso to dare run winxp or win vista on my laptop [thoughts of which were so disturbing that i dared not use that laptop and was even thinking of returning it back.</p>
<p>since the install iso itself boots a freebsd kernel, i believed for a temporary solution i could <strong>disable firewire via device hints in that loader console,<br />
unfortunately, it didn't seem to work</strong>.... so i did what most people would have done since they have the source and the ability to do anything with it... i played with it :p</p>
<p>i found a solution :p remove firewire support in the iso :p.. all the ways i don't use that, if ever am gonna use that later on, once i've got freeBSD installed, i can think of it later and get it to work later on :p.</p>
<p>So... till i find the bug and correct it in the source itself or till someone else does it, i've managed to get the installer to work...</p>
<p>here's how:</p>
<p><strong>Requirements: </strong></p>
<ul>
<li>Download the dvd iso image of FreeBSD 8.0 Rc1.</li>
<li>You need a FreeBSD8.0Rc1 installed somewhere [I installed one on a VM (since i didn't wanna break existing installation)]</li>
</ul>
<p>(ps. it can be a minimal installation, since you don&#8217;t need desktop or anything in this temporary setup, you just need it to recompile that kernel in the installation cd :p)<br />
10 GB of space minimum</p>
<p><strong>What to do?</strong></p>
<ul>
<li>log in as root (who cares its a vm machine and you are going to break it all the ways)</li>
<li>Extract the contents of the iso in a folder somewhere in a directory somewhere in your FreeBSD8.0rc1 [temporary installation] on the vm.</li>
</ul>
<p><img class="alignnone size-medium wp-image-268" title="a vm with freebsd for the compilation" src="http://lugm.org/wp-content/uploads/2009/09/disk11-300x168.jpg" alt="a vm with freebsd for the compilation" width="300" height="168" /></p>
<p>(since i had already burnt it on a dvd, i just copied the contents of the dvd in a folder called /usr/disk1)</p>
<ul>
<li>use sysintall to install the release source and the kernel sources. (configure&gt;distributions&gt;src&gt; sys and release).</li>
<li>configure your kernel so as you don&#8217;t include firewire devices:</li>
<li>cd /usr/src/sys/i386/conf  (change i386 to your architecture)</li>
<li>cp GENERIC SELVENKERNEL</li>
<li>nano SELVENKERNEL  (or vi or ee or whatever editor you like) (comment out the firewire related modules [among the last lines)</li>
<li>make buildkernel KERNCONF=SELVENKERNEL</li>
<li>make installkernel KERNCONF=SELVENKERNEL</li>
</ul>
<p>that&#8217;s it, you have already completed most of the work, go to your /usr/disk1 directory [where the dvd iso contents were copied earlier remove the kernel folder in its boot directory and replaced with your new kernel). do like this:</p>
<ul>
<li>rm -rf /usr/disk1/boot/kernel</li>
<li>cp -R /boot/kernel /usr/disk1/boot/kernel</li>
</ul>
<p>great we are almost done&#8230; (ps. if you want you can set splash images also :p)</p>
<p>anywayz, you should then use mkisoimages to build your new dvd iso&#8230;.</p>
<ul>
<li>sh /usr/src/release/i386/mkisoimages.sh -b FreeBSD8 /isowork/myrelease.iso /usr/disk1</li>
</ul>
<p><em>where -b FreeBSD8 can be anything you want, /isowork is just a directory i have made to keep the final iso, and /usr/disk1 is the contents which you want to have in your iso :p.</em></p>
<p>If ever it complains about some rr_moved error or something simmillar, please do delete  the directory named rr_moved from your /usr/disk1 directory</p>
<ul>
<li>rm -rf /usr/disk1/rr_moved</li>
</ul>
<p>so relaunch your mkisoimages if ever it failed with the rr_moved :p.</p>
<p>after its done&#8230; you shall have a nice iso in your destination directory /isowork :p (or your directory you chose)</p>
<ul>
<li>you can use cdrecord to burn the iso to a dvd :p</li>
</ul>
<p>Though, being lazy, i just scp&#8217;ed it to my other computers, went to sleep, woke up in the morning and burnt it <img src='http://lugm.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>:p I tried to launch the install from that DVD &#8230; now it works! yupeee, finally i&#8217;ll be able to use that laptop.</p>
<p><em>Hope this helped out those poor souls out their who wanted to have their Favourite OS on their HP Pavillon DV6 :p</em></p>
<p><em>EDIT: Additional stuffs, once installed your new system shall be unbootable, you should boot from the installation dvd, start a shell there, mount the partition and cp -R /mnt2/boot/kernel to your new /boot directory in your harddisk (after mounting it somewhere).</em></p>
<p><em>Also, if you are using gnome please add these in /etc/rc.conf</em></p>
<p>moused_enable=&#8221;YES&#8221;<br />
hald_enable=&#8221;YES&#8221;<br />
dbus_enable=&#8221;YES&#8221;</p>
<p>ps. actually i wanted to try out 8.0 rc1 in the hope that i might catch a bug and hoped to find a fix and hopefully contribute back to the community.. lol .. that one was unexpected!</p>
<p>pps. plz ignore gramatical errors, typed this in nano, and refrain from starting OS flamewars since its tiring to reply to those :p</p>
<p>ppps. To save you the trouble i can upload the iso image, lemme know.</p>
<p>pppps. Am not responsible if you blow up your computer or whatever :p. My sincere apologies in case of errors.</p>
<p>+selven<br />
pcthegreat A_T gmail /  sch@csis.dk</p>
]]></content:encoded>
			<wfw:commentRss>http://lugm.org/2009/09/24/freebsd8-0rc1-run_interrupt_driven_hooks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
