PS3 OpenWRT: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
Line 17: Line 17:
<pre>
<pre>
mkdir tools/m4/patches
mkdir tools/m4/patches
wget -O tools/m4/patches/m4-1.4.16-no-gets.patch http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch
wget -O tools/m4/patches/m4-1.4.16-no-gets.patch \
    http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch
</pre>
</pre>



Revision as of 19:17, 5 September 2012

Introduction

  • We use OpenWRT to build PS3 bootloader petitboot.

Building from trunk

GIT repos: http://gitorious.ps3dev.net/ps3openwrt

m4 Problem

Problem:

 ./stdio.h:477:1: error: 'gets' undeclared here

Solution:

mkdir tools/m4/patches
wget -O tools/m4/patches/m4-1.4.16-no-gets.patch \
    http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch

Linux 2.6

Linux 3

Images

  • Here are some precompiled petitboot versions.
  • First test the new images with your old petitboot, just kexec openwrt-ps3-petitboot-vmlinux.elf.
# transfer openwrt-ps3-petitboot-vmlinux.elf to your current petitboot with scp

kexec -l /root/openwrt-ps3-petitboot-vmlinux.elf
kexec -e
  • And if everything is fine then flash it with ps3-flash-util.
# transfer dtbImage.ps3.bin to your current petitboot with scp

ps3-flash-util -w /root/dtbImage.ps3.bin

Huge

  • The image is very big but has lots of useful tools.
  • I use it on my PS3 SLim.
  • Linux 3.3.8 + all my new drivers and the latest OpenWRT trunk.
  • The only reason why it cannot be used on PS3 NAND is the size, nothing else.
  • petitboot-huge.tar.xz: http://www.multiupload.nl/QY7NLM9ZBE (MD5 89417398f3281cd57a72c35397a2fb9b)

NAND

  • The image is minimalistic.
  • It's tiny and has not so many tools but everything you need.
  • Linux 2.6 + all my new drivers.
  • The image can be used on PS3 Slim too.