<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pareis</title>
	<atom:link href="http://pareis.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pareis.wordpress.com</link>
	<description>Articles from The Mac Elite, CubeOwner &#38; more</description>
	<lastBuildDate>Sat, 23 Jan 2010 00:09:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pareis.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pareis</title>
		<link>http://pareis.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pareis.wordpress.com/osd.xml" title="Pareis" />
	<atom:link rel='hub' href='http://pareis.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Enabling CPU Power Management on Dual G4 Systems</title>
		<link>http://pareis.wordpress.com/2009/12/31/81/</link>
		<comments>http://pareis.wordpress.com/2009/12/31/81/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 14:23:46 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[10.3]]></category>
		<category><![CDATA[10.4]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Panther]]></category>
		<category><![CDATA[PowerMac]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/?p=81</guid>
		<description><![CDATA[Napping is a power saving feature on most PowerPCs that can be used whenever the CPU is idle even for the fraction of a second. Mac OS X doesn&#8217;t activate it on Dual G41 systems but can be overridden using the Live and Let Nap script which will save the selection into the non-volatile NVRAM [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=81&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>Napping</b> is a <a href="http://www.apple.com/environment/product-usage/#efficient">power saving feature</a> on most PowerPCs  that can be used whenever the CPU is idle even for the fraction of a second.</p>
<p>Mac OS X doesn&#8217;t activate it on <a href="#cpus">Dual G4<sup>1</sup></a> systems but can be overridden using the <a href="http://www.box.net/shared/3hxcakdqpv"><i>Live and Let Nap</i> script</a> which will save the selection into the non-volatile NVRAM of your computer by adding (or removing) the <i>fn (&#8220;forcenap&#8221;)</i> <a href="#fn">kernel parameter<sup>2</sup></a> to the <i>boot-args</i> variable.</p>
<p>A reboot is required for a change to take effect.</p>
<p>There is <a href="http://cubeowner.com/kbase_2/index.php?article=282">another approach</a> for enabling Nap, but it requires installation of an old version of the <a href="http://developer.apple.com/tools/performance/">CHUD toolset</a>. Recent versions of the <a href="http://developer.apple.com/technology/tools.html">Xcode development environment</a> also include  (and require) a <a href="#CHUD">recent CHUD<sup>3</sup></a>, and two different versions of CHUD can&#8217;t be installed together.</p>
<p>How much energy can be saved while taking a nap ?<br />
In table 7 of the <a href="http://www.freescale.com/files/32bit/doc/data_sheet/MPC7448EC.pdf">Hardware Specifications for the MPC 7448</a> Freescale states a drop from about <b>26&nbsp;W</b> running at 1.7&nbsp;GHZ to <b>13&nbsp;W</b> in Nap mode generating <a href="#DFS">50% less heat<sup>4</sup></a>.<br />
Actual measurements with a power meter connected to a Gigabit Ethernet PowerMac G4 running an inactive Finder from Leopard on the original two 7400 at 500&nbsp;MHz show a total difference of <b>16&nbsp;W</b> in favor of Napping.<br />
A fully loaded system will not nap, and further benchmarks such as <a href="http://daugerresearch.com/fractals/">Power Fractal</a> showed no deterioration using Nap (as expected). </p>
<ol>
<li><a name="cpus"></a>On my test mule automatic use of Napping was regained by disabling the second CPU using the kernel parameter <a href="http://developer.apple.com/mac/library/qa/qa2001/qa1141.html#SETTING_THE_NUMBER_OF_ACTIVE_CORES_FROM_THE_COMMAND_LINE"><i>cpus=1</i></a>, i.e. running the command line <code>sudo&nbsp;nvram&nbsp;boot-args=cpus=1</code>.</li>
<li><a name="fn"></a>This option is available starting with <a href="http://www.opensource.apple.com/source/xnu/xnu-517/osfmk/ppc/ppc_init.c">Mac OS X 10.3</a>.</li>
<li><a name="CHUD"></a>No version of CHUD can change Nap when <i>forcenap</i> has been set but I&#8217;ve verified the setting with a modified copy of the <a href="http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/hwprefs.1.html"><code>hwprefs</code></a> command.</li>
<li><a name="DFS"></a>Using <i>Dynamic Frequency Switching (DFS)</i> to half the clock rate in situations without maximum performance requirements (but not idling) will only save about a quarter according to the formula given in section 9.7.5.1.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=81&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2009/12/31/81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>FireWire Target Disk Mode talks to SCSI (and SATA too ?)</title>
		<link>http://pareis.wordpress.com/2008/08/10/firewire-target-disk-mode-talks-to-scsi-and-sata-too/</link>
		<comments>http://pareis.wordpress.com/2008/08/10/firewire-target-disk-mode-talks-to-scsi-and-sata-too/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 19:05:25 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[PowerMac]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/?p=65</guid>
		<description><![CDATA[As already suggested back in April the implementation of the FireWire Target Disk Mode is generic enough to serve any bootable hard disk drive, if you ask it politely using the second script named Set HD to start volume in OF. To verify this I&#8217;ve dug out my SyQuest removable hard disk drive that hasn&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=65&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As already <a href="http://pareis.wordpress.com/2008/04/03/exchange-hd-and-cd-in-open-firmware/">suggested</a> back in April the implementation of the <em>FireWire Target Disk Mode</em> is generic enough to serve any bootable hard disk drive, if you ask it politely using the second script named <em>Set HD to start volume in OF</em>.</p>
<p>To verify this I&#8217;ve dug out my SyQuest removable hard disk drive that hasn&#8217;t been in use for several years, set it up as target on a Power Mac G4 with an Adaptec 2930 CU Ultra SCSI PCI card and gained full access to it from a Mac Book Pro using FireWire, as if the drive and the notebook (which of course doesn&#8217;t have any SCSI interface) had been directly connected.</p>
<p>Therefore <em>target-mode</em> should also be able to address drives on SATA PCI controllers, despite any contrary claims often repeated but never challenged.</p>
<p>Trying to access an (ATAPI) optical drive <i>instead</i> of a hard disk failed — all of the CDs and DVDs I&#8217;ve checked out didn&#8217;t show up on the host, or without their contents. Newer incarnations of the target disk mode offer the hard disk and the optical drive at the same time, as two units. Does somebody know which was the first version (in a Power Mac G4) to implement this ?</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/65/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/65/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=65&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2008/08/10/firewire-target-disk-mode-talks-to-scsi-and-sata-too/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Leos Little Helper: Script to install Leopard below 867 MHz</title>
		<link>http://pareis.wordpress.com/2008/07/05/leos-little-helper-script-to-install-leopard-below-867-mhz/</link>
		<comments>http://pareis.wordpress.com/2008/07/05/leos-little-helper-script-to-install-leopard-below-867-mhz/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 16:11:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[PowerMac]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2008/07/05/leos-little-helper-script-to-install-leopard-below-867-mhz/</guid>
		<description><![CDATA[The following AppleScript (available for download) is an aggregation of the first two articles on this subject, condensed into a double-clickable application that might even work on PowerBook G4 computers in need of it. The PowerBook support is a contribution from an article at InsanelyMac authored by their member rdemby (as far as I can tell — at least it&#8217;s the oldest reference [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=15&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following AppleScript (available for <a href="http://www.box.net/shared/9wst1lmask">download</a>) is an aggregation of the <a href="http://pareis.wordpress.com/2007/11/13/using-open-firmware-to-install-leopard-below-867-mhz/">first</a> <a href="http://pareis.wordpress.com/2007/12/23/steps-for-booting-from-drives-other-than-the-primary-cddvd/">two</a> articles on this subject, condensed into a double-clickable application that might even work on PowerBook G4 computers in need of it.<br />
The PowerBook support is a contribution from an <a href="http://forum.insanelymac.com/index.php?s=&amp;showtopic=89640&amp;view=findpost&amp;p=657488">article at InsanelyMac</a> authored by their member <em>rdemby</em> (as far as I can tell — at least it&#8217;s the oldest reference I found using <code>max-clock-frequency</code>).</p>
<blockquote>
<p style="text-indent:-39.3px;font:12px Verdana;color:#4c4e4e;margin:0 0 0 39.2px;"><span style="color:#000000;">&#8211;</span><span style="white-space:pre;"> </span>The required FCode gets executed as part of the &#8220;boot-command&#8221;. Its first action is to reset this variable to its default value so the change of the perceived CPU frequency will never survive the next restart – no permanent settings are made.<br />
(A similar technique is used by the &#8220;Target Disk Mode&#8221; option in the &#8220;Startup Disk&#8221; pane of the &#8220;System Preferences&#8221;.)</p>
<p style="text-indent:-39.3px;font:12px Verdana;color:#4c4e4e;margin:0 0 0 39.2px;"><span style="color:#000000;">&#8211;</span><span style="white-space:pre;"> </span>&#8220;max-clock-frequency&#8221; is preferred over &#8220;clock-frequency&#8221; as it seems to be used by older PowerBooks to describe the nominal CPU speed. No tests have been run yet on such hardware in the given form.</p>
<p style="text-indent:-39.3px;font:12px Verdana;margin:0 0 0 39.2px;"><span style="color:#0000ff;">do shell script</span><span style="font:12px Helvetica;"> </span>&#8220;nvram boot-command=&#8217;set-default boot-command dev /cpus/@0</p>
<p style="text-indent:-39.3px;font:12px Verdana;margin:0 0 0 39.2px;">d# 867000000 encode-int \&#8221; max-clock-frequency\&#8221; 2dup active-package find-property</p>
<p style="text-indent:-39.3px;font:12px Verdana;margin:0 0 0 39.2px;">0= if 2drop \&#8221; clock-frequency\&#8221; then property device-end multi-boot&#8217;&#8221;<span style="font:12px Helvetica;"> </span><span style="color:#2900ff;"><strong>with</strong></span><span style="font:12px Helvetica;"> </span><span style="color:#0000ff;">administrator privileges</span></p>
<p style="text-indent:-39.3px;font:12px Verdana;margin:0 0 0 39.2px;"><span style="color:#2900ff;"><strong>tell</strong></span><span style="font:12px Helvetica;"> </span><span style="color:#0000ff;">application</span><span style="font:12px Helvetica;"> </span>&#8220;System Events&#8221;<span style="font:12px Helvetica;"> </span><span style="color:#2900ff;"><strong>to</strong></span><span style="font:12px Helvetica;"> </span><span style="color:#0000ff;">restart</span></p>
</blockquote>
<p>PS: On a dual CPU system the <em>clock-frequency</em> will be duplicated by the OS from the first to the second CPU so this script is sufficient to satisfy the installer regardless of the number of G4s.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=15&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2008/07/05/leos-little-helper-script-to-install-leopard-below-867-mhz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Exchange HD and CD in Open Firmware</title>
		<link>http://pareis.wordpress.com/2008/04/03/exchange-hd-and-cd-in-open-firmware/</link>
		<comments>http://pareis.wordpress.com/2008/04/03/exchange-hd-and-cd-in-open-firmware/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 00:23:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[10.2]]></category>
		<category><![CDATA[10.3]]></category>
		<category><![CDATA[10.4]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[Jaguar]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[Panther]]></category>
		<category><![CDATA[PowerMac]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2008/04/03/exchange-hd-and-cd-in-open-firmware/</guid>
		<description><![CDATA[Open Firmware uses a table of device aliases to abstract from the machine-specific and long nomenclature derived from the device tree. screen for example is defined as the first display of the first graphics card found and is used for any output from the boot ROM (as the Open Firmware console or the gray Apple [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=12&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Open Firmware uses a table of device aliases to abstract from the machine-specific and long nomenclature derived from the device tree. <i>screen</i> for example is defined as the first display of the first graphics card found and is used for any output from the boot ROM (as the Open Firmware console or the gray Apple logo shown when booting Mac OS X). The device aliases can be seen using <b>devalias</b> at the Open Firmware command prompt or <b>ioreg -bp IODeviceTree -n aliases</b> in the Terminal.</p>
<p>In a Cube <b>hd</b> and <b>cd</b> are predefined as the master respectively slave ATA drive and are used by most components accessing those drives, including FireWire Target Disk Mode and booting or ejecting a CD. There is no automatism to adapt these aliases when master and slave are exchanged, but <b>devalias</b> can be used to update them.</p>
<p>At the Open Firmware command prompt two commands like <b>devalias hd /pci@…/disk@<span style="color:red;">1</span></b> and <b>devalias cd /pci@…/disk@<span style="color:red;">0</span></b> (using the complete path as determined above) can be used to temporarily correct the situation; <b>nvalias …</b> instead of <b>devalias …</b> would add the new values to the nvramrc making them a part of every system start.</p>
<p>I&#8217;ve wrapped a portable variant of the required statements in a script called <b>Exchange HD and CD in OF</b> (available for download as <a href="http://www.box.net/shared/5nd2fbbocg" target="_blank">target-mode.zip</a>) that can be launched from the Finder. Before extending the <b>nvramrc</b> it verifies that
<ol type="1">
<li>Mac OS X has been booted from a slave drive,</li>
<li>hard disk and optical drive are on the same ATA bus and</li>
<li><b>devalias hd</b> still names a master drive</li>
</ol>
<p>to protect the innocent (but <b>don&#8217;t</b> run it twice in a row):<br />
<blockquote>
<pre>#! /bin/bash -

[[ `ioreg -p IODeviceTree -n chosen -w0 | fgrep bootpath` = *@1:* ]]	|| exit

while IFS=\" read -ra devalias; do
    [ "${devalias[1]}" = hd ] &amp;&amp; hd="${devalias[3]}"
    [ "${devalias[1]}" = cd ] &amp;&amp; cd="${devalias[3]}"
done	&lt;&lt; aliases
`ioreg -p IODeviceTree -n aliases -w0`
aliases

[ "${hd%@*}" = "${cd%@*}" -a "${hd##*@}" = 0 ]	|| exit

echo '
This script tells Open Firmware that your optical drive is configured
as master and your hard disk drive as slave instead. This information
is needed by the FireWire Target Disk Mode as well as the keys for
booting or ejecting a CD.'

read -rd $'&#92;0' nvram nvramrc &lt;&lt; nvramrc
`nvram nvramrc 2&gt;&amp;-`
nvramrc

sudo nvram 'use-nvramrc?=true' nvramrc='dev /aliases
" hd" active-package get-package-property 0= if
" cd" active-package get-package-property 0= if
" hd" property " cd" property then then device-end'" $nvramrc"	&amp;&amp;
echo 'Target Disk Mode &amp; friends can be used again.'
sudo -k</pre>
</blockquote>
<p>I&#8217;ve thrown in a second script <b>Set HD to start volume in OF</b> as a free bonus that redefines <b>devalias hd</b> to the device Mac OS X has been started from if both differ, but performs no further checking. It is intended for PowerMacs other than a Cube (because the definition of <b>cd</b> remains unchanged); my Sawtooth happens to boot from the second hard disk. Judging from a glance at the code I expect the Target Disk Mode to be able to work with any drive that could also be booted from, like SCSI or SATA drives connected to a PCI card:</p>
<blockquote><pre>#! /bin/bash -

IFS=\":	bootpath=(`ioreg -p IODeviceTree -n chosen  -w0 | fgrep bootpath`)
IFS=\"	      hd=(`ioreg -p IODeviceTree -n aliases -w0 | fgrep \"hd\"  `)
unset IFS

[ "${bootpath[3]}" != "${hd[3]}" ]	|| exit

echo '
This script tells Open Firmware to access your boot disk drive through
FireWire Target Disk Mode (instead of the ATA master).'

read -rd $'&#92;0' nvram nvramrc &lt;&lt; nvramrc
`nvram nvramrc 2&gt;&amp;-`
nvramrc

sudo nvram 'use-nvramrc?=true' nvramrc="devalias hd ${bootpath[3]}
$nvramrc"	&amp;&amp;
echo 'Target Disk Mode can be now used to access the boot disk drive.'
sudo -k</pre>
</blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=12&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2008/04/03/exchange-hd-and-cd-in-open-firmware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Target Disk Mode can work if HDD is set to Slave</title>
		<link>http://pareis.wordpress.com/2008/03/30/target-disk-mode-can-work-if-hdd-is-set-to-slave/</link>
		<comments>http://pareis.wordpress.com/2008/03/30/target-disk-mode-can-work-if-hdd-is-set-to-slave/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 02:22:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[PowerMac]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2008/03/30/target-disk-mode-can-work-if-hdd-is-set-to-slave/</guid>
		<description><![CDATA[Target Disk Mode uses the device specified by the &#8220;hd&#8221; devalias of the Open Firmware which defaults to the master on the (primary) IDE controller. Similarly the boot keys &#8220;c&#8221; (for starting from the optical drive), the eject key as well as the mouse button rely on the &#8220;cd&#8221; devalias to name the CD/DVD drive; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=11&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Target Disk Mode uses the device specified by the &#8220;<b>hd</b>&#8221; <i>devalias</i> of the <i>Open Firmware</i> which defaults to the master on the (primary) IDE controller. Similarly the boot keys &#8220;<b>c</b>&#8221; (for starting from the optical drive), the eject key as well as the mouse button rely on the &#8220;<b>cd</b>&#8221; <i>devalias</i> to name the CD/DVD drive; therefore a Cube predefines this as the slave drive on the same cable as the hard drive (whereas most other Mac types use the master on the secondary IDE bus).</p>
<p>When both drive types get exchanged (HD addressed as slave and CD as master) the (contents of the) corresponding devaliases have to be redefined too using for example <i>nvalias</i> to store the new definitions permanently into the <i>nvramrc</i> to keep Target Disk Mode &amp; friends working. This is of course optional as the Mac OS itself doesn&#8217;t care about the devaliases.</p>
<p>Given the drives work together in this setup there will be no further need for the hardware modification of pin 28.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=11&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2008/03/30/target-disk-mode-can-work-if-hdd-is-set-to-slave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Uninstalling Firmware</title>
		<link>http://pareis.wordpress.com/2008/02/24/uninstalling-firmware/</link>
		<comments>http://pareis.wordpress.com/2008/02/24/uninstalling-firmware/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 16:19:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[PowerMac]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2008/02/24/uninstalling-firmware/</guid>
		<description><![CDATA[With the given script it is possible to reflash the same (or even an older) version of a plain Apple firmware and thereby remove any patches by third-party vendors. It is important that this must only be done on a system without a CPU upgrade (using the 7447 and 7448) that requires firmware patches. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=10&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With the given script it is possible to reflash the same (or even an older) version of a plain Apple firmware and thereby remove any patches by third-party vendors.</p>
<p>It is important that this must only be done on a system <i>without</i> a CPU upgrade (using the 7447 and 7448) that <i>requires</i> firmware patches. The Mac would be dead until the reinstallation of an original G4 or other type of accelerator !</p>
<p>NVRAMRC patches for booting into Mac OS 9 will survive a flash, but can get cleared using Command-Option-P-R. Other similar patches (as the <a href="http://pareis.wordpress.com/2007/12/17/using-128-gib-or-larger-ata-hard-drives/"><i>lba-48</i> property</a>) would have to be reapplied.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=10&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2008/02/24/uninstalling-firmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Retro-fitting old FirmWare and re-installing the newer</title>
		<link>http://pareis.wordpress.com/2008/02/24/retro-fitting-old-firmware-and-re-installing-the-newer/</link>
		<comments>http://pareis.wordpress.com/2008/02/24/retro-fitting-old-firmware-and-re-installing-the-newer/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 16:00:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[PowerMac]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2008/02/24/retro-fitting-old-firmware-and-re-installing-the-newer/</guid>
		<description><![CDATA[Searching through my CD archive I&#8217;ve found two different versions of the firmware updaters for the PowerMac G4 and the Cube (as well as the iMac, iBook, PowerBook and even a G3) on Mac OS install CDs: Mac OS PowerMac Cube 9.2.1 4.1.8 4.1.8 10.1 4.1.8 4.1.8 10.2 4.2.8 4.1.9 (both are still current) Using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=9&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Searching through my CD archive I&#8217;ve found two different versions of the firmware updaters for the PowerMac G4 and the Cube (as well as the iMac, iBook, PowerBook and even a G3) on Mac OS install CDs:</p>
<table align="center" border="1" rules="cols">
<tr>
<th>Mac OS
<th>PowerMac
<th>Cube</tr>
<tr align="center">
<td>9.2.1
<td>4.1.8
<td>4.1.8</tr>
<tr align="center">
<td>10.1
<td>4.1.8
<td>4.1.8</tr>
<tr align="center">
<td>10.2
<td>4.2.8
<td>4.1.9</tr>
<tr align="center">
<td>
<td colspan="2">(both are still current)</tr>
</table>
<p>Using them I successfully downgraded the firmware of a Sawtooth from the current 4.2.8 to the older 4.1.8 and back to 4.2.8 again. Further analysis of the code shows that it will only flash a firmware with the same major version as in the ROM (or upgrade from 3 to 4 as a special case). Even the firmware from another model would be accepted — <b>Never ever try such a <i>cross</i>flash as it will most likely leave the motherboard completely dead and therefore without a possibility to correct the flash !</b></p>
<p>The firmware NVRAM variables will survive the flash, including any NVRAMRC patches (as the <a href="http://pareis.wordpress.com/2007/12/17/using-128-gib-or-larger-ata-hard-drives/"><i>lba-48</i> property</a>), but do NOT flash a plain firmware with a (7447 or 7448 based) CPU upgrade that <i>requires</i> its own patches.</p>
<p>While at it I also tested manually <i>boot</i>ing the flasher from the Open Firmware command prompt. With one of the CDs from the table above (or a CD-R with just the &#8220;Firmware&#8221; file) it <b>is</b> possible to upgrade or reflash the firmware <i>without</i> any Mac OS on the system !</p>
<p>No Macintosh was harmed during the making of this post.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=9&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2008/02/24/retro-fitting-old-firmware-and-re-installing-the-newer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Running Firmware Updaters from Mac OS X</title>
		<link>http://pareis.wordpress.com/2008/02/19/running-firmware-updaters-from-mac-os-x/</link>
		<comments>http://pareis.wordpress.com/2008/02/19/running-firmware-updaters-from-mac-os-x/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 03:17:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[10.2]]></category>
		<category><![CDATA[10.3]]></category>
		<category><![CDATA[10.4]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Jaguar]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[Panther]]></category>
		<category><![CDATA[PowerMac]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2008/02/19/running-firmware-updaters-from-mac-os-x/</guid>
		<description><![CDATA[Judging from my analysis of the Firmware Updaters for various G4 (including the cube) it should be surprisingly easy to run those flashers officially &#8220;requiring&#8221; Mac OS 9 from OS X instead ! The &#8220;Firmware Updater&#8221; included in such a download does NOT perform the flashing, but only checks if the update can be applied [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=8&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Judging from my analysis of the Firmware Updaters for various G4 (including the cube) it should be surprisingly easy to run those flashers officially &#8220;requiring&#8221; Mac OS 9 from OS X instead !</p>
<p>The &#8220;Firmware Updater&#8221; included in such a download does <strong>NOT</strong> perform the flashing, but only checks if the update can be applied (&#8220;Firmware&#8221; file supports the Mac model and has a newer version) and arranges to restart the Mac into the &#8220;Firmware&#8221; file. This file not only contains the new firmware image, but in front of it also the <em>complete</em> program required to flash the ROM. The flasher is written (mostly) in FCode source allowing deep insights into its inner workings (if Forth is your kind of bedtime reading).<br />
All of this means that the flasher runs in the context of the Open Firmware before any part of (any) Mac OS is even loaded and does <em>NOT</em> depend on a specific version. It should therefore be possible to simply <em>boot</em> a copy of the &#8220;Firmware&#8221; file on a hard disk from the Open Firmware command prompt.</p>
<p>In order to make this process painless to comply with I&#8217;ve created a short script (available for <a href="http://www.box.net/shared/bd4iavncw4" target="_blank">download</a> as <strong>fwupdater</strong>):<br />
<blockquote>
<pre>#! /bin/bash -

flasher='/Volumes/G4 Cube Firmware Update/G4 Cube Firmware'

cp -ip "$flasher" /TrashMe	|| exit

	preferred=(`nvram boot-device`)
IFS=\",	 bootpath=(`ioreg -p IODeviceTree -n chosen -w0 | fgrep bootpath`)

sudo nvram boot-command=mac-boot boot-device="${bootpath[3]},\\TrashMe"	\
	preferred-boot-device="${preferred[1]}"	&amp;&amp;
osascript -e 'tell application "System Events" to shut down'
sudo -k</pre>
</blockquote>
<p>It first copies the &#8220;Firmware&#8221; file to the root of the boot disk and carefully sets it up as <em>boot-device</em> so the flasher will run on the next system start, even it is on a <em>slave</em> ATA disk or maybe an external firewire drive. The flasher will restore the former <em>boot-device</em> after it&#8217;s done. No verification is performed, but the flasher will roughly test for compatibility on its own.</p>
<p>Steps to follow <em>while logged in as an administrator:</em></p>
<ol>
<li><a href="http://docs.info.apple.com/article.html?artnum=75129" target="_blank">Download</a> the updater. English is assumed, but the firmware itself is not language dependent.</li>
<li><strong>Print</strong> the instructions while still on this page.</li>
<li>Open the disk image so it will appear on the desktop.</li>
<li>Open <em>fwupdater</em> from the Finder. It will launch in a Terminal window and ask for your password so the boot device can be set. After that the Mac will be shut down.</li>
<li>Closely obey the printed instruction on turning on again while holding the programmer&#8217;s button (beginning with step 4).</li>
<li>The flasher will restart the Mac after the update. Use the System Profiler to verify the new <em>Boot ROM Version</em>.</li>
<li>Delete &#8220;TrashMe&#8221; from the root of the boot disk.</li>
</ol>
<p>The script can be used for other PowerMacs with Mac OS 9-based firmware updaters, if the pathname at the top is set to the correct &#8220;Firmware&#8221; file.</p>
<p><strong>IMPORTANT</strong>: I don&#8217;t have a PowerMac requiring an update anywhere near me, so my tests couldn&#8217;t include the flashing itself, and were only performed under Leopard. I&#8217;m <em>confident</em> that the method described here does work (under any version of Mac OS X), and it eliminates the need to &#8220;borrow&#8221; (or buy) and install Mac OS 9 when a firmware update is all that is needed.<br />
Volunteers ?</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=8&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2008/02/19/running-firmware-updaters-from-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Myths that won&#8217;t die …</title>
		<link>http://pareis.wordpress.com/2008/02/12/myths-that-wont-die-%e2%80%a6/</link>
		<comments>http://pareis.wordpress.com/2008/02/12/myths-that-wont-die-%e2%80%a6/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 23:36:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[OpenGL]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2008/02/12/myths-that-wont-die-%e2%80%a6/</guid>
		<description><![CDATA[Mac OS X virtualizes video RAM and will NOT partition it between two monitors, even if some older tools claim otherwise. Video RAM gets assigned to whatever needs it, so with two monitors connected an application can still use nearly all of your 512 MiB (minus the frame buffer for the second monitor, a few [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=7&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mac OS X virtualizes video RAM and will <em>NOT</em> partition it between two monitors, even if some older tools claim otherwise. Video RAM gets assigned to whatever needs it, so with two monitors connected an application can still use nearly all of your 512 MiB (minus the frame buffer for the second monitor, a few window images from Quartz Extreme, etc). Core Image and <a href="http://developer.apple.com/qa/qa2007/qa1536.html" target="_blank">Quartz <strong>GL</strong></a> should be able to make good use of all the free VRAM.</p>
<p>MacOS 9 <em>did</em> split the VRAM between two active monitors. These different behaviors can be seen with &#8220;ATI Displays&#8221; on Radeon cards under both systems.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=7&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2008/02/12/myths-that-wont-die-%e2%80%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Steps for booting from drives other than the primary CD/DVD</title>
		<link>http://pareis.wordpress.com/2007/12/23/steps-for-booting-from-drives-other-than-the-primary-cddvd/</link>
		<comments>http://pareis.wordpress.com/2007/12/23/steps-for-booting-from-drives-other-than-the-primary-cddvd/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 04:31:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[PowerMac]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2007/12/23/steps-for-booting-from-drives-other-than-the-primary-cddvd/</guid>
		<description><![CDATA[The following is a small variation of the method from the first article: Instead of assuming that the Mac OS X Install DVD can be booted from the built-in optical drive connected in the standard location the following code (downloadable as 867MHz.txt) brings up the systems boot menu to start the installation from any accessible [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=6&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following is a small variation of the method from the <a href="http://pareis.wordpress.com/2007/11/13/using-open-firmware-to-install-leopard-below-867-mhz/" target="_blank">first article</a>:<br />
Instead of assuming that the <em>Mac OS X Install DVD</em> can be booted from the <a href="http://themacelite.com/forums/viewtopic.php?p=3854#3854" target="_blank">built-in optical drive</a> connected in the standard location the following code (<a href="http://www.box.net/shared/6ttu2x58g4" target="_blank">downloadable</a> as <strong>867MHz.txt</strong>) brings up the systems boot menu to start the installation from <strong>any accessible</strong> boot device, including for example external DVD drives, <a href="http://themacelite.com/forums/viewtopic.php?p=3880#3880" target="_blank">FireWire hard drives</a> and even NetInstall servers.</p>
<blockquote>
<pre>\ Claim first CPU runs at 867 MHz, and let the user select the Install DVD:
dev /cpus/@0 d# 867000000 encode-int " clock-frequency" property
multi-boot</pre>
</blockquote>
<p><em><code>boot cd:,\\:tbxi</code></em> has been replaced by <em><code>multi-boot</code></em>; the other changes are purely cosmetic.</p>
<p>Steps to perform (as previously described):</p>
<ol type="1">
<li>Move the file <strong>867MHz.txt</strong> to the root of the primary partition on your master drive (originally <em>Macintosh HD</em>, where the <em>System</em> folder usually resides).</li>
<li>Reboot</li>
<li>Press and hold <strong>Command-Option-O-F</strong> until you enter the Open Firmware monitor.</li>
<li>At the Open Firmware command prompt (&#8220;<code>0&gt;</code>&#8220;) enter <strong><code>boot hd:\867MHz.txt</code></strong>.</li>
<li>Now it is your responsibility to select the <em>Mac OS X Install DVD</em>, wherever you placed it.</li>
</ol>
<p>I still recommend the first method in most cases, but the steps here can be helpful when your Mac doesn&#8217;t have an internal DVD drive.</p>
<p>I&#8217;m convinced that any changes to the nvrams content should be avoided for the application of this technique because they carry the risk of complications, might not be removable as clean as it seems on the first sight and the installer on the DVD only has to be fooled once — keep a simple trick easy !<br />
(This modification will <em>never</em> survive the next reboot.)</p>
<p>PS: I don&#8217;t think an adjustment is <em>necessary</em> for dual CPU systems as any Apple-supplied configuration has both CPUs running at the same clock so I <em>expect</em> the installer to only check the first one. Has anybody tried this ?<br />
(Otherwise see the first article.)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=6&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2007/12/23/steps-for-booting-from-drives-other-than-the-primary-cddvd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Using 128 GiB or Larger ATA Hard Drives</title>
		<link>http://pareis.wordpress.com/2007/12/17/using-128-gib-or-larger-ata-hard-drives/</link>
		<comments>http://pareis.wordpress.com/2007/12/17/using-128-gib-or-larger-ata-hard-drives/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 02:47:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[10.2]]></category>
		<category><![CDATA[10.3]]></category>
		<category><![CDATA[10.4]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[Jaguar]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[Panther]]></category>
		<category><![CDATA[PowerMac]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2007/12/17/using-128-gib-or-larger-ata-hard-drives/</guid>
		<description><![CDATA[Mac OS X has been able to use parallel ATA disks larger than 128 GiB using the extended 48-bit Logical Block Addressing (LBA) since version 10.2, if it is also supported in the Open Firmware for booting the OS (Apple support article 86178, but xlr8yourmac.com lists more systems with native support). Open Firmware signals this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=5&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mac OS X has been able to use parallel ATA disks larger than 128 GiB using the extended 48-bit Logical Block Addressing (LBA) since version 10.2, if it is also supported in the Open Firmware for booting the OS (<a href="http://docs.info.apple.com/article.html?artnum=86178" target="_blank">Apple support article 86178</a>, but <a href="http://forums.xlr8yourmac.com/action.lasso?-database=faq.fp3&amp;-layout=FaqList&amp;-response=answer.faq.lasso&amp;-recordID=34188&amp;-search" target="_blank">xlr8yourmac.com</a> lists more systems with native support).</p>
<p>Open Firmware signals this capability by the presence of a simple property in the device tree at the ATA controllers node. Since this is not a hardware limitation adding this property will enable certain older Macs to use large hard disks using the driver included in Mac OS X.</p>
<p>The following script (available for <a href="http://www.box.net/shared/ift1khpq8s" target="_blank">download</a> as <strong>enable-lba48</strong>) can be launched from the Finder and will insert the required FCode (shown in single quotes after <em>nvramrc=</em>) in front of the <em>nvramrc</em>, as this property must be set on every system start:<br />
(An administrator password is required to set nvram variables.)<br />
<blockquote>
<pre>#! /bin/bash -

[[ `kextstat -lb com.apple.driver.KeyLargoATA`	= *KeyLargoATA*	&amp;&amp;
   `ioreg -p IODeviceTree -n ata-4 -w0`		!= *lba-48* ]]	|| exit

read -rd $'&#92;0' nvram nvramrc &lt;&lt; nvramrc
`nvram nvramrc 2&gt;&amp;-`
nvramrc

sudo nvram 'use-nvramrc?=true'	\
nvramrc='dev mac-io/ata-4 0 0 " lba-48" property device-end'" $nvramrc"	&amp;&amp;
echo '48-bit LBA support will be enabled on the next reboot.'
sudo -k</pre>
</blockquote>
<p>The script first verifies that the <em>KeyLargoATA</em> driver is used (the Key Largo south bridge hosting two ATA controllers was first introduced in the Sawtooth) and the property named <em>lba-48</em> has not been set so far (indicating an older firmware limited to 28-bit LBA). It will only do this for the ATA-5 Ultra DMA/66 bus (where the hard disks are usually connected); replacing both <em><code>ata-4</code></em> with <em><code>ata-3</code></em> should enable support for large hard disks on the secondary bus used for optical and zip drives (although running large disks on the slow bus doesn&#8217;t really make sense).</p>
<p>After a reboot large drives will get tagged with a property named <em>extended LBA capacity</em> and the full number of blocks as its value. The command line<br />
<blockquote><code>ioreg -c ATADeviceNub | fgrep -1 "extended LBA capacity"</code></p></blockquote>
<p>can be used to show the recognized drives which must be repartioned in <em>Disk Utility</em> to use the full capacity.<br />
<strong>CAUTION: This will erase all data on those drives !</strong></p>
<p>I&#8217;m running this configuration with a new WD 500 GB drive in a Sawtooth under Mac OS X 10.4.11 and 10.5.1 for a few weeks now without any problem. It should also work on other Macs without 48-bit LBA support built before 2002 as the PowerMac G4 or the Cube, maybe even the latest PowerBook G3. I&#8217;d like to see some feedback on this topic.</p>
<p>Advantages of this method:</p>
<ul>
<li>The required driver is already installed with Mac OS X (<a href="http://developer.apple.com/technotes/tn2002/tn2053.html#HW000319" target="_blank">and has been there since 10.2</a>).</li>
<li>Future system updates won&#8217;t break the systems own driver.</li>
<li>Even the installation CD/DVD has the driver and can be used for a volume check or a restore from a Time Machine backup.</li>
</ul>
<p>Disadvantages:</p>
<ul>
<li>(Native) MacOS 9 doesn&#8217;t know (and care about) the <em>lba-48</em> property so it will NOT be enabled to recognize storage beyond 128 GiB (the limit of 28-bit LBA) — I didn&#8217;t mind, but Apple hints in the support article given above that the MDD comes with an enhanced version of MacOS 9.2.2 that can access partions up to 200 GB in size. Intech offers the <a href="http://www.speedtools2.com/HDInfo.html" target="_blank">Hard Disk SpeedTools For MacOS Classic</a> as an alternative.</li>
<li>Clearing the parameter RAM (weak batterie, Command-Option-P-R on reboot, other installers overwriting the nvramrc) will limit the drives to 128 GiB again until the script is rerun and the system is rebooted; this poses a risk of file system corruption (but see below).</li>
<li>Booting fails if any system file needed in the early boot process extends beyond the first 128 GiB as the Open Firmware can&#8217;t access it¹. This is the prime reason why Apple limits the driver on older systems. Even if it works on a fresh install it will fail when the disk gets filled up and the next system update relocates a critical system file above the limit. It is therefore <em>strongly</em> recommended to follow Intechs <em>Safe Partitioning</em> guidelines in the <a href="http://www.speedtools2.com/Users%20Guides/ATA%20Hi-Cap%20Guide.pdf" target="_blank">SpeedTools ATA Hi-Cap Support Driver User&#8217;s Guide</a>.<br />
⑴ FireWire target disk mode is also implemented in the BootROM and will be limited to 128 GiB.</li>
<li>The partition table can&#8217;t be easily extended if there are already files on a drive; again Intech seems to include an utility named <em>Hi-Cap Extender</em> for this purpose with its <a href="http://www.speedtools2.com/ATA6.html" target="_blank">SpeedTools ATA Hi-Capacity Driver</a>.</li>
</ul>
<p>Some technical details can be learned from the <a href="http://www.opensource.apple.com/darwinsource/10.5/" target="_blank">open source of Leopards drivers</a>:</p>
<ul>
<li>In <a href="http://www.opensource.apple.com/darwinsource/10.5/KeyLargoATA-111.3.1/KeyLargoATA.cpp" target="_blank">KeyLargoATA-111.3.1/KeyLargoATA.cpp</a>, method <em>KeyLargoATA::probe</em> tests for the <em>lba-48</em> property.<br />
This leads to a second approach: Recompile the driver without this test and there will be no need for the nvramrc (but it has to be done for every new release).</li>
<li>In <em>KeyLargoATA::provideBusInfo</em> the maximum transfer size at the driver level is raised for large drives from 128 KiB to 1 MiB to optimize the throughput of modern hard disks.</li>
<li><em>IOATADevConfig::sDriveSupports48BitLBA</em> in <a href="http://www.opensource.apple.com/darwinsource/10.5/IOATAFamily-173.3.1/IOATADevConfig.cpp" target="_blank">IOATAFamily-173.3.1/IOATADevConfig.cpp</a> tests drives for 48-bit LBA capability (as they are all required to be 28-bit LBA compliant as well), used by <em>ATADeviceNub::publishVendorProperties</em> in <a href="http://www.opensource.apple.com/darwinsource/10.5/IOATAFamily-173.3.1/ATADeviceNub.cpp" target="_blank">IOATAFamily-173.3.1/ATADeviceNub.cpp</a> to publish the <em>extended LBA capacity</em> property.</li>
<li>Finally <em>IOATAController::issueCommand</em> in <a href="http://www.opensource.apple.com/darwinsource/10.5/IOATAFamily-173.3.1/IOATAController.cpp" target="_blank">IOATAFamily-173.3.1/IOATAController.cpp</a> splits an Extended LBA into two halves and sends them one after the other. This shows that 48-bit addressing is just a protocol extension designed to be compatible with older hardware.</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=5&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2007/12/17/using-128-gib-or-larger-ata-hard-drives/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>MacBook Pro 15&quot; (Santa Rosa based) @ 2,2 GHz</title>
		<link>http://pareis.wordpress.com/2007/12/16/macbook-pro-15-santa-rosa-based-22-ghz/</link>
		<comments>http://pareis.wordpress.com/2007/12/16/macbook-pro-15-santa-rosa-based-22-ghz/#comments</comments>
		<pubDate>Sun, 16 Dec 2007 02:19:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[OpenGL]]></category>
		<category><![CDATA[shader]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2007/12/16/macbook-pro-15-santa-rosa-based-22-ghz/</guid>
		<description><![CDATA[Recently I had access to a new MacBook Pro which is capable of running the enhanced OpenGL test: CINEBENCH R10.1 **************************************************** Tester           : Pareis Processor        : MacBook Pro 15": Core 2 Duo T7500, 3 GiB 667 MHz DDR2 SDRAM MHz              : 2200 (running on power adapter with better performance) Number of CPUs   : 2 Operating System : Mac OS X 10.5.4 (9E17) -- [updated results with small improvements] Graphics Card    : NVIDIA GeForce 8600M GT, 128 MiB Resolution       : 1440x900 Color Depth      : 32 bpp **************************************************** Rendering (Single   CPU): 2407 CB-CPU  Rendering (Multiple CPU): 4520 CB-CPU  Multiprocessor Speedup: 1.88 Shading (CINEMA 4D)                :  427 CB-GFX  Shading (OpenGL Software Lighting) :  718 CB-GFX  Shading (OpenGL Standard)          : 4388 CB-GFX  Shading (OpenGL Enhanced)          : 1025 CB-GFX OpenGL Speedup: 10.28 **************************************************** OpenGL Enhanced Test 40.597 sec; 9.0 fps OpenGL Standard Test 9.480 sec; 38.5 fps OpenGL Software Lighting Test 57.949 sec; 6.3 fps CINEMA 4D Shading Test 97.492 sec; 3.7 fps Single CPU Render Test 367.4 sec Multiple CPU Render Test 195.6 sec OpenGL Enhanced uses hardware shaders [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=4&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I had access to a new MacBook Pro which is capable of running the enhanced OpenGL test:</p>
<blockquote>
<pre>CINEBENCH R10.1
****************************************************

Tester           : Pareis

Processor        : MacBook Pro 15": Core 2 Duo T7500, 3 GiB 667 MHz DDR2 SDRAM
MHz              : 2200 (running on power adapter with better performance)
Number of CPUs   : 2
Operating System : Mac OS X 10.5.4 (9E17) -- [updated results with small improvements]

Graphics Card    : NVIDIA GeForce 8600M GT, 128 MiB
Resolution       : 1440x900
Color Depth      : 32 bpp

****************************************************

Rendering (Single   CPU): 2407 CB-CPU 
Rendering (Multiple CPU): 4520 CB-CPU 

Multiprocessor Speedup: 1.88

Shading (CINEMA 4D)                :  427 CB-GFX 
Shading (OpenGL Software Lighting) :  718 CB-GFX 
Shading (OpenGL Standard)          : 4388 CB-GFX 
Shading (OpenGL Enhanced)          : 1025 CB-GFX

OpenGL Speedup: 10.28

****************************************************

OpenGL Enhanced Test
40.597 sec; 9.0 fps

OpenGL Standard Test
9.480 sec; 38.5 fps

OpenGL Software Lighting Test
57.949 sec; 6.3 fps

CINEMA 4D Shading Test
97.492 sec; 3.7 fps

Single CPU Render Test
367.4 sec

Multiple CPU Render Test
195.6 sec</pre>
</blockquote>
<p><em>OpenGL Enhanced</em> uses hardware shaders to render the scene with realistic lighting. Its requirements can be verified in the benchmark under <em>File</em> / <em>Preferences…</em> / <em>Viewport</em> / <em>Show OpenGL Capabilities</em>.</p>
<p>The added tests and verbose output (copied from the Console pane) require modifications to the file <strong>Bench.cof</strong> (available for <a href="http://www.box.net/shared/5x67xay048" target="_blank">download</a>). This file belongs into the <em>plugins</em> subdirectory of CineBench R10. A <em>diff</em> will show that most of my changes are nothing but uncommenting inactive instructions.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=4&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2007/12/16/macbook-pro-15-santa-rosa-based-22-ghz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Open Firmware to install Leopard below 867 MHz</title>
		<link>http://pareis.wordpress.com/2007/11/13/using-open-firmware-to-install-leopard-below-867-mhz/</link>
		<comments>http://pareis.wordpress.com/2007/11/13/using-open-firmware-to-install-leopard-below-867-mhz/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 23:32:00 +0000</pubDate>
		<dc:creator>Pareis</dc:creator>
				<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[PowerMac]]></category>

		<guid isPermaLink="false">http://pareis.wordpress.com/2007/11/13/using-open-firmware-to-install-leopard-below-867-mhz/</guid>
		<description><![CDATA[It is easy to fake the CPU frequency in the device tree and make the installer happy. Just copy the following code into a file called fastG4.txt, place it in the root of the primary partition on your master drive (originally Macintosh HD, where the System folder usually resides) and reboot into the Open Firmware [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=3&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is easy to fake the CPU frequency in the device tree and make the installer happy. Just copy the following code into a file called <a href="http://www.box.net/shared/8lzxb70aqj" target="_blank"><strong>fastG4.txt</strong></a>, place it in the root of the primary partition on your master drive (originally <em>Macintosh HD</em>, where the <em>System</em> folder usually resides) and reboot into the Open Firmware monitor (holding down <span style="font-weight:bold;">Command-Option-O-F</span>).</p>
<blockquote>
<pre>\ Claim first G4 runs at 867 MHz, and boot from CD/DVD:
dev /cpus/PowerPC,G4@0
d# 867000000 encode-int " clock-frequency" property
boot cd:,\\:tbxi</pre>
</blockquote>
<p>After inserting the installation DVD execute the new file at the command prompt using <strong>boot hd:\fastG4.txt</strong>.<br />
The use of a file is only intended to ease the command entry, especially when needed more than once, i.e. the code can be input directly at the prompt as well.</p>
<p>This might also be helpful in testing other software excluding slower CPUs.<br />
I don&#8217;t know if this is sufficient for a dual CPU system. Repeating the sequence of line 2 &amp; 3 with <em><code>@1</code></em> instead of <em><code>@0</code></em> will set the property for both CPUs.</p>
<p>Note that the device tree is only a volatile inventory of the hardware found by the Open Firmware during the system start sequence, so these entries will be reset at the next reboot, and (before somebody gets this wrong) we are not talking about overclocking here at all !</p>
<p>PS: A <a href="http://pareis.wordpress.com/2007/12/23/steps-for-booting-from-drives-other-than-the-primary-cddvd/">modified file</a> can be used if the <em>Mac OS X Install DVD</em> can&#8217;t be booted from the built-in optical drive.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pareis.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pareis.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pareis.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pareis.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pareis.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pareis.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pareis.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pareis.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pareis.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pareis.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pareis.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pareis.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pareis.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pareis.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pareis.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pareis.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pareis.wordpress.com&amp;blog=3916666&amp;post=3&amp;subd=pareis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pareis.wordpress.com/2007/11/13/using-open-firmware-to-install-leopard-below-867-mhz/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Pareis</media:title>
		</media:content>
	</item>
	</channel>
</rss>
