π
<-
Chat plein-écran
[^]

Patching 4.4.0.532 CAS to run on Non-CAS

C, C++, ASM...

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby critor » 04 Feb 2017, 00:23

Thank you very much for your reply. :)

Ok, so to sum up things if I understand well :
  • TI started to add some CAS/non-CAS checks in the OS with version 3.6
  • and made things much more complicated with hundreds of CAS/non-CAS checks with version 3.9
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 6.8%
 
Posts: 35629
Images: 9549
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
Class: Lycée
YouTube: critor3000
Twitter: critor2000
Facebook: critor.ti
GitHub: critor

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 04 Feb 2017, 00:28

critor wrote:Thank you very much for your reply. :)

Ok, so to sum up things if I understand well :
  • TI started to add some CAS/non-CAS checks in the OS with version 3.6
  • and made things much more complicated with hundreds of CAS/non-CAS checks with version 3.9

You are correct.

It seems to me that the CAS checks in 3.9+ have been added by some automated tool. They are all almost identical, very simple code. There are so many of them that I think it's actually making the entire CAS engine slower!

Amusingly, one of them runs every 5 seconds in the background, but it's trivial to patch so I don't understand why they even added it!
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 77%
 
Posts: 756
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby critor » 04 Feb 2017, 00:42

I've tried to adapt your patch for Boot2 4.0.3, as we can find the same code inside it :
Code: Select all
      PATCH_SETB(0x118B8915,0x54);
      PATCH_SETW(0x118B892C,0xE3A04341);
      PATCH_SETW(0x118B8930,NOP);
      PATCH_SETW(0x118B8DA0,0x00010105);


The first thing the patched Boot2 did was removing my non-CAS OS.

For some reason, I now can install neither non-CAS OSes, nor CAS OSes.

When sendind a non-CAS OS :
Code: Select all
IMAGE: verifying file /tmp/TI-Nspire.tco
IMAGE: missing ASIC User Flags
TI_OS_INSTALL_VERIFYING_RESOURCE (95)
deleteTree(): path /tmp
Deleting file [/tmp/TI-Nspire.tco]
TI_OS_deleteTree: deleteAllFiles Done!
TI_OS_INSTALL_FAILED
  TI_OS_INSTALL_IMAGE_INVALID


When sending a CAS OS :
Code: Select all
IMAGE: verifying file /tmp/TI-Nspire.tcc
IMAGE: missing Program ID
TI_OS_INSTALL_VERIFYING_RESOURCE (95)
deleteTree(): path /tmp
Deleting file [/tmp/TI-Nspire.tcc]
TI_OS_deleteTree: deleteAllFiles Done!
TI_OS_INSTALL_FAILED
  TI_OS_INSTALL_IMAGE_INVALID


Emulated calculator is a CX non-CAS.

If possible, it would be great for this main cas check to accept all OSes.
Not only CAS OSes, but both CAS and non-CAS OSes.

Because many things we develop need to be tested on non-CAS OSes too.
And also because, not being able to install a non-CAS OS on your TI-Nspire CX non-CAS is probably going to become problematic in some future situations
(new TI updates, verifications for some exams...)
.
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 6.8%
 
Posts: 35629
Images: 9549
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
Class: Lycée
YouTube: critor3000
Twitter: critor2000
Facebook: critor.ti
GitHub: critor

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 04 Feb 2017, 00:44

critor wrote:I've tried to adapt your patch for Boot2 4.0.3, as we can find the same code inside it :
Code: Select all
      PATCH_SETB(0x118B8915,0x54);
      PATCH_SETW(0x118B892C,0xE3A04341);
      PATCH_SETW(0x118B8930,NOP);
      PATCH_SETW(0x118B8DA0,0x00010105);


The first thing the patched Boot2 did was removing my non-CAS OS.

For some reason, I now can install neither non-CAS OSes, nor CAS OSes.

When sendind a non-CAS OS :
Code: Select all
IMAGE: verifying file /tmp/TI-Nspire.tco
IMAGE: missing ASIC User Flags
TI_OS_INSTALL_VERIFYING_RESOURCE (95)
deleteTree(): path /tmp
Deleting file [/tmp/TI-Nspire.tco]
TI_OS_deleteTree: deleteAllFiles Done!
TI_OS_INSTALL_FAILED
  TI_OS_INSTALL_IMAGE_INVALID


When sending a CAS OS :
Code: Select all
IMAGE: verifying file /tmp/TI-Nspire.tcc
IMAGE: missing Program ID
TI_OS_INSTALL_VERIFYING_RESOURCE (95)
deleteTree(): path /tmp
Deleting file [/tmp/TI-Nspire.tcc]
TI_OS_deleteTree: deleteAllFiles Done!
TI_OS_INSTALL_FAILED
  TI_OS_INSTALL_IMAGE_INVALID


Emulated calculator is a CX non-CAS.

If possible, it would be great for this main cas check to accept all OSes.
Not only CAS OSes, but both CAS and non-CAS OSes.

Because many things we develop need to be tested on non-CAS OSes too.
And also because, not being able to install a non-CAS OS on your TI-Nspire CX non-CAS is probably going to become problematic in some future situations
(new TI updates, verifications for some exams...)
.

That patch doesn't work yet. It doesn't patch the value in manuf so The calculator doesn't install anything. It's like that Chinese person who bricked their CM by changing manuf. The manuf is non CAS but asic user flags are CAS.
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 77%
 
Posts: 756
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby critor » 04 Feb 2017, 00:57

So nothing can be installed, correct.

The Boot2 patch is incomplete, indeed.
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 6.8%
 
Posts: 35629
Images: 9549
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
Class: Lycée
YouTube: critor3000
Twitter: critor2000
Facebook: critor.ti
GitHub: critor

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 04 Feb 2017, 08:25

Bisam wrote:Are you sure all these are protections ?
The OS might also check if CAS is present when using CAS functions which also can work on non-CAS.
When trying that, it returns a generic message instead of using the CAS version of the function.


update: I bypassed every protection on 3.6.0.550 CAS!!! it can calculate.it even works on CM.
3.9+ will take a long time

use this nlaunch.tns (rename it to nlaunch.tns)
https://github.com/parrotgeek1/nLaunchy ... launch.tns

note: it does not show "PP1234567" anymore. I deleted that because it looks bad.
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 77%
 
Posts: 756
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby Hayleia » 04 Feb 2017, 08:29

Well even if it's "just" 3.6 and not the latest, that's still an OS with API 2.3+ and Ndless support so that's great news, no need for a dual boot anymore to get both CAS and Ndless :)

Image
ImageImageImage
Pokemon Topaze
(Axe) discussion and download links here
(19:29:36) noelnadal: plus sérieusemen​t, j'ai très peu de problèmes
(22:45:44) Clifward: J'aime rire du malheur des autres :troll:

(2017.11.18 - 17:07:12) Fireworks: Hayleia !!!!!
(2017.11.18 - 17:07:19) TI-Bot: Fireworks has been logged out (Kicked).
(2017.11.18 - 17:07:22) TI-Bot: Ban of user Fireworks revoked.
(2017.11.18 - 17:07:25) TI-Bot: Fireworks logs into the Chat.
(2017.11.18 - 17:07:28) Fireworks: <3
(2017.11.18 - 17:07:31) Fireworks: 208
User avatar
HayleiaGénéreux
Niveau 17: GM (Grand Maître des calculatrices)
Niveau 17: GM (Grand Maître des calculatrices)
Level up: 10.9%
 
Posts: 2470
Images: 1
Joined: 30 Aug 2011, 08:22
Gender: Not specified
Calculator(s):
Class: Templar

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 04 Feb 2017, 08:35

Hayleia wrote:Well even if it's "just" 3.6 and not the latest, that's still an OS with API 2.3+ and Ndless support so that's great news, no need for a dual boot anymore to get both CAS and Ndless :)


next on the list:

boot2 patch to let 3.6 CAS install with controlX

maybe, if 3.9+ is too hard to do:

hack 3.6 to not crash when unplugged on HW S/T/U/V
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 77%
 
Posts: 756
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby Lionel Debroux » 04 Feb 2017, 09:10

note: it does not show "PP1234567" anymore. I deleted that because it looks bad.

I could easily live with "because it takes space I need to use for other purposes", but "because it looks bad" is much harder to agree with. The flip side of the coin is "depriving oneself and others from feedback valuable for debugging purposes", which is bad, because debuggability is important in the real world :)
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
User avatar
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 7.1%
 
Posts: 6536
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
Class: -
GitHub: debrouxl

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 04 Feb 2017, 09:18

Lionel Debroux wrote:
note: it does not show "PP1234567" anymore. I deleted that because it looks bad.

I could easily live with "because it takes space I need to use for other purposes", but "because it looks bad" is much harder to agree with. The flip side of the coin is "depriving oneself and others from feedback valuable for debugging purposes", which is bad, because debuggability is important in the real world :)

that is just for the special 3.6 version

the 4.4 version still has it until i finish it and fix all bugs
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 77%
 
Posts: 756
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

PreviousNext

Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: No registered users and 8 guests

-
Search
-
Featured topics
L'OS 5.5 de la TI-83 Premium CE / 84 Plus CE supprime l'assembleur - la plupart des jeux et certains programme ne fonctionneront plus
Omega, le fork étendant les capacités de ta NumWorks, même en mode examen !
Découvre les nouvelles fonctionnalités en Python de l'OS 5.5 pour la 83PCE/84+C-T Python Edition
Comparaisons des meilleurs prix pour acheter sa calculatrice !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...

Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
623 utilisateurs:
>612 invités
>5 membres
>6 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)