Doom Hack

Doom hack. I’ve gotten PRDoom running on the device. PRDoom is an open source doom clone that uses SDL for its rendering backend. The Palm Pre’s GUI, Luna, utilizes a framebuffer. The SDL backend we used was directfb.

The Palm Pre’s rootfs, based on openembedded, had directfb, but the openembedded repositories did not have any versions of SDL which linked against the directfb provided by palm. The other option was to use fbdev, but I couldn’t get it working, so I moved on quickly. In order to control the rootfs, and libraries, I built a debian rootfs using debootstrap, and was able to install many components not available via ipkg.

Getting directfb working was actually fairly trivial, because palm uses it for their testing. The /etc/event.d/LunaSysMgr file, it had the line: exec /var/mft/usr/bin/ted -m –dfb:no-vt –dfb:no-cursor –dfb:bg-color=00000000 –dfb:pixelformat=ARGB. I was able to dervice the directfb options from there.


9 Responses to Doom Hack

  1. hertzi says:


    would you be interested to share a howto?


  2. Evgeny says:

    Wow, that’s amazing work! Let the hacking, gaming and the rest begin on Pre 🙂

    Left credit to you here:

  3. vitriolix says:

    Very cool, nice work. I submitting a digg story for you:

  4. preinsiders says:

    Amazing! Great job on the port, and a big congratulations from Pre Insiders! Glad to see some strides being made in the hacking and development community for the Pre. Wrote an article on this at

    left a trackback + credit as well.

  5. GhostlyDeath says:

    Guess you were one of the lucky ones to get an early dev kit!

  6. […] Altra scoperta interessante, secondo questo sviluppatore, è che l’intera interfaccia utente e tutte le applicazioni sono scritte in javascript, e ciò significa, in sostanza, che  è possibile modificare a piacere il codice sorgente senza ricompilare nulla. Anzi è addirittura possibile far girare applicazioni per Linux in linguaggio C / C++ come mostra il recente hack del Palm Pre con cui è stato possibile far girare Doom. […]

  7. sargund says:

    GhostlyDeath: Not quite… I built this as a homebrew…

  8. Universe Bot says:

    That’s awesome. Great job man.

  9. A well thought out article, i’ve bookmarked it so I can read it when im back from the office.Thanks for the blog! 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: