Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Notes on installing ppc64 (64bit userland)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
downsj
n00b
n00b


Joined: 24 Jun 2017
Posts: 19

PostPosted: Thu Jun 29, 2017 12:58 am    Post subject: Notes on installing ppc64 (64bit userland) Reply with quote

I wanted to share some of my notes while they're still fresh in my mind.

The following stage3 works: http://distfiles.gentoo.org/releases/ppc/autobuilds/20170322/stage3-ppc64-20170322.tar.bz2

Regardless of how "optional" it may sound, you do need a separate /boot formatted to ext2 when using yaboot. Also, if you're wanting to dual boot MacOS X, the yaboot autoconfiguration will get it wrong. Don't let it format, just save the config and then fix the bootstrap partition to point to the one you created instead of the one belonging to MacOS... After installing the bootstrap, holding Option at boot will give you both MacOS and Linux as bootable systems.

It's noted in the ppc64 handbook that you must install yaboot-static; that is still very true. That's one of the few PPC64 specific items which is accurate.

Use "make g5_defconfig" to produce a baseline kernel config for G5.

genkernel is slightly broken on PPC64, apparently. You must specify the full path of the current kernel config in order to do anything with it, including building an initramfs (which you will need for yaboot, it's not optional). Specify --kernel-config=/usr/src/linux/.config as an argument to do so.

Bootstrap the toolchain first thing, so that you're on gcc-5.4.0 or better. Don't forget to rebuild texinfo as part of this.

Oh, and run AHT to check your RAM first.

Anyway, hope this helps anyone else considering embarking upon this odyssey.
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 229
Location: Arkansas

PostPosted: Fri Dec 29, 2017 5:19 pm    Post subject: Reply with quote

I'm tempted to pull my IBM RS/6000 44P-170 back down from the attic. There are some things on the Mac that the IBM doesn't possess, so I would probably need to keep some things from the config files.

How hard do you think it would be to re-install the latest Gentoo, since do doubt, what's on the old black box probably has a 5 year old (or longer) Gentoo install.
_________________
Greg
Back to top
View user's profile Send private message
starpa
n00b
n00b


Joined: 13 Jan 2018
Posts: 1

PostPosted: Sat Jan 13, 2018 8:37 am    Post subject: Reply with quote

How does your yaboot.conf look with a separate /boot partition?
And do you have 5 partitions in total without dual booting?

Mine looks like this and I'm having issues getting root to mount, and I'm suspecting yaboot.conf

sda1 Apple_partition map
sda2 bootstrap
sda3 boot
sda4 swap
sda5 root

I have my initrmfs and kernel in /boot.
I used /usr/share/genkernel/arch/ppc64/kernel-2.6.g5 as the config for genkernel (there wasn't anything in called /usr/src/linux/.config)
I'm not sure what you mean by "make g5_defconfig" and bootstraping the toolchain first.

I apologize but I am very new to this and I'm just trying to get a working distro on this g5. The handbook is kind of all over the place.
Back to top
View user's profile Send private message
schwarzygesetzlos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2004
Posts: 104
Location: Funeralopolis

PostPosted: Mon Jan 22, 2018 3:31 pm    Post subject: Reply with quote

For a good working G5-kernel have a look at: https://forums.gentoo.org/viewtopic-t-1055626.html

Probably you are right to suscpect yaboot, it is veeery picky these days. You need to emerge yaboot-static and the boot partition must be ext2 (ext4 used to work, but seemingly not any longer). I got dualboot Gentoo + MorphOS on my G5 and my partition layout looks like this:

Code:
/dev/sda1: PARTLABEL="Apple"
/dev/sda2: UUID="42dede74-c20d-4493-96f6-daf13c99589e" TYPE="swap" PARTLABEL="swap"
/dev/sda3: LABEL="bootstrap" TYPE="hfs" PARTLABEL="yaboot"
/dev/sda4: UUID="e4225bdc-7245-4286-8fed-24c2369ae275" TYPE="ext2" PARTLABEL="kernel"
/dev/sda5: LABEL="Boot" TYPE="hfs" PARTLABEL="DH0"
/dev/sda6: PARTLABEL="DH1"
/dev/sda7: PARTLABEL="DH2"
/dev/sda8: LABEL="gentoo_ppc32" UUID="e3d6899c-391f-459e-8a07-09a42c75cfec" TYPE="ext4" PARTLABEL="untitled"
/dev/sda9: LABEL="stable_ppc32" UUID="65e24a4d-ec13-4d6f-add5-997216950e55" TYPE="ext4" PARTLABEL="untitled"
/dev/sda10: LABEL="exp_ppc32" UUID="e3d6899c-391f-459e-8a07-09a42c75cfec" TYPE="ext4" PARTLABEL="untitled"
/dev/sda11: PARTLABEL="Extra"
/dev/sda12: PARTLABEL="Extra"

Don't know how I got those sda11, sda12 partitions but they seem to do no harm...
_________________
PMac G5 11,2. PMac G5 7,3. PBook G4 5,8. PBook G4 5,6. [MorphOS 3.9 / Gentoo Linux / Ubuntu MATE 16.10]
2 x A1200. ACA-1233/55, ACA1232/40, Indivision AGA Mk2, 4 GiB CF. [Amiga OS 3.9]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum