Official Gitbrew Forums
These forums cover all aspects of the Gitbrew biosphere. If you would like your development project to be based here, ask an admin.

Home » PS3 » OtherOS++ » Linux » Linux cold boot on PS3 Slim
Linux cold boot on PS3 Slim [message #1827] Fri, 27 July 2012 21:53 Go to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
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 immeditely. 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.

[Updated on: Sat, 28 July 2012 18:27]

Report message to a moderator

Re: Linux cold boot on PS3 Slim [message #1830 is a reply to message #1827] Sat, 28 July 2012 10:31 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
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: http://lxr.free-electrons.com/source/arch/powerpc/platforms/ ps3/device-init.c#L701
Re: Linux cold boot on PS3 Slim [message #1831 is a reply to message #1830] Sat, 28 July 2012 10:46 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Found a possible solution but i need someone with a HW flasher so we could test it first without bricks.
Get in touch with mme if you want to help getting cold boot working.
Re: Linux cold boot on PS3 Slim [message #1832 is a reply to message #1831] Sat, 28 July 2012 15:38 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
YAY Smile

Got cold boot working on PS3 Slim Smile Smile Smile
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.

Very Happy Very Happy Very Happy

[Updated on: Sat, 28 July 2012 15:46]

Report message to a moderator

Re: Linux cold boot on PS3 Slim [message #1834 is a reply to message #1832] Sat, 28 July 2012 15:43 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Link to a CFW with OtherOS++ cold boot support: http://gitbrew.org/~glevand/ps3/cfw/CFW355-OTHEROS++-COLD-BO OT.PUP
Re: Linux cold boot on PS3 Slim [message #1835 is a reply to message #1834] Sat, 28 July 2012 15:45 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Mega cool Smile I can wakeup my PS3 with Ethernet Wake-On-LAN magic packet and if OtherOS flag is set then my PS3 slim cold boots petitboot Smile Just like old times when we had old OtherOS Smile

[Updated on: Sat, 28 July 2012 15:46]

Report message to a moderator

Re: Linux cold boot on PS3 Slim [message #1837 is a reply to message #1835] Sat, 28 July 2012 16:10 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Yay, i'm even able to cold boot my Linux with the PS button on my PS3 controller.
Re: Linux cold boot on PS3 Slim [message #1848 is a reply to message #1834] Sat, 28 July 2012 23:37 Go to previous messageGo to next message
AlexPS3 is currently offline  AlexPS3
Messages: 10
Registered: March 2012
Location: Brazil
Gitbrew Noob

Thank you,
this firmware is to "Dispatcher Manager patch", or not?
Re: Linux cold boot on PS3 Slim [message #1849 is a reply to message #1848] Sat, 28 July 2012 23:44 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Yeah, with SS patch.
I can upload my ps3mfw patch so you could build your own FW without SS patch if you want.
Re: Linux cold boot on PS3 Slim [message #1855 is a reply to message #1849] Sun, 29 July 2012 01:22 Go to previous messageGo to next message
AlexPS3 is currently offline  AlexPS3
Messages: 10
Registered: March 2012
Location: Brazil
Gitbrew Noob

Yes thanks, I have 9 ps3,8 with linux and 1 with linux/games (I have CDs, not backups), with SS path has problems with trophies.
Re: Linux cold boot on PS3 Slim [message #1856 is a reply to message #1855] Sun, 29 July 2012 01:28 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Here: http://gitbrew.org/~glevand/ps3/misc/ps3mfw_tasks.tar.gz

I added the new option --patch-lv1-otheros-plus-plus-cold-boot-fix to patch_lv1.tcl
Re: Linux cold boot on PS3 Slim [message #1859 is a reply to message #1856] Sun, 29 July 2012 15:51 Go to previous messageGo to next message
AlexPS3 is currently offline  AlexPS3
Messages: 10
Registered: March 2012
Location: Brazil
Gitbrew Noob

This tool is for use with "OFW3.55" or "CFW3.55 otheros++ 22G"?
Re: Linux cold boot on PS3 Slim [message #1860 is a reply to message #1859] Sun, 29 July 2012 16:02 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Hmm, how do you make your CFW ?
I do it with ps3mfw.
Re: Linux cold boot on PS3 Slim [message #1861 is a reply to message #1860] Sun, 29 July 2012 16:13 Go to previous messageGo to next message
AlexPS3 is currently offline  AlexPS3
Messages: 10
Registered: March 2012
Location: Brazil
Gitbrew Noob

I know, I use "ps3mfw", I can use an already modified firmware and apply this patch only, or have to use and modify a "OFW3.55"?
Re: Linux cold boot on PS3 Slim [message #1862 is a reply to message #1861] Sun, 29 July 2012 16:32 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I tested it with OFW but you could try it with CFW too i guess.
Re: Linux cold boot on PS3 Slim [message #1864 is a reply to message #1862] Mon, 30 July 2012 16:03 Go to previous messageGo to next message
AlexPS3 is currently offline  AlexPS3
Messages: 10
Registered: March 2012
Location: Brazil
Gitbrew Noob

I'm using the "ps3mfw" for windows and gives error, both with OFW and CFW, what options do I have to use to correct a "CFW OtherOS+ +", and version "ps3mfw" should I use? (Windows / Linux)?
Re: Linux cold boot on PS3 Slim [message #1865 is a reply to message #1864] Mon, 30 July 2012 18:17 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I used OFW 3.55 and it worked on Linux.
What errors did you get ?
Re: Linux cold boot on PS3 Slim [message #1876 is a reply to message #1865] Wed, 01 August 2012 01:33 Go to previous message
Medox is currently offline  Medox
Messages: 1
Registered: August 2012
Gitbrew Noob
First off, epic achievement!

Would there be a chance to boot GameOS from petitboot with some kind of parameters?
Like... booting GameOS right into multiMAN, Showtime or any other given homebrew.

Just imagining a petitboot menu with:
GameOS + multiMAN
GameOS
Linux

[Updated on: Wed, 01 August 2012 01:35]

Report message to a moderator

Previous Topic: spuisofs
Goto Forum:
  


Current Time: Thu Jun 20 11:30:37 CEST 2013

Total time taken to generate the page: 0.02517 seconds