π
<-
Chat plein-écran
[^]

[removed]

C, C++, ASM...

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude parrotgeek1 » 03 Fév 2017, 05:02

.
Dernière édition par parrotgeek1 le 05 Jan 2021, 19:55, édité 3 fois.
Avatar de l’utilisateur
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 88%
 
Messages: 745
Inscription: 29 Mar 2016, 01:22
Localisation: This account is no longer used.
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude parrotgeek1 » 03 Fév 2017, 05:18

.
Dernière édition par parrotgeek1 le 28 Aoû 2020, 19:33, édité 1 fois.
Avatar de l’utilisateur
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 88%
 
Messages: 745
Inscription: 29 Mar 2016, 01:22
Localisation: This account is no longer used.
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude Lionel Debroux » 03 Fév 2017, 07:54

Chances are that you'll get censored quickly on that mostly dead board, killed by its staff's behaviour ^^
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Avatar de l’utilisateur
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Prochain niv.: 11.2%
 
Messages: 6859
Inscription: 23 Déc 2009, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: -
GitHub: debrouxl

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude parrotgeek1 » 03 Fév 2017, 08:00

.
Dernière édition par parrotgeek1 le 05 Jan 2021, 19:55, édité 1 fois.
Avatar de l’utilisateur
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 88%
 
Messages: 745
Inscription: 29 Mar 2016, 01:22
Localisation: This account is no longer used.
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude Lionel Debroux » 03 Fév 2017, 08:29

Wrt. blanking the calculator's ID: have you tried searching for references to the strings which indicate CAS/non-CAS discrepancies ? They're in code paths which can only be preceded by tests and most of all, branches (taken or not taken).

but there isn't really an active english TI website anymore is there?

As a whole, community Nspire programming, for both Nspire Lua and Ndless, is much less active than it used to be.

As for community websites... well, welcome to the community's dirty laundry :)
CodeWalrus was created by DJ, the founder of Omnimaga, after it became painfully clear, through multiple events, that especially two members of the Omnimaga staff, were behaving in actively harmful ways, turning members away from at least Omnimaga (including the TI-Planet staff, two of whom posted ~70-90% of Omnimaga's newsing activity for several years, in a mutual benefit solution), if not the whole community. These two persons also happen to be good friends of the staff of the other English-speaking main community site, where self-aggrandizing posts by staff and Omnimaga-diminishing posts by non-staff happen not to be unheard of.
Unsurprisingly, CW picked up most of the activity of Omnimaga in short order - like Omnimaga itself, under the ruling of DJ and friends, picked up the Nspire activity from two other boards in a matter of months, thanks to a much better mood.

I'm not a perfect human being, and as a matter of fact, I was involved in some of the aforementioned events. However, I'm stating publicly verifiable facts about the reasons why CW was created, staff friendships, the tone of some posts at the other community site I still haven't mentioned in this post, and the CW and Omnimaga activity curves - so if you want to check for yourself, you'll find that I'm not a liar.

PS: why are you even awake?!

If that question was directed at me: it's 8 a.m. here :)
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Avatar de l’utilisateur
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Prochain niv.: 11.2%
 
Messages: 6859
Inscription: 23 Déc 2009, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: -
GitHub: debrouxl

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude parrotgeek1 » 03 Fév 2017, 08:53

.
Dernière édition par parrotgeek1 le 05 Jan 2021, 19:55, édité 1 fois.
Avatar de l’utilisateur
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 88%
 
Messages: 745
Inscription: 29 Mar 2016, 01:22
Localisation: This account is no longer used.
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude critor » 03 Fév 2017, 12:20

Ok, I managed to set up some test ROM with nBoot+ControlX, although it was not easy.

The OS 4.4 has to be set as an ExtnD partition image which can be launched directly by ControlX.
Because Boot2 4.0.3 also includes CAS/non-CAS checks, so we won't be able to boot the OS the normal way.

  1. decrypt OS 4.4 image (19.5MiB...)
  2. insert a TI-Certificate header with correct sizes (see Boot2/Diags images and Hackspire doc)
    Image
  3. add the FF F0 footer
  4. compress the image with nsBar (down to 14.6MiB)
  5. take your real or emulated TI-Nspire CX non-CAS
  6. with nsPartManagic, resize the ExtnD partition to exactly 0x1d80 pages (no more because of the RAM, and no less)
  7. OSes 4.2-4.4 don't let enough RAM free space for the current BtMg to be able to flash such a huge image, so downgrade to the much lighter OS 3.1
  8. you'll then be able to flash the compressed 4.4 image with BtMg
  9. now install the 4.4 non-CAS OS to have it extract 4.4 compatible resources files in your system folders
  10. now go to the ControlX menu, and select te OS 4.4 image in the ExtnD partition - you may also set it as the default boot image ;)
Image
Avatar de l’utilisateur
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Prochain niv.: 41.8%
 
Messages: 41470
Images: 14480
Inscription: 25 Oct 2008, 00:00
Localisation: Montpellier
Genre: Homme
Calculatrice(s):
MyCalcs profile
YouTube: critor3000
Twitter/X: critor2000
GitHub: critor

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude GalacticPirate » 03 Fév 2017, 12:33

Enorme :D Bon,Excale, puisque tu voulais que je fasse ce patch moi-même, ben j'ai demandé de l'aide :troll: Tu peux mettre à jour nLaunchy maintenant ? :troll:
Mon profil TI-PlanetDevenez premium !
ImageImage
Modérateur de TI-Planet.org depuis décembre 2015, et membre de la communauté depuis Mai 2015.Cliquez ci-dessus pour faire un don à TI-Planet.org via PayPal et devenir Donateur ou Premium (à partir de 3€) ! Vous aurez accès à des générations illimitées et prioritaires avec Mviewer GX Creator, ainsi qu'au forum secret ! :bj: En plus, vous pourrez être orange sur le chat :troll:

Image
Avatar de l’utilisateur
GalacticPirateModo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 1.3%
 
Messages: 1156
Images: 2
Inscription: 23 Mai 2015, 10:36
Localisation: Hauts-de-Seine, France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: L3 Informatique
GitHub: GalacticPirate-Prog

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude critor » 03 Fév 2017, 14:52

I confirm the patch is working in Firebird with my local ControlX build.
4.4 CX CAS OS is running on a non-CAS CX setup.

Code added to the patchos.c file :
Code: Tout sélectionner
      if(os_id==CXC440_532) {
         // cas check patch by parrotgeek1
                                       // r5 is where 900A0028 value goes
                                       // r4 is where 900A002C value goes
         PATCH_SETB(base+0x00CAF71,0x54);      // was:LDR R3, [PC, #0x484] : 0xE59F3484
                                       // is: LDR R5, [PC, #0x484] : 0xE59F5484
         PATCH_SETW(base+0x00CB3FC,0x00010105);   // [PC,#0x484] was 900A0000, repurposing as fake 900a0028 value
         PATCH_SETW(base+0x00CAF88,0xE3A04341);   // was: ldr r5,[r3,#0x28] : 0xE5935028
                                       // is: MOV R4, #0x4000001 : 0xE3A04341
         PATCH_SETW(base+0x00CAF8C,NOP);         // was: ldr r4,[r3,#0x2C] : 0xE593402C
                                       // is: alternate nop
         // fix reboot when document manager loads
         PATCH_SETW(base+0x08D0718,0xE59F2110);
         PATCH_SETW(base+0x08D0720,NOP);
         PATCH_SETW(base+0x08D0830,0x04000001);
         // maybe other 3 not need
         PATCH_SETB(base+0x00E44F5,0x31);      // was:LDR R1, [PC, #0x190] : 0xE59F1190
                                       // is: LDR R3, [PC, #0x190] : 0xE59F3190
         PATCH_SETW(base+0x00E44FC,NOP);         // was:ldr r3,[r1 + 02c] : 0xE591302C
                                       // is: alternate nop
         PATCH_SETW(base+0x00E468C,0x04000001);   // [PC, #0x190] was 900a0000, repurposing as fake 900a002c value
      }
Image
Avatar de l’utilisateur
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Prochain niv.: 41.8%
 
Messages: 41470
Images: 14480
Inscription: 25 Oct 2008, 00:00
Localisation: Montpellier
Genre: Homme
Calculatrice(s):
MyCalcs profile
YouTube: critor3000
Twitter/X: critor2000
GitHub: critor

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Message non lude critor » 03 Fév 2017, 16:36

Still on Firebird.
Removing the last 3 patches doesn't seem to change anything - it still seems to work perfectly. :)

But unless I made some error, there is a little problem with the home screen messages when launching OS 4.4 CAS without installing it (with the 4.4 non-CAS resource files instead of the 4.4 CAS resource files) :
Image

Up to OS 3.6, such trick didn't seem to cause any problem.
Image
Avatar de l’utilisateur
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Prochain niv.: 41.8%
 
Messages: 41470
Images: 14480
Inscription: 25 Oct 2008, 00:00
Localisation: Montpellier
Genre: Homme
Calculatrice(s):
MyCalcs profile
YouTube: critor3000
Twitter/X: critor2000
GitHub: critor

PrécédenteSuivante

Retourner vers Native: Ndless, Linux, ...

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 8 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
938 utilisateurs:
>924 invités
>10 membres
>4 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)