Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting latest minimal ISO on Playstation 3?
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
BenR
n00b
n00b


Joined: 02 May 2020
Posts: 2

PostPosted: Sat May 02, 2020 11:14 pm    Post subject: Booting latest minimal ISO on Playstation 3? Reply with quote

Hi,

I pulled my Playstation 3 out of the closet yesterday. It's running the 3.15 firmware and has an older Gentoo PPC64 install on it from back when PS3 was well supported.

I downloaded the latest install-powerpc-minimal ISO, added a kboot.conf and tried to boot it from petitboot:

Code:

default=test
test='/boot/G5 initrd=/boot/G5.igz root=/dev/ram0 init=/linuxrc looptype=squashfs loop=/image.squashfs cdroot'


After selecting this in petitboot and hitting Enter, it just hangs.

Is there something I'm missing, or is it simply not possible to boot the newer PPC installers on PS3?
Back to top
View user's profile Send private message
mattst88
Developer
Developer


Joined: 28 Oct 2004
Posts: 398

PostPosted: Sat May 02, 2020 11:29 pm    Post subject: Reply with quote

I build the PPC ISOs and I have zero idea about running Linux on a PS3.

Perhaps the ISOs used to support PS3. I really don't know what's even required now.
Back to top
View user's profile Send private message
mallgrab
n00b
n00b


Joined: 06 May 2020
Posts: 3

PostPosted: Wed May 06, 2020 12:33 am    Post subject: Reply with quote

Trying to get gentoo running on the ps3 as well.
Probably not the only thing needed to get it booting but apparently the linux kernel will need ps3 patches to be able to boot properly and see the ps3 partition.

https://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git
https://gitlab.com/aethyx/ps3linux/-/tree/master/Kernel%20patches%20and%20configs
Back to top
View user's profile Send private message
mallgrab
n00b
n00b


Joined: 06 May 2020
Posts: 3

PostPosted: Tue May 19, 2020 2:53 am    Post subject: Reply with quote

Alright got it working.

Basically all you need to do is compile the ps3 kernel .git with any ppc64 toolchain. Maybe the default gentoo sources / kernel archives could work too since some ps3 changes have been made upstream.
Apply the distro kernel kconfig patch and make ps3_defconfig.
Generate an initramfs with genkernel on a stage3 gentoo with chroot. You could do that on any working ps3 distro like say red ribbon.
Once you got the initramfs and kernel move them over to the gentoo installation and edit the kboot.conf / yaboot. Should boot then.
Also double check that in /lib/modules that you have your new build kernel modules in here.
Back to top
View user's profile Send private message
BenR
n00b
n00b


Joined: 02 May 2020
Posts: 2

PostPosted: Fri May 29, 2020 2:00 am    Post subject: Reply with quote

mallgrab wrote:
Alright got it working.

Basically all you need to do is compile the ps3 kernel .git with any ppc64 toolchain. Maybe the default gentoo sources / kernel archives could work too since some ps3 changes have been made upstream.
Apply the distro kernel kconfig patch and make ps3_defconfig.
Generate an initramfs with genkernel on a stage3 gentoo with chroot. You could do that on any working ps3 distro like say red ribbon.
Once you got the initramfs and kernel move them over to the gentoo installation and edit the kboot.conf / yaboot. Should boot then.
Also double check that in /lib/modules that you have your new build kernel modules in here.


That's good news!

What kernel are you using? And are you using petitboot?

I have not been able to get mine to boot. I am using the latest gentoo-sources.
Back to top
View user's profile Send private message
mallgrab
n00b
n00b


Joined: 06 May 2020
Posts: 3

PostPosted: Sat May 30, 2020 7:15 pm    Post subject: Reply with quote

BenR wrote:

That's good news!

What kernel are you using? And are you using petitboot?

I have not been able to get mine to boot. I am using the latest gentoo-sources.


Git cloned the latest ps3 kernel sources https://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git
And applied the gentoo patch to it https://dev.gentoo.org/~mpagano/genpatches/trunk/5.7/4567_distro-Gentoo-Kconfig.patch
And yes using otheros++ petitboot with kboot.

You could also skip the minimal installation iso completely and just create a ext4 partition and extract the stage3 tarball into it.
Then just set it as root in yaboot / kboot.

Should probably try to get the kernel + initramfs booting first tho, before trying out the whole stage3 tarball thing.
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