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.
Video:

Howto: http://predev.wikidot.com/doom

About these ads

9 Responses to Doom Hack

  1. hertzi says:

    Hey,

    would you be interested to share a howto?

    hertzi

  2. Evgeny says:

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

    Left credit to you here: http://palmwebosblog.com/palm-pre-jailbreak/omg-original-doom-game-running-near-perfectly-on-palm-pre/

  3. vitriolix says:

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

    http://digg.com/gadgets/Doom_already_running_on_a_Palm_Pre

  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

    http://preinsiders.com/home/2009/06/12/doom-confirmed-and-run-on-the-pre-video-howto/

    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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: