π
<-
Chat plein-écran
[^]

Linux on CX II CAS Status

C, C++, ASM...

Linux on CX II CAS Status

Message non lude technogeek48 » 16 Avr 2021, 05:22

I have attempted to boot kernel and initrd from https://tiplanet.org/nspire_linux_builds/ using the CX device tree.

It does seem to be "kindof" working but the LCD content is garbled (see my post on GitHub : https://github.com/tangrs/nspire-linux- ... /issues/14)

I am wondering if we have the information for the LCD controller like for the CX II at https://hackspire.org/index.php?title=M ... controller

As far as I can tell, the LCD is PL111 which has not changed since CX1.

I am wondering what is the status of Linux on CXII(CAS) and what else is needed for support ?
Avatar de l’utilisateur
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Prochain niv.: 66.7%
 
Messages: 9
Inscription: 16 Avr 2021, 05:14
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Linux on CX II CAS Status

Message non lude Adriweb » 16 Avr 2021, 08:18

It's working just fine with patches :)
They are being upstreamed by Vogtinator, so I believe you can find them on the mailing list.
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.1%
 
Messages: 14606
Images: 1216
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: Linux on CX II CAS Status

Message non lude technogeek48 » 16 Avr 2021, 15:26

I have searched the mail archive and didn't find anything recent, but I will keep an eye on it.

Also wondering if there is any hardware difference between CX2 and CX2CAS ?
Avatar de l’utilisateur
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Prochain niv.: 66.7%
 
Messages: 9
Inscription: 16 Avr 2021, 05:14
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Linux on CX II CAS Status

Message non lude Lionel Debroux » 16 Avr 2021, 15:41

There are many differences between the CX I and CX II, but not between the CX I non-CAS and CX I CAS, and not the CX II non-CAS and the CX II CAS, AFAIK.
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: Linux on CX II CAS Status

Message non lude Vogtinator » 17 Avr 2021, 11:13

You can try with kernel and device tree from https://github.com/Vogtinator/linux, cxII-clean branch. Most USB fixes and the keypad IRQ fix landed upstream already, I didn't get around to submit the rest yet.

The commits relevant for the LCD are "drm/panel-simple: Add TI-Nspire CX II panel" and the device tree which makes use of the new panel type.
Avatar de l’utilisateur
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 1.6%
 
Messages: 217
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Linux on CX II CAS Status

Message non lude technogeek48 » 17 Avr 2021, 16:50

Oh nice! I didn't think to look at the branches on your fork.

I have compiled it a couple times now with .config from https://github.com/Vogtinator/nspire-li ... ree.config and various cross compilers. I'm also using the new nspire-cx2.dts . However it just hangs on the linuxloader2 screen with some display corruption appearing after a while. This is actually the same behavior as the mainline kernel I compiled yesterday.

Which compiler are you using and is there any different config options needed ?
Avatar de l’utilisateur
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Prochain niv.: 66.7%
 
Messages: 9
Inscription: 16 Avr 2021, 05:14
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Linux on CX II CAS Status

Message non lude Vogtinator » 17 Avr 2021, 17:01

Indeed, that config won't work. I put the config I'm using into a cxII branch: https://github.com/Vogtinator/nspire-li ... ean.config
Avatar de l’utilisateur
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 1.6%
 
Messages: 217
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Linux on CX II CAS Status

Message non lude technogeek48 » 17 Avr 2021, 17:29

Nice, that config boots! However, LCD is rotated and corrupted. I can also confirm that the keypad is working. I'm going to try to get a newer busybox next.
(screenshot : https://drive.google.com/file/d/1zHzOWE ... sp=sharing)
(edit: USB seems to work too)
(edit2: can successfully ping calculator over usb gadget cdc-eem)
Avatar de l’utilisateur
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Prochain niv.: 66.7%
 
Messages: 9
Inscription: 16 Avr 2021, 05:14
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Linux on CX II CAS Status

Message non lude technogeek48 » 17 Avr 2021, 21:16

Update: I compiled a small busybox userspace with buildroot and dropbear sshd, the system seems to be working fine except for LCD.

There is some drm related error in dmesg : https://gist.github.com/mj-sakellaropou ... 66c4d4f675

I have also noticed SPI address from hackspire wiki does not match device tree, although changing it does nothing.
Avatar de l’utilisateur
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Prochain niv.: 66.7%
 
Messages: 9
Inscription: 16 Avr 2021, 05:14
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Linux on CX II CAS Status

Message non lude Vogtinator » 18 Avr 2021, 11:43

technogeek48 a écrit:Update: I compiled a small busybox userspace with buildroot and dropbear sshd, the system seems to be working fine except for LCD.

There is some drm related error in dmesg : https://gist.github.com/mj-sakellaropou ... 66c4d4f675

I have also noticed SPI address from hackspire wiki does not match device tree, although changing it does nothing.

My suspicion is that you're using a prebuilt linuxloader2 which still triggers LCD compatibility mode. That isn't reset when linux boots and causes a conflict. It should work after rebuilding it with a recent version of the SDK.

I pushed a clean rebuild of the latest git version to https://tiplanet.org/nspire-linux-builds/.
Avatar de l’utilisateur
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 1.6%
 
Messages: 217
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):
MyCalcs profile

Suivante

Retourner vers Native: Ndless, Linux, ...

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 7 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.
984 utilisateurs:
>965 invités
>14 membres
>5 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)
cron