Giter VIP home page Giter VIP logo

Comments (13)

jk-ozlabs avatar jk-ozlabs commented on August 20, 2024 1

So, this is a bit of a task: petitboot provides a bit of infrastructure for booting from one Linux instance to another; the dtbImage.ps3.bin / otheros.bld also includes all the other components of that first Linux instance: the kernel, a minimal userspace, and petitboot.

So, the (very) general build process is:

  1. build a minimal userspace that includes the petitboot application. We used to use OpenWRT for this, but buildroot would be a good option now. This would give you a rootfs.
  2. build a Linux kernel for the ps3 platform, using that rootfs as a built-in initramfs (check out CONFIG_INITRAMFS_SOURCE for this)

For (1), you'd need a few (relatively) minor changes to buildroot to add a petitboot "package". There's an example here if you're keen!

I'd write up some more detailed instructions, but it has been a loooong time since I've had access to ps3 hardware that could run Linux, so I'd have no way to actually verify those.

from petitboot.

kernaltrap8 avatar kernaltrap8 commented on August 20, 2024 1

So, this is a bit of a task: petitboot provides a bit of infrastructure for booting from one Linux instance to another; the dtbImage.ps3.bin / otheros.bld also includes all the other components of that first Linux instance: the kernel, a minimal userspace, and petitboot.

So, the (very) general build process is:

1. build a minimal userspace that includes the petitboot application. We used to use OpenWRT for this, but [buildroot](https://buildroot.org) would be a good option now. This would give you a rootfs.

2. build a Linux kernel for the ps3 platform, using that rootfs as a built-in initramfs (check out `CONFIG_INITRAMFS_SOURCE` for this)

For (1), you'd need a few (relatively) minor changes to buildroot to add a petitboot "package". There's an example here if you're keen!

I'd write up some more detailed instructions, but it has been a loooong time since I've had access to ps3 hardware that could run Linux, so I'd have no way to actually verify those.

ah. i dont want to compile EVERYTHING myself, could i use the example files to build a new dtbimage?

from petitboot.

jk-ozlabs avatar jk-ozlabs commented on August 20, 2024 1

ah. i dont want to compile EVERYTHING myself, could i use the example files to build a new dtbimage?

If you're updating petitboot, then you'll need to create a new rootfs to install that into (matching all the existing library versioning), and then build that into a new kernel.

Consuming existing binary files (and getting the ABI versioning right) is just going to be more trouble than rebuilding the whole set.

from petitboot.

kernaltrap8 avatar kernaltrap8 commented on August 20, 2024 1

I wasnt directly involved but still the stuff from psx place discord

Playstation Homebrew?
yeah.. i dont remember. if you're referring to me getting banned, i have a new server now
https://discord.gg/Z6TBvQVHJa

from petitboot.

kernaltrap8 avatar kernaltrap8 commented on August 20, 2024 1

did you succeed ? as I too got some intrest in getting a relativly recent Linux going on my spare PS3. Rene from T2 does still work on his distro, might look into that. altho playing with Buildroot also sounds fun (and get my own "distro" going)

to be honest, kinda gave up. as of right now my main focuses in the PS3 scene are modding GH:WoR and getting Gentoo working correctly in OtherOS. might also make my own distro, who knows. wanna get fan speed and temp reading working in Linux, too.

from petitboot.

powerpc64 avatar powerpc64 commented on August 20, 2024

you
then you
then when its done you

from petitboot.

powerpc64 avatar powerpc64 commented on August 20, 2024

nah but can someone help this man

from petitboot.

Badprt23 avatar Badprt23 commented on August 20, 2024

Currently trying the same, already compiled the kernel. I was wondering what this config might be https://kernel.googlesource.com/pub/scm/linux/kernel/git/geoff/ps3-linux/+/refs/heads/master/arch/powerpc/configs/ps3_petitboot_defconfig
Thats geoff levlands ps3 linux kernel source. when compiling it, it outputs a dtbimage, but i tried flashing it and it didnt work.
Also makes sense as thats a kernel not petitboot/initrd

from petitboot.

Badprt23 avatar Badprt23 commented on August 20, 2024

Also hi james, long time no see;)

from petitboot.

Badprt23 avatar Badprt23 commented on August 20, 2024

Also the guy from t2 did something with petitboot, i think he build some type of initrd/kernel with kexec to boot on a ps3 but im not sure if he went through with it:
https://www.youtube.com/live/st70bZaliMM?feature=share

from petitboot.

kernaltrap8 avatar kernaltrap8 commented on August 20, 2024

Also hi james, long time no see;)

lol i dont actually remember you

from petitboot.

Badprt23 avatar Badprt23 commented on August 20, 2024

I wasnt directly involved but still the stuff from psx place discord

from petitboot.

CodeAsm avatar CodeAsm commented on August 20, 2024

did you succeed ? as I too got some intrest in getting a relativly recent Linux going on my spare PS3. Rene from T2 does still work on his distro, might look into that. altho playing with Buildroot also sounds fun (and get my own "distro" going)

from petitboot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.