π
<-
Chat plein-écran
[^]

[Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linux)

Regroupement de tous les tutoriaux Nspire.

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude geekpersonman » 20 Avr 2017, 04:02

critor a écrit:
geekpersonman a écrit:And also, according to this page: https://hackspire.org/index.php/OS_upgrade_files
couldn't you just check (8080 - 8 : The first 4 bytes are the OS base address: address to which the OS will be copied by boot 2(0x10000000). ) for OS information?

In which tool ?


In controlX to detect the OS and load patches automatically
Avatar de l’utilisateur
geekpersonman
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Prochain niv.: 34.4%
 
Messages: 39
Inscription: 21 Aoû 2015, 02:45
Genre: Homme
Calculatrice(s):

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude parrotgeek1 » 20 Avr 2017, 08:51

geekpersonman a écrit:
critor a écrit:
geekpersonman a écrit:And also, according to this page: https://hackspire.org/index.php/OS_upgrade_files
couldn't you just check (8080 - 8 : The first 4 bytes are the OS base address: address to which the OS will be copied by boot 2(0x10000000). ) for OS information?

In which tool ?


In controlX to detect the OS and load patches automatically

It already does that
the issues is the missing filesystem.zip makes it crash like I said above

the cas patcher is separate because it is too big to fit inside controlx
Avatar de l’utilisateur
parrotgeek1
Niveau 10: GR (Guide de Référence)
Niveau 10: GR (Guide de Référence)
Prochain niv.: 4.5%
 
Messages: 314
Inscription: 29 Mar 2016, 02:22
Genre: Homme
Calculatrice(s):
Classe: 1st year university student
twitter: parrotgeek1

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude geekpersonman » 20 Avr 2017, 17:09

Sorry, I should clarify.
There appears to be an issue with the separate cas patcher that that either incorrectly patches or does not patch the regression functions and causes it to reboot.

A separate issue I have found seems to be related to Nswitch OS where it upgrades the os in such a way that the strings in the catalog do not get changed between 4.4 CX and 4.4 CAS but does not crash the OS, which does not happen when installing from the computer.

Third, I was suggesting a feature where ControlX is manually programed with the flash address where the upgrade files tell the calculator to write the OS and check there to find details about the operating system and then based on that select the 7/8/9 options for you, a feature that does not appear to be included in the public 4.4.5 beta.

Lastly, although I did not mention this before, the 4.4 external cas patch appears to crash or cause the CX OS to become unresponsive (for me at least) which makes sense, but it would be nice if it didn't load the patches when it detected a CX OS so you do not have to constantly move it in and out of the startup folder in ndless when you want to change the OS.
Avatar de l’utilisateur
geekpersonman
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Prochain niv.: 34.4%
 
Messages: 39
Inscription: 21 Aoû 2015, 02:45
Genre: Homme
Calculatrice(s):

En ligne

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude critor » 20 Avr 2017, 17:22

geekpersonman a écrit:Sorry, I should clarify.
There appears to be an issue with the separate cas patcher that that either incorrectly patches or does not patch the regression functions and causes it to reboot.

Ok, I undestand the 4.4 external CAS patcher is not perfect. Thanks for the report. :)

geekpersonman a écrit:A separate issue I have found seems to be related to Nswitch OS where it upgrades the os in such a way that the strings in the catalog do not get changed between 4.4 CX and 4.4 CAS but does not crash the OS, which does not happen when installing from the computer.

Yes, I've understood why. Thanks for the bug report - I'll try to fix it as soon as possible. :)

geekpersonman a écrit:Third, I was suggesting a feature where ControlX is manually programed with the flash address where the upgrade files tell the calculator to write the OS and check there to find details about the operating system and then based on that select the 7/8/9 options for you, a feature that does not appear to be included in the public 4.4.5 beta.

Quite hard / impossible.
ControlX is running in the Boot1 context, and thus has no filesystem access.
So it has no way to check the /phoenix/install/TI-Nspire.tnc file header - it only has raw access to the filesystem partition.
The filesystem drivers will be loaded later, in the Boot2 context.

geekpersonman a écrit:Lastly, although I did not mention this before, the 4.4 external cas patch appears to crash or cause the CX OS to become unresponsive (for me at least) which makes sense, but it would be nice if it didn't load the patches when it detected a CX OS so you do not have to constantly move it in and out of the startup folder in ndless when you want to change the OS.

Yes, it would be nice if some OS version check could be added to the external CAS patcher.
If your calculator is using hardware revision A-R, you may install and use the 3.6 CAS OS.
It doesn't need an external CAS patcher and thus is directly going to be fully working. :)
Image
Avatar de l’utilisateur
critorAdmin.
Niveau 18: DC (Deus ex Calculatorum)
Niveau 18: DC (Deus ex Calculatorum)
Prochain niv.: 52.7%
 
Messages: 25855
Images: 5813
Inscription: 25 Oct 2008, 01:00
Localisation: Aix-Marseille
Genre: Homme
Calculatrice(s):
Classe: Lycée
youtube: critor3000
twitter: critor2000
facebook: critor.ti

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude geekpersonman » 20 Avr 2017, 17:38

critor a écrit:
geekpersonman a écrit:Third, I was suggesting a feature where ControlX is manually programed with the flash address where the upgrade files tell the calculator to write the OS and check there to find details about the operating system and then based on that select the 7/8/9 options for you, a feature that does not appear to be included in the public 4.4.5 beta.

Quite hard / impossible.
ControlX is running in the Boot1 context, and thus has no filesystem access.
So it has no way to check the /phoenix/install/TI-Nspire.tnc file header - it only has raw access to the filesystem partition.
The filesystem drivers will be loaded later, in the Boot2 context.

So could a piece of software be launched by controlX in to the boot2 context for the purpose of getting this info, put it in a specific memory address, then hand back control to controlX to load the patches?
critor a écrit:
geekpersonman a écrit:Lastly, although I did not mention this before, the 4.4 external cas patch appears to crash or cause the CX OS to become unresponsive (for me at least) which makes sense, but it would be nice if it didn't load the patches when it detected a CX OS so you do not have to constantly move it in and out of the startup folder in ndless when you want to change the OS.

Yes, it would be nice if some OS version check could be added to the external CAS patcher.
If your calculator is using hardware revision A-R, you may install and use the 3.6 CAS OS.
It doesn't need an external CAS patcher and thus is directly going to be fully working. :)

I have a HW-T, but tried anyway loading 3.6 by buying a usb battery bank, but i was too paranoid about it somehow breaking and switched to 4.4 when I found out a patcher had come out for it. :/
Avatar de l’utilisateur
geekpersonman
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Prochain niv.: 34.4%
 
Messages: 39
Inscription: 21 Aoû 2015, 02:45
Genre: Homme
Calculatrice(s):

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude parrotgeek1 » 20 Avr 2017, 22:24

critor a écrit:
geekpersonman a écrit:Sorry, I should clarify.
There appears to be an issue with the separate cas patcher that that either incorrectly patches or does not patch the regression functions and causes it to reboot.

Ok, I undestand the 4.4 external CAS patcher is not perfect. Thanks for the report. :)

geekpersonman a écrit:A separate issue I have found seems to be related to Nswitch OS where it upgrades the os in such a way that the strings in the catalog do not get changed between 4.4 CX and 4.4 CAS but does not crash the OS, which does not happen when installing from the computer.

Yes, I've understood why. Thanks for the bug report - I'll try to fix it as soon as possible. :)

geekpersonman a écrit:Third, I was suggesting a feature where ControlX is manually programed with the flash address where the upgrade files tell the calculator to write the OS and check there to find details about the operating system and then based on that select the 7/8/9 options for you, a feature that does not appear to be included in the public 4.4.5 beta.

Quite hard / impossible.
ControlX is running in the Boot1 context, and thus has no filesystem access.
So it has no way to check the /phoenix/install/TI-Nspire.tnc file header - it only has raw access to the filesystem partition.
The filesystem drivers will be loaded later, in the Boot2 context.

geekpersonman a écrit:Lastly, although I did not mention this before, the 4.4 external cas patch appears to crash or cause the CX OS to become unresponsive (for me at least) which makes sense, but it would be nice if it didn't load the patches when it detected a CX OS so you do not have to constantly move it in and out of the startup folder in ndless when you want to change the OS.

Yes, it would be nice if some OS version check could be added to the external CAS patcher.
If your calculator is using hardware revision A-R, you may install and use the 3.6 CAS OS.
It doesn't need an external CAS patcher and thus is directly going to be fully working. :)


This weekend, I will try to investigate the regression crash. I think it's missing some patches.

It is extremely easy to add version check to the patcher. It will just check the value of 0x10000020. If the value does not match it will show a red screen for 2 seconds and then continue boot without patching anything
Avatar de l’utilisateur
parrotgeek1
Niveau 10: GR (Guide de Référence)
Niveau 10: GR (Guide de Référence)
Prochain niv.: 4.5%
 
Messages: 314
Inscription: 29 Mar 2016, 02:22
Genre: Homme
Calculatrice(s):
Classe: 1st year university student
twitter: parrotgeek1

En ligne

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude critor » 21 Avr 2017, 00:47

geekpersonman a écrit:
critor a écrit:
geekpersonman a écrit:Third, I was suggesting a feature where ControlX is manually programed with the flash address where the upgrade files tell the calculator to write the OS and check there to find details about the operating system and then based on that select the 7/8/9 options for you, a feature that does not appear to be included in the public 4.4.5 beta.

Quite hard / impossible.
ControlX is running in the Boot1 context, and thus has no filesystem access.
So it has no way to check the /phoenix/install/TI-Nspire.tnc file header - it only has raw access to the filesystem partition.
The filesystem drivers will be loaded later, in the Boot2 context.

So could a piece of software be launched by controlX in to the boot2 context for the purpose of getting this info, put it in a specific memory address, then hand back control to controlX to load the patches?

The 7/8/9 choice is not only used to patch the OS, but also to patch the Boot2, since the Boot2 is going to reject/erase any OS you're not supposed to be using.
So removing the 7/8/9 choice is far from being trivial.

I'd even say it can't be removed, as I can't see how it could work when your calculator has no OS.

Also, the filesystem OS image is compressed and encrypted.
So checking the value at offset 0x20 is going to require probably too huge code...
Image
Avatar de l’utilisateur
critorAdmin.
Niveau 18: DC (Deus ex Calculatorum)
Niveau 18: DC (Deus ex Calculatorum)
Prochain niv.: 52.7%
 
Messages: 25855
Images: 5813
Inscription: 25 Oct 2008, 01:00
Localisation: Aix-Marseille
Genre: Homme
Calculatrice(s):
Classe: Lycée
youtube: critor3000
twitter: critor2000
facebook: critor.ti

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude parrotgeek1 » 22 Avr 2017, 01:04

critor a écrit:
geekpersonman a écrit:
critor a écrit:
geekpersonman a écrit:Third, I was suggesting a feature where ControlX is manually programed with the flash address where the upgrade files tell the calculator to write the OS and check there to find details about the operating system and then based on that select the 7/8/9 options for you, a feature that does not appear to be included in the public 4.4.5 beta.

Quite hard / impossible.
ControlX is running in the Boot1 context, and thus has no filesystem access.
So it has no way to check the /phoenix/install/TI-Nspire.tnc file header - it only has raw access to the filesystem partition.
The filesystem drivers will be loaded later, in the Boot2 context.

So could a piece of software be launched by controlX in to the boot2 context for the purpose of getting this info, put it in a specific memory address, then hand back control to controlX to load the patches?

The 7/8/9 choice is not only used to patch the OS, but also to patch the Boot2, since the Boot2 is going to reject/erase any OS you're not supposed to be using.
So removing the 7/8/9 choice is far from being trivial.

I'd even say it can't be removed, as I can't see how it could work when your calculator has no OS.

Also, the filesystem OS image is compressed and encrypted.
So checking the value at offset 0x20 is going to require probably too huge code...


I figured out why it couldn't find some patches!

objdump disassembles "r10" register as its alternate name "sl"
so my code wasn't seeing things like ldr sl, #900a0000
Avatar de l’utilisateur
parrotgeek1
Niveau 10: GR (Guide de Référence)
Niveau 10: GR (Guide de Référence)
Prochain niv.: 4.5%
 
Messages: 314
Inscription: 29 Mar 2016, 02:22
Genre: Homme
Calculatrice(s):
Classe: 1st year university student
twitter: parrotgeek1

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude geekpersonman » 22 Avr 2017, 01:34

Great news, when can we expect update fixing it?
Avatar de l’utilisateur
geekpersonman
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Prochain niv.: 34.4%
 
Messages: 39
Inscription: 21 Aoû 2015, 02:45
Genre: Homme
Calculatrice(s):

Re: [Tuto] [EN/FR] Install/Installer nBoot + ControlX (+Linu

Message non lude parrotgeek1 » 22 Avr 2017, 02:06

geekpersonman a écrit:Great news, when can we expect update fixing it?

now
on the same github link

BUT i havent added the detection of the right OS yet
I'll do it soon

can anyone write me some code which turns the entire screen red and then uses arm timer to wait 2 seconds

critor?
Avatar de l’utilisateur
parrotgeek1
Niveau 10: GR (Guide de Référence)
Niveau 10: GR (Guide de Référence)
Prochain niv.: 4.5%
 
Messages: 314
Inscription: 29 Mar 2016, 02:22
Genre: Homme
Calculatrice(s):
Classe: 1st year university student
twitter: parrotgeek1

PrécédenteSuivante

Retourner vers Tutoriaux

Qui est en ligne

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

-
Rechercher
-
Sujets à la une
Offre TI-Planet/Jarrety pour avoir la TI-83 Premium CE avec son chargeur pour 79,79€ port inclus !
Offre TI-Planet/Jarrety pour avoir la TI-Nspire CX CAS à seulement 130€ TTC port inclus!
Jailbreake ta TI-Nspire avec Ndless et profite des meilleurs jeux et applications !
Transforme ta TI-Nspire CX en console Game Boy Advance!
1234
-
Donations/Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
PayPal : paiement en ligne sécurisé - secure online payments
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 
-
Stats.
316 utilisateurs:
>262 invités
>47 membres
>7 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)