• PS3 Hacks, PS3 Linux , 14.02.2011

    graf_chokolo has been hard at work on his Linux kernal and has released v2.6 today bringing many features and updates. The biggest update is the ability to write/read off the PS3 RAM, which can be useful for hypervisor hacking…but be warned if you dont know what you are doing you can brick your PS3! His kernel is fully supported with AsbestOS.

    To quote the known changes:

    • Added support of several storage regions to PS3 storage library
    • Improved PS3 disk block device driver
    • New drivers for PS3 NOR and 3 RAM misc driver for full access to HV memory
    • Added new HV calls
    • Added extra debug messages for SPU isolation

    You can download the kernal via GitHub below.

    [Download Linux 2.6 Kernel]

    [VIA PS3Crunch]

    Tags: , ,

    Discuss in Forums (46)


  • 46 Comments

    1. tallzilla
      02-14-2011
      06:31 PM
      1

      I'm Happy to see that the progress is moving and the devs are working hard on this, I'm waiting for OtherOS to come back. That'll be the day, and Thanks for this news.

    2. CandidCarnivore
      02-14-2011
      06:34 PM
      2

      To enable the 7th SPU use Update Manager to write 0x07 to 0x48C30 on the syscon eeprom and reboot. Write 0x06 to restore. All credit for this process given to Mathieulh.

    3. Akmzero
      02-14-2011
      06:42 PM
      3

      Does enabling the seventh core do anything?

      Sent from my HTC Speedy using Tapatalk

    4. Borda
      02-14-2011
      06:43 PM
      4

      It's funny that you think you can brick your console by modifying the RAM... Do you know anything about what a RAM is?
      You can surely brick your console with a hammer, but have you seen a hammer with the phrase "you can brick your ps3 wih this!"?
      Yeah it's just safer to tell the noobs you can brick your console with everything... Next time you'll tell us we can brick it by just turning it on...
      And seeing "kernal" twice in such a small message is more than sad.

    5. mindping
      02-14-2011
      07:01 PM
      5

      Originally Posted by Borda View Post
      It's funny that you think you can brick your console by modifying the RAM...
      I'd wager this does more then just modifies ram. Quite sure it allows access to Dev_flash..
      cant you "brick" or at least what most people consider bricked, by simply altering/deleting certian dev_hdd0 files?

    6. ninjanutta
      02-14-2011
      07:29 PM
      6

      yes thats correct,but saying access to ram and brick in the same phrase is just scaring people.ram is memory,i dont see any way to brick a ps3 by accessing ram.writing to the nand is a different kettle of fish.Im no expert but i mess with my jtag with no problems ,this ps3 dev is just like jtag without the solder IMO.This will lead to great stuff in the right hands but its for devs only,i think it would be smart for these sites to have a dev only section,its the way forward,they can share info etc without all the daft comments and fights that go on in news threads.maybe the siteop can throw it out and see what reaction they get?
      Its for the good of all end users at the end of the day.

    7. TehAwesome
      02-14-2011
      07:35 PM
      7

      I may be off base here, but the actual sentence is:

      The biggest update is the ability to write/read off the PS3 RAM, which can be useful for hypervisor hacking…

      Now, I'm no elite hacker. Not even close. But I am pretty sure that messing with anything HV related is probably a bad idea and can easily lead to a brick if you don't know what you are doin.

    8. joka38
      02-14-2011
      08:04 PM
      8

      sorry guys how do i instal it.help

    9. dlcrook
      02-14-2011
      08:31 PM
      9

      Originally Posted by joka38 View Post
      sorry guys how do i instal it.help
      That means you probably don't need it right now or in the foreseeable future. Not trying to be a donkey, but seriously!

    10. OoZic
      02-14-2011
      09:21 PM
      10

      Originally Posted by joka38 View Post
      sorry guys how do i instal it.help
      It is "only" the kernel (great job from Graf btw!! I wish I would have his skills about reverse engineering HV), Not the complete package for noobs with petitboot etc. in it. You can run this kernel with AsbstOS I think. Haven't tested it though

      The extra options this kernel has can be found in pirate his first post

    11. R.N.A.
      02-14-2011
      10:10 PM
      11

      Modifying RAM can brick your console but it'd have to be intentionally seeing as memory stores executable stuff so say for if i wrote a code block to write files to the flash and put it in place of a function that is unlikely to be used and then modify the pointer of an if statement (that is used regulary) so that it points to the code block that i inserted in the memory that code would then be launched and the possiblity of a brick depends on what is to be written ... don't know if the details of that are incorrect but the general idea is possible

    12. ps398632
      02-14-2011
      10:27 PM
      12

      OK, eh I think I will pass on this until I have a second PS3 to "Sacrifice" lol...
      I am a newbie and just getting my feet wet. I don't dive in unless I know the water is safe ..There are some risks I will take but, there are others I am not wanting to risk at all.

      I'll wait a bit and let this fish mature before catching it

    13. Schnippshly
      02-14-2011
      11:24 PM
      13

      Originally Posted by ninjanutta View Post
      yes thats correct,but saying access to ram and brick in the same phrase is just scaring people.ram is memory,i dont see any way to brick a ps3 by accessing ram.writing to the nand is a different kettle of fish.Im no expert but i mess with my jtag with no problems ,this ps3 dev is just like jtag without the solder IMO.This will lead to great stuff in the right hands but its for devs only,i think it would be smart for these sites to have a dev only section,its the way forward,they can share info etc without all the daft comments and fights that go on in news threads.maybe the siteop can throw it out and see what reaction they get?
      Its for the good of all end users at the end of the day.
      I agree. Personally, I am a mere user, reaping the benefits of generous hackers and developers who put so much work into making everyones PS3s better. Seeing stuff that will only interest developers can be confusing for common users and self-proclaimed "hackers" who don't really know what's going on.
      Originally Posted by joka38 View Post
      sorry guys how do i instal it.help
      See what I mean?

    14. lernatix
      02-15-2011
      12:37 AM
      14

      Originally Posted by Borda View Post
      It's funny that you think you can brick your console by modifying the RAM...
      Nah, he just doesn't want a 50 page "how do I install this" thread. :D :D :D

    15. rubixcube7
      02-15-2011
      01:52 AM
      15

      hey, joka38. dont feel bad, im confused too. if we were to try this, we would probly brick our ps3s. im sure there will be a noob friendly solution at some point.

    16. GregoryRasputin
      02-15-2011
      03:35 AM
      16

      Originally Posted by CandidCarnivore View Post
      To enable the 7th SPU use Update Manager to write 0x07 to 0x48C30 on the syscon eeprom and reboot. Write 0x06 to restore. All credit for this process given to Mathieulh.

      You will find that it is the 8th SPU...

    17. joka38
      02-15-2011
      04:59 AM
      17

      thank you rubix

    18. josvadolla
      02-15-2011
      05:24 AM
      18

      I have a working 11.04 Ubuntu Natty with kernel 2.6.38.

      I have downloaded the new kernel. I know it says kernel 2.6 but:
      can I compile this new kernel on my working system?

      here's a howto:

      https://help.ubuntu.com/community/Kernel/Compile

    19. Rafiko12
      02-15-2011
      09:36 AM
      19

      Someone Can Tell Me How To Install This Kernal?

      i mean i installed linux.img Ubuntu.

      Worked Fine,i have the OS working Pretty Good...With Wifi And My Keyboard And Mouse Are Working! xD

      BTW The Mouse And The Keyboard are NOT Wireless....Microsoft Regular Stuff.

      Okay...Now Someone Can Pls Tell Me How?!?!

      pls pls pls...Much Appreciated xD

    20. josvadolla
      02-15-2011
      10:08 AM
      20

      Rafiko12

      You have to compile the kernel.

      You will need some basic linux skills. The link I posted above might be of interest...

      I'm half way done with it myself, but my kid came home from daycare so I have to take a break...

    21. josvadolla
      02-15-2011
      01:13 PM
      21

      It takes awhile to compile the kernel on the ps3

      I got an error ps3flash.c108:29: error 'struct ps3_storage_device' has no member named 'region_idx'

      Do I have to type the region of my ps3 somewhere in the ps3flash.c file?
      ************* [ - Post Merged - ] *************
      I did remove the ps3flash from my setup, and now compiling is moving on...

      Just hope it will boot after installation
      ************* [ - Post Merged - ] *************
      okay, I have installed the deb files i compiled. But I'm not sure if the new kernel is running....

      what does "uname -a" gives you in terminal running the original Ubuntu from the 10 IMG files say?

    22. josvadolla
      02-15-2011
      04:02 PM
      22

      Well. I'm not unsure anymore. I am running the new kernel, and it's a heck of a lot faster:aetsch: I can now use ubuntu desktop with gnome, instead of the lightweigh lubuntu, and firefox instead of midori etc

      If it's of any interest I could upload the kernel updates .deb files. It does take a while to compile them... and the files are less then 60Mb so it should be a lot faster to download them

    23. stutte
      02-15-2011
      04:39 PM
      23

      does somebody have a ubuntu.img with the new kernel
      so we can use that on asbestos .
      thax graf for the awesome work you did on reversing hv.

      i would love to see
      ps3 + opencl on ubuntu ???
      pyrit benchmarks ????

    24. lance_79
      02-15-2011
      04:46 PM
      24

      Originally Posted by stutte View Post
      does somebody have a ubuntu.img with the new kernel
      so we can use that on asbestos .
      thax graf for the awesome work you did on reversing hv.

      i would love to see
      ps3 + opencl on ubuntu ???
      pyrit benchmarks ????
      With opencl on the PS3 this could be interesting?
      Parallelization of the x264 encoder using OpenCL.
      >> http://li5.ziti.uni-heidelberg.de/x264gpu/

    25. stutte
      02-15-2011
      04:57 PM
      25

      @ lance

      opencl is very powerfull .

      pyrit benchmarks

      3.55 cfw kmeaw + asbestos NO OPENCL : 115 pmk/s (this was on debian.img )
      3.15 ofw + otheros (only the ppc cores ) : 88 pmk/s
      3.15 ofw + otheros (ppc cores + OPENCL ) : 1700 pmk/s :aetsch:

      would love to see the new ubuntu.img + new kernel graf made + OPENCL pyrit benchmark

      grts

    26. josvadolla
      02-15-2011
      05:02 PM
      26

      I did compile and made the .deb installation files for the new kernel. It's easyer to upload them then the whole image. I've installed lots of stuff on my image....

    27. stutte
      02-15-2011
      05:05 PM
      27

      Originally Posted by josvadolla View Post
      I did compile the .deb installation files for the new kernel. It's easyer to upload them then the whole image. I've installed lots of stuff on my image....

      could you give OPENCL a try
      here is a link with install instructions for cellsdk+OPENCL (its for fedora butt maybe it wil work on ubuntu to


      http://www.elliptique.net/wiki/doku.php?id=fedora12-ps3

    28. josvadolla
      02-15-2011
      05:10 PM
      28

      I'm on it already. Downloaded through git

      Only have to compile it
      ************* [ - Post Merged - ] *************
      I did not manage to install opencl_ps3 correctly yet. Or at least the pyrit benchmark did not use it

    29. stutte
      02-15-2011
      05:54 PM
      29

      did you install the opencl part for pyrit
      in pyrit_svn/cpyrit_opencl/

    30. advocatusdiaboli
      02-15-2011
      06:04 PM
      30

      Originally Posted by stutte View Post
      3.15 ofw + otheros (ppc cores + OPENCL ) : 1700 pmk/s
      Where is the .config for this?

    31. josvadolla
      02-15-2011
      06:29 PM
      31

      did you install the opencl part for pyrit
      in pyrit_svn/cpyrit_opencl/

      How do I do that?

      Just did

      apt-get install pyrit

      Is there a way to try pyrit with vlc or smplayer?
      found the addon now
      ************* [ - Post Merged - ] *************
      I did remake the fedora rpm into deb and installed opencl, but how can I test if it's working? I get an error trying to compile the pyrit opencl plugin...

    32. stutte
      02-15-2011
      09:00 PM
      32

      i cant boot the 10 .img files . to get ubuntu working .
      is there a tutorial for ubuntu on kmeaw (asbestos 1.5)?
      my other ps3 does 1700 pmk/s in pyrit on ofw 3.15
      opencl compiles and run fine on ydl6.2

    33. lernatix
      02-15-2011
      10:41 PM
      33

      You guys are still messing with Debian/Ubuntu? :headbang:

      Awesome work from Graf, hit me up when I can get back to YDL on 3.55 CFW.

    34. josvadolla
      02-16-2011
      05:04 AM
      34

      stutte:

      Did you download the Ubuntu that's one rar file download, or the one with 4 files.

      I only got the one with one rar file working....

      How far do you get? You did put the 10 img files on internal hdd?

      Is it starting to boot?

    35. stutte
      02-16-2011
      08:43 AM
      35

      no it have error tty
      the debian khoasv3 works fine .
      waiting on linux full otheros++ graf is working on

    36. dsapandora
      02-16-2011
      04:09 PM
      36

      bro!!! last night I was dealing with that, and Was pretty weird...

      I made the .deb file of the kernel, and installed but the image is installed in /boot , but in that place I can't see the other files, where you put the kernel image... and the map....

      Back in time, when otheros was alive, I was able to use my customs kernel for parallelisms computing... but now that I try with this kernel, I really don't know where to said: this is the kernel that you have to use...

      I see that u get the .deb file so maybe you use the debians tool to create kernel. Maybe I am missing something... Can you upload the kernel that you compile to make a test instead of mine???

    37. josvadolla
      02-16-2011
      06:20 PM
      37

      dsapandora

      I guess we are in the same shoes... I have copiled and installed the new kernel, but it turns out after all that I'm still running the old kernel

      And yes I did compile it the old fashion debian way.

      I have no idea how to start the new kernel, hope you find a way

    38. advocatusdiaboli
      02-16-2011
      07:07 PM
      38

      You have to edit the loader config file, copy the entry that is already there, and edit the copy to fit you new vmlinuz, system.map and what’s the 3rd file again?

    39. dsapandora
      02-17-2011
      01:59 AM
      39

      Reading about asbestos... I remember his original structure

      | -- AsbestOS
      | |
      | |--- ICON0.PNG
      | |--- EBOOT.BIN
      |
      |-------------- dtbImage-20101020.bin <------- here is a kernel

      Right now I am recompiling but sure that i will try from here , I will check the PARAM.SFO too
      ************* [ - Post Merged - ] *************
      @advocatusdiaboli is the config file that you made.... in normal ubuntu installating like you said you just go to /boot/grub and modify your lts if is grub 1 or your grub.conf if is grub2, but this case is a bit different, because we are booting nfs... So I am reading again, asbestos first time installation... At least I didn't have to do cross compiling :P
      ************* [ - Post Merged - ] *************

      Originally Posted by josvadolla View Post
      dsapandora

      I guess we are in the same shoes... I have copiled and installed the new kernel, but it turns out after all that I'm still running the old kernel

      And yes I did compile it the old fashion debian way.

      I have no idea how to start the new kernel, hope you find a way
      I guess me can't use the debian old fashion way... well I uncompress the kernel vmlinux.bin.gz and rename it like asbestos.bin.... then I reinstall Asbestos but when I try again to lv2patcher and select linux the console do nothing... just red flash and Off
      now I am sure that I was able that was kernel changed ... and I noticed that the kernel that I compiled is wrong.... right know if some else compiled or have the vmlinux.bin.gz ready to use... I will be nice... i will try to compile it once again...

    40. josvadolla
      02-17-2011
      04:52 AM
      40

      I'm not getting this. Where is the config file to edit to boot the new vmlinux ++ etc. Do you mean we have to compile it with asbestos? I read the asbest os readme from kmeaw git. Saying they are restricted to 16MB RAM, and that you must use the patched kernel from github.

    41. Ssin
      02-18-2011
      05:00 AM
      41

      Guys is there a tutorial in how to do all of this? a link or any think to start a newb.
      i instated the Linux with the one image not the one with 10 img it keeps giving me error imag not found... anyways i get the linux running but no internet i don't know how to set it up and then KERNEL V2.6 no idea what to do with it.
      please any info to get me started. thanks

    42. dsapandora
      02-19-2011
      07:15 PM
      42

      I was reading my notes from a year ago and I remembered who I did this sutff before...
      I manually add these lines to the top-level Makefile, but setting them in the environment should work too:

      ARCH=powerpc

      CROSS_COMPILE=ppu-

      Now you can create a sample configuration file by executing the following command inside the tree:

      $ make ps3_defconfig

      Then proceed to modify the default configuration to your likings. To ease development, I want my kernels to be as small and easy to install as possible; this reduces the test-build-install-reboot cycle to the minimum (well, not exactly; see below). Therefore I disable all stuff I do not need, which includes modules support. Why? Keeping all the code in a single image will make later installation a lot easier.

      Once the kernel is configured, it is time to build it. But before doing so you need to install a helper utility used by the PS3 build code: the Device Tree Compiler (or dtc). Fetch its sources from the git repository that appears in that page, run make to build it and manually install the dtc binary into /usr/local/bin.


      Then a vmlinux image will be generated then, you put it whenever you want and Then you modify, the /etc/kboot.conf,
      But I see this file is not there anymore...

      sudo apt-get install linux-source device-tree-compiler # device-tree-compiler is only needed if you are targeting the PowerPC architecture
      ************* [ - Post Merged - ] *************

      Originally Posted by dsapandora View Post
      I was reading my notes from a year ago and I remembered who I did this sutff before...
      I manually add these lines to the top-level Makefile, but setting them in the environment should work too:

      ARCH=powerpc

      CROSS_COMPILE=ppu-

      Now you can create a sample configuration file by executing the following command inside the tree:

      $ make ps3_defconfig

      Then proceed to modify the default configuration to your likings. To ease development, I want my kernels to be as small and easy to install as possible; this reduces the test-build-install-reboot cycle to the minimum (well, not exactly; see below). Therefore I disable all stuff I do not need, which includes modules support. Why? Keeping all the code in a single image will make later installation a lot easier.

      Once the kernel is configured, it is time to build it. But before doing so you need to install a helper utility used by the PS3 build code: the Device Tree Compiler (or dtc). Fetch its sources from the git repository that appears in that page, run make to build it and manually install the dtc binary into /usr/local/bin.


      Then a vmlinux image will be generated then, you put it whenever you want and Then you modify, the /etc/kboot.conf,
      But I see this file is not there anymore...

      sudo apt-get install linux-source device-tree-compiler # device-tree-compiler is only needed if you are targeting the PowerPC architecture
      drivers/char/ps3flash.c: In function 'ps3flash_read_write_sectors':
      drivers/char/ps3flash.c:50:11: error: too few arguments to function 'ps3stor_read_write_sectors'
      /root/linux-2.6-b0fd285/arch/powerpc/include/asm/ps3stor.h:65:12: note: declared here
      drivers/char/ps3flash.c: In function 'ps3flash_llseek':
      drivers/char/ps3flash.c:108:29: error: 'struct ps3_storage_device' has no member named 'region_idx'
      drivers/char/ps3flash.c: In function 'ps3flash_read':
      drivers/char/ps3flash.c:138:25: error: 'struct ps3_storage_device' has no member named 'region_idx'
      drivers/char/ps3flash.c: In function 'ps3flash_write':
      drivers/char/ps3flash.c:207:25: error: 'struct ps3_storage_device' has no member named 'region_idx'
      drivers/char/ps3flash.c: In function 'ps3flash_probe':
      drivers/char/ps3flash.c:363:24: error: 'struct ps3_storage_device' has no member named 'region_idx'
      drivers/char/ps3flash.c:370:24: error: 'struct ps3_storage_device' has no member named 'region_idx'
      make[3]: *** [drivers/char/ps3flash.o] Error 1
      make[2]: *** [drivers/char] Error 2
      make[1]: *** [drivers] Error 2
      make[1]: Leaving directory `/root/linux-2.6-b0fd285'
      make: *** [debian/stamp/build/kernel] Error 2

    43. josvadolla
      02-20-2011
      06:48 AM
      43

      I got the same error while compiling as well. What I did was to exclude the ps3flash driver. I don't want to be able to write to fllash anyway as it may result in bricked console.

    44. dsapandora
      02-20-2011
      11:08 PM
      44

      I decide to try with the new version that was realesed yesterday, right now I am compiling, and everything for now is looking fine. But I still don't... well About to write in the flash... yeap I hear that is dangerous... I still don't have any idea about what to do in the flash... So I will try without the flash in the new kernel because I get the same error :P

    45. dsapandora
      02-22-2011
      03:52 PM
      45

      Originally Posted by dsapandora View Post
      I decide to try with the new version that was realesed yesterday, right now I am compiling, and everything for now is looking fine. But I still don't... well About to write in the flash... yeap I hear that is dangerous... I still don't have any idea about what to do in the flash... So I will try without the flash in the new kernel because I get the same error :P
      Well I was able to compiled, with make -j1 because the error that I got was because the system get out of memory.

      But what to do know

    46. renzohubi
      02-27-2011
      08:06 AM
      46

      Did anybody here successfully boot PS3 Linux using this new kernel (stripped vmlinux, recompile AsbestOS to embed it together with the bootloader)? I tried but resulted in a black screen with no output video signal after stage2 of AsbestOS is launched. My root file system is on an external HDD ext4 format as normal, not stored inside linux.img.