Skip to content

ModelCitizenPS3/ps3linux-releng

Repository files navigation

PS3LINUX Release Engineering

This is just a place for me to store what scripts and configs I use for building live Linux media that boots on the Playstation 3 (via the petitboot bootloader). PS3LINUX is a fork of Fedora 28 (ppc64) with optimizations for the PS3 as well as any updates I package and serve from my personal rpm repo hosted here: https://ps3linux.net/ps3linux-repos.

If you are interested in developing for PS3LINUX but do not have a dedicated Linux PS3 like I do, then this is the place you want to be. My PS3LINUX_Live_ISO_gen.sh script, when run with the --keep argument, creates two directories you can chroot into for developing rpm packages for PS3LINUX (PS3LINUX_ppc64_chroot_kept and PS3LINUX_x86_64_chroot_kept). PS3LINUX_ppc64_chroot_kept is a vanilla Fedora 28 (ppc64) environment suitable for developing rpm packages for PS3LINUX and PS3LINUX_x86_64_chroot_kept is a vanilla Fedora 28 (x86_64) environment that can be used for cross compiling kernel packages (which is much faster than building kernels in the ppc64 chroot).

Dependencies

  1. a Fedora operating system - my scripts are heavily dependent on the dnf package manager
  2. qemu - for running programs executed within the ppc64 chroot: sudo dnf install qemu
  3. enable systemd's proc-sys-fs-binfmt_misc.mount unit: sudo systemctl enable proc-sys-fs-binfmt_misc.mount
  4. optional - add your user to the kvm group: sudo usermod -aG kvm <USERNAME>
  5. iso mastering utils (mksquashfs, mkisofs, etc): sudo dnf install squashfs-tools genisoimage xorriso

How to use

All the scripts in the toplevel directory are meant to be run as root and will fail and exit if run without root privileges.

  1. clone this repo: git clone https://github.com/ModelCitizenPS3/ps3linux-releng.git
  2. enter repo directory: cd ps3linux-releng
  3. run script: sudo ./PS3LINUX_Live_ISO_gen.sh
  4. you should now have the file PS3LINUX_Live_ISO.iso in your current (ps3linux-releng) directory
  5. burn the image to a USB or CD/DVD: sudo dd if=PS3LINUX_Live_ISO.iso of=<USB DEVICE> - USB device will be something like /dev/sda
  6. BE CAREFUL WITH THE DD COMMAND. Double check that you set of (output file) correctly!
  7. insert USB in your PS3 and boot PS3LIVE from your petitboot bootloader menu
  8. my live ISO will now autologin as root but the default root password is still HACKTHEPLANET
  9. do system maintenance/recovery tasks or install an OS like Gentoo or Adelie if you'd like
  10. optional - try out my PS3LINUX install script by running ps3linux-install.sh as root.

The other two scripts in this project's top level directory (PS3LINUX_ppc64_enter_chroot.sh and PS3LINUX_x86_64_enter_chroot.sh) are helper scripts for entering into the left-over chroot directories (PS3LINUX_ppc64_chroot_kept and PS3LINUX_x86_64_chroot_kept) from running my PS3LINUX_Live_ISO_gen.sh script with the --keep argument. If those directories do not exist, then those scripts will not work.

Note: I realize my "scripts" are ugly and my bash is basic. I do intend to clean the scripts up a bit and add some logic to make them more dynamic and robust.

THE MODEL CITIZEN

About

Release engineering resources for my PS3LINUX distro (fork of Fedora 28 ppc64)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages