Ran out of presents to rip open? How about ripping open your HP Prime for science?
This is Rip'Em, a third-party firmware for the HP Prime calculator. It is a (rather primitive for now) unofficial bootloader that replaces PRIME_OS.ROM and is currently written by someone who doesn't know what he's doing.
For now, unless you can connect to the 3.3v TTL serial port inside the calculator nothing
too exciting will happen.
What you can do with it for now :
- Launch a homegrown GDB stub over serial (only suitable for poking memory and upload/run code) ;
- Launch a single ELF file as a payload. Current payloads available are :
- dummy.elf : A dummy payload that blinks the LEDs so you can hang your HP Prime to your Christmas tree ;
- PRIME_OS.ROM : The official firmware can be launched using the osrom2elf tool supplied.
- Write your own application on bare metal using the libraries supplied.
Current plans and what you can do to help :
- Play around with Rip'Em ;
- Use the GDB stub to figure out the hardware ;
- Replace the homegrown GDB stub with the real stuff ;
- Write a USB serial driver to enable the GDB stub to work over it ;
- Add the ability to have multiple payloads, to read payloads from the FAT16 partition in PRIME_APP.DAT and to select a payload with a simple graphical user interface.
Non-goals (at least for me) :
- Reverse-engineering, patching or otherwise tampering with the official firmware. The TODO list is already big enough to keep me busy for a long time ;
- Bloat within RIp'Em itself. It's an ELF launcher, not a operating system. Even the GDB stub should be demoted as a payload eventually.
Source code available over at
https://github.com/boricj/ripem. Kudos to Lionel Debroux for being the first one to run a third-party firmware on the HP Prime.
As always :
please void your warranty in a responsible manner. I will decline any responsibility should you turn your HP Prime into the thinnest CAS calculator brick available currently on the market.