one way to compile petitboot is using openwrt. The openwrt README explains how to test the compiled petitboot:
here is the version of openwrt/petitboot I used:
unpack the openwrt archive somewhere under your home directory.
cd to the openwrt directory and change the name of ps3_petitboot_minimal_config to .config
I cross-compiled on Fedora 12. Here are the other sources I had to download to build with the ps3 minimal config:
to use the extra sources from the 2nd link, just unpack the archive somewhere under your home directory. You should get a folder with lots of smaller archives.
cd to the openwrt directory and run:
in the menuconfig window, for local repository enter the directory path for the extra sources, something like:
"unit" is my username--home directory
exit menuconfig, saving changes.
it should have added an entry to your .config file something like this:
then run:
the first time it will take a long time making because it has to build the tool chain. a couple of hours on the old pc I had for Fedora 12, about 12 years ago.
Code:
OpenWRT on the Sony PS3 Game Console
The OpenWRT build will create both a 1st stage PS3-Linux image
suitable for programming into the PS3 flash memory, and a 2nd
stage PS3-Linux image suitable for loading via bootloaders or
the kexec utility.
The 2nd stage image is convenient for testing new builds. It can
be loaded from disk, USB device, or the network by an existing
Other OS bootloader. After the 2nd stage image is tested and
found to be good, the 1st stage image can then be programmed into
flash memory. It is recommended to use this method during
development to avoid corrupting the flash memory contents, which
requires a reboot to the Game OS to repair.
Known good Other OS bootloader images and installation information
can be found here:
http://www.kernel.org/pub/linux/kernel/people/geoff/cell/
The 2nd stage image file is bin/openwrt-ps3-vmlinux.elf. It can
be loaded with an entry in the bootloader config file. It has
no initrd file.
The 1st stage image is named bin/otheros.bld. It can be programmed
into flash memory either from Linux or the Game OS.
here is the version of openwrt/petitboot I used:
Code:
https://mega.nz/#!oqJgSaqQ!TpVpoiIacWHjkIqbpSmyaxlzwkIZq9YpfRKLiBlTklQ
unpack the openwrt archive somewhere under your home directory.
cd to the openwrt directory and change the name of ps3_petitboot_minimal_config to .config
I cross-compiled on Fedora 12. Here are the other sources I had to download to build with the ps3 minimal config:
Code:
https://mega.nz/#!xjhiQbBL!dm_G7JtUg7E3w259Nd9icFP9lEAg8SJ1XjdqlinFWCA
to use the extra sources from the 2nd link, just unpack the archive somewhere under your home directory. You should get a folder with lots of smaller archives.
cd to the openwrt directory and run:
Code:
make menuconfig
Code:
file:///home/unit/openwrt1390/dl
exit menuconfig, saving changes.
it should have added an entry to your .config file something like this:
Code:
CONFIG_LOCALMIRROR="file:///home/unit/openwrt42025/dl"
Code:
make V=99
Last edited: