<?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>eRacks Open Source Systems Blog &#187; freebsd</title>
	<atom:link href="http://blog.eracks.com/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eracks.com</link>
	<description>Making the world safe for Open Source</description>
	<lastBuildDate>Wed, 10 Aug 2011 23:35:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>LSI Logic 6Gbps mps Driver for FreeBSD 8.2-RELEASE</title>
		<link>http://blog.eracks.com/2011/08/lsi-logic-6gbps-mps-driver-for-freebsd-8-2-release/</link>
		<comments>http://blog.eracks.com/2011/08/lsi-logic-6gbps-mps-driver-for-freebsd-8-2-release/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 19:08:29 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[6gbps]]></category>
		<category><![CDATA[7.4-release]]></category>
		<category><![CDATA[8-stable]]></category>
		<category><![CDATA[8.0-release]]></category>
		<category><![CDATA[8.1-release]]></category>
		<category><![CDATA[8.2]]></category>
		<category><![CDATA[8.2-release]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[kernel module]]></category>
		<category><![CDATA[lsi]]></category>
		<category><![CDATA[lsi logic]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[mps]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[stable]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.eracks.com/?p=358</guid>
		<description><![CDATA[EDIT: Binary modules have now also been provided for 7.4, 8.1 and 8.0.  The instructions below should apply to all three, with the exception that you&#8217;ll want to download either mps-bin-7.4.tar.gz,  mps-bin-8.1.tar.gz or mps-bin-8.0.tar.gz. Unfortunately, the mps driver, which supports LSI Logic&#8217;s 6Gbps series of RAID controllers, didn&#8217;t make it into the FreeBSD kernel until [...]]]></description>
			<content:encoded><![CDATA[<p>EDIT: Binary modules have now also been provided for 7.4, 8.1 and 8.0.  The instructions below should apply to all three, with the exception that you&#8217;ll want to download either <a href="http://blog.eracks.com/wp-content/uploads/2011/08/mps-bin-7.4.tar.gz">mps-bin-7.4.tar.gz</a>,  <a href="http://blog.eracks.com/wp-content/uploads/2011/08/mps-bin-8.1.tar.gz">mps-bin-8.1.tar.gz</a> or <a href="http://blog.eracks.com/wp-content/uploads/2011/08/mps-bin-8.0.tar.gz">mps-bin-8.0.tar.gz</a>.</p>
<p>Unfortunately, the <a href="http://www.freebsd.org/cgi/man.cgi?query=mps&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+9-current&amp;format=html">mps driver</a>, which supports LSI Logic&#8217;s 6Gbps series of RAID controllers, didn&#8217;t make it into the <a href="http://www.freebsd.org/">FreeBSD</a> kernel until after <a href="http://www.freebsd.org/releases/8.2R/announce.html">8.2-RELEASE</a>.  As a result, FreeBSD users who require this driver are forced to either install 8-STABLE &#8212; which, despite the name, is a development branch &#8212; or pull the driver&#8217;s source code from 8-STABLE and build it on FreeBSD 8.2-RELEASE.  Since we recently needed to use the mps driver and had to stick with a production-ready release, we opted for the second option.  Along the way, we decided to bundle up the driver&#8217;s source to make the task easier for those who don&#8217;t want to install a development branch, and to pre-compile binary modules for those who wish to install 8.2-RELEASE directly to the hardware RAID array.</p>
<p>If you have a separate hard drive for the operating system that&#8217;s not on a 6Gbps LSI controller and simply use the hardware RAID for additional storage, you can do a normal install of FreeBSD 8.2-RELEASE to the hard drive, boot into the new system and perform the following steps:</p>
<p>1) Download <a href="http://blog.eracks.com/wp-content/uploads/2011/08/mps.tar.gz">mps.tar.gz</a><br />
2) Extract it, cd to the &#8216;mps&#8217; directory and type <code>make &amp;&amp; make install</code><br />
3) Edit <code>/boot/loader.conf</code> and add the following line at the end: <code>mps_load="YES"</code><br />
4) Reboot (or type <code>kldload mps.ko</code> without rebooting)</p>
<p>If instead you want to install 8.2-RELEASE directly to an array on your 6Gbps LSI controller, a few extra steps are required.</p>
<p>First, download <a href="http://blog.eracks.com/wp-content/uploads/2011/08/mps-bin.tar.gz">mps-bin.tar.gz</a>, extract it by typing <code>tar -zvxf mps-bin.tar.gz</code> and place the contents on some form of removable media mountable by FreeBSD.  A USB thumb drive, a floppy disk or a CD will suffice (though, a CD would be an awful waste of space&#8230; <img src='http://blog.eracks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>Second, make sure to download the FreeBSD DVD and <em>not</em> the CD.  We will require the live filesystem that&#8217;s contained only on the larger DVD.  Once the installer is running, choose your language as usual, then select &#8220;Fixit&#8221; instead of the usual installation method.  Choose the CDROM/DVD option.</p>
<div class="wp-caption aligncenter" style="width: 441px"><img class=" " style="border: 1px solid black;" src="http://blog.eracks.com/wp-content/uploads/2011/08/screen0.jpg" alt="" width="431" height="239" /><p class="wp-caption-text">Figure 1: Select &#39;Fixit&#39; instead of an installation method</p></div>
<div class="wp-caption aligncenter" style="width: 441px"><img class=" " style="border: 1px solid black;" src="http://blog.eracks.com/wp-content/uploads/2011/08/screen1.jpg" alt="" width="431" height="239" /><p class="wp-caption-text">Figure 2: Select &#39;CDROM/DVD&#39;</p></div>
<div class="wp-caption aligncenter" style="width: 441px"><img class=" " style="border: 1px solid black;" src="http://blog.eracks.com/wp-content/uploads/2011/08/screen2.jpg" alt="" width="431" height="239" /><p class="wp-caption-text">Figure 3: The &#39;Fixit&#39; Prompt</p></div>
<p>Now, insert your removable media.  For our example, we&#8217;ll assume a USB thumb drive with a device node on <code>/dev/da0</code>.</p>
<p>Before continuing, let me first warn you that the ordinary <code>mount</code> command will most likely not work.  Usually, <code>mount</code> will determine the filesystem type and automatically call the appropriate binary.  However, the way the live filesystem is setup, this doesn&#8217;t work &#8212; or at least, it didn&#8217;t work on my machine.  So instead, you&#8217;ll want to call the command for your filesystem type directly.  If it&#8217;s a CD, that command will be <code>mount_cd9660</code>.  If you&#8217;re using a USB thumb drive with a FAT32 filesystem on it (as we will be in our example), the command will be <code>mount_msdosfs</code>.</p>
<p>Assuming our example with the USB thumb drive, you&#8217;ll issue the following commands:</p>
<p><code>#mount_msdosfs /dev/da0 /mnt</code><br />
<code>#cd /mnt/mps-bin/i386</code> for 32-bit (or <code>#cd /mnt/mps-bin/amd64</code> for 64-bit)<br />
<code>#kldload ./mps.ko</code><br />
<code>#exit</code></p>
<p>At this point, you&#8217;ll be returned to the FreeBSD installer.  Make sure to re-insert the DVD, then continue with the installation as usual.  Once the installation is complete, <em>don&#8217;t reboot!</em>  If you do, you won&#8217;t be able to start up FreeBSD, as we still have to install our kernel module and tell the boot loader to load it on boot.</p>
<p>So, now that the installation is finished, re-insert the DVD and return to the Fixit prompt.  Once again, choose the &#8216;CDROM/DVD&#8217; option.  Assuming our USB thumb drive on <code>/dev/da0</code> from before &#8212; the commands you use will differ based on the media you choose &#8212; type the following commands:</p>
<p><code>#mount_msdosfs /dev/da0 /mnt</code><br />
<code>#cd /mnt/mps-bin/i386</code> for 32-bit (or <code>#cd /mnt/mps-bin/amd64</code> for 64-bit)<br />
<code>#./install.sh</code></p>
<p>If all goes well, the shell script will terminate without any output.  Incidentally, it&#8217;s worth mentioning that the newly installed root filesystem is mounted on / when you enter the Fixit environment after installation.  Now that we have the kernel module installed, we just need to tell FreeBSD to load it on boot.  To do so, we just have one last command:</p>
<p><code>#echo 'mps_load="YES"' &gt;&gt; /boot/loader.conf</code></p>
<p>That&#8217;s it!  Just unmount your media and exit the Fixit prompt.</p>
<p><code>#umount /mnt<br />
#exit</code></p>
<p>At this point, you can exit the installer as usual and reboot. Once the system starts, you should find yourself face to face with a shiny new instance of FreeBSD <img src='http://blog.eracks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eracks.com/2011/08/lsi-logic-6gbps-mps-driver-for-freebsd-8-2-release/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Complete GPT Support Coming to FreeBSD 9.0</title>
		<link>http://blog.eracks.com/2011/07/complete-gpt-support-coming-to-freebsd-9-0/</link>
		<comments>http://blog.eracks.com/2011/07/complete-gpt-support-coming-to-freebsd-9-0/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 21:27:13 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[boot loader]]></category>
		<category><![CDATA[bootloader]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[gpt]]></category>
		<category><![CDATA[guid partition table]]></category>
		<category><![CDATA[operating system]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[partition table]]></category>

		<guid isPermaLink="false">http://blog.eracks.com/?p=346</guid>
		<description><![CDATA[According to the release notes for FreeBSD 9.0 CURRENT: [amd64, i386] A new gptboot boot loader has been added to support booting from a GPT labeled disk. A new boot command has been added to gpt(8), which makes a GPT disk bootable by writing the required bits of the boot loader, creating a new boot [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="FreeBSD Logo" src="http://www.freebsd.org/logo/logo-full-thumb.png" alt="FreeBSD Logo" width="200" height="72" /></p>
<p>According to the<a href="http://www.freebsd.org/relnotes/CURRENT/relnotes/new.html"> release notes</a> for <a href="http://www.freebsd.org">FreeBSD</a> 9.0 CURRENT:</p>
<blockquote><p><em>[amd64, i386] A new gptboot boot loader has been added to support</em><br />
<em> booting from a <a href="http://en.wikipedia.org/wiki/GUID_Partition_Table">GPT</a> labeled disk. A new boot command has been added to</em><br />
<em> gpt(8), which makes a GPT disk bootable by writing the required bits of</em><br />
<em> the <a href="http://wiki.osdev.org/Bootloader">boot loader</a>, creating a new boot partition if required. [MERGED]</em></p></blockquote>
<p>This is excellent news for those who wish to boot directly from hard drives larger than 2TB.  GPT has been partially supported for some time by previous versions of FreeBSD, but this will be the first release in which booting from a GPT <a href="http://en.wikipedia.org/wiki/Disk_partitioning">partition table</a> is supported.  At the moment, 9.0 is a &#8220;bleeding edge&#8221; <a href="http://www.freebsd.org/doc/handbook/current-stable.html">development branch</a> and has not yet been released.  However, it&#8217;s likely to be sometime this summer.  Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eracks.com/2011/07/complete-gpt-support-coming-to-freebsd-9-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Acer Aspire 3690 Laptop with FreeBSD cook book!</title>
		<link>http://blog.eracks.com/2008/03/hello-world/</link>
		<comments>http://blog.eracks.com/2008/03/hello-world/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 17:18:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Laptop cookbooks]]></category>
		<category><![CDATA[cookbook]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blog.eracks.com/?p=1</guid>
		<description><![CDATA[How to Install FreeBSD 6.2 on an Acer Aspire 3690 First Step: Install a fresh copy of FreeBSD 6.2 1) Getting the sound card to work: The soundcard uses the snd-hda module, which is not supported by the 6.2 kernel. However, the latest snapshot of the 6.x series kernel does support it, so we must [...]]]></description>
			<content:encoded><![CDATA[<p>How to Install FreeBSD 6.2 on an Acer Aspire 3690</p>
<p>First Step: Install a fresh copy of FreeBSD 6.2</p>
<p>1) Getting the sound card to work:</p>
<p>The soundcard uses the snd-hda module, which is not supported by the 6.2 kernel.  However, the latest snapshot of the 6.x series kernel does support it, so we must update our kernel.  To do so, do the following:</p>
<p>1. Create a CVS sup called supfile file with the following:</p>
<p>*default tag=RELENG_6  #(do NOT use RELENG_6_2, or you won&#8217;t get the new kernel)<br />
*default host=ftp.freebsd.org<br />
*default prefix=/usr/local<br />
*default base=/var/db<br />
*default release=cvs delete use-rel-suffix compress<br />
src-sys</p>
<p>2. Now, issue the command &#8216;cvsup supfile&#8217;</p>
<p>3. When the updated kernel source tree is fully downloaded, copy /usr/src/sys/crypto to /usr/local/src/sys/crypto (for some reason, this subdirectory is missing from the more up-to-date version of the kernel source tree, which results in compile-time errors.)</p>
<p>4. Edit the file /usr/local/src/sys/conf/newvers.sh and change &#8216;RELEASE&#8217; from 6.3 to 6.2 and &#8216;BRANCH&#8217; from PRERELEASE to RELEASE.  This is a rather clumsy hack, but it&#8217;s the only way to ensure that the user will continue to be able to download packages for the 6.2 RELEASE version of FreeBSD, since, while the userland is 6.2, the OS&#8217;s version is determined by the kernel&#8217;s version.</p>
<p>5. Copy /usr/local/src/sys/i386/conf/GENERIC to /usr/local<br />
src/sys/i386/conf/ERACKS</p>
<p>6. Open the ERACKS kernel configuration file and do the following:</p>
<p>- delete all the &#8216;cpu&#8217; directives at the top except for I686_CPU<br />
- change &#8216;ident GENERIC&#8217; to &#8216;ident ERACKS&#8217;<br />
- disable unneeded device drivers (be careful to only disable those you know for a fact won&#8217;t be used; you can get rid of the serial and parallel port drivers for example, since there are no serial or parallel ports on the laptop)</p>
<p>7. When the source tree is prepared, move /usr/src/sys to /usr/src/sys.old, and move /usr/local/src/sys to usr/src/sys</p>
<p>8. cd to /usr/src and type the command &#8220;make buildkernel KERNCONF=ERACKS&#8221;</p>
<p>9. If the build was successful, type the command &#8220;make installkernel KERNCONF=ERACKS&#8221;</p>
<p>10. Reboot the computer and make sure it comes up successfully</p>
<p>Now, the sound card should be working.</p>
<p>2) Getting the wireless to work:</p>
<p>Unfortunately, there are no native FreeBSD drivers for the wireless.  However, there is an ndis wrapper in the FreeBSD kernel that will allow us to use Windows drivers for this card.</p>
<p>1. Download the file http://ftp.us.dell.com/network/R94827.EXE.  Just in case this link doesn&#8217;t work, a copy of this driver will also be kept at eRacks.  Even though the laptop is an Acer, trying to use the Acer driver will fail (not sure why.)  The Dell driver, while intended for another laptop, supports the same wireless chipset, and will suit our needs.</p>
<p>2. On a Windows machine (or with WINE), run the self extracting archive, and copy bcmwl5.inf and bcmwl5.sys to the FreeBSD laptop (these files will be extracted when you run R94827.EXE.)</p>
<p>3. In the directory where the two above mentioned files are stored, issue the command &#8220;ndisgen bcmwl5.inf bcmw5l.sys&#8221;.  Accept all the defaults, pressing enter for each one, and a resulting .ko kernel object will be built.  This is the &#8220;FreeBSDized&#8221; Windows driver that will support the wireless card.</p>
<p>4. Copy the resulting object file to /boot/modules</p>
<p>5. Edit /boot/loader.conf and add the following line: &#8220;bcmwl5_sys_load=&#8221;YES&#8221;</p>
<p>6. Reboot the machine, and verify the wireless card is working by issuing the command &#8220;ifconfig -a.&#8221;  Observe that there is a device named ndis0.</p>
<p>That&#8217;s it!  All the other devices are supported out of the box.  The only exception is that the graphics adapter is only supported through generic VGA.  The Intel 945GVM is supported in FreeBSD 7.0, but that is currently unstable.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eracks.com/2008/03/hello-world/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

