View previous topic :: View next topic |
Author |
Message |
Henr1k n00b
Joined: 12 Feb 2024 Posts: 6
|
Posted: Mon Feb 12, 2024 5:01 pm Post subject: Kernel 6.7+ on big-endian Power4 (PPC970MP in PowerMac G5) |
|
|
Hi, I cannot boot any 6.7 kernels, last tried 6.7.4
It stops very early without an error message.
6.6.16 works fine.
My system had the same symptoms as Renés PS3 (very related CPU, Cell Power4)
https://www.youtube.com/watch?v=jhSmKtEv2xU (very long video, see summary below)
He fixed his PS3 kernel 6.7 by disabling the use of ELF ABI V2 (due to PS3 hypervisor not supporting that ABI)
I tried changing my .config file to this directly
CONFIG_PPC64_ELF_ABI_V2=n
as that setting is not found in gentoo-sources menuconfig.
It did not help however...
Does it work setting it directly in .config?
Or was ELF ABI V2 introduced in 6.6 already?
If so ELF ABI V2 can be ruled out as cause. (René is fixing a build that was broken for more than half a year)
The rest of the system is compiled with AltiVec ABI, -mabi-altivec, not sure how that all interferes with kernel ABI?
When the kernel fails so early, I do not think it has an effect. Except if the make.conf flags interfere with new kernel ABI build flags?
Any input is appreciated, thanks
Henrik |
|
Back to top |
|
|
Henr1k n00b
Joined: 12 Feb 2024 Posts: 6
|
Posted: Mon Feb 12, 2024 5:40 pm Post subject: |
|
|
Henr1k wrote: |
Or was ELF ABI V2 introduced in 6.6 already?
|
Ok, I tried googling again..:
Build big-endian kernel using ELF ABI V2
configname: CONFIG_PPC64_BIG_ENDIAN_ELF_ABI_V2
In linux kernel since version 6.2 (release Date: 2023-02-19)
But I think it was only made default y and enabled, probably around new year:
https://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg225076.html
so it is highly likely only made default y in 6.7+ |
|
Back to top |
|
|
Henr1k n00b
Joined: 12 Feb 2024 Posts: 6
|
|
Back to top |
|
|
Henr1k n00b
Joined: 12 Feb 2024 Posts: 6
|
Posted: Mon Feb 12, 2024 7:51 pm Post subject: |
|
|
Found the setting in gentoo-sources menuconfig, I just had to enable Expert
I tried building with V2 disabled from menuconfig, but it did not start either...
I will look at the menuconfig generated .config when I have patience again, to check if V2 is indeed set to n. |
|
Back to top |
|
|
Henr1k n00b
Joined: 12 Feb 2024 Posts: 6
|
Posted: Tue Feb 13, 2024 6:34 pm Post subject: |
|
|
Ok, it looks like PS3 with ELF V2 in T2 SDE kernel was fixed with this commit:
https://github.com/rxrbln/t2sde/commit/a4154aa0999fe75780b107c227eb2902fbef6bf8
There is some PS3 specific stuff, but also something linker related.
I will try to see if I can get 6.6.16 compiled and running with Clang/LLVM, and then try 6.7 with Clang/LLVM
I cannot remember which linker I use now... |
|
Back to top |
|
|
Henr1k n00b
Joined: 12 Feb 2024 Posts: 6
|
Posted: Tue Mar 26, 2024 8:05 am Post subject: |
|
|
Kernel 6.8.1 works when compiled with clang, still didn't work with GCC. |
|
Back to top |
|
|
schwarzygesetzlos Apprentice
Joined: 11 Dec 2004 Posts: 187 Location: Funeralopolis
|
Posted: Thu May 23, 2024 6:39 pm Post subject: |
|
|
Interesting!
I had no problems running ELFv2 kernels on my PowerMac G5 11,2 and on the Talos II ever since ELFv2 could be enabled. Currently I am doing the builds with GCC 13.2 + binutils 2.42.
Could you upload/bpaste your kernel .config somewhere? I can check this out next week then. _________________ 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 |
|
|
|