Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on PPC
  • Search

Kernel 6.7+ on big-endian Power4 (PPC970MP in PowerMac G5)

Have a PowerPC specific problem? This is the spot.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Henr1k
n00b
n00b
Posts: 6
Joined: Mon Feb 12, 2024 4:30 pm

Kernel 6.7+ on big-endian Power4 (PPC970MP in PowerMac G5)

  • Quote

Post by Henr1k » Mon Feb 12, 2024 5:01 pm

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
Top
Henr1k
n00b
n00b
Posts: 6
Joined: Mon Feb 12, 2024 4:30 pm

  • Quote

Post by Henr1k » Mon Feb 12, 2024 5:40 pm

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-d ... 25076.html
so it is highly likely only made default y in 6.7+
Top
Henr1k
n00b
n00b
Posts: 6
Joined: Mon Feb 12, 2024 4:30 pm

  • Quote

Post by Henr1k » Mon Feb 12, 2024 6:07 pm

Ok, found this:
(OpenPOWER ELF V2) expects an OpenPOWER-compliant processor to implement at least Power ISA V2.07B
in https://wiki.raptorcs.com/w/images/7/70 ... 170510.pdf

2.07 is not present until POWER88: https://en.wikipedia.org/wiki/Power_ISA ... ISA_v.2.07

So it is highly likely related to ELF ABI V2 being set, even though it is not supported by the CPU.
I will try messing with my config again.
Top
Henr1k
n00b
n00b
Posts: 6
Joined: Mon Feb 12, 2024 4:30 pm

  • Quote

Post by Henr1k » Mon Feb 12, 2024 7:51 pm

Found the setting in gentoo-sources menuconfig, I just had to enable Expert :roll:

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.
Top
Henr1k
n00b
n00b
Posts: 6
Joined: Mon Feb 12, 2024 4:30 pm

  • Quote

Post by Henr1k » Tue Feb 13, 2024 6:34 pm

Ok, it looks like PS3 with ELF V2 in T2 SDE kernel was fixed with this commit:
https://github.com/rxrbln/t2sde/commit/ ... 02fbef6bf8

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...
Top
Henr1k
n00b
n00b
Posts: 6
Joined: Mon Feb 12, 2024 4:30 pm

  • Quote

Post by Henr1k » Tue Mar 26, 2024 8:05 am

Kernel 6.8.1 works when compiled with clang, still didn't work with GCC.
Top
schwarzygesetzlos
Apprentice
Apprentice
Posts: 192
Joined: Sat Dec 11, 2004 2:58 pm
Location: Funeralopolis

  • Quote

Post by schwarzygesetzlos » Thu May 23, 2024 6:39 pm

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.19 / Gentoo Linux / Adelie Linux] | A600GS [Amibench / Amiga OS 3.2.3]
Top
Post Reply

7 posts • Page 1 of 1

Return to “Gentoo on PPC”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy