Sponsored Links

Sponsored Links

Graf Chokolo Releases Petitboot Tools for Linux on PS3


Sponsored Links
187w 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: [Register or Login to view links] / [Register or Login to view links]

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]

Options:

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

Commands:

  • 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.

Requirements:

  • 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: / / git.dukio.com / openwrt.git
git clone git: / / git.dukio.com / 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




Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter and be sure to drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene updates and homebrew releases!

Comments 26 Comments - Go to Forum Thread »

• Please Register at PS3News.com or Login to make comments on Site News articles. Thanks!

jerryxjtu's Avatar
#26 - jerryxjtu - 186w ago
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]


jerryxjtu's Avatar
#25 - jerryxjtu - 186w ago
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!

ENV:
Code for bootos;install-bootos;lv2pathcer is from:
http://git.dukio.com/gitweb.cgi
CFW 3.55
Corss Compiler:
gcc 4.4.4
Binutils 2.20.1.20100303

linux-2.6 -> http://git.dukio.com/gitweb.cgi?p=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.

nipsen's Avatar
#24 - nipsen - 186w ago
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.

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

B4rtj4h's Avatar
#22 - B4rtj4h - 187w ago
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)

Sponsored Links

Sponsored Links
Sponsored Links

Sponsored Links







Advertising - Affiliates - Contact Us - PS3 Downloads - Privacy Statement - Site Rules - Top - © 2014 PlayStation 3 News