PS3 OpenWRT: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
 
(36 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:OtherOS]]
=Introduction=
=Introduction=


Line 7: Line 8:
GIT repos: http://gitorious.ps3dev.net/ps3openwrt
GIT repos: http://gitorious.ps3dev.net/ps3openwrt


==m4 1.4.16 gets Problem==
HOWTO: http://gitorious.ps3dev.net/ps3openwrt/patches/blobs/master/HOWTO
 
Problem:
<pre>
./stdio.h:477:1: error: 'gets' undeclared here
</pre>
 
Solution:
<pre>
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
</pre>


==Linux 2.6==
==Linux 2.6==


* Supported kernel version is 2.6.39.4
* Supported kernel version is 2.6.39.4
* Use these patches: http://gitorious.ps3dev.net/ps3linux/kernel-patches-26-39
* All new drivers from Linux 3 are supported.
* Old tools and drivers are NOT supported anymore.


==Linux 3==
==Linux 3.x==
 
* Supported kernel versions: 3.3.8, 3.4, 3.6, 3.7, 3.8 and 3.9
* kexec bug was finally fixed and recent Linux 3 kernels work now too
* Use these patches: http://gitorious.ps3dev.net/ps3linux/kernel-patches-33
* Use these patches: http://gitorious.ps3dev.net/ps3linux/kernel-patches-34
* Use these patches: http://gitorious.ps3dev.net/ps3linux/kernel-patches-36
* Use these patches: http://gitorious.ps3dev.net/ps3linux/kernel-patches-37
* Use these patches: http://gitorious.ps3dev.net/ps3linux/kernel-patches-38
* Use these patches: http://gitorious.ps3dev.net/ps3linux/kernel-patches-39


=Images=
=Images=


* Here are some precompiled petitboot versions.
* Here are some precompiled petitboot images.
* '''First test the new images with your old petitboot, just kexec openwrt-ps3-petitboot-vmlinux.elf.'''
* '''First test the new image with your old petitboot, just kexec openwrt-ps3-petitboot-vmlinux.elf.'''


<pre>
<pre>
# transfer openwrt-ps3-petitboot-vmlinux.elf to your current petitboot with scp
# transfer openwrt-ps3-petitboot-vmlinux.elf to your current petitboot with scp or USB


kexec -l /root/openwrt-ps3-petitboot-vmlinux.elf
kexec -l /root/openwrt-ps3-petitboot-vmlinux.elf
Line 42: Line 43:


<pre>
<pre>
# transfer dtbImage.ps3.bin to your current petitboot with scp
# transfer otheros.bin to your current petitboot with scp or USB


ps3-flash-util -w /root/dtbImage.ps3.bin
ps3-flash-util -w /root/otheros.bin
</pre>
</pre>


Line 51: Line 52:
* The image is very big but has lots of useful tools.
* The image is very big but has lots of useful tools.
* I use it on my PS3 SLim.
* I use it on my PS3 SLim.
* Linux 3.3.8 + all my new drivers and the latest OpenWRT trunk.
* Linux 3.8.4 + 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.
* 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)
* DHCP is enabled for Ethernet.
* WLAN is enabled too but you have to configure your SSID and PSK, see /etc/config/wireless.
* petitboot-huge.tar.xz (Linux 3.3.8): http://www.multiupload.nl/QY7NLM9ZBE (MD5 89417398f3281cd57a72c35397a2fb9b)
* petitboot-huge.tar.xz (Linux 3.8.4): http://www.multiupload.nl/6GY6QFO8UE (MD5 ad5369a6a6633a77dec95247f246b07b)
* petitboot-huge.tar.xz + USB fix (Linux 3.9-rc3): http://www.multiupload.nl/KARV72LLN4 (MD5 8b2c9e4a4b03d355bb6d15c83f178ebe)


==NAND==
==Tiny==


* The image is minimalistic.
* The image is minimalistic.
* It's tiny and has not so many tools but everything you need.
* It should be used on NAND because of small size.
* Linux 2.6 + all my new drivers.
* It's tiny and doesn't have as many tools as the huge one but it still has everything you need.
* The image can be used on PS3 Slim too but the huge image is a better choice.
* Linux 2.6.39.4 + all my new drivers and tools like ps3vuart-tools + ps3sed.
* The image can be used on PS3 Slim or PS3 NOR too but the huge image is a better choice in these cases.
* petitboot-tiny.tar.xz: http://www.multiupload.nl/BL63A7TH2N (MD5 14968a06ecd305b6220782a82f97759b)
 
=Useful Scripts=
 
==Create OtherOS++ HDD Region==
 
* Works only with new Linux kernel drivers and new tools
* See http://gitorious.ps3dev.net/ps3otheros/scripts
 
 
 
{{Linux}}<noinclude>[[Category:Main]]</noinclude>

Latest revision as of 03:02, 3 February 2014

Introduction[edit | edit source]

  • We use OpenWRT to build PS3 bootloader petitboot.

Building from trunk[edit | edit source]

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

HOWTO: http://gitorious.ps3dev.net/ps3openwrt/patches/blobs/master/HOWTO

Linux 2.6[edit | edit source]

Linux 3.x[edit | edit source]

Images[edit | edit source]

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

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

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

Huge[edit | edit source]

  • The image is very big but has lots of useful tools.
  • I use it on my PS3 SLim.
  • Linux 3.8.4 + 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.
  • DHCP is enabled for Ethernet.
  • WLAN is enabled too but you have to configure your SSID and PSK, see /etc/config/wireless.
  • petitboot-huge.tar.xz (Linux 3.3.8): http://www.multiupload.nl/QY7NLM9ZBE (MD5 89417398f3281cd57a72c35397a2fb9b)
  • petitboot-huge.tar.xz (Linux 3.8.4): http://www.multiupload.nl/6GY6QFO8UE (MD5 ad5369a6a6633a77dec95247f246b07b)
  • petitboot-huge.tar.xz + USB fix (Linux 3.9-rc3): http://www.multiupload.nl/KARV72LLN4 (MD5 8b2c9e4a4b03d355bb6d15c83f178ebe)

Tiny[edit | edit source]

  • The image is minimalistic.
  • It should be used on NAND because of small size.
  • It's tiny and doesn't have as many tools as the huge one but it still has everything you need.
  • Linux 2.6.39.4 + all my new drivers and tools like ps3vuart-tools + ps3sed.
  • The image can be used on PS3 Slim or PS3 NOR too but the huge image is a better choice in these cases.
  • petitboot-tiny.tar.xz: http://www.multiupload.nl/BL63A7TH2N (MD5 14968a06ecd305b6220782a82f97759b)

Useful Scripts[edit | edit source]

Create OtherOS++ HDD Region[edit | edit source]