PS4 News on Facebook! PS4 News on Twitter! PS4 News on YouTube! PS4 News RSS Feed!

Home PS4 News - Latest PlayStation 4 and PS3 News

January 16, 2011 // 10:06 pm - Following last week's PS3 LV2 Kernel Peek / Poke Patched news, today flukes1 has released his LV1 and LV2 Peek and Poke Tools for PlayStation 3 developers.

Download: LV1/LV2 Peek and Poke PS3 Tools

To quote: As you may know if you’ve been following my progress, last week I took a short break from Wi-Fi Sync to look at the PS3 and how it works behind the scenes. The PS3 homebrew scene is currently at a point where you can install userland packages, such as FTPDs and SNES emulators, but you still don’t have any access to the hypervisor or GameOS kernel. It’s still very much a closed system.

As an iPhone developer with an app on Cydia, I can see great potential within the PS3. It’s crying out for a decent package manager, but you need OS-level access to do that effectively. Unlocking the PS3 in this way has other benefits too; the system can effectively be modified in any way you wish.

So today I’m releasing three tools which open the PS3’s hypervisor (lv1) and GameOS (lv2) to full read/write access from packaged userland applications. These tools can be used to create and test lv1/lv2 patches in RAM, which negates the risk of bricking your PS3 by flashing it with an incorrectly patched lv1 or lv2 binary. You can also use the tools to create a patched lv1 or lv2 binary, if you wish, although I suggest thoroughly testing your patches in-memory first.

I will make a few things clear before continuing: I do not condone piracy and these tools DO NOT enable copied games to run on the PS3. Again: these tools will not allow backup managers to suddenly start working on firmware 3.55. The tools are packaged in source code form and do not include any Sony code or other Sony assets such as encryption keys. If you’re not a developer, these tools will be useless to you, so please do not try to use them. They are made available with no implied warranty of fitness for a particular purpose.

Three tools are being made available today:

  • This allows you to automatically replace any segment within a self and re-sign the self so the signature and hashes are all valid again. Similar to makeself, but it is more suited towards patching lv1 and lv2 (and has been tested for this purpose).
  • This is just a convenience script I made to take a modified, re-signed lv1.self and lv2_kernel.self, and automatically create a PUP which is identical to an original PUP except for those two files.
  • lv1dumper. This is an application which runs on the PS3 that you can compile and package using PSL1GHT and geohot’s tools. After running it, lv1 will be mapped at 0x8000000014000000 with read/write access, and you will be able to poke lv2 without the system shutting down. It disables the new lv2 memory hashing feature Sony added to 3.55 (probably to stop future USB jailbreaks).

lv1dumper requires that some patches to lv1 and lv2 are already in place. I’ll describe how to add these patches. They have been tested but I cannot guarantee that they won’t brick your PS3. Do not do this unless you’re comfortable with that.

Firstly, you need to extract the decrypted code segments from lv1.self and lv2_kernel.self (just use unself and copy them directly out of the ELF), and make the following changes to to them, assuming you’re using 3.55:

Update: the code segment is not the entire ELF file, it’s inside the ELF file. Use readelf to find out where it is. You need to copy it out of the ELF into a separate file.

  • lv1_undocumented_function_114 in lv1 must be patched so that it can be used to map any area of real memory. graf_chokolo found this trick months ago, but it still applies here. Patch the byte at D5A47 from 00 to 01 (2D5A47 if you’re looking for it in IDA) in segment #1.
  • You then need to add peek and poke to lv2. Patch 1933C to E8 63 00 00 60 00 00 00 and 19348 to F8 83 00 00 60 00 00 00 in segment #0.

You can then use to re-insert your patched code segment back into the self. You’ll firstly need to change a few bytes in some useless strings because of the way zlib deflate works; the script will tell you what to do. I found that changing strings was the easiest way to do this, it just takes a bit of trial and error.

Finally, use to create your modified PUP. You’ll need to update to the PUP, then install geohot’s jailbreak PUP over the top of it. If you’ve done everything right, lv1dumper should just exit after you run it and you’ll have r/w access to lv1 and lv2 (peek and poke). The lv1_peek, lv1_poke, lv2_peek and lv2_poke functions in lv1dumper show how to use that access.

I’m hoping that some interesting and innovative stuff can come out of this, and maybe we can start to see ‘unofficial’ apps enjoying the same success on the PS3 that they do on the iPhone.

Flukes1 LV1 / LV2 Peek and Poke PS3 Tools Are Now Available

PlayStation Follow us on Twitter, Facebook and join us at our new site WWW.PSXHAX.COM!

#13 - harveychan - January 18, 2011 // 6:20 pm
harveychan's Avatar
that would be sweet for a dongleless ACiD with backup support.

#12 - cfwprophet - January 18, 2011 // 5:44 pm
cfwprophet's Avatar
Nice one. Have already patched the old version into the kernel of 341. And now also a lv1 patch.The lv2 patches are nearly the same to old version. Syscalls are the same.Will now patch lv1 of 341 too and do some comparison and this stuff before testing.

But i'm guess with all this nice stuff like permanent jailbreak and lv1&lv2 peek poke patches we will release ACiD soon.

#11 - PS4 News - January 17, 2011 // 9:41 pm
PS4 News's Avatar
This thread is NOT for CFW discussion, please stop posting it here. -Rep.

#10 - chrykel - January 17, 2011 // 9:39 pm
chrykel's Avatar
I'm updating to the new cfw and. It works! Model chec 2001a (120g slim)

#9 - zeromx - January 17, 2011 // 12:16 pm
zeromx's Avatar
This will allow peek/poke syscalls so yes you can run BM's.

#8 - ninjanutta2 - January 17, 2011 // 10:36 am
ninjanutta2's Avatar
the first ever jailbreak didn't allow backups remember, it's just a staying within the law more. just wait, all is looking very nice now.

#7 - Joseph Stalin - January 17, 2011 // 8:29 am
Joseph Stalin's Avatar
Any chances to find a ddl to a ready-to-use CFW? Or will it all be just "do it yourself"?

#6 - RLKirk - January 17, 2011 // 6:12 am
RLKirk's Avatar
Quote Originally Posted by tilla View Post
I like his weak defense against Sony where he is so adamant this won't enable Backup Managers Good things these, we'll be seeing some good stuff in CFW soon

No he said it won't allow "COPIED" games, he never said "BACKED UP" games :-)... He is just covering his a double s lol

#5 - Haksam - January 17, 2011 // 5:50 am
Haksam's Avatar
Quote Originally Posted by Coragin View Post
So what the "It will not allow backups" is just a legality thing and anyone who really knows what they are doing can do it with this? (Enable running of backups)

Or is he saying these things are almost the same as fail0verflow and Geo's tool releases and won't be able to do much more than has already been done?

This has me very confused. Can someone please explain/confirm lol?

Sony is making every dev crap in their pants.

#4 - inginear - January 17, 2011 // 5:46 am
inginear's Avatar
these tools are a great release for the scene. i think a package manager like cydia would be a wonderful asset to the ps3 homebrewers.