View previous topic :: View next topic |
Author |
Message |
rbshep78 n00b
Joined: 26 Jan 2018 Posts: 8 Location: UK
|
Posted: Fri Jan 26, 2018 11:39 am Post subject: Updated stage3 for ppc7450 (most g4) apple systems |
|
|
Hi folks,
I've used gentoo before but been away from it for a while. I was trying to get it running on apple g4 systems, and i've had some success.
But i noticed the stage3 tarballs for ppc are a bit out of date. So here's a link to a tarball on my dropbox that i compiled a couple of months ago.
https://www.dropbox.com/sh/wk6b2b0iovzdhyb/AAALTgUtxcJ-3DqaoL2wBnL-a?dl=0
I updated the CFLAGS for ppc7450 class cpu's, switched the compiler to gcc-6.4.0, and emerged world again (to make sure everything was linked against the latest library versions).
There is also a kernel tarball (containing kernel / initramfs / modules) if you wish to use it. Please note that when extracting this, all paths are relative to your root (or chroot ) mount point.
Hopefully someone will find it useful to save them compile time when starting from scratch on a similar system. Thanks to the gentoo community |
|
Back to top |
|
|
gray227 n00b
Joined: 29 Jan 2018 Posts: 1
|
Posted: Mon Jan 29, 2018 1:36 pm Post subject: |
|
|
Thats very handy indeed
Got a G4 here I wanted to put gentoo on and this will speed up how long it takes to update as like you mention, the ppc stage3's are quite a bit out of date.
Just done one on a G5 and took a long time.
Many thanks rbshep78 |
|
Back to top |
|
|
schwarzygesetzlos Apprentice
Joined: 11 Dec 2004 Posts: 187 Location: Funeralopolis
|
Posted: Sat Feb 10, 2018 9:20 am Post subject: |
|
|
Very helpful indeed! Is this already the new 17.0 profile? _________________ Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2] |
|
Back to top |
|
|
rbshep78 n00b
Joined: 26 Jan 2018 Posts: 8 Location: UK
|
Posted: Mon Apr 02, 2018 9:14 am Post subject: |
|
|
schwarzygesetzlos wrote: | Very helpful indeed! Is this already the new 17.0 profile? |
Thanks No it's still the 13.0 profile...however, i'm going to try building a base tarball with the 17.0 profile, hopefully should be uploaded by next week |
|
Back to top |
|
|
rbshep78 n00b
Joined: 26 Jan 2018 Posts: 8 Location: UK
|
|
Back to top |
|
|
legacy Tux's lil' helper
Joined: 10 Sep 2012 Posts: 144
|
Posted: Sun Apr 08, 2018 4:03 pm Post subject: |
|
|
gcc v7.3.0 works here (7.3.0-r1) |
|
Back to top |
|
|
rbshep78 n00b
Joined: 26 Jan 2018 Posts: 8 Location: UK
|
Posted: Fri Apr 13, 2018 5:38 pm Post subject: |
|
|
Thanks, will try updating gcc later. Currently playing with qemu-system-ppc on my in-hell i5 desktop
Just noticed i made a mistake - kernel is 4.15.15 so have renamed tarball to kernel-ppc-4.15.15-gentoo.tar.bz2 |
|
Back to top |
|
|
rbshep78 n00b
Joined: 26 Jan 2018 Posts: 8 Location: UK
|
|
Back to top |
|
|
rbshep78 n00b
Joined: 26 Jan 2018 Posts: 8 Location: UK
|
Posted: Thu Jul 12, 2018 5:38 pm Post subject: |
|
|
https://www.dropbox.com/sh/wk6b2b0iovzdhyb/AAALTgUtxcJ-3DqaoL2wBnL-a?dl=0
New file:
stage3-ppc7450-20180711.tar.bz2
- Based on May 5th 2018 stage3
- Added 'altivec' USE flag
- Still using gcc 6.4.0 (and have masked higher versions) as i couldn't get a 4.14.* (LTS) kernel to compile under GCC 7.3.0
Hopefully new 4.14 series kernel to come in the next few days |
|
Back to top |
|
|
schwarzygesetzlos Apprentice
Joined: 11 Dec 2004 Posts: 187 Location: Funeralopolis
|
Posted: Sat Jul 21, 2018 9:14 pm Post subject: |
|
|
rbshep78 wrote: |
- Still using gcc 6.4.0 (and have masked higher versions) as i couldn't get a 4.14.* (LTS) kernel to compile under GCC 7.3.0 |
Hmm, interesting... I've been building & running kernels from 4.14.* up to 4.18-rc* with gcc 7.3.0 since quite a while. Though only on a G5 (still 32bit userland), and not on my PowerBook G4.
Where does gcc 7.3.0 fail at building the kernel? _________________ Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2] |
|
Back to top |
|
|
rbshep78 n00b
Joined: 26 Jan 2018 Posts: 8 Location: UK
|
Posted: Sun Oct 07, 2018 4:00 pm Post subject: gentoo-sources-4.14.74 fails to compile on gcc 7.3.0 / ppc32 |
|
|
Thanks for the reply schwarzygesetzlos and sorry it's taken a while to come back to you.
I was pleasantly surprised to find new stage3 ppc 32bit tarballs being built. However, they now contain gcc 7.3.0-r3
Here's what goes wrong when i try to compile gentoo-sources-4.14.74 :
Code: |
CC arch/powerpc/kernel/kvm.o
In file included from ./arch/powerpc/include/uapi/asm/kvm_para.h:82:0,
from ./arch/powerpc/include/asm/kvm_para.h:22,
from ./include/uapi/linux/kvm_para.h:33,
from ./include/linux/kvm_para.h:5,
from ./include/linux/kvm_host.h:33,
from arch/powerpc/kernel/kvm.c:22:
arch/powerpc/kernel/kvm.c: In function ‘kvm_guest_init’:
./arch/powerpc/include/asm/epapr_hcalls.h:470:42: error: ‘in’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long register r3 asm("r3") = in[0];
~~^~~
./arch/powerpc/include/asm/epapr_hcalls.h:471:25: error: ‘*((void *)&in+4)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long register r4 asm("r4") = in[1];
^~
./arch/powerpc/include/asm/epapr_hcalls.h:472:25: error: ‘*((void *)&in+8)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long register r5 asm("r5") = in[2];
^~
./arch/powerpc/include/asm/epapr_hcalls.h:473:25: error: ‘*((void *)&in+12)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long register r6 asm("r6") = in[3];
^~
./arch/powerpc/include/asm/epapr_hcalls.h:474:25: error: ‘*((void *)&in+16)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long register r7 asm("r7") = in[4];
^~
./arch/powerpc/include/asm/epapr_hcalls.h:475:25: error: ‘*((void *)&in+20)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long register r8 asm("r8") = in[5];
^~
./arch/powerpc/include/asm/epapr_hcalls.h:476:25: error: ‘*((void *)&in+24)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long register r9 asm("r9") = in[6];
^~
./arch/powerpc/include/asm/epapr_hcalls.h:477:25: error: ‘*((void *)&in+28)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long register r10 asm("r10") = in[7];
^~~
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:329: arch/powerpc/kernel/kvm.o] Error 1
make: *** [Makefile:1039: arch/powerpc/kernel] Error 2
|
Any ideas on how to fix this? |
|
Back to top |
|
|
schwarzygesetzlos Apprentice
Joined: 11 Dec 2004 Posts: 187 Location: Funeralopolis
|
Posted: Wed Oct 17, 2018 1:34 pm Post subject: |
|
|
Do you really need KVM on your Mac Mini G4? I don't seem to have it set on my G5, which runs fine without it. Also you could try a more recent kernel, like the 4.18.x series.
Code: | T800 /usr/src/linux # grep -i kvm .config
# CONFIG_KVM_GUEST is not set
|
Try disabling it. If you need it and it won't build after you updated Gentoo and rebuilt the whole toolchain with gcc-7.3.0 you should file a bug at https://bugzilla.kernel.org/enter_bug.cgi regarding "Platform Specific/Hardware". _________________ Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2] |
|
Back to top |
|
|
|