AsbestOS: Running Linux as GameOS

As most of you will probably already know, I’ve been working on a project recently which aims to run Linux on the PS3 (including the PS3 Slim) using the PSJailbreak exploit, effectively replacing GameOS on the fly. I think it’s gotten to the point where it’s useful enough for other people to be interested, so here’s something resembling an official announcement.

Obligatory demo video:


AsbestOS (a mineral, and meaning “inextinguishable” in Greek) is a bootloader to run PS3 Linux without OtherOS. It runs using the USB GameOS exploit (on PS3 version 3.41) from any compatible device, and any reprogrammable devices currently running the PS3 exploit can be used as long as they have enough free internal or external storage (40kB or so) to hold the loader. It is general enough that it should be useful to boot Linux given any other GameOS exploit in the future. It has been tested to work on the PS3 Slim too.

Currently, it only supports netbooting a kernel and no initrd (mostly due to bootmem limitations). This is enough to run a Linux system booting from an NFS share or from USB storage media. Almost everything that works under OtherOS is working. As additional perks of running as GameOS, you also get access to a seventh SPE (needs a kernel patch to enable) and there is clearly full access to the RSX including 3D support, although we still need to learn a few details about how that works to be able to use it.

AsbestOS is a fully independent open source payload and does not contain any code from the original PSJailbreak payload or derivatives. It is licensed under the GPLv2. Compiling it does not require any SDK tools, and it includes a script to build a fully vanilla GNU toolchain for the PS3.

If you’re interested, check out the git repository. The README file contains information on how to run AsbestOS and how to set up kernels. Currently, ports exist for software USB AVRs (Arduino etc.), iPods, and the reference implementation for devices with a TI OMAP3, but anything currently running PSGroove or similar can be adapted with only a few lines of new code.

For the impatient or lazy folks, here’s a kernel that you can use Update: and a stage1 binary and a stage2 binary. You’ll probably want to change the kernel commandline options to set up your NFS root partition. This will eventually be handled by AsbestOS, but for now, open it up in a hex editor, search for HEXEDIT_THIS, and change the commandline to suit your needs (without changing the total length, of course). Do note that this kernel does not have built-in USB support, so it can only be used for NFS booting (the USB stuff is built as a module).

You can use this filesystem as a starting point. It’s a Gentoo stage3 updated to date and with PS3-specific tools installed. Keep in mind that there’s no Portage tree included, so be sure to either emerge --sync or NFS mount your server’s Portage tree (which is what I do). At the very minimum, you’ll want to edit the following files to configure your NFS and networking settings (or to specify USB device partitions, if you want to go that route – but you need to compile your own kernel then): /etc/fstab, /etc/hosts, /etc/resolv.conf, and quite likely a few others. This filesystem includes kernel modules for the above kernel. The root password is ‘ps3′.

89 Responses to “AsbestOS: Running Linux as GameOS”

  1. Nick Tinsley Says:

    Man, I’m impressed. This is some cool stuff right here.

  2. Stephen Says:

    sorry couldnt help it, but woa! a finished rubix cube?!?!?!?!

  3. Clayton Braasch Says:

    This is some very impressive work, yet may be difficult for those who don’t really understand how toolchains and compiling works. Still, this a great starting point — kudos to you and your hard work and dedication.

  4. Irvysan Says:

    thanks for your hard work and this release :p

  5. romulo Says:

    As always, good work marcan. Hope to see some graphic interface in there soon ;)

  6. marcan Says:

    @Clayton Braasch

    To clarify, at this stage I think this will be interesting enough for developers (those who know OtherOS). It’s certainly nowhere near ready for end-users yet.

  7. Querty Says:

    Thanks marcan, been following this on twitter for a while. So cool you got it working, can’t wait to try it out :-)

  8. smarty94 Says:

    So this coupled with geohot’s older hardware LV1 exploit could potentially allow the PS3 master key to be dumped from the “isolated” spu?

    Awesome work regardless!

  9. nickxab Says:

    Cool.
    By the way are you greek ?

  10. Luke Says:

    Is this similar to how haret works for windows mobile phones?

  11. Oliver Says:

    I take it this won’t help those of us on 3.5 until that gets something like the USB exploit that 3.41 has

  12. modrobert Says:

    Regarding “figuring out how to use the graphics in PS3″ from the video.

    The accelerated 2D linux drivers which uses RSX on PS3 instead of framebuffer was already released back in 2007. Then Sony plugged it in firmware v2.10. That’s all you need for 1080p video on PS3, probably needs a lot of work for games using 3D though.

    The original thread is over at ps2dev.org (http://forums.ps2dev.org/viewtopic.php?t=8364&postdays=0&postorder=asc&start=240), but the site seem down at the moment. You can also find info here: http://boardsus.playstation.com/t5/PlayStation-3-Media/Finally-accelerated-2D-linux-drivers-uses-RSX-on-PS3-instead-of/m-p/32674024

  13. ram32 Says:

    Wow, that’s cool!
    I was waiting for this for so long time! Thank you for you job! Gentoo on PS3 is awesome! ^_^
    Now it’s time to put GNU/Linux on my 3.41 PS3 too…

  14. m0nKeY Says:

    This is what I was waiting for. I dont have to illegal copys from the internet or “play backups”. But since the PS3 came out, i was dreaming of using it as a medaiceneter like the old xboxs. I’m following you on tweeter since you started to develope this bootloeader. You have my fully respect for this work becaus you spend so much time of your free and private time. Your employer should be very happy, that you are working for him. :D

    Greetings
    m0nKeY

  15. rob Says:

    man this is good stuff right there..
    im kinda sad i updated my ps3 to the new firmware now :(

  16. Amadeus Says:

    Do you keep a TODO list? In case someone wants to chip in?

  17. Dr.Death Says:

    this will bring back 3.15 days and hacks ;) thanks Marcan

  18. Tim Says:

    Great work!!

    Quick question,does it boot up before it loads anything from the ps3 ?

    I have a faulty PS3,which has a loopupdate because off a faulty bluray drive.
    Is it possible to port it to a earlier version (2.42),so i can atleast run linux on it?

  19. balta Says:

    MAN you’re great!
    this reminds me of the first days of the twilight hack! *sniff*
    good ol’ hack!
    I owe you ANOTHER one

  20. Amadeus Says:

    You have made it to the frontpage of Linux Weekly News.

    http://lwn.net/Articles/410773

  21. Gizmo Says:

    any chance for an omap3 binary and a quick guide to get nfs up? for us curious people, that are not leet enough to actually contribute. (I has a pandora)

  22. Amadeus Says:

    Will the GFX driver be a Gallium3D driver?

    http://www.x.org/wiki/GalliumStatus

    Gallium3D should deprecate the classic MESA implementation over time.

  23. lows Says:

    hey marcan
    could you tell me which board do you use in the video to load the linux kernel
    thanks

  24. marcan Says:

    @Tim:

    I’ve only heard of the exploit being portable to 3.0 and beyond, sorry :(

    @Amadeus:

    3D will likely steal bits of nouveau, at least the userspace side. The kernel side of nouveau is pretty much worthless because we don’t get direct access to the hardware, but instead we need to marshal through the hypervisor. In a way, the hypervisor implements the part of the graphics driver that is normally implemented in the kernel.

    So yes, whenever (proper) 3D arrives, it should be Gallium-based.

    @lows

    It’s an IGEPv2 board.

    @Gizmo
    here’s a binary, run it as c/code>./ps3pwn stage1.bin stage2.bin. As for NFS, you should look up your distro's documentation. Don't forget that you must disable, unload, or unbind the musb driver for the OMAP before using ps3pwn.

  25. xttl Says:

    Actually, RichDevX posted on his twitter some time ago that the exploit should work all the way back to 2.01:

    http://twitter.com/RichDevX/status/24643255457

  26. Nikanth Karthikesan Says:

    Instead of the USB device, can’t we use a computer/laptop running Linux kernel with USB_GADGET support?

  27. psicologos salamanca Says:

    Thank you very much, i was waiting a lot for linux in ps3. But my jailbreak comes with only 32mb.

  28. Amadeus Says:

    @Marcan: I think it was in the “24c3-playstation_portable_cracking.mkv” video, where TyRaNiD said that the speculation is that the PSP and PS3 used the same API’s, and exploits from on one platform might work on the other.

    In the video he says that they have figured out the GPU API. Do you think code could be shared there?

    Btw. Way cool that the driver will be Gallium based =)

  29. krpalospo Says:

    OHHHHH you Rockss ……… thanks for that

  30. marcan Says:

    @Nikanth Karthikesan

    Nope, because USB_GADGET support requires a special gadget controller that is only present on embedded systems.

  31. colby Says:

    Have you been able to bring up the SPUs on the cell?

  32. snikes Says:

    You are the MAN, marcan.
    You have just left your footstep on the moon.
    Linux in text mode is the first step to a full GUI linux.

    Thank you.

  33. Alastor Says:

    Amazing work ! This is the best news I have heard from the 1st April Sony “joke”
    Just two questions:
    1) Does the AsbestOS erases the GameOS from the chip ?
    2) Do we get access to the PS2 Emotion Engine ( if it is present ) ?

  34. Ribs Says:

    Fantastic work! Been watching this on Twitter for a while :)

  35. Andrew Says:

    Has anyone tried on the N900 ?

    It wont work for me, ps3pwn keeps putting out the below debug messages.

    Waiting for connection…
    VBUS detected!
    Now soft-connecting
    IRQs: 01
    IRQs: 01
    IRQs: 04
    High-speed reset
    IRQs: 04
    High-speed reset
    IRQs: 04
    High-speed reset
    IRQs: 04
    High-speed reset
    IRQs: 01
    Waiting for connection…

    And keeps looping.

  36. marcan Says:

    @Andrew

    You need to stop all the built-in USB services on the n900 before, and disable the existing kernel driver.

    To disable the driver, you can use the sysfs unbind mechanism. Look for a directory like /sys/bus/platform/drivers/musb_hdrc or /sys/bus/usb/gadget/drivers/musb_hdrc or similar. There should be a symlink in there and an “unbind” file. Echo the name of the symlink into unbind to unbind the driver from the hardware. However, before doing this, you need to disable the services that actually use the USB connection on the n900 (I’m not sure how that works, as I don’t own one).

  37. yoshi314 Says:

    marcan, what is your opinion on that altered asbestOS solution?

    http://psx-scene.com/forums/f6/hermes-asbestos-payload-69498/

  38. xxcv Says:

    Booted gentoo-ps3 linux using the ipodvideo rockbox_psgroove port with AsbestOS!!
    http://img839.imageshack.us/img839/2827/dsc08895u.jpg

  39. netkas Says:

    Hey, how have u got nfs root working, mind to share ur /etc/exports ?

    and what nfs server u used ?

  40. Omni461 Says:

    Thanks for all your hard work, this is a giant leap in the right direction. Kudos!

  41. SnocK Says:

    but for now, open it up in a hex editor, search for HEXEDIT_THIS, and change the commandline to suit your needs (without changing the total length, of course).

    Ya me diras como , pq no hay manera . Cambio el path o la ip y pantallazo en negro ….

  42. windi Says:

    Hello

    I managed to get it to boot and aquiring IP addresses correctly, however I’m having some weird problem with NFS server. The PS3 and Linux PC are directly connected and no firewalls / any iptables rules configured. In wireshark I see V2 GETPORT Call NFS(100003) V:2 UDP coming from the PS3 and then the PC replying V2 GETPORT Reply (Call In 514) Port:2049, but after that there is no traffic and PS3 panics. I used Ubuntu 10.10 with default kernel and nfs-kernel-server package, exportfs and other settings are properly configured AFAIK, also it was possible to mount the share locally when I changed the IP in exports from PS3 IP to localhost. I also tried with Gentoo on the PC with the exact same result, so it must be something configuration related and not a bug in the distro.

    With what kind of nfs server setup have you had success with?

    I’m also wondering would it be possible for the root fs to work from a USB HDD if I rebuilt the ps3 kernel with USB mass support and made /dev/sda1 the root (HDD having one ext3 partition.)

  43. mf Says:

    same problem with nfs here..

  44. krunchy Says:

    I’m also having the same issue as windi. PS3 slim, Hermes 4b. If I use the original, unhexed dtbImage.bin, I can see the penguins, but it dies looking for the nfs root (I use 192.168.10, not .3). If I use the hex-edited one, I can see the portmap traffic, and then…. nothing. Blank screen. In both cases I can see all the stage2 debug traffic on port 18194.

    Side note, I’m using the Hermes homebrew and Gatz loaders because I don’t have a Teensy++ 2.0 port. I see the AVR port has stage1 put in the port1_config_descriptor, but I’m not familiar or patient enough with LUFA/USB/programming to know how to present stage2 in a similar fashon to how the AVR port does it. I figured someone who knew what they were doing would have ported it by now..

  45. mf Says:

    recompiled the kernel and got through it, but now some strange page fault error appeared. i’m off for now, continuing tomorrow

  46. mf Says:

    ok, i just logged in via ssh

  47. bonemasterno1 Says:

    Your git repository server is heavy loaded. no chance to get a snapshot or a clone of the git.

  48. marcan Says:

    The git server should work now, please let me know if there are any issues.

    As for NFS trouble, I realize that it’s hard to diagnose since after the network starts up you lose all debugging information. mf, mind sharing what your issue was and how you overcame it? It might help others :)

    Personally, I’m just using the standard Gentoo NFS server and whatnot.

    Anyway, AsbestOS should be getting support for configuration files (to specify kernel arguments) and remote initrd pretty soon, that should hopefully make things a bit easier.

  49. mf Says:

    i just compiled my own binary (edited arch/powerpc/boot/dts/ps3.dts with my pc’s ip address and path to nfsroot – though added support for wireless networking and ufs, but that shouldn’t be the issue (..or?))

    psgroopic with hermes payload, hermes asbestos loader, fat ps3

  50. Says:

    Excellent. Will be nice to finally see fully-functional Linux on all PS3 models.

    (It’s also quite nice to see all these comments not asking how to use this for piracy. :) )

  51. qq- Says:

    i would like to have the text of your video presentation, it will be very heplfuly for non english people. thank you verry !

  52. Tamis Says:

    Great work being done !

    How are things going ? Can we have the recent updates ?

    Take care,

    Tamis

  53. mutantkeyboard Says:

    This is brilliant… Thank you for such a great post.
    Tony

  54. Alex Says:

    Just brilliant, you’re great man!
    Keep going!
    Alex

  55. Doink Says:

    Hey! I was hoping you could tell me what laptop that is you have there.. and where can I find it/others alike?

  56. Albert Says:

    Sony en lugar de usar la tecnologia para hacer la vida fácil a sus clientes se dedica a complicarsela. Al final con esta actidud no se elimina la pirateria pero si que se pierde a los clientes.

  57. Somebody Says:

    What omap3 board are you using?

  58. DSpider Says:

    Impressive work. I can tell from the video you were very excited to announce this project. Can you please give an estimate on how much time until it will be possible to run a full Linux kernel (if possible at all) ? We definitely need to see some GUI.

    Nouveau all the way, baby ! But for now 2D should suffice. Maybe vesa, something like that.

    Thanks.

  59. Diego Says:

    sos un genio, felicitaciones!! voy a seguir muy de cerca tus trabajos.
    Sr Fox.

  60. mf Says:

    DSpider: “full” linux kernel? it is “full” linux kernel. and you can use framebuffer for 2d. just “emerge xdm” (gdm, kdm..) – or apt-get install if you want to use debian or ubuntu or what..

  61. hansmeiser666 Says:

    mf, could you please upload the kernel you compiled somewhere? I got the same weird nfs issue and wanted to try your kernel first before building my own. thanks in advance :-)

  62. DSpider Says:

    You mean it can run xorg, gnome, etc. ? Ext4 support and all ?

  63. Darko Says:

    Wham AsbestOS hit the scene !!! Wham … nothing further ?

    I, along with 10 gazillion other humble followers await the day that Marcan (or someone) can add full RSX-3D support.

    Please can you supply an update on something just to keep me hanging in there ??? (Marcan – drop that kinect crap)

  64. Erik Says:

    sorry to say that, but i is very difficoult for me to build. When i type in make, it does a lot of commands and after 45 minutes of waiting it says that it cant make it without any messages why it could not build.

  65. Plandevida Says:

    Hi, i have a dubt, when you used the ps3 JS your ps3 was banned on windows live?

  66. Jared Says:

    Whats in the way to publish a working otheros-function? the hardest part seems to be done. why stopping now. as normal user i can’t do anything with that stuff over there. how far is ist away to create a other-os-homebrow tool which can boot a ubuntu-cd for example…? i would be very interested….

    thank ya also for your hard work!

  67. Summonbaka Says:

    Great soft! I’ve been wanting to use a ps3 for linux and still be able to play games and watch movies.
    The problem is, I’m not sure what type of boards can I use for this. Is there a non-exhaustive list of boards and hardware that can be used for this?
    I’ve done some searching but my google-fu needs an upgrade.

  68. matheus duarte Says:

    i”m a brazilian guy in google tradutor “asbestOS” is “amianto” it don’t mean nothing so if u want in portuguese can call asbestOS in “OMelhOS”

    haha this is a detail but…
    can u put a tutorial to instal this on my ps3?

  69. 4lphamal3 Says:

    I use iPod JB 3.15, I have debootstrapped a USB HDD, how would I proceed using AsbestOS to start my system from HDD?

  70. 4lphamal3 Says:

    I use iPod JB 3.15, I have debootstrapped a USB HDD, how would I proceed using AsbestOS to start my system from the USB HDD?

  71. Tinbra Says:

    I do not understand anything, but how?

  72. retana luis Says:

    keep up the good work man

  73. retana luis Says:

    greetings from mexico

  74. Tuco Warhol Says:

    Thanks a Lot!! from Portugal
    Realy!!

  75. Jonhuevon Says:

    Good job! ¡Llegaras lejos!!
    Eskerrik asko!

  76. sergy Says:

    thnx thanks keep you hardwork set us free from Honduras thanks a lot

  77. supercomp Says:

    Marcan,
    I watched the video, but I could not understand where you said what “dongle” you were using.

  78. hcode123 Says:

    With linux on my ps3.
    1. Can I back up my ps3 games to blu ray disc.
    2. Can I watch any format movies, avi, mp4, rmvb, and rm etc.

  79. Int-0 Says:

    Ánimo tío. Me parece una pasada tu trabajo y supongo que después del aviso de demanda de Sony estarás preocupado. No creo que tengas problemas para defenderte de ellos aquí en España, pero si necesitas cualquier cosa no dudes en contactar conmigo.

    Un saludo!

  80. Vincent Says:

    The links do not work, is there a mirror?

  81. Paul M Says:

    will asbestos get a new lease of life with the ps3 master key being revealed?

  82. Todd Says:

    So this has been a couple of months since debut is there current news/ progress in this development. Just asking because there are a ton of people that would love to see this get fully off the ground (Myself included). Just keep up the good work.

  83. Andrej L. Says:

    First of all I have to say you’ve done some amazing work on the PS3.
    Second, has anyone tried to do this with an iPod touch 1G or the E3 Card Reader?
    If so, is there anywhere a guide on it ?
    Third, does anyone know what microcontroller is in the E3 Card Reader ?

    Keep up the good work.

  84. Pygma Says:

    Can it be done on the mini2440 board ?

  85. Charlotte Says:

    The history of AsbestOS and asbestos are not similar, but they are interesting: http://www.weitzlux.com/history-of-asbestos-use-united-states_1962615.html

  86. genceroCync Says:

    Как похудеть на Кремлевской диете, таблица, рецепты, отзывы о диете.
    Диеты Если вы задались целью похудеть, то попали по адресу. Не так давно я тоже была в поиске идеальной диеты. Конечно, хотелось быстро и не прилагая
    ЭФФЕКТИВНЫЕ ДИЕТЫ ДЛЯ БЫСТРОГО ПОХУДЕНИЯ. Анализ эффективности современных диет для похудения, их плюсы и минусы, критика и последствия быстрых диет.
    Тем, кто стремится вести здоровый образ жизни, часто не хватает элементарных диетологических познаний. Данный раздел поможет Вам разобраться в этом
    Диета, диеты, похудеть, похудение, еда, питание, здоровье, рецепты, салаты, красота, лицо, снижение веса.Диета, диеты, похудеть, похудение, еда, питание,

  87. Mark Jones asbestos surveyors edinburgh Says:

    do 2D linux drivers use RSX on my PS3 well?

  88. watch porn warez Says:

    Thanks for your inquiry. That’s really cool. Please keep moving like this.

  89. Blog for nulled scripts, download free nulled scripts and browse for templates,themes Says:

    I like the helpful info you provide in your articles. I will bookmark your weblog and take a look at again right here regularly. I am rather certain I’ll be told a lot of new stuff proper here! Best of luck for the next!

Leave a Reply