Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updated stage3 for ppc7450 (most g4) apple systems
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
rbshep78
n00b
n00b


Joined: 26 Jan 2018
Posts: 8
Location: UK

PostPosted: Fri Jan 26, 2018 11:39 am    Post subject: Updated stage3 for ppc7450 (most g4) apple systems Reply with quote

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
View user's profile Send private message
gray227
n00b
n00b


Joined: 29 Jan 2018
Posts: 1

PostPosted: Mon Jan 29, 2018 1:36 pm    Post subject: Reply with quote

Thats very handy indeed :D

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. :wink:

Many thanks rbshep78 :D
Back to top
View user's profile Send private message
schwarzygesetzlos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2004
Posts: 126
Location: Funeralopolis

PostPosted: Sat Feb 10, 2018 9:20 am    Post subject: Reply with quote

Very helpful indeed! Is this already the new 17.0 profile?
_________________
Talos II Secure Workstation. [Gentoo Linux] | PMac G5 7,3. PBook G4 5,8. [MorphOS 3.11 / Gentoo Linux]
A1200. ACA-1233, Indivision AGA Mk2. [Amiga OS 3.1.4]
Back to top
View user's profile Send private message
rbshep78
n00b
n00b


Joined: 26 Jan 2018
Posts: 8
Location: UK

PostPosted: Mon Apr 02, 2018 9:14 am    Post subject: Reply with quote

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
View user's profile Send private message
rbshep78
n00b
n00b


Joined: 26 Jan 2018
Posts: 8
Location: UK

PostPosted: Wed Apr 04, 2018 2:57 pm    Post subject: Reply with quote

https://www.dropbox.com/sh/wk6b2b0iovzdhyb/AAALTgUtxcJ-3DqaoL2wBnL-a?dl=0

New files:

stage3-ppc7450-17.0-20180404.tar.bz2
kernel-ppc-4.15.5-gentoo.tar.bz2

- Changed to 17.0 profile, gcc updated to 6.4.0-r1
- Kernel sucessfully boots Mac Mini G4 (PowerMac 10,1)
Back to top
View user's profile Send private message
legacy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 139

PostPosted: Sun Apr 08, 2018 4:03 pm    Post subject: Reply with quote

gcc v7.3.0 works here (7.3.0-r1)
Back to top
View user's profile Send private message
rbshep78
n00b
n00b


Joined: 26 Jan 2018
Posts: 8
Location: UK

PostPosted: Fri Apr 13, 2018 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
rbshep78
n00b
n00b


Joined: 26 Jan 2018
Posts: 8
Location: UK

PostPosted: Mon Apr 16, 2018 12:02 pm    Post subject: Reply with quote

https://www.dropbox.com/sh/wk6b2b0iovzdhyb/AAALTgUtxcJ-3DqaoL2wBnL-a?dl=0

New file:

kernel-ppc-4.14.34-gentoo.tar.bz2

For those who prefer an LTS kernel
Back to top
View user's profile Send private message
rbshep78
n00b
n00b


Joined: 26 Jan 2018
Posts: 8
Location: UK

PostPosted: Thu Jul 12, 2018 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
schwarzygesetzlos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2004
Posts: 126
Location: Funeralopolis

PostPosted: Sat Jul 21, 2018 9:14 pm    Post subject: Reply with quote

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 Secure Workstation. [Gentoo Linux] | PMac G5 7,3. PBook G4 5,8. [MorphOS 3.11 / Gentoo Linux]
A1200. ACA-1233, Indivision AGA Mk2. [Amiga OS 3.1.4]
Back to top
View user's profile Send private message
rbshep78
n00b
n00b


Joined: 26 Jan 2018
Posts: 8
Location: UK

PostPosted: Sun Oct 07, 2018 4:00 pm    Post subject: gentoo-sources-4.14.74 fails to compile on gcc 7.3.0 / ppc32 Reply with quote

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
View user's profile Send private message
schwarzygesetzlos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2004
Posts: 126
Location: Funeralopolis

PostPosted: Wed Oct 17, 2018 1:34 pm    Post subject: Reply with quote

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 Secure Workstation. [Gentoo Linux] | PMac G5 7,3. PBook G4 5,8. [MorphOS 3.11 / Gentoo Linux]
A1200. ACA-1233, Indivision AGA Mk2. [Amiga OS 3.1.4]
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