Author Topic: TI-Nspire SD card  (Read 17103 times)

0 Members and 3 Guests are viewing this topic.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: TI-Nspire SD card
« Reply #15 on: December 26, 2010, 06:34:41 pm »
Not a problem.


Here's an animated GIF I've posted here in july when we discovered all this.
You can see all SD/Flash related menus and screens.

Of course, everything is failing...




Seems the diagnostic software can even update itself, by looking for its replacement code on the external SD card...

So it can flash everything:
- NAND ROM (boot1)
- NOR ROM (boot2 + diagnostic + OS)


- NOR ROM (boot1)
- NAND ROM (boot2 + diagnostic + OS)
« Last Edit: December 26, 2010, 06:52:48 pm by critor »
TI-Planet co-admin.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Nspire SD card
« Reply #16 on: December 26, 2010, 06:48:25 pm »
- NAND ROM (boot1)
- NOR ROM (boot2 + diagnostic + OS)
I think it's the other way around.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: TI-Nspire SD card
« Reply #17 on: December 26, 2010, 06:53:24 pm »
- NAND ROM (boot1)
- NOR ROM (boot2 + diagnostic + OS)
I think it's the other way around.

Edited. Thank you calc84maniac. :)
TI-Planet co-admin.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: TI-Nspire SD card
« Reply #18 on: December 26, 2010, 09:07:07 pm »
okay, thank you. I get it a little better now. Why is there two boots, though?

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: TI-Nspire SD card
« Reply #19 on: December 26, 2010, 09:10:59 pm »
Boot1 immediately runs when the calc turns on, however, the nor rom cannot be very big, so boot2 handles decrypting the os.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: TI-Nspire SD card
« Reply #20 on: December 26, 2010, 09:23:44 pm »
Boot1 immediately runs when the calc turns on, however, the nor rom cannot be very big, so boot2 handles decrypting the os.
It actually decrypts it each time? Wow, that's insane.  And the boot1 rom can't be erased, or can it?

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: TI-Nspire SD card
« Reply #21 on: December 26, 2010, 09:30:19 pm »
And the boot1 rom can't be erased, or can it?

According to some diagnostic strings quoted above, it seems that it is possible for the diagnostic software to reprogram the boot1.
TI-Planet co-admin.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: TI-Nspire SD card
« Reply #22 on: December 26, 2010, 09:32:17 pm »
And the boot1 rom can't be erased, or can it?

According to some diagnostic strings quoted above, it seems that it is possible for the diagnostic software to reprogram the boot1.
Excellent! Is boot1 checked at all for encryption or signatures?

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: TI-Nspire SD card
« Reply #23 on: December 26, 2010, 09:45:04 pm »
And the boot1 rom can't be erased, or can it?

According to some diagnostic strings quoted above, it seems that it is possible for the diagnostic software to reprogram the boot1.
Excellent! Is boot1 checked at all for encryption or signatures?

I said it *seems*.
The diagnostic sofware is doing something with the NOR ROM (boot1).

I don't think that boot1 is being checked, but this would be a very dangerous way.
With a faulty boot1, your Nspire won't boot anymore... And this cannot be fixed.


We're currently not even able to correctly write a diagnostic software. Along with his "diagsdumper", ExtendeD made me beta-test a "diagswriter".
Tried on 2 calculators, success rate is 50%.
It worked perfectly on one calculator...
On the other one, whatever I did, the diagnostic software was not written correctly. The 2nd half of the written code was correct, but the 1st half was just crap.

There may be some kind of protection. Some memory pages might be write-protected, although it's strange it's worked once (and on a TouchPad - not an old calculator).

But writing a new diagnostic software is not dangerous. The Nspire can still boot without a diagnostic software.
Until we understand why, and find a way to make it work in all cases, I wouldn't try to write boot1/boot2 if I were you.
« Last Edit: December 26, 2010, 09:47:25 pm by critor »
TI-Planet co-admin.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: TI-Nspire SD card
« Reply #24 on: December 26, 2010, 09:47:43 pm »
I don't have an Nspire. I planned on getting one, but with this prizm now, I don't know.

But yeah, thanks.
« Last Edit: December 26, 2010, 09:48:37 pm by graphmastur »

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: TI-Nspire SD card
« Reply #25 on: December 26, 2010, 10:47:46 pm »
I was thinking of a boot2writer - so you can change boot2 1.4 to 1.1
I can test this on the emulator with the /1=boot1.raw , to see
if boot1 complains about a corrupted boot2.
Am I on the right path if I use the write_nand_page call?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: TI-Nspire SD card
« Reply #26 on: December 27, 2010, 05:34:38 am »
Here is a diags writer I wrote a while ago for Ndess v1.0 (OS 1.1): http://pastebin.com/iEgspQaB
After several tests we made with critor, it appears the write fails randomly for unknown reasons (garbage is written).
« Last Edit: December 27, 2010, 05:35:03 am by ExtendeD »
Ndless.me with the finest TI-Nspire programs