PS4 News on Facebook! PS4 News on Twitter! PS4 News on YouTube! PS4 News RSS Feed!

Home PS4 News - Latest PlayStation 4 and PS3 News

217w ago - Following up on his previous update, today PlayStation 3 hacker Graf Chokolo has made available the Petitboot Tools for Linux on the PS3 console to allow the dual booting of Gentoo and GameOS.

Download: Petitboot Tools for Linux on PS3 / Graf Chokolo PS3 Petitboot Image

To quote: List of tools from Graf_Chokolo:

  • Debug console dumper for PS3 hypervisor
  • Dispatcher Manager utils
  • Linux kernel 2.6 for PS3
  • OpenWRT packages
  • Petitboot for PS3 Linux
  • PS3 hvcall tools
  • Scripts for Hypervisor
  • Storage device utils

New/updated tools:

  • New PS3 SPE MMIO driver
  • PS3Spemmio: Fixed module description
  • PS3 HVC driver
  • PS3HVC: Use hvcall constans from ps3hvc.h

New Additions and fixed for “utils Storage device” used to manage the partitions of the PS3 hard drive:

  • Added commands set_acl and get_acl
  • Added descriptions for set_acl and get_acl commands
  • Fixed ps3stor_mgr_get_region_acl

Usage: ps3stor_region [OPTIONS] DEVICE COMMAND [ARGS]


  • -H, - help: Show this message and exit
  • -V, - verbose: Increase verbosity
  • -V, - version: Show version information and exit


  • create DEVID START COUNT LAID : Creates storage region
  • delete DEVID REGIONID : Deletes storage region
  • set_acl DEVID REGIONID LAID RIGHTS : Sets region access rights
  • get_acl DEVID REGIONID INDEX : Returns region access rights

Example of creating a hard drive partition: ps3stor_region / create dev/ps3stormgr 0x1000 01070000002000001 0x8 3

The “PS3 hvcall tools” mentioned in the list above is used for handling kernel panics–restarts the console after a kernel panic.

Usage for PS3 hvcall: ps3hvc_hvcall [OPTIONS] DEVICE COMMAND [ARGS]

Options for PS3 hvcall:

  • -H, - help: Show this message and exit
  • -V, - verbose: Increase verbosity
  • -V, - version: Show version information and exit

Command for PS3 hvcall: panic ARG1

Example for PS3 hvcall: ps3hvc_hvcall / dev/ps3hvc 1

Below are the tools required for compiling petitboot.


  • gcc
  • binutils
  • patch
  • bzip2
  • flex
  • make
  • gettext
  • pkg-config
  • unzip
  • libz-dev
  • libc headers

Instructions for compiling petitboot:

mkdir petitboot
cd petitboot

git clone git: / / / openwrt.git
git clone git: / / / openwrt_packages.git

cd openwrt / packages

ln-sf .. / .. / openwrt_packages / libs / jpeg jpeg
ln-sf .. / .. / openwrt_packages / libs / libpng libpng
ln-sf .. / .. / openwrt_packages / libs / libtwin libtwin
ln-sf .. / .. / openwrt_packages / utils / petitboot petitboot
ln-sf .. / .. / openwrt_packages / utils / zip zip
ln-sf .. / .. / openwrt_packages / utils / unzip unzip
ln-sf .. / .. / openwrt_packages / utils / vim vim
ln-sf ../../openwrt_packages/utils/ntfs-3g ntfs-3g
ln-sf .. / .. / openwrt_packages / utils / coreutils coreutils
ln-sf .. / .. / openwrt_packages / utils / tar tar
ln-sf .. / .. / openwrt_packages / utils / gzip gzip
ln-sf ../../openwrt_packages/utils/bzip2 bzip2
ln-sf .. / .. / openwrt_packages / utils / dosfstools dosfstools
ln-sf .. / .. / openwrt_packages / utils / less less
ln-sf .. / .. / openwrt_packages / utils / sed sed
ln-sf .. / .. / openwrt_packages / utils / sdparm sdparm
ln-sf .. / .. / openwrt_packages / utils / hdparm hdparm
ln-sf .. / .. / openwrt_packages / net / wget wget
ln-sf .. / .. / openwrt_packages / net / dhcpcd dhcpcd
ln-sf .. / .. / openwrt_packages / net / net-tools net-tools

cd ..

make menuconfig
make kernel_menuconfig

make V = 99

Graf Chokolo Releases Petitboot Tools for Linux on PS3

Follow us on Twitter, Facebook and drop by the PS3 Hacks and PS3 CFW forums for the latest PlayStation 3 scene and PS4 Hacks & JailBreak updates with PlayStation 4 homebrew PS4 Downloads.

#26 - jerryxjtu - 216w ago
jerryxjtu's Avatar
I get the point. kernel_load checked the LOAD's MemSiz from program header, not add all need sections's size from section header. And this is a memory limit for 12M to relocate kernel image.

12M is not enough for kernel running. But as .bss not need to loaded(ALL ZERO), and will be clear by kernel, and kernel can access more memory. So just ignore .bss

Program Headers:

[Register or Login to view code]

Now it works, Here is the console log.

[Register or Login to view code]

#25 - jerryxjtu - 216w ago
jerryxjtu's Avatar
BootOS failed to boot vmlinux. I used bootos to tftping and booting vmlinux, both linux-2.6 and ps3-linux show me { PHDR out of bounds },Petitboot can boot up, but can't detect usb keypad.

{ PHDR out of bounds } actually not because TEXT section too large, seems like int kernel_load(const u8 *addr, u32 len) at ${BOOTOS_SRC}/stage2/kernel.c, phdr->p_memsz get incorrect size.

Any suggestion for this? Thanks!

Code for bootos;install-bootos;lv2pathcer is from:
CFW 3.55
Corss Compiler:
gcc 4.4.4

linux-2.6 ->;a=summary
root@Compiler:/home/jerry/workspace/ps3dev/linux-2.6# powerpc64-linux-readelf -S ./vmlinux.stripped
There are 37 section headers, starting at offset 0x644b40:

[Register or Login to view code]

Bootos used 0x6c as the .TEXT size, but readelf don't think so.

#24 - nipsen - 216w ago
nipsen's Avatar
Thank you, Graf. This is going to be very useful for learning to write spu-code. No substitute for running it in real time. Fantastic work.

#23 - likhmilta - 216w ago
likhmilta's Avatar
Graf chokolo is one of the best !

#22 - B4rtj4h - 217w ago
B4rtj4h's Avatar
Eh xD... seems some people read WRONG or i WRITE wrong.

I meant. So it's possible to install linux on a 3.6 FW ? (hacked because it's NOT official)

#21 - Luisp1nt0 - 217w ago
Luisp1nt0's Avatar
Exactly, this is nothing to do with games it's about getting back Linux...

#20 - daveribz - 217w ago
daveribz's Avatar
Quote Originally Posted by B4rtj4h View Post
So we almost hacked 3.6 with linux... but with the next update it will be history or is this permanent ?

Lol.. We didn't on 3.60 with Linux. graf_chokolo is enabling us to install a Linux distro with access to all the PS3's hardware/software control, separated from GameOS. This means you can have both installed, just like the old OtherOS option, but with waaaaay more liberty and control!

#19 - Brenza - 217w ago
Brenza's Avatar
Only one word: awesome.

I think i'll install it very soon!

#18 - B4rtj4h - 217w ago
B4rtj4h's Avatar
So we almost hacked 3.6 with linux... but with the next update it will be history or is this permanent ?

#17 - dok2033 - 217w ago
dok2033's Avatar
THX body, so finally just the last step and it will be ST.