π
<-
Chat plein-écran
[^]

Linux on CX II CAS Status

C, C++, ASM...

Linux on CX II CAS Status

Unread postby technogeek48 » 16 Apr 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 ?
User avatar
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 66.7%
 
Posts: 9
Joined: 16 Apr 2021, 05:14
Gender: Not specified
Calculator(s):

Re: Linux on CX II CAS Status

Unread postby Adriweb » 16 Apr 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.
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 57.9%
 
Posts: 13452
Images: 1101
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
Class: (ingénieur)
Twitter: adriweb
GitHub: adriweb

Re: Linux on CX II CAS Status

Unread postby technogeek48 » 16 Apr 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 ?
User avatar
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 66.7%
 
Posts: 9
Joined: 16 Apr 2021, 05:14
Gender: Not specified
Calculator(s):

Re: Linux on CX II CAS Status

Unread postby Lionel Debroux » 16 Apr 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.
User avatar
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 9.4%
 
Posts: 6712
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
Class: -
GitHub: debrouxl

Re: Linux on CX II CAS Status

Unread postby Vogtinator » 17 Apr 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.
User avatar
VogtinatorPremium
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Level up: 77.3%
 
Posts: 185
Joined: 29 Mar 2014, 15:55
Gender: Male
Calculator(s):

Re: Linux on CX II CAS Status

Unread postby technogeek48 » 17 Apr 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 ?
User avatar
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 66.7%
 
Posts: 9
Joined: 16 Apr 2021, 05:14
Gender: Not specified
Calculator(s):

Re: Linux on CX II CAS Status

Unread postby Vogtinator » 17 Apr 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
User avatar
VogtinatorPremium
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Level up: 77.3%
 
Posts: 185
Joined: 29 Mar 2014, 15:55
Gender: Male
Calculator(s):

Re: Linux on CX II CAS Status

Unread postby technogeek48 » 17 Apr 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)
User avatar
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 66.7%
 
Posts: 9
Joined: 16 Apr 2021, 05:14
Gender: Not specified
Calculator(s):

Re: Linux on CX II CAS Status

Unread postby technogeek48 » 17 Apr 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.
User avatar
technogeek48
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 66.7%
 
Posts: 9
Joined: 16 Apr 2021, 05:14
Gender: Not specified
Calculator(s):

Re: Linux on CX II CAS Status

Unread postby Vogtinator » 18 Apr 2021, 11:43

technogeek48 wrote: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/.
User avatar
VogtinatorPremium
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Level up: 77.3%
 
Posts: 185
Joined: 29 Mar 2014, 15:55
Gender: Male
Calculator(s):

Next

Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: No registered users and 4 guests

-
Search
-
Social
-
Featured topics
Coque communautaire NumWorks spéciale à gagner!
Coque communautaire NumWorks spéciale à gagner!
Remplace ton ancienne fx-92 Collège ou Graph 35 par la Graph 90+E couleur. Pour tout achat, Casio te rembourse 10€ en cas de retour de ta fx-92 Collège, ou 15€ en cas de retour de ta Graph 35. Etiquette de retour fournie, pas de frais de port à payer, même les anciens modèles et machines non fonctionnelles sont acceptées. En partenariat avec les Restos du coeur.
10€ remboursés par Casio sur l'achat de ta calculatrice Graph 35 d'ici le 30 Septembre 2021
Reprise de ton ancienne fx-92 Collège à 5€ ou Graph 35 à 10€. Même non fonctionnelle ou ancien modèle. Etiquette de retour fournie, pas de frais de port à payer. En partenariat avec les Restos du coeur.
Comparaisons des meilleurs prix pour acheter sa calculatrice !
25€ remboursés par Casio sur l'achat de ta calculatrice fx-CP400 d'ici le 31 Octobre 2021
3€ remboursés par Casio sur l'achat de ta calculatrice fx-92 Collège d'ici le 30 Septembre 2021
Découvre les nouvelles fonctionnalités en Python de l'OS 5.5 pour la 83PCE/84+C-T Python Edition
Découvre les nouvelles fonctionnalités en Python de l'OS 5.2 pour les Nspire CX II
Omega, le fork étendant les capacités de ta NumWorks, même en mode examen !
1234567891011
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
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.
474 utilisateurs:
>458 invités
>10 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)