PS3 How to build your own dtbImage.ps3.bin petitboot (for NOR slim)?

I cannot help You with compiling etc. but friendly advice:
Take in mind that default size for partition with OtherOS bootloader is 4MiB, so compressed by gzip or uncompressed *.bld must be smaller (4MiB minus cell_ext_os header). On OOS+, size increased to 8 or ~10MiB.
 
what about oos++?
I cannot help You with compiling etc. but friendly advice:
Take in mind that default size for partition with OtherOS bootloader is 4MiB, so compressed by gzip or uncompressed *.bld must be smaller (4MiB minus cell_ext_os header). On OOS+, size increased to 8 or ~10MiB.
 
the NOR verson is bigger (because it is on HDD not flash). you can probably add a little bit more. the NAND version can not be any bigger AFAIK. IMHO fixing the problem involving petitboot loading instead of ps2 games is more important than adding features to the bootloader.
 
I have in mind OOS++ of course.

On NOR and NAND, by default is 4MiB. But on NOR is possible to enlarge the size because there is unused space between VFLASH region 5 and 6. So smart people made script for modify PS3PT to enlarge this "sub-partition" by this space.

Never heard about such issue but it is not related to Petitboot but to HV if You have in mind launching PS2 game but instead otheros.bld is invoking (OOS vm instead PS2 emulator vm).
 
the NOR verson is bigger (because it is on HDD not flash). you can probably add a little bit more. the NAND version can not be any bigger AFAIK. IMHO fixing the problem involving petitboot loading instead of ps2 games is more important than adding features to the bootloader.
How can I make an image that I can flash/copy into vflash region 5? Is there any headers I must add?
 
How can I make an image that I can flash/copy into vflash region 5? Is there any headers I must add?
Maybe some info You will find here (didn't digging, maybe only Linux related):

https://ia903408.us.archive.org/24/items/ibm-cell-sdk-and-linux/CELL-Linux-CL_20080609-ADDON.iso
https://kernel.googlesource.com/pub/scm/linux/kernel/git/geoff/ps3-linux/+/refs/heads/master
https://mirrors.edge.kernel.org/pub/linux/kernel/people/geoff/cell/

I think it is just bare metal executable for PPC64.
 
I used openwrt-1390fdb.tar.gz to cross-compile on Fedora pc.
It's too large to upload here, unfortunately.
approximately 11mb, but includes scripts for dl necessary pkgs depending on your config, IIRC.

edit:
here is a listing of all the files in the folder, this is after configured and compiled.
the output is shown in ./build_dir/linux-ps3_petitboot
Code:
./build_dir/linux-ps3_petitboot:
base-files
image
linux-2.6.30.10
packages
symtab.h
symtab.txt
vmlinux
vmlinux.elf
 

Attachments

Last edited:
ok, google has found a site for uploading files. Here is the original archive, openwrt-1390fdb.tar.gz, approximately 11mb.
I apologize for not remembering where I downloaded this from, so I can't give proper credit to whomever created the archive. This is somewhat embarrassing since I'm sure I have used this as recently as 2013.

You can see there are quite abit more files in the directory listing posted above than in the archive. These were downloaded as part of the build process, IIRC.
 

Attachments

Since you want to make a more current version of petitboot, you probably won't need any of the old versions in that listing. If you do need any of those old files let me know. Here's a more detailed listing, that also displays the file attributes, like if it's just a link to a system file, etc.

The following readme's in the openwrt archive may be of some help:

openwrt-1390fdb\README
general notes on compiling

openwrt-1390fdb\target\linux\ps3\README
This explains about using "bin/openwrt-ps3-vmlinux.elf" to test your compiled petitboot by booting it with your
already installed known good petitboot. It can be loaded from usb or whatever. The final image for installing
is "bin/otheros.bld"

openwrt-1390fdb\ps3_petitboot_howto
ps3 specific compilation notes.

your compilation output will be in:
Code:
./bin/ps3:
total 8676

-rw-r--r-- 1 ...        114 2013-11-06 08:55 md5sums
-rwxr-xr-x 1 ...    6026936 2013-11-06 08:55 openwrt-ps3-petitboot-vmlinux.elf
-rw-r--r-- 1 ...    2877135 2013-11-06 08:55 otheros.bld
drwxr-xr-x 2 ....      4096 2013-11-06 08:55 packages
and also in a subdirectory of the build directory
 

Attachments

Back
Top