Mailing List Archive

Instructions for Installing Gentoo on an external firewire disk
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
/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
Drivers-
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
/proc/device-tree/pci@f4000000/firewire@e/node@0001d200e00d0207/sbp-2@c000/disk@0

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 :
ofboot=fw/node/sbp-2/disk@0:
# Apple_Bootstrap bootstrap partition
boot=/dev/sda9
# Real device name (can be obtained from OpenBoot)
device=fw/node@0001d200e00d0207/sbp-2@c000/disk@0:

2/ as mentioned I did not use modules in the past.
I'm thinking about mentionning :
CONFIG_BLK_DEV_INITRD=y
CONFIG_IEEE1394_OHCI1394=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_OHCI_HCD=y
CONFIG_IEEE1394=y
CONFIG_IEEE1394_OHCI1394=y
CONFIG_IEEE1394_SBP2=y


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 :
https://www.redhat.com/archives/fedora-list/2005-January/msg01168.html
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 ....

Regards,

SL/

Stephane.Lentz@gmail.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@gentoo.org mailing list