Author Topic: Hello everybody.  (Read 1779 times)

0 Members and 1 Guest are viewing this topic.

Offline Jean-Baptiste Boric

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +1/-0
    • View Profile
Hello everybody.
« on: December 20, 2015, 06:17:02 pm »
Hi all,

I'm a French student with way, way too much time on its hands. There's about a bazillion HP calculators in my house, and I personally own a TI-82 Stats.fr and a HP Prime.

I'm completely new to the community, but I have a small present that should (hopefully) be ready for Christmas. After all, it was about time that someone started to rip'em apart, right?

Got it?

If not, do not spoil Christmas yourself and do not head over to https://github.com/boricj/ripem. Especially not before I managed to get something more useful running that the last person who did and being disappointed by the shameless hype. Also because there's no instructions yet on how to void your warranty with this because it's time for me to go to bed.

(Hint : I'm not going after armfir.elf, but rather directly for PRIME_OS.ROM).
We're gonna have a geeky Christmas,
That is what we'll do.
We're gonna have a geeky Christmas,
Hope you'll have one too.

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2028
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Hello everybody.
« Reply #1 on: December 20, 2015, 06:45:54 pm »
Welcome to the forum. Sadly I am rather impatient and clicked the link ;) Looks awesome and I hope it works for you :D

Offline Art_of_camelot

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6165
  • Rating: +191/-9
  • YouTube channel has my solo work and collaboration
    • View Profile
    • My YouTube page!
Re: Hello everybody.
« Reply #2 on: December 20, 2015, 09:05:18 pm »
Hi there, welcome to Omnimaga! The link looks... interesting. :D

Offline Jean-Baptiste Boric

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +1/-0
    • View Profile
Re: Hello everybody.
« Reply #3 on: December 21, 2015, 11:09:46 am »
The link looks... interesting. :D

I bet it looks even more interesting right now :

Code: [Select]
(gdb) x/16x 0x30000000
0x30000000:     0x30000020      0x00000000      0x00100000      0x30000000
0x30000010:     0x00100000      0x004a3556      0x36313432      0x00000000
0x30000020:     0xeb000000      0xeafffffe      0xe92d4008      0xe59f000c
0x30000030:     0xeb00017f      0xe59f0008      0xeb0001cc      0xeb00012b
(gdb) set *(unsigned) 0x30000000 = 0x12345678
(gdb) x/16x 0x30000000
0x30000000:     0x12345678      0x00000000      0x00100000      0x30000000
0x30000010:     0x00100000      0x004a3556      0x36313432      0x00000000
0x30000020:     0xeb000000      0xeafffffe      0xe92d4008      0xe59f000c
0x30000030:     0xeb00017f      0xe59f0008      0xeb0001cc      0xeb00012b
(gdb) x/4x 0x56000070
0x56000070:     0x1400150a      0x00000062      0x01554050      0x00000000
(gdb)

I technically reached the minimum amount of features to one-up Lionel Debroux's PoC. I won't make an official announcement on the relevant board before Christmas for obvious drama and pun combo reasons, but if anyone wants to mutilate their calculator experiment with this before then :

You need a way to connect to a 3.3v TTL serial port. Open up your Prime and connect said way to UART_RX, UART_TX (right on top of the flash chip on my model) and BAT-.

On Debian, install the required cross-compiler packages (binutils-arm-none-eabi gcc-arm-none-eabi gdb-arm-none-eabi), clone the repository, use make to build everything. Prepare a terminal emulator at 115200 bauds.

On Windows, replace PRIME_OS.ROM with ripem.rom, connect the calculator to the computer (the battery isn't required - the Prime can power itself from USB), flash the new OS.

Back on Debian, check that the traditional "Hello world!" appeared on your screen. Close the terminal emulator and use arm-none-eabi-gdb to poke around.

And as always : please void your warranty in a responsible manner, I take no responsibility for whatever you did to your poor calculator.
« Last Edit: December 21, 2015, 05:52:47 pm by Jean-Baptiste Boric »
We're gonna have a geeky Christmas,
That is what we'll do.
We're gonna have a geeky Christmas,
Hope you'll have one too.

Offline Digital

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 107
  • Rating: +0/-0
  • 10101
    • View Profile
    • Digital's Hp
Re: Hello everybody.
« Reply #4 on: December 21, 2015, 01:58:19 pm »
Welcome to Omniaga Jean-Baptiste Boric!
It's always good to have new members, especially in times where there aren't many active members :)
also, have some omniamga peanuts:
!peanuts
I'm sorry if i might make some mistakes, I'm German so English isn't my first language. Please correct me :)

Offline Jean-Baptiste Boric

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +1/-0
    • View Profile
Re: Hello everybody.
« Reply #5 on: December 22, 2015, 03:07:54 pm »
also, have some omniamga peanuts:
!peanuts

Food!  :w00t:

For anyone wondering, I'm so close...  :banghead:

Code: [Select]
tart
B
Run>
Init 320x240
Init 320x240 rVIDCON0=0x5270
320x240 rVIDTCON0=0x110300 rVIDTCON1=0x401100 rVIDTCON2=0x7793f rVIDCON1=0x8080
ARMCLK:400000000
HCLK  : 133333333
PCLK  : 66666666
nandid: ad da 90 95 44
InitBfsHeader...
nandid: ad da 90 95 44
block size:0x20000 page size :0x800 Attr:1c03110b NandSize:256(MB)
read header...ok
has BFS header
[00][01][120][121][122][123][124][125][126][127][1E6][2DE][675][708]
BFS End.

1ram size :32MB
rBANKCFG:4890d
GetHWVersion:1 31
CodeEntry:0x30000020
CodeLoadeAddress:0x30000000
CodeLoadSize:0x100000
CodeEntry:0x30000020
CodeLoadeAddress:0x30000000
CodeLoadSize:0x100000

Rip'Em version 0.0.0
Current time : 2015/23/12 01:26:54

Loading payload...
Payload address : 0x30003118
Payload size : 2400 bytes
Payload stack : 0x31fffae8
Payload staging area : 0x31000000
Payload entry : 0x30000000
Loading successful, jumping into payload...
DFSR=0x1
FAR=0x12055007
Dabort exception.
We're gonna have a geeky Christmas,
That is what we'll do.
We're gonna have a geeky Christmas,
Hope you'll have one too.