Author Topic: Let's hack the HP Prime!  (Read 128277 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Let's hack the HP Prime!
« Reply #225 on: June 24, 2014, 03:10:53 pm »
To be honest I am unsure, since he is posting in this particular thread and the HP staff can't really help us hack their own products, but we never know, since TI-Planet and MoHPC have an HP guy named Cyrille.

Regardless, welcome to the forums :D

Offline cyrille

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Re: Let's hack the HP Prime!
« Reply #226 on: June 25, 2014, 01:24:07 am »
Hello,

Yes, from HP.

>Perhaps the uart is only used for flashing the bootloader for example and not for debugging.
nope, bootloader, when we need to flash it (which has never happend to me) is done through JTAG...

I can't help you hack Prime application, sorry, but I can help you do prety much anything else...

As you stated earlier, the application is a .elf file and you can replace the application by anything else that you compile and it should be started by the OS... then you are free to do whatever you want... but this transforms prime into a single purpose machine...

cyrille

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Let's hack the HP Prime!
« Reply #227 on: June 25, 2014, 04:08:22 am »
Would patching the application be fine too?
If you like my work: why not give me an internet?








Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Let's hack the HP Prime!
« Reply #228 on: June 25, 2014, 04:59:01 am »
Hello,

Yes, from HP.

>Perhaps the uart is only used for flashing the bootloader for example and not for debugging.
nope, bootloader, when we need to flash it (which has never happend to me) is done through JTAG...

I can't help you hack Prime application, sorry, but I can help you do prety much anything else...

As you stated earlier, the application is a .elf file and you can replace the application by anything else that you compile and it should be started by the OS... then you are free to do whatever you want... but this transforms prime into a single purpose machine...

cyrille

Oh great !
This means we could port Linux pretty easily. :D

Also Keoni, I think it's OK to patch the OS, but he (she ?) is not allowed to help us with that.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Let's hack the HP Prime!
« Reply #229 on: June 26, 2014, 12:01:41 am »
Yeah patching the OS to allow extra functionalities or fixing bugs would be a nice alternative too. Of course for the time being it would be best to keep things compatible with the official OS, though, and no matter what happens, we must NOT alter the exam mode code unless it's to fix exploits, otherwise they might start adding restrictions like TI to avoid the calc getting banned from tests. But yeah, patching the official OS then releasing an IPS patch or something wouldn't be a first, I guess, because this happened with the HP 50g too. We never know, though, because maybe HP will finally fix all bugs at one point, so such patch might not be necessary. IMHO for now a patch should only be limited to adding a command to run assembly language.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Let's hack the HP Prime!
« Reply #230 on: June 26, 2014, 12:15:28 pm »
If we do it right it will be like Ndless, minus the need for an exploit : add the ability to run native executables and hooking so that the programs themselves modify OS functionality. :)

Offline iconmaster

  • LV3 Member (Next: 100)
  • ***
  • Posts: 82
  • Rating: +5/-0
    • View Profile
Re: Let's hack the HP Prime!
« Reply #231 on: June 27, 2014, 08:15:00 am »
A reminder to people who want to write patches for this thing: We already have half of the HP Prime's source code. It's called xcas. :P

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Let's hack the HP Prime!
« Reply #232 on: June 27, 2014, 11:45:42 am »
Indeed. O.O Also, I don't remember what license xcas is under but I'm pretty sure HP has to redistribute the source to the parts they used. Maybe they do idk.

Offline cyrille

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Re: Let's hack the HP Prime!
« Reply #233 on: July 02, 2014, 02:15:15 am »
Hello,

xCas has multiple licencing alternatives, as described in the author's pages... GPL is not the only options...

Cyrille

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Let's hack the HP Prime!
« Reply #234 on: July 02, 2014, 02:39:33 am »
Oh OK thank you for making that clear.

Offline Shibe

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: Let's hack the HP Prime!
« Reply #235 on: July 14, 2014, 09:06:51 am »
Hello,

I've discovered that when the HP Calculator is set to recovery mode (symb + reset) and plugged into a computer, there is a partition available named "HP CALC DEV" that can be accessed. And from what I read from gparted, it seems that around 247.12mb is still free, although I know that it isn't. I haven't been able to find anything online regarding this partition, and I wonder if it could be of any use. Would anyone happen to know what purpose the partition might serve?

Spoiler For Huge fucking image, beware:

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Let's hack the HP Prime!
« Reply #236 on: July 14, 2014, 05:12:37 pm »
Welcome to omnimaga!

Does this partition contain any files?
If you like my work: why not give me an internet?








Offline Shibe

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: Let's hack the HP Prime!
« Reply #237 on: July 14, 2014, 05:17:24 pm »
Thank you.

This partition doesn't contain any files. I ran the command `ls -la` to check for any hidden files, but there doesn't appear to be anything at all, just an empty partition.


Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Let's hack the HP Prime!
« Reply #238 on: July 14, 2014, 05:18:46 pm »
Also @street, if they just include xcas as a program running on top of the HP Prime kernel, and don't modify it at all, they don't have to give anyone any code.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Let's hack the HP Prime!
« Reply #239 on: July 14, 2014, 05:25:17 pm »
Perhaps it's a place for us to put our own software on :3 (it's a stretch)
If you like my work: why not give me an internet?