• Home
  • Downloads
  • EBOOT Fixes
  • Forums
  • New Posts
  • Register
    • Welcome, Register Now! 
    • Premium VIP Membership
    • PS3 Sticky
      • PS3 CFW & MFW
      • PS3 Debug Firmware
      • PS3 Decrypted PSN Links for CFW
      • PS3 Downloads
      • PS3 EBOOT.BIN Original File Links
      • PS3 Firmware
      • PS3 Game Releases List
      • PS3 Guides & Tutorials
      • PS3 Hacking Guides and Tutorials
      • PS3 Hacks & JailBreak
      • PS3 Help & Support
      • PS3 JailBreak Game Compatibility List
      • PS3 JB2 / True Blue (TB) Game Links
      • PS3 multiMAN Updates
      • PS3 Resources
      • PS3 Reviews
      • PS3 Save Files Repository
      • PS3 Themes
      • PS3 Trophies List
      • PS3 Videos
      • PS Vita Trophies List
    • Quick Links
      • Affiliates
      • Contact Us
      • FAQ
      • Post News
      • Site Rules
      • Tag Cloud
 

PS3 Linux OtherOS++ Cold Boot Custom Firmware (CFW) by Glevand

Category: PS3 Hacks & JailBreak  By: PS3 News - (wiki.gitbrew.org)
Tags: ps3 linux ps3 linux otheros++ ps3 cold boot cfw ps3 petitboot cfw ps3 glevand cfw

42w ago - Following up on his previous work, today PlayStation 3 developer glevand has made available a Linux Cold Boot 3.55 Custom Firmware (CFW) OtherOS++ for PS3 Slim users via Gitbrew that loads into Petitboot with a single button press.

Download: PS3 Linux OtherOS++ Cold Boot Custom Firmware (CFW) / PS3 MFW Patch LV1 OtherOS++ Cold Boot Fix to Patch_LV1.tcl

To quote: Hmm, it would be really nice to cold boot Linux on SLIM. The problem is this. On SLIM we patch GameOS loader and add the OtherOS++ support.

The OtherOS++ loader reads Petitboot from VFLASH and loads it in case the OtherOS flag is set. But at cold boot we cannot access VFLASH immediately, that doesn't work, i tried even to implement retries with sleep calls, no chance.

And today i took a look at GuestOS loader in LPAR1 process 9 (LV1 3.15) and noticed the following interesting thing. It doesn't matter on old OtherOS if we want to cold boot OtherOS or GameOS, GameOS is loaded always at cold boot first.

Maybe it works the following way. GameOS is always loaded first and then it checks OtherOS flag, if it is set then it reboots again and OtherOS is loaded. And because it is a warm boot now, OtherOS can read VFLASH successfully on NOR FATs.

Update: The theory is not quite right. It is true that initial GuestOS loader loads GameOS at cold boot first. It creates LPAR2, loads LV2 image into memory of LPAR2 but LPAR2 ist not executed immediately.

After loading GameOS, the initial Guest OS loader waits until FLASH is ready and then checks the boot GuestOS id, and if it's NOT equal to the id of GameOS then LPAR2 is detructed. When process 9 receives the LPAR2 shutdown signal, then it loads the boot GuestOS and executes it.

Hmm, maybe found a solution which could allow us to cold boot linux. There is a device in LPAR1, /dev/sd_detector. It allows processes in LPAR1 to get storage events like VFLASH is ready and others. We could use it in OtherOS++ loader and wait for this event.

On Linux, storage events are processed by storage notifier thread, see here: lxr.free-electrons.com/source/arch/powerpc/platforms/ ps3/device-init.c#L701

Found a possible solution but i need someone with a HW flasher so we could test it first without bricks. Get in touch with me if you want to help getting cold boot working.

YAY Got cold boot working on PS3 Slim My theory was right, i patched the initial GOS loader in process 9 of LPAR1 and it works now. I can cold boot my petitboot with just pressing power button once.

Yay, i'm even able to cold boot my Linux with the PS button on my PS3 controller. I added the new option --patch-lv1-otheros-plus-plus-cold-boot-fix to patch_lv1.tcl

I tested it with OFW but you could try it with CFW too i guess. I used OFW 3.55 and it worked on Linux.




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 3 Comments - Go to Forum Thread »

Errors

The following errors occurred with your submission

Okay

Quick Reply Quick Reply

  • Decrease Size
    Increase Size
  • Wrap [QUOTE] tags around selected text
Posting Quick Reply - Please Wait Posting Quick Reply - Please Wait
Yoti's Avatar
#3 - Yoti - 42w ago
Reply
Any working links?

pedrampedram's Avatar
#2 - pedrampedram - 71w ago
Reply
What's the point of having NetBSD for PS3 ? i think a stable/complete Linux is better that having thousands of unstable OSes.

PS3 News's Avatar
#1 - PS3 News - 71w ago
Reply
It's been a few months since their NoPDRM and PS3 NAND Brick or PUP Updater Error Fix releases, and now PlayStation 3 developer Glevand of Gitbrew has started work on porting http://www.netbsd.org/ to the PS3 OtherOS++ (CFW) Custom Firmware.

To quote on the progress thus far: PS3: NetBSD

• Ok, here i will start porting NetBSD to PS3 OtherOS++.
• It would be cool to have another BSD on PS3.
• Special thanks to Makoto Fujiwara and Tsubai Masanari for porting NetBSD to PS3.
• Any help is welcome. Come on BSD fans, let us run NetBSD on PS3.
• It is still work in progress and i'm not able to run NetBSD on PS3 yet.

Obtaining Source Code


# cd /usr
# export CVS_RSH="ssh"
# export CVSROOT="anoncvs@anoncvs.NetBSD.org:/cvsroot"
# cvs checkout -A -P src
# ftp ftp://nandra.segv.jp/pub/NetBSD/ps3/ps3-111111.tar.gz
Building the Toolchain

• I must say the toolchain is really super done.
• Linux really sucks in comparison with NetBSD or FreeBSD regarding toolchain and cross-compiling.

# cd /usr/src
# mv sys/arch/powerpc ~
# tar xvzf ps3-111111.tar.gz
# patch -p0 < build.sh.patch
# patch -p0 < elf_machdep.h.patch
# mkdir /usr/obj
# cd tools
# sh ./mkheaderlist.sh
# cd ..
# ./build.sh -m ps3 -a powerpc64 tools


===> Tools built to /usr/src/obj/tooldir.NetBSD-5.1-amd64
===> build.sh ended: Sat Jan 7 15:34:30 CET 2012
===> Summary of results:
build.sh command: ./build.sh -m ps3 -a powerpc64 tools
build.sh started: Sat Jan 7 15:23:22 CET 2012
NetBSD version: 5.99.59
MACHINE: ps3
MACHINE_ARCH: powerpc64
Build platform: NetBSD 5.1 amd64
HOST_SH: /bin/sh
No $TOOLDIR/bin/nbmake, needs building.
Bootstrapping nbmake
TOOLDIR path: /usr/src/obj/tooldir.NetBSD-5.1-amd64
DESTDIR path: /usr/src/obj/destdir.ps3
RELEASEDIR path: /usr/src/obj/releasedir
Created /usr/src/obj/tooldir.NetBSD-5.1-amd64/bin/nbmake
Updated makewrapper: /usr/src/obj/tooldir.NetBSD-5.1-amd64/bin/nbmake-ps3
Tools built to /usr/src/obj/tooldir.NetBSD-5.1-amd64
build.sh ended: Sat Jan 7 15:34:30 CET 2012
Compiling Kernel

• Modify Tsubai Masanari's source code to use current powerpc infrastructure of NetBSD else no chance that NetBSD will accept our port.
• Tsubai Masanari's source code uses powerpc64 arch which is NOT present in NetBSD source. Everything is in powerpc arch.
• Currently, NetBSD supports 64bit PowerPC arch only in 64bit bridge mode, that means 32bit kernel and user-space.
• 64bit bridge mode won't work on CELL cpu. It is not supported.

# cd /usr/src
# patch -p0 < PS3.patch
# patch -p0 < cpu.h.patch
# patch -p0 < pio.h.patch
# patch -p0 < cpu_counter.h.patch
# patch -p0 < spr.h.patch
# patch -p0 < altivec.c.patch
# patch -p0 < cpufunc.h.patch
# patch -p0 < powerpc_machdep.c.patch
# patch -p0 < cpu_970.c.patch
# patch -p0 < fpu.c.patch
# patch -p0 < trap.c.patch
# patch -p0 < ps3pic.c.patch
# patch -p0 < vuart.c.patch
# patch -p0 < clock.c.patch
# patch -p0 < extintr.c.patch
# patch -p0 < machdep.c.patch
# patch -p0 < pmap.h.patch
# patch -p0 < pmap.c.patch
# patch -p0 < ps3av_cmd.c.patch
# patch -p0 < if_gelic.c.patch
# cd sys/arch/ps3/conf
# /usr/obj/tooldir.NetBSD-5.1-amd64/bin/nbconfig PS3
# cd ../compile/PS3
# export PATH=/usr/obj/tooldir.NetBSD-5.1-amd64/bin:$PATH
# /usr/obj/tooldir.NetBSD-5.1-amd64/bin/nbmake-ps3 depend
# /usr/obj/tooldir.NetBSD-5.1-amd64/bin/nbmake-ps3 NOGCCERROR=1
# file netbsd
netbsd: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), statically linked, for NetBSD 5.99.59, not stripped
Compiling Loader

# cd /usr/src
# patch -p0 < Makefile.patch
# patch -p0 < start.S.patch
# patch -p0 < boot.c.patch
# patch -p0 < gelic.c.patch
# patch -p0 < devopen.c.patch
# cd sys/arch/ps3/stand/boot
# /usr/obj/tooldir.NetBSD-5.1-amd64/bin/nbmake-ps3 depend
# /usr/obj/tooldir.NetBSD-5.1-amd64/bin/nbmake-ps3 NOGCCERROR=1 LIBCRT0= LIBC= LIBCRTBEGIN= LIBCRTEND=
# file boot.elf
boot.elf: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), statically linked, not stripped
Booting with Petitboot on OtherOS++

• Bootloader doesn't work yet but it looks very promising. I can run code in loader already.


# kexec -l boot.elf
# reboot
Compiling User-Space

Links

• Why NetBSD and NOT Linux: http://www.embeddedarm.com/~joff/
• http://www.ki.nu/hardware/ps3/
• ftp://nandra.segv.jp/pub/NetBSD/ps3/
• http://www.netbsd.org/docs/guide/en/chap-fetch.html
• http://www.usenix.org/events/bsdcon/full_papers/linden/linden_html/
• UVM: http://www.usenix.org/event/usenix99/full_papers/cranor/cranor.pdf
• ftp://ftp.gcu-squad.org/pub/books/netbsd-io-2002.pdf
• http://www.atmnis.com/~proger/openkyiv/openkyiv2009_proger_sys.pdf
• http://www.netbsd.org/docs/kernel/bus_dma.pdf
• http://maxim.int.ru/bookshelf/osdi99.pdf
• http://gentiane.org/~miod/software/openbsd/solbourne
• http://www.teamten.com/lawrence/291.paper.pdf



More PlayStation 3 News...

Page 1 of 1 1

Related PS3 News and PS3 CFW Hacks or JailBreak Articles

• Guide to Install multiMAN PS3 Themes via USB from a PKG File
• Simple PS3Updates v1.6 Build 2 Final PS3 Homebrew App Updated
• Video: Super Pixel Jumper v1.2 PS3 Homebrew Game is Released
• Video: Pointman: The Akkadian Wars PS3 Homebrew Game Arrives
• PSPMinis / PS3Minis / Bite v1.5.1 Update for PS3 is Now Released
• PS3 Fan Control Utility v1.7 for PS3 CFW CEX 3.41 to 4.41 Arrives
Affiliates  NewsNow  Privacy  PS3 CFW & MFW  PS3 Hacks & JailBreak  PS3 Reviews  PS3 Videos  © 2013 PlayStation 3 News

PlayStation 3 Links

• Contact Us E-Mail
• PS3 Affiliates
• PS3 CFW & MFW
• PS3 Debug Firmware
• PS3 Decrypted PSN Links for CFW
• PS3 Downloads
• PS3 EBOOT.BIN Original File Links
• PS3 Firmware
• PS3 Game Releases List
• PS3 Guides & Tutorials
• PS3 Hacking Guides and Tutorials
• PS3 Hacks & JailBreak
• PS3 Help & Support
• PS3 JailBreak Game Compatibility List
• PS3 JB2 / True Blue (TB) Game Links
• PS3 multiMAN Updates
• PS3 News Forums
• PS3 News Site FAQ
• PS3 News Site Advertising FAQ
• PS3 News Site Posting FAQ
• PS3 News Site Privacy FAQ
• PS3 News Site Rules
• PS3 News Site Tag Cloud
• PS3 News Site Terms
• PS3 Resources
• PS3 Reviews
• PS3 Save Files Repository
• PS3 Themes
• PS3 Trophies List
• PS3 Videos
• PS Vita Trophies List

PlayStation 3 News Discussions
Introductions: Hello Everyone, I'm New at PS3News.com! - 35m ago

Gogili1976's Avatar
Quote Hi, I'm Goran from Serbia,having my PS3 for almost a year , and i enjoy reading your articles very much ....
By Gogili1976 with
 7020 Comments »
PS3 backup games from internal hdd help? - 1h ago

nishad's Avatar
Quote thanks for the reply but my question was if i take a backup now, i.e. from 3.72 firmware, will it effect on the cfw 3.55 when i restore on it.......
By nishad with
 2 Comments »
Introductions: Hello Everyone, I'm New at PS3News.com! - 2h ago

cekla's Avatar
Quote hello i m from montenegro !!! ...
By cekla with
 7020 Comments »
Video: E3 PS3 CFW v4.30 on PlayStation 3 Factory 3.56 with Flasher - 3h ago

Nnoitra's Avatar
Quote i have one doubt my ps3 have the OFW 4.41 instaled and have the 3.56 OFW from factory to instal this CFW i have to make the downgrade from 4.41 to 3.5...
By Nnoitra with
 134 Comments »

Latest PlayStation 3 Trophies
Pool Nation: Mega Shot
Pool Nation: Mega Streak
Pool Nation: Super Zen
Pool Nation: Zen

Latest PlayStation Vita Trophies
Men's Room Mayhem: Toilet Trouble
Men's Room Mayhem: Mayhem Master
Men's Room Mayhem: Hygiene Award
Men's Room Mayhem: Sand in the Face

Latest PlayStation 3 Releases
Kamen Rider Battlide War JPN PS3-Caravan - 05-21-2013
Fast And Furious Showdown PS3-DUPLEX - 05-21-2013
Resident Evil Revelations PS3-ANTiDOTE - 05-19-2013
Muvluv Alternative Total Eclipse JPN PS3-HR - 05-17-2013

Latest PlayStation 3 Themes
Wolverine Origins PS3 Theme - 05-19-2013
Heavy Rain (Official) Dynamic PS3 Theme - 05-09-2013
Wipeout HD Fury Dynamic PS3 Theme - 05-06-2013
Batman Arkham City Dynamic PS3 Theme - 05-04-2013
  • Contact Us
  • -
  • PS3 News