π
<-
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):
MyCalcs profile

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.
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...)
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 80.1%
 
Posts: 14606
Images: 1216
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
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):
MyCalcs profile

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: 11.2%
 
Posts: 6859
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
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 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 1.6%
 
Posts: 217
Joined: 29 Mar 2014, 15:55
Gender: Male
Calculator(s):
MyCalcs profile

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):
MyCalcs profile

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 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 1.6%
 
Posts: 217
Joined: 29 Mar 2014, 15:55
Gender: Male
Calculator(s):
MyCalcs profile

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):
MyCalcs profile

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):
MyCalcs profile

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 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 1.6%
 
Posts: 217
Joined: 29 Mar 2014, 15:55
Gender: Male
Calculator(s):
MyCalcs profile

Next

Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: No registered users and 11 guests

-
Search
-
Social TI-Planet
-
Featured topics
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
-
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.
989 utilisateurs:
>964 invités
>20 membres
>5 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)