Gentoo Archives: gentoo-ppc-dev

From: milter@××××.fr
To: gentoo-ppc-dev@l.g.o
Subject: [gentoo-ppc-dev] Instructions for Installing Gentoo on an external firewire disk
Date: Sat, 09 Apr 2005 08:21:10
Hi Gentoo foolks, 

Now that 2005.0 is out I think we should try to provide
some infos for installing Gentoo on external firewire disk
to Gentoo PPC users (the question pops up frequently in 
the web forums)

I've been done it in the past (using 2004.0 or 2004.1
I can't remember). 

I've been doing the work again on a second ibook this time 
using 2005.0 (with use of udev but not bootsplash) and
with most stuff compiled (instead of use of modules).
I can do it again if this can help to serve as testing
and help getting the handbook updated. 

Clearly I didn't use genkernel.
I've never used genkernel in the past. Do you recommend
using it ? 

I've been installing 2005.0 on an ibook 900Mhz G3
using G3 dofirewire as parameters. 
I did create some partitions on an external firewire
disk (Oxford 911 controler). 

Information needed to be added to the handbook for
installation on external firewire disk is :

1/ special yaboot.conf parameters required
2/ .config entries needed
3/ creation of an initrd

1/ ofboot, boot, device must be defined properly.
An image= entry with initrd must be created .

Example : 
 mac-fdisk -l /dev/sda
         #                    type name                  length   base      ( size )  system
	 /dev/sda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
	 /dev/sda2          Apple_Driver43 Macintosh                 56 @ 64        ( 28.0k)  Driver 4.3
	 /dev/sda3          Apple_Driver43 Macintosh                 56 @ 120       ( 28.0k)  Driver 4.3
	 /dev/sda4        Apple_Driver_ATA Macintosh                 56 @ 176       ( 28.0k)  Unknown
	 /dev/sda5        Apple_Driver_ATA Macintosh                 56 @ 232       ( 28.0k)  Unknown
	 /dev/sda6          Apple_FWDriver Macintosh                512 @ 288       (256.0k)  Unknown
	 /dev/sda7      Apple_Driver_IOKit Macintosh                512 @ 800       (256.0k)  Unknown
	 /dev/sda8           Apple_Patches Patch Partition          512 @ 1312      (256.0k)  Unknown
	 /dev/sda9         Apple_Bootstrap bootstrap               1600 @ 1824      (800.0k)  NewWorld bootblock
	 /dev/sda10        Apple_UNIX_SVR2 swap                 1048576 @ 3424      (512.0M)  Linux swap
	 /dev/sda11        Apple_UNIX_SVR2 root                83886080 @ 1052000   ( 40.0G)  Linux native
	 /dev/sda12             Apple_Free Extra              313359008 @ 84938080  (149.4G)  Free space

	 Block size=512, Number of Blocks=398297088
	 DeviceType=0x0, DeviceId=0x0
	 1: @ 64 for 23, type=0x1
	 2: @ 120 for 36, type=0xffff
	 3: @ 176 for 21, type=0x701
	 4: @ 232 for 34, type=0xf8ff

Run : 
find /proc/device-tree -name disk@* | grep firewire

If there is no output from the find command try to reboot and make another try
(some times it seem to occur). 

In such a case the yaboot.conf must then must include : 
# Apple_Bootstrap bootstrap  partition
# Real device name (can be obtained from OpenBoot)

2/ as mentioned I did not use modules in the past.
I'm thinking about mentionning :

3/ mkinitrd must be used to create a ramdisk.
I faced some issues : apparently mkinitrd now create 
a gzipped cpio archive and not a gzipped ext2 content see :
I used an old initrd (ext2.gz format) and it worked.
Each time I do it I forget to create a /initrd directory (and end up
with pivot_root fatal errors)

Right now using this procedure I can boot on my firewire disk
I still need to activate bootsplash ...

Do you recommend I retry this installation with genkernel and/or
activate other stuff ?

I can put .config and linuxrc somewhere.

I hope this information helps ....



Stephane.Lentz@×××××.com aka ds9/ds9bsd
Linux number6 2.6.11-gentoo-r4 #4 Sat Apr 9 10:04:32 CEST 2005 ppc 750FX PowerBook4,3 GNU/Linux
gentoo-ppc-dev@g.o mailing list