Author Topic: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?  (Read 30094 times)

0 Members and 1 Guest are viewing this topic.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #15 on: December 29, 2011, 01:28:51 pm »
Well, OSLauncher was released, and it's a superset of what was indicated by the animated screenshot showcasing RunOS :)
But indeed, the important part of the source code (five C statements) is intentionally scarcely commented, and OSLauncher does not deal with hot-patching the OS before launching it (in a way similar to what tiosmod+amspatch does on the computer side).
« Last Edit: December 29, 2011, 01:30:34 pm by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Illumio

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #16 on: December 31, 2011, 02:12:41 am »
So we just need to keep the way of installing the CAS OS, when it's figured out, on the down low.  That shouldn't be too hard to do.  We just need it to be a select few who know (mainly people on this form and TICalc), right?
Spheres and Cubes.

<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/b2513faa423935d4.png" alt="NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>

For Science! And Math! And other things!

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: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #17 on: December 31, 2011, 02:41:59 am »
Basically direct instructions on how to run a CAS on a non-CAS just need to not be easy to figure out or find on public forums, otherwise the owners of that forum could get in legal troubles.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #18 on: December 31, 2011, 02:44:23 am »
The "install the CAS OS" words usually refer to permanent install, as opposed to hot-launching ala RunOS/OSLauncher.
And if it were easy enough to do, it would probably have been done in the two past years ("plop from inside" was showcased on December 30th, 2009) ;)

The most obvious solution, for achieving permanent install, is factoring the public RSA signing keys used by TI (especially that of the boot2) to deduce the private key. But factoring the Nspire's RSA keys (1024-bit keys on the Clickpad & Touchpad, 2048-bit keys on the CX) is several million times harder than factoring the TI-68k & TI-Z80 512-bit RSA signing keys. This shifts the factorization problem from
something a single quad-core computer can do in less than a month (512-bit RSA key)
to
something which even the leading-edge researchers of the domain, equipped with academic resources amounting to hundreds of computers for years, haven't done yet and are unlikely to do before years (1024-bit RSA key)

This is assuming that
1) the only algorithm which is not hopeless for the task, named Number Field Sieve, is used for the factoring work;
2) the closed-source implementations made by these researchers are used; to date, two years after the factorization of RSA-768, the open-source implementations are not able to replicate it, because there have bottlenecks on basically all five steps of the factorization, which the leading-edge programs have eliminated by now.

IOW, the solution of factoring the RSA signing keys is completely ruled out - it would be like winning at multiple (or even many, in case the hopeless trial factoring is used) lotteries :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

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: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #19 on: December 31, 2011, 02:47:13 am »
Also if we managed to factor 0.1% of the 2048 bit keys, TI would immediately switch to 4096 bit keys.

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: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #20 on: January 01, 2012, 03:31:50 am »
But they can't change the hardware ones. ie boot 1, which means the boot 2 will always be constant. We'll just see another calc model.

Offline Illumio

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #21 on: January 22, 2012, 11:45:15 am »
Woop!  Ndless 3.1 Beta is released!  So what to do now with this topic?
Spheres and Cubes.

<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/b2513faa423935d4.png" alt="NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>

For Science! And Math! And other things!

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #22 on: January 22, 2012, 11:59:20 am »
There's nothing new :)
OSLauncher has not been demonstrated on the CX (CAS), AFAWCT. It may be more, or less, reliable than on Clickpad / Touchpad Nspires... we don't know :)

For updated versions, the structure of the core of OSLauncher (few C statements, posted below) shouldn't change. But the code needs work in at least two directions:
* porting from the Ndless 1.7/2.0 API to the Ndless 3.1 API: replacing show_dialog_box2 with the appropriate equivalent. That should be trivial;
* adapting to the CX hardware. For one thing, one of the C statements I posted below will have to change; maybe it's enough. The thing is, I'd rather someone else - specifically, someone with more than one CX calculator - do the testing ;)

[EDIT: add note about CX porting work, make a bullet list.]
« Last Edit: January 22, 2012, 02:18:05 pm by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #23 on: January 22, 2012, 12:51:50 pm »
OSLauncher does not permanently install the CAS OS, it merely hot-launches it (and often fails to, for some reason nobody has bothered to investigate). The Press To Test (PTT) mode triggers a reboot and therefore undoes the effect of OSLauncher anyway, so you wouldn't have to do anything yourself, for your calculator to be usable in standardized tests :)

I have done some tests with OSLauncher and I found out that it freezes when you touch the touchpad while launching or start OSLauncher with the touchpad-click instead of enter.
When an OS is launched with the enter-key, I have never experienced any problems. Maybe this helps you to find the bug ???
« Last Edit: January 22, 2012, 12:53:28 pm by compu »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #24 on: January 22, 2012, 02:10:36 pm »
It may indeed mean something... but actions on the touchpad (or anywhere else) shouldn't matter, because the core of OSLauncher runs with interrupts disabled (it's the first of the few C statements I mentioned above), so I'm confused as well...

Code: [Select]
    // Killing all interrupts is necessary (exercise for the reader: why ?)
    *((uint32_t *)0xDC00000C) = 0xFFFFFFFF;

    __builtin_memset((void *)0x10000000, 0, 0x02000000);
    // Useful ?
    __builtin_memcpy((void *)0x10000000, dest, ziphdr.usize);
    // Useful ?
    __builtin_memcpy((void *)0x00000000, (void *)0x10000000, 0x40);

    // This is also necessary (exercise for the reader: why ?)
    *((uint32_t *)0xC000001C) &= ~((1 << 0) | (1 << 11));

    // Launch the OS.
    asm volatile(
    ".arm \n"
    "mov lr, pc\n"
    "ldr pc, =0x10000000\n"
    );
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Illumio

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #25 on: January 22, 2012, 02:25:06 pm »
So I guess the only answer for now is that only time will tell.
Spheres and Cubes.

<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/b2513faa423935d4.png" alt="NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>

For Science! And Math! And other things!

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #26 on: January 22, 2012, 02:26:18 pm »
Even though I don't know that much, I'll try do your exercises :D
 
Code: [Select]
   
// Killing all interrupts is necessary (exercise for the reader: why ?)
*((uint32_t *)0xDC00000C) = 0xFFFFFFFF;
To make that the new OS doesn't receive signals it doesn't need, and don't its the only thing that runs?

Code: [Select]
// This is also necessary (exercise for the reader: why ?)
*((uint32_t *)0xC000001C) &= ~((1 << 0) | (1 << 11));
I think you reset the LCD to some initial parameters (LCD controller enable and LCD power enable?), so that the new OS can initialize everything how it wants?


I think I should learn some ARM asm and everything that goes with it :D

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #27 on: January 23, 2012, 03:21:41 pm »
Jim: 1/2 mark, as mentioned on IRC ;)

For OSLauncher updates, see also http://ourl.ca/10384/280610 and below :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline olivermadsen

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #28 on: February 08, 2012, 12:03:10 pm »
The message i get from trying to use a regular touchpad nSpire with CAS commands is a message bow that tells me to buy a CAS. The CAS for regular nspire might not actually be good and my lead to the downfall of the nspire for things like the ACT because CAS calculators are not allowed to be used on it and if an OS included CAS functions, they might disallow all nSpires for the test. Take one for high school TI-nspire users out there and buy a CAS if you want it's features.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Have a TI-Nspire CX loaded with the TI-Nspire CX CAS OS?
« Reply #29 on: February 08, 2012, 12:26:06 pm »
Quote
The message i get from trying to use a regular touchpad nSpire with CAS commands is a message bow that tells me to buy a CAS
Which is natural if the Nspire is running the non-CAS OS :)

Quote
The CAS for regular nspire might not actually be good and my lead to the downfall of the nspire for things like the ACT because CAS calculators are not allowed to be used on it and if an OS included CAS functions, they might disallow all nSpires for the test.
Simply put, this is a completely irrational fear ;)
Not least because the Nspire has a PTT mode much more efficient than of the 84+(SE).


People who live in the many countries possessing restrictions such as "CAS forbidden" in standardized tests - no matter how utterly disconnected from real-world usage, and therefore stupid, they are - may want to campaign against that kind of brain-damage, and the incompetents supposed to regulate standardized tests.
In France, where I live, CAS functionality is allowed, and the non-CAS Nspire, whose math functionality is roughly equivalent to that of the cheaper, more programmable and highly popular 83+(SE)/84+(SE), is hard to find in stores. People stick to the programmable and once popular TI-68k series... or buy the overpriced CAS Nspires and help the profit margin of TI and distributors.
Indeed, CAS Nspires are sold at higher price tags than the non-CAS Nspires, though the CAS models cost less to manufacture (no interchangeable keyboards), and their OS had lower development costs (they had to do the CAS version anyway; the non-CAS OS required extra development effort for replacing functions with stubs which tell people to buy a CAS, and also for building the slow, incomplete and buggy 84+ emulator. On the CX series, the keyboard is not interchangeable, but the unjustified extra price tag of the CAS OS remains.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.