<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-19284560</id><updated>2012-01-22T13:12:26.714-08:00</updated><title type='text'>ubuntu on the mac</title><subtitle type='html'>my adventures with ubuntu on my external fw harddrive on my dual 800 g4 mac.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://macubuntu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://macubuntu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Steve Shapero</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://static.flickr.com/35/buddyicons/65603477@N00.jpg?1143402522'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-19284560.post-113454742816726563</id><published>2005-12-14T00:02:00.000-08:00</published><updated>2005-12-14T00:03:48.180-08:00</updated><title type='text'>installing ruby stuff</title><content type='html'>Having trouble installing ruby pacakges on ubuntu?  Follow the simple advice here and install rubyxxdev.&lt;br /&gt;&lt;br /&gt;http://www.hoeg.org/blog/2005/10/24/ruby-gems-and-rails-installation/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19284560-113454742816726563?l=macubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://macubuntu.blogspot.com/feeds/113454742816726563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19284560&amp;postID=113454742816726563' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113454742816726563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113454742816726563'/><link rel='alternate' type='text/html' href='http://macubuntu.blogspot.com/2005/12/installing-ruby-stuff.html' title='installing ruby stuff'/><author><name>Steve Shapero</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://static.flickr.com/35/buddyicons/65603477@N00.jpg?1143402522'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19284560.post-113325580124576805</id><published>2005-11-29T01:15:00.000-08:00</published><updated>2005-11-29T01:19:23.263-08:00</updated><title type='text'>SMP Works!</title><content type='html'>Following the instructions &lt;a href="http://newbiedoc.sourceforge.net/system/kernel-pkg.html"&gt;here&lt;/a&gt; works!  You can configure SMP support and by golly, my dual 800 is being put to good use.  It scares me how happy that makes me.  The custom kernel also allowed me to get the built-in sound support happening.  Only remaining task is to figure out why the "live" CD was able to go up to much higher screen resolutions.  For now I'm stuck with 1280x1024, but the live CD goes up to 1920xsomething or another.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19284560-113325580124576805?l=macubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://macubuntu.blogspot.com/feeds/113325580124576805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19284560&amp;postID=113325580124576805' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113325580124576805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113325580124576805'/><link rel='alternate' type='text/html' href='http://macubuntu.blogspot.com/2005/11/smp-works.html' title='SMP Works!'/><author><name>Steve Shapero</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://static.flickr.com/35/buddyicons/65603477@N00.jpg?1143402522'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19284560.post-113325444708807889</id><published>2005-11-29T00:51:00.000-08:00</published><updated>2005-11-29T00:54:07.100-08:00</updated><title type='text'>Using a specialized kernel from ppckernel.org</title><content type='html'>Hmm, another item on my list of things to do.  Tonight I built my first debian kernel, though I haven't installed it.  I tried hand compiling without using the debian make-kpkg stuff and got a bunch of weird kernel images I didn't know what to do with.  So I went back and did make-kpkg.  I'll post results later.  I was just wondering how &lt;a href="http://ppckernel.org/specialized.php"&gt;these SMP kernels&lt;/a&gt; would work out.  Yes, my new obsession will be taking advantage of my dual processors!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19284560-113325444708807889?l=macubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://macubuntu.blogspot.com/feeds/113325444708807889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19284560&amp;postID=113325444708807889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113325444708807889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113325444708807889'/><link rel='alternate' type='text/html' href='http://macubuntu.blogspot.com/2005/11/using-specialized-kernel-from.html' title='Using a specialized kernel from ppckernel.org'/><author><name>Steve Shapero</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://static.flickr.com/35/buddyicons/65603477@N00.jpg?1143402522'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19284560.post-113322686052261341</id><published>2005-11-28T17:02:00.000-08:00</published><updated>2005-11-28T17:14:20.536-08:00</updated><title type='text'>Linux kernel building guide</title><content type='html'>"If you have built your main boot drivers as modules (e.g., SCSI host adapter, filesystem, RAID drivers) then you will need to create an initial RAMdisk image. The initrd is a way of sidestepping the chicken and egg problem of booting -- drivers are needed to load the root filesystem but the filesystem cannot be loaded because the drivers are on the filesystem."&lt;br /&gt;&lt;br /&gt;from &lt;a href="http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html#BUILDING"&gt;new Kernel HOWTO&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So in my &lt;a href="http://macubuntu.blogspot.com/2005/11/nailed-howto-install-bootable-mac.html"&gt;HOWTO&lt;/a&gt;, one of the things to explore is why it is cool that we can do our thing without an initrd at all.  That sentence above gives us more of an idea.  The next thing to pursue is how exactly it works without the initrd, and why you would do one over the other in a non-fw world.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19284560-113322686052261341?l=macubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://macubuntu.blogspot.com/feeds/113322686052261341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19284560&amp;postID=113322686052261341' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113322686052261341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113322686052261341'/><link rel='alternate' type='text/html' href='http://macubuntu.blogspot.com/2005/11/linux-kernel-building-guide.html' title='Linux kernel building guide'/><author><name>Steve Shapero</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://static.flickr.com/35/buddyicons/65603477@N00.jpg?1143402522'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19284560.post-113322310182584062</id><published>2005-11-28T16:09:00.000-08:00</published><updated>2006-05-16T22:45:57.873-07:00</updated><title type='text'>Understanding the yaboot bootstrap process</title><content type='html'>Again, if you're researching and you don't have access to a debian box, here's some juicy bits, this time from the bootstrap man page that comes with yaboot.  I'm including this because it gives a good explanation of OpenFirmware paths, boot partitions, and the bootstrap process in general.  It assumes that you are working off of an internal IDE drive like a normal person.&lt;br&gt;&lt;br /&gt;&lt;br /&gt;NEWWORLD&lt;br /&gt;       The  process  of booting so called NewWorld PowerMacs from&lt;br /&gt;       disk starts with OpenFirmware first attempting to  execute&lt;br /&gt;       the  file  specified  in the boot-device variable.  Unlike&lt;br /&gt;       older versions of OpenFirmware the NewWorld  version  will&lt;br /&gt;       not  attempt  to  read  a  boot  sector.  By default Open­&lt;br /&gt;       Firmware attempts to load a file with HFS file type "tbxi"&lt;br /&gt;       in  the  "blessed"  directory  from each partition of each&lt;br /&gt;       disk OpenFirmware is aware of,  the  first  partition/disk&lt;br /&gt;       that is found to be bootable is booted immediately.&lt;br /&gt;&lt;br /&gt;       Ybin(8)  configures  a  bootstrap partition to pass all of&lt;br /&gt;       OpenFirmware's tests to determine if the partition is con­&lt;br /&gt;       sidered  to  be bootable or not.  The boot script is given&lt;br /&gt;       file type "tbxi" and  the  root  directory  is  marked  as&lt;br /&gt;       "blessed",  the blessing is important because OpenFirmware&lt;br /&gt;       will immediately consider a  partition  unbootable  if  no&lt;br /&gt;       directory  is  marked  as  blessed (you can still manually&lt;br /&gt;       execute a loader such as yaboot(8) with OpenFirmware  even&lt;br /&gt;       without  a  blessed directory but it will not happen auto­&lt;br /&gt;       matically).&lt;br /&gt;&lt;br /&gt;       The MacOS System Folder is always marked as blessed,  this&lt;br /&gt;       is  required for MacOS as well as OpenFirmware.  The MacOS&lt;br /&gt;       System Folder also contains its own boot loader which  has&lt;br /&gt;       the tbxi file type, this makes installing yaboot(8) onto a&lt;br /&gt;       MacOS partition is difficult.  The  only  way  to  install&lt;br /&gt;       yaboot(8)  on  a  MacOS  boot partition is to modify Open­&lt;br /&gt;       Firmware to boot the CHRP script directly.  Given this  it&lt;br /&gt;       is  highly  recommended  that you create a dedicated boot­&lt;br /&gt;       strap partition for yaboot(8).&lt;br /&gt;&lt;br /&gt;       Since OpenFirmware boots the first partition it  finds  to&lt;br /&gt;       be  bootable  it is important that the bootstrap partition&lt;br /&gt;       be first on the disk before any MacOS partition, otherwise&lt;br /&gt;       MacOS will be booted instead of a dual boot menu used with&lt;br /&gt;       yaboot(8).&lt;br /&gt;&lt;br /&gt;       The bootstrap partition should also NOT  be  mountable  by&lt;br /&gt;       MacOS,  the  reason  is MacOS will (almost always) closely&lt;br /&gt;       inspect any blessed directories  to  make  sure  its  real&lt;br /&gt;       MacOS, if it is not satisfied that the contents are a real&lt;br /&gt;       copy of MacOS it will unbless the directory, resulting  in&lt;br /&gt;       OpenFirmware  no longer considering it bootable.  The best&lt;br /&gt;       way to protect against this is  to  create  the  bootstrap&lt;br /&gt;       partition  with the partition type "Apple_Bootstrap" which&lt;br /&gt;       OpenFirmware accepts as a valid HFS partition,  but  MacOS&lt;br /&gt;       will  ignore and refuse to mount.  The bootstrap partition&lt;br /&gt;need not be any larger then 800K.   800K  is  the  minimum&lt;br /&gt;       size  of  an  HFS filesystem, and is much more then enough&lt;br /&gt;       for this purpose.  You need not, and should not keep  ker­&lt;br /&gt;       nels on this partition, yaboot(8) will load them from your&lt;br /&gt;       ext2fs root partition just fine, as well as from  any  HFS&lt;br /&gt;       or  HFS+  partitions  (yaboot(8)  uses OpenFirmware's HFS+&lt;br /&gt;       filesystem support).&lt;br /&gt;&lt;br /&gt;       To create the bootstrap partition, use  GNU  parted(8)  or&lt;br /&gt;       mac-fdisk(8)  to  create  a  partiton of type "Apple_Boot­&lt;br /&gt;       strap".  This is documented  better  in  mac-fdisks-basics&lt;br /&gt;       (http://penguinppc.org/usr/ybin/doc/mac-fdisk-&lt;br /&gt;       basics.shtml).&lt;br /&gt;&lt;br /&gt;       The bootstrap need not and should not be mounted  anywhere&lt;br /&gt;       on  your  filesystem,  especially  not  on  top  of /boot.&lt;br /&gt;       Yaboot(8) is able to load the kernels from the ext2fs root&lt;br /&gt;       partition so that is where they should be kept.&lt;br /&gt;&lt;br /&gt;       OpenFirmware  maintains a hierarchy of all the hardware it&lt;br /&gt;       is aware of.  To access or specify a boot device you  must&lt;br /&gt;       use  the  OpenFirmware  path.   For example: the path to a&lt;br /&gt;       SCSI  hard  disk   partition   might   look   like   this:&lt;br /&gt;       /pci@80000000/pci-bridge@d/ADPT,2930CU@2/@2:2  . The first&lt;br /&gt;       part,  pci@80000000,  shows  that  the  target  device  is&lt;br /&gt;       accessed  through  the  PCI bus.  The next part is the PCI&lt;br /&gt;       bridge, the next is the name  of  the  SCSI  host  adapter&lt;br /&gt;       installed  (this name is provided by a BootROM on the card&lt;br /&gt;       itself), and after that is the SCSI ID number.  The  colon&lt;br /&gt;       delimits  the  device from partition specification, so the&lt;br /&gt;       last 2 means the second partition of this  device.   After&lt;br /&gt;       the  partition number we can specify pathnames to files in&lt;br /&gt;       two ways: lazy and absolute. The ","  delimits  the  Open­&lt;br /&gt;       Firmware   path   from   the  location  of  the  bootfile.&lt;br /&gt;       ",\\:tbxi" specifies the file that has a HFS file type  of&lt;br /&gt;       "tbxi"  in the blessed directory.  If there is not blessed&lt;br /&gt;       directory this will fail.  The  second  is  to  specify  a&lt;br /&gt;       absolute  pathname to an arbitrary file on the disk, exam­&lt;br /&gt;       ple: 2:,yaboot would load the file named "yaboot"  in  the&lt;br /&gt;       root  directory of the filesystem.  It is possible to load&lt;br /&gt;       files in subdirectories but OpenFirmware does  not  always&lt;br /&gt;       do  this  reliably,  and any special characters such as an&lt;br /&gt;       embedded space must be expressed like %20  (for  a  space)&lt;br /&gt;       the  directory separator used by OpenFirmware is the back­&lt;br /&gt;       slash \.  Example: 2:,\boot\yaboot. Determining the  Open­&lt;br /&gt;       Firmware  path  to  a  given device is unfortunately not a&lt;br /&gt;       trivial task.  If you are using the built in ATA hard disk&lt;br /&gt;       you can use the alias "hd:".&lt;br /&gt;&lt;br /&gt;       Ybin  also  includes a utility ofpath(8) which can in most&lt;br /&gt;       cases find the OpenFirmware device path from a unix device&lt;br /&gt;       node (ie /dev/hda2).&lt;br /&gt;&lt;br /&gt;       In  addition  to  binary executables OpenFirmware can also&lt;br /&gt;execute a CHRP script.  This  is  somewhat  similar  to  a&lt;br /&gt;       shell  script.   A  CHRP script is useful to create simple&lt;br /&gt;       boot menus, among other things.  CHRP scripts are  divided&lt;br /&gt;       into  sections  in a way similar to HTML.  Here is a basic&lt;br /&gt;       example of a CHRP script used as a  wrapper  to  yaboot(8)&lt;br /&gt;       (since OpenFirmware will only load a file with type "tbxi"&lt;br /&gt;       if it is a CHRP script).&lt;br /&gt;&lt;br /&gt;              &amp;lt;CHRP-BOOT&amp;gt;&lt;br /&gt;              &amp;lt;COMPATIBLE&amp;gt;&lt;br /&gt;              MacRISC&lt;br /&gt;              &amp;lt;/COMPATIBLE&amp;gt;&lt;br /&gt;              &amp;lt;DESCRIPTION&amp;gt;&lt;br /&gt;              GNU/Linux PowerPC bootloader&lt;br /&gt;              &amp;lt;/DESCRIPTION&amp;gt;&lt;br /&gt;              &amp;lt;BOOT-SCRIPT&amp;gt;&lt;br /&gt;              boot hd:,\\yaboot&lt;br /&gt;              &amp;lt;/BOOT-SCRIPT&amp;gt;&lt;br /&gt;              &amp;lt;/CHRP-BOOT&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       The COMPATIBLE section defines what machines  this  script&lt;br /&gt;       is  compatible  with, if the machine name encoded into the&lt;br /&gt;       ROM does not match one of these entries OpenFirmware  will&lt;br /&gt;       print  out a lot of incomprehensible junk and fail to load&lt;br /&gt;       the script.  The DESCRIPTION is ignored by OpenFirmware as&lt;br /&gt;       far as I know.  The BOOT-SCRIPT section is where arbitrary&lt;br /&gt;       OpenFirmware Forth commands may go.  They are executed the&lt;br /&gt;       same  way as you would enter them on the OpenFirmware com­&lt;br /&gt;       mand line.  The entire script is wrapped  with  the  CHRP-&lt;br /&gt;       BOOT  tags  so  that  such  a  script may be attached as a&lt;br /&gt;       header to a binary file.  Much more complicated and elabo­&lt;br /&gt;       rate  CHRP  scripts  are  possible  but that is beyond the&lt;br /&gt;       scope of this document.&lt;br /&gt;&lt;br /&gt;       Ybin as of version 0.17 includes a more robust script that&lt;br /&gt;       is  automatically configured with the correct OpenFirmware&lt;br /&gt;       paths based on /etc/yaboot.conf.  This new script need not&lt;br /&gt;       and should not be edited by the user.&lt;br /&gt;&lt;br /&gt;       If you have G4 hardware then your OpenFirmware may already&lt;br /&gt;       have a graphical boot selector built in. This selector can&lt;br /&gt;       be  accessed  by  holding down the option key when booting&lt;br /&gt;       the machine.  You should see a  screen  with  buttons  for&lt;br /&gt;       each  bootable  partition.   The  current  version  (as of&lt;br /&gt;       ybin(8) 0.13) of ofboot includes a badge icon, the  button&lt;br /&gt;       with  a  penguin icon is your bootstrap partition.  If you&lt;br /&gt;       decide to use this built in selector  you  really  do  not&lt;br /&gt;       need  to  use  a  CHRP  script  that provides a boot menu.&lt;br /&gt;       Thanks to Nicholas Humfrey for creating the Badge icon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19284560-113322310182584062?l=macubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://macubuntu.blogspot.com/feeds/113322310182584062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19284560&amp;postID=113322310182584062' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113322310182584062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113322310182584062'/><link rel='alternate' type='text/html' href='http://macubuntu.blogspot.com/2005/11/understanding-yaboot-bootstrap-process.html' title='Understanding the yaboot bootstrap process'/><author><name>Steve Shapero</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://static.flickr.com/35/buddyicons/65603477@N00.jpg?1143402522'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19284560.post-113321269550018120</id><published>2005-11-28T12:58:00.000-08:00</published><updated>2005-11-28T16:57:32.023-08:00</updated><title type='text'>Research Notes</title><content type='html'>&lt;a href="http://www.desertsol.com/%7Ekevin/ppc/yaboot.conf-1.3.7%20"&gt; A well-commented yaboot.conf file. &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What exactly is an initrd file?  From the mkinitrd man page:&lt;br /&gt;&lt;br /&gt;mkinitrd  creates  filesystem images which are suitable for use as Linux initial ramdisk (initrd) images. Such images are often used for preloading the block device modules (such as  IDE,  SCSI or RAID) which are needed to access the root filesystem. mkinitrd automatically loads IDE modules, all scsi_hostadapter entries in /etc/modules.conf, and raid modules if  the  system's root partition is on raid, which makes it simple to build and use kernels using modular device&lt;br /&gt;drivers.&lt;br /&gt;&lt;br /&gt;Any module options specified in /etc/modules.conf are passed to the modules as they are loaded by the initial ramdisk.&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;Useful notes from the yaboot.conf man page (which you probably won't have on your Mac OSX system!):&lt;br /&gt;&lt;br /&gt;boot=boot-device&lt;br /&gt;            Specifies the bootstrap(8) partition  ybin(8)  will&lt;br /&gt;            install  the  boot loader on.  This partition needs&lt;br /&gt;            to have an HFS or MSDOS filesystem  created  on  it&lt;br /&gt;            (except  on IBM hardware).  ybin(8) will not create&lt;br /&gt;            a filesystem.  If a filesystem is not  present  run&lt;br /&gt;            mkofboot(8)  instead of ybin(8) for the first time.&lt;br /&gt;            The bootstrap(8) partition must  have  a  partition&lt;br /&gt;            type  of  Apple_Bootstrap  to prevent MacOS[X] from&lt;br /&gt;            mounting it.  If MacOS is able to mount  the  boot­&lt;br /&gt;            strap(8)  partition  it  will make it unbootable by&lt;br /&gt;            removing the attributes ybin(8)  set  to  make  the&lt;br /&gt;            partition  bootable by OpenFirmware.  The bootstrap&lt;br /&gt;            partition must not  be  mounted  anywhere  on  your&lt;br /&gt;            filesystem,  ybin(8) and mkofboot(8) will refuse to&lt;br /&gt;            operate on it if it is mounted.   On  IBM  hardware&lt;br /&gt;            the  bootstrap(8)  should  be a type 0x41 PReP Boot&lt;br /&gt;            partition.&lt;br /&gt;&lt;br /&gt;ofboot=of-path&lt;br /&gt;            This option defines the OpenFirmware device path to&lt;br /&gt;            the  bootstrap(8) partition.  This is needed so the&lt;br /&gt;            first stage ofboot.b loader can be configured prop­&lt;br /&gt;            erly.   It  should  include  the  OpenFirmware path&lt;br /&gt;            including the partition number  (but  not  a  file­&lt;br /&gt;            name).  Example:  if  your  bootstrap  partition is&lt;br /&gt;            /dev/hda2 the OF path will likely be hd:2.   As  of&lt;br /&gt;            ybin(8)  0.18  you  no  longer are required to (and&lt;br /&gt;            should not) specify this option.  If left undefined&lt;br /&gt;            ybin(8) will attempt to figure out the OpenFirmware&lt;br /&gt;            path automatically  using  the  ofpath(8)  utility.&lt;br /&gt;            You  should  only  need  to  define  this option if&lt;br /&gt;            ofpath(8) fails.&lt;br /&gt;&lt;br /&gt;magicboot=magicboot-script&lt;br /&gt;            Specifies the path to an OpenFirmware  CHRP  script&lt;br /&gt;            that  ybin(8)  will copy to the bootstrap(8) parti­&lt;br /&gt;            tion.  Such a script contains Forth  commands  that&lt;br /&gt;            can allow you to do interesting things such as cre­&lt;br /&gt;            ating a  boot  menu  to  choose  between  MacOS  or&lt;br /&gt;            GNU/Linux.   Currently  you  must  use  a magicboot&lt;br /&gt;            script do to a bug in OpenFirmware.   Eventually  a&lt;br /&gt;            CHRP  header  could  be added to the yaboot(8) exe­&lt;br /&gt;            cutable so this can be optional.  When this  option&lt;br /&gt;            is defined the magicboot script will be executed by&lt;br /&gt;            OF automatically at boot (instead  of  the  install&lt;br /&gt;            file.)   See  man bootstrap(8) for more information&lt;br /&gt;            on this.  As of ybin 0.22 you should  set  this  to&lt;br /&gt;            /usr/local/lib/yaboot/ofboot which is a autoconfig­&lt;br /&gt;            uring first stage loader for yaboot.  It is capable&lt;br /&gt;            of presenting a dual boot menu for GNU/Linux, MacOS&lt;br /&gt;            and MacOSX.  If dual booting  is  not  required  or&lt;br /&gt;            configured  it  will  simply  load yaboot directly.&lt;br /&gt;            You must specify this for most  PowerMacs  or  they&lt;br /&gt;            will  fail  to  boot.   You  cannot  use  magicboot&lt;br /&gt;            scripts with IBM hardware.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19284560-113321269550018120?l=macubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://macubuntu.blogspot.com/feeds/113321269550018120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19284560&amp;postID=113321269550018120' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113321269550018120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113321269550018120'/><link rel='alternate' type='text/html' href='http://macubuntu.blogspot.com/2005/11/research-notes.html' title='Research Notes'/><author><name>Steve Shapero</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://static.flickr.com/35/buddyicons/65603477@N00.jpg?1143402522'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19284560.post-113286719173602609</id><published>2005-11-24T13:04:00.000-08:00</published><updated>2006-11-26T16:02:45.080-08:00</updated><title type='text'>NAILED: HOWTO install bootable mac ubuntu on your external firewire harddrive</title><content type='html'>This is version 0.1 of this document.&lt;br /&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;H1 { color: rgb(255,204,0); font-weight: bold; font-size: 130%; }&lt;br /&gt;&lt;/style&gt;&lt;span class="h1"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Purpose and Rationale&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;To explain to you, the eager Mac linux noobie, how to get your Ubuntu system of your dreams up and running. I am performing the surgery on a dual 800 G4 mac; YMMV. The idea is to be able to install Ubuntu onto an external firewire drive so you don't have to trash your existing Mac OS X set-up. I use my Mac to run Logic Pro, so I had no interest in re-partitioning my internal hard drives. I am also a software developer and wanted to be able to use familiar Linux tools and not have to mess with weird Darwin/BSD hack arounds for my projects.&lt;br /&gt;&lt;span class="h1"&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Known Issues&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;I don't currently have instructions for how to download, build, and install a debian linux kernel with the SCSI stuff compiled in (rather than built as a module). Thanks and praise are due to Brent Stephens who hooked me up with the deb packages I needed. I am a Redhat hacker by trade, so I am new to all this debian stuff.&lt;br /&gt;&lt;br /&gt;I plan on creating a condensed HOWTO to explain how to download, build, and install a debian linux kernel at the "yaboot install failure" juncture. For now, you'll have to rely upon the kindliness of strangers to provide you with the necessary&lt;br /&gt;&lt;span class="h1"&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Background&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;A quick and dirty explanation of why you can't just install Ubuntu to your firewire drive. Nerds, feel free to correct my crude explanations. Be sure to flame me for how stupid I am to further enhance my impression of engineering culture. No cynicism here, no siree bob.&lt;br /&gt;&lt;br /&gt;I know this explanation is crap, but it gives a high level explanation of some kind. Ubuntu is designed to work with a kernel image. The kernel image lives on your hard drive. In order to access your hard drive, the bootstrap process needs to be able to access the SCSI drive on which your kernel lives. If the SCSI code for the kernel lives in a module, the kernel image won't be able to find itself, and you're screwed.&lt;br /&gt;&lt;br /&gt;The bootstrap thingy is called yaboot. It creates a Mac-readable partition known as a bootstrap partition. It has special magic powers that enable it to find a linux kernel image when you provide it with the path to the image. Apple uses something called Open Firmware, which is a very rough and tumble boot loader among other things. One tricky bit about this whole business is that you have to provide yaboot with Open Firmware paths to your image, which is a relatively obscure activity that the Ubuntu installer doesn't know how to deal with. So it will die when it tries to perform the sacred ritual known as installing yaboot. Ubuntu just uses plain old /dev/sdX, and mkofboot needs Open Firmware (I'll refer to it as OF) paths in order to work.&lt;br /&gt;&lt;br /&gt;Another note is that the usual way to boot up linux is to use an initrd, which I think is a bootstrap kernel that gets loaded into memory, which then finds your real kernel (/boot/vmlinux). What we're doing here doesn't require initrd, which maybe one day we'll both understand how cool that is.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" class="h1" &gt;Make it work for me dammit!  I want my Mommy&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You need to roll your own yaboot.conf and install it, but that's easier said then done. Here's some step-by-step with some generous hand holding. Be sure to do some t'ai ch'i breathing and review your typing carefully. Welcome to the real world, boys and girls. Btw, once you get this thing up and running, you'll never have to deal with this crap again. You can happily use all the friendly Ubuntu GUI stuff afterwards.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Credit where it's due: Brent pointed out &lt;a href="http://hansmi.ch/articles/boot-linux-from-firewire"&gt;this article&lt;/a&gt; which was really helpful, but it is intended for hackers in the know.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;ol&gt;Follow the &lt;a href="https://wiki.ubuntu.com/Installation/PowerPC"&gt;usual instructions&lt;/a&gt; to download and burn an Ubuntu install CD iso.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Begin the install process by restarting your mac with your iso in the drive.  Hold down 'C' to boot off of your CD-ROM.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Go about the installation tasks as usual -- follow the wiki above if need be. Be sure to make a note of the BOOTSTRAP partition and the ROOT partition. For me, these were /dev/sda2 and /dev/sda3, respectively.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Your install will crap out when it tries to install yaboot. Now the fun begins. Drop to a terminal by typing "alt-f2" (aka option-f2).&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;&lt;i&gt;Note: this doc will be updated since we can't count on Brent Stephens to leave these deb packages lying around forever. I'm making these notes for posterity.&lt;/i&gt;&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Type chroot /target&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;You need to figure out the OF path of your FW drive. Type "echo /proc/device-tree/pci*/firewire*/node*/sbp-2*". Write down what it says carefully and legibly.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Type "apt-get install wget". Make sure your cdrom is still mounted and all that jazz. If it got ejected, apt-get will magically remount it so don't worry about it.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Type "cd /tmp", then type "wget http://brent.warehouse6.com/misc/kernel.tbz2"&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Type "tar xvjf kernel.tbz2".&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;cd into that dir, kernel-2.6.14.2 or something like that, mine is blown away now&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;type "dpkg -i *".  you can ignore whatever warning messages safely.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Now you need to make your yaboot.conf.  Use your favorite editor, like vi /etc/yaboot.conf.  In the file, put the following:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;boot=/dev/sda2&lt;/pre&gt;&lt;br /&gt;   Unix path to the bootstrap partition (Note: this will be where ever you put it, as noted above)&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;ofboot=fw/node@00d04b4a1905397c/sbp-2@c000/disk@0:2&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Open Firmware path to the bootstrap partition. Remember the output from the "echo /proc/device-tree/..." command? Follow my example above for formatting help. The number 2 in my example is the bootstrap partition. Like /dev/sda2 means use the number 2 at the end. You can ignore everything before the node part from the output of the echo command.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;ofdevice=fw/@00d04b4a1905397c/sbp-2@c000/disk@0:&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Open Firmware path to the root partition, more or less. You specify the actual partition next, this is just the path to the device.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;partition=3&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;   number of the root partition (like mine is /dev/sda3, so use the number 3)&lt;br /&gt;&lt;br /&gt;Now there's some stock stuff that goes in here which I'm not going to explain.  just do it.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;timeout=40&lt;br /&gt;install=/usr/lib/yaboot/yaboot&lt;br /&gt;magicboot=/usr/lib/yaboot/ofboot&lt;br /&gt;default=linux&lt;br /&gt;macosx=/dev/hda5 --&gt; if you edit /etc/yaboot.conf, you'll find ubuntu's attempt at this file.  Find the value for macosx in there.  don't just copy what I put.&lt;br /&gt;&lt;br /&gt;image=/boot/vmlinux&lt;br /&gt;   label=Linux&lt;br /&gt;   root=8:3&lt;br /&gt;   append="rootdelay=10"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Ok, that "root=8:3" part is tricky.  Go &lt;a href="http://hansmi.ch/articles/boot-linux-from-firewire#majorminor"&gt;here&lt;/a&gt; to figure out the correct values for your installation.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;My yaboot.conf:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;boot=/dev/sda2&lt;br /&gt;ofboot=fw/node@00d04b4a1905397c/sbp-2@c000/disk@0:2&lt;br /&gt;ofdevice=fw/node@00d04b4a1905397c/sbp-2@c000/disk@0:&lt;br /&gt;partition=3&lt;br /&gt;timeout=40&lt;br /&gt;install=/usr/lib/yaboot/yaboot&lt;br /&gt;magicboot=/usr/lib/yaboot/ofboot&lt;br /&gt;default=linux&lt;br /&gt;macosx=/dev/hda5&lt;br /&gt;&lt;br /&gt;image=/boot/vmlinux&lt;br /&gt;  label=Linux&lt;br /&gt;  root=8:3&lt;br /&gt;  append="rootdelay=10"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Ok, now you must install this gizmo onto your bootstrap partition. Type "mkofboot -v" and hope it works! You should see some promising output.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Switch back to the install by pressing alt-f1. Bail out of there and restart. Hold down ALT + APPLE KEY + O + F to get to the OF bootloader thingy.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;At the bootloader, type "boot fw/node/sbp-2/disk@0:2, yaboot" substituting YOUR bootstrap partition for the number 2 in the disk@0:2 part.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Type "mac-boot" or "mac-start" or whatever it says, it tells you in the OF boot thing, I'll look it up later.&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;Congrats, you're at the yaboot prompt. The screen will flash and your computer will convulse for a minute. when you get the "boot:" prompt, type Linux and go! The Ubunutu install process will magically continue. &lt;/ol&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19284560-113286719173602609?l=macubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://macubuntu.blogspot.com/feeds/113286719173602609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19284560&amp;postID=113286719173602609' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113286719173602609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19284560/posts/default/113286719173602609'/><link rel='alternate' type='text/html' href='http://macubuntu.blogspot.com/2005/11/nailed-howto-install-bootable-mac.html' title='NAILED: HOWTO install bootable mac ubuntu on your external firewire harddrive'/><author><name>Steve Shapero</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://static.flickr.com/35/buddyicons/65603477@N00.jpg?1143402522'/></author><thr:total>20</thr:total></entry></feed>
