π
<-
Chat plein-écran
[^]

Screen Issues and more-linux Ti Nspire CX revision Y

:32tins: :32tinsktpb: :32tinsktpn: :32tinscas: :32tinstpkc: :32tinstpktpb: :32tinstp: :32tinscastp: :32tinscmc: :32tinscx: :32tinscxcas:

Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude SuperXX » 27 Sep 2021, 19:55

Recently I embarked in a journey to try to run Linux on my calculator, because it was always something that I wanted to do, but I´m having some problems that in their majority are screen related problems.

First of, the thing I´m trying to run is Arch Linux described in this omnimaga article: (https://www.omnimaga.org/ti-nspire-projects/ti-nspire-cx-linux-adventures-(arch-linux-with-x11-internet-audio)/), with the difference being that I´m only running the calculator with a USB OTG and a Y splitter both connected to a power bank and to the PEN Drive on my revision Y calculator with OS 4.5

Now, because this article isn´t really a tutorial. I came across various posts to see how I could make this work, but everytime I tried and the linuxloader would try to load Arch Linux from the Drive, this would happen:

Image

Because of that I also tried to watch for a newer release of linuxloader and the dtb for the CXII and try to run it again, but still nothing.

Then, to test if it was my mistake, I tried the same files I was using on my calculator with the dtb for the CXII on my friend´s Ti Nspire CX II-T and here it is working as I would expect:

Image

But you can see it´s giving an error saying: "---I end Hernel panic not Syncina: VFS: Unable to mount root is en unknown-block(0,0)", which I don´t know what went wrong, but if anybody knows how to solve it, it would also be great to get this to work in friend´s calculator at least.

The thing here is, no meter what I try to do, linux doesn´t seem to run in my calculator for some reason. I also thinked that it could be because of the Y splitter not giving enough power and something, but in my friend´s calculator I was only using the OTG Cable.

Additional:Also tried to run nLoader with the files that can be found here: https://github.com/ndless-nspire/Ndless/issues/282#issuecomment-829606820, but the screen is just infinitely black or becomes white as you can see in the last post that I did in this issue but didn´t comment further because I needed to do more testing and the Y splitter.

Edit:Screenshot of the files in the Linux folder in my calculator

Image
Avatar de l’utilisateur
SuperXX
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 43.8%
 
Messages: 66
Inscription: 15 Mai 2021, 10:25
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude Vogtinator » 27 Sep 2021, 21:00

Where did you get each of those files from? How exactly does it look like when linux starts? When the "pixel mess" appears initially, is there change of some kind for a second until it stops or is it completely static?

It's possible that the USB constellation triggers a crash or other fatal error in the Linux kernel. If so, simply removing the USB stuff from the device tree would be enough to get it to boot.

If stripping down the DTB to the bare minimum doesn't help, then only a serial connection can provide a clue.
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: Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude SuperXX » 27 Sep 2021, 21:43

Vogtinator a écrit:Where did you get each of those files from?


List:
linuxloader2: https://tiplanet.org/nspire-linux-builds/linuxloader2.tns
dtb´s (both the cx normal and the cxII) and zImage:https://github.com/tangrs/nspire-linux-loader2/issues/7#issuecomment-840887756
start_initrd.tns:https://tiplanet.org/nspire-linux-builds/start_initrd.ll2.tns
start_usb.ll2.tns:https://files.ivoah.net/start_usb.ll2.tns found in this article (https://ivoah.net/blog/2016/03/20/how-to-install-debian-on-a-ti-nspire/)

The initrd.tns I can´t remember where did I get it, but I´m attaching it to the post.

Vogtinator a écrit:How exactly does it look like when linux starts?


First when I open "start_usb.lls.tns" this screen starts to load until all this text appears:

Image

And then, when it leaves the screen, it goes to the other screen in that screenshot above.

Vogtinator a écrit: When the "pixel mess" appears initially, is there change of some kind for a second until it stops or is it completely static?


No, to describe it better, that white screen appears and immediately after that, it goes to the "glitchy" screen

Vogtinator a écrit:It's possible that the USB constellation triggers a crash or other fatal error in the Linux kernel. If so, simply removing the USB stuff from the device tree would be enough to get it to boot.

If stripping down the DTB to the bare minimum doesn't help, then only a serial connection can provide a clue.


Ok, I definitely don´t know how to remove the USB device tree from the .dtb though. And about the "serial connection" is it the USB-TTL adapter?
Fichiers joints
initrd.tns
(2.23 Mio) Téléchargé 231 fois
Avatar de l’utilisateur
SuperXX
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 43.8%
 
Messages: 66
Inscription: 15 Mai 2021, 10:25
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude Vogtinator » 28 Sep 2021, 17:56

The DTB is configured to provide a USB device configuration, so the way to use that is by attaching the calculator to a USB host (PC).

The start_usb.ll2.tns script expects a USB host configuration instead, to be able to attach a USB drive to the calc.

USB host mode on CX II is not tested yet and would need some changes in the DTB at least.

Actually, I just gave it a try and with just minimal DTB changes and the kernel module built-in, it doesn't work with my test device here.

So for the time being you'll have to either use the initrd instead of USB storage or use the virtual ethernet adapter and boot from network storage (NFS, CIFS).

I attached a DTB with usb controllers disabled.

And about the "serial connection" is it the USB-TTL adapter?


You'd have to connect a wire to a specific pin on the dock connector, there are some posts about that here in the forum.
Fichiers joints
nspire-cx2-nousb.dtb
(4.49 Kio) Téléchargé 242 fois
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: Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude SuperXX » 29 Sep 2021, 19:46

The DTB is configured to provide a USB device configuration, so the way to use that is by attaching the calculator to a USB host (PC).

The start_usb.ll2.tns script expects a USB host configuration instead, to be able to attach a USB drive to the calc.

USB host mode on CX II is not tested yet and would need some changes in the DTB at least.

Actually, I just gave it a try and with just minimal DTB changes and the kernel module built-in, it doesn't work with my test device here.

So for the time being you'll have to either use the initrd instead of USB storage


So here are the results of trying to boot from initrd:

First of, for the Ti Nspire CX the same glitchy screen issue persists and it even happens with firebird emu, which I, of course, used the same .img´s my calculator uses.

Image

I even tried disabling in setting the debugger to open automatically when an error occurs, but the serial monitor had the same output.

Image

Of course I remembered to test this because it might help you without me having to do the tedious process of making the serial connection to work, but still if it´s really necessary, I´ll probably take a look next weekend.

As an attachment, the full .txt of the serial monitor output will be there.

Now about my friend´s CX II?
Well I used the initrd I was using and used that .dtb you linked, and I actually realised the the busybox configbuild from here: https://tiplanet.org/nspire-linux-builds/initrd.tns and it seemed to work actually:

Here are the commands I used in linux loader:
Code: Tout sélectionner
kernel linux/zImage.tns
dtb linux/nspire.dtb.tns
initrd linux/initrd.tns
cmdline root=/dev/ram
boot


And here is a result screenshot of the result:

Image

(P.S. I don´t really know how busybox works)

Now, to add up, I don´t know how to make initrd´s with costum linux builds, I actually tried grabbing a .tar.gz image and put .tns extension but of course it gave an error on my friend´s calculator (the same as the USB one)

or use the virtual ethernet adapter and boot from network storage (NFS, CIFS).

Now, that seems pretty complicated, for now I´ll not focus on that, but if I see it´s worth to make a more robust ditro to run in my calculator, I´ll try to do that in the future.

You'd have to connect a wire to a specific pin on the dock connector, there are some posts about that here in the forum.


Oh yes, I actually bricked my calculator once, it was not a nice experience.
Fichiers joints
serialmonitoroutput.txt
(28.81 Kio) Téléchargé 226 fois
Avatar de l’utilisateur
SuperXX
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 43.8%
 
Messages: 66
Inscription: 15 Mai 2021, 10:25
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude Vogtinator » 29 Sep 2021, 22:36

For some reason I thought that your calc was also a CX II, which is why I suggested to try a CX II DTB with USB disabled. Your calc is a CX (I) though, where USB host mode should actually work (at least it did in the past). USB initialization should also happen later than the console initialization.

The great news is that you were able to reproduce the issue within firebird, that makes debugging much much easier! The "Warning: Bad read_word: 90140020" means that you're using a DTB for the CX II, which is not quite compatible. At least here (OS 4.2 HW-W in FB) it still gets to the console even with the wrong DTB though. I tested with the various files downloaded from the locations you mentioned, so the setup should be fairly close.

Another difference I can spot is that for some reason linuxloader2 does not print the commands it's executing to the serial console. It should look like this:

Code: Tout sélectionner
Serial number: 00 rev1 (CAS)
kernel linux/zImage.tns
Kernel successfully loaded
initrd linux/initrd.tns
Initrd successfully loaded
dtb linux/dtb.tns
DTB successfully loaded
boot
I don't understand how that can happen, but the commands appear to run successfully, so it might be a red herring.

What you can try next to get some output from the kernel in firebird is to use

Code: Tout sélectionner
cmdline root=/dev/ram debug earlycon=pl011,0x90020000
in the ll2 script.

On your CX (I), did you edit start_initrd.ll2.tns to use the correct path to the DTB file? By default it uses dtb.tns as filename, not nspire-cx.dtb.tns. Having no DTB or a broken one would explain the boot failure.

I should also mention that even when the kernel boots fully and the console is visible, the generic nspire-cx.dtb does not contain the matching information for the LCD of HW-W+ calcs, so it'll be distorted and look a bit like "snow" on the black background. Should be clearly distinguishable from the random color bars though.
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: Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude SuperXX » 30 Sep 2021, 12:59

Vogtinator a écrit:For some reason I thought that your calc was also a CX II, which is why I suggested to try a CX II DTB with USB disabled. Your calc is a CX (I) though, where USB host mode should actually work (at least it did in the past). USB initialization should also happen later than the console initialization.


No problem, that explains why I wasn´t really understanding what were you saying at first and I started to think that the USB has direct impact with screen issues. Nevermind, but at least thank you for the explanation for the CX II.

The great news is that you were able to reproduce the issue within firebird, that makes debugging much much easier! The "Warning: Bad read_word: 90140020" means that you're using a DTB for the CX II, which is not quite compatible. At least here (OS 4.2 HW-W in FB) it still gets to the console even with the wrong DTB though. I tested with the various files downloaded from the locations you mentioned, so the setup should be fairly close.


Actually any .dtb targeted for the nspire cx also gives the problem, that why I searched for HW-W screen issues, because I already knew that the screen from HW-W was different then the HW-Y and anything above W and found this issue (https://github.com/tangrs/nspire-linux-loader2/issues/7#issuecomment-840887756) which I downloaded the archive.zip and tried the nspire-cx.dtb and the nspire-cxII.dtb but they both have the same outcome and other nspire-cx.dtb I tested gave it too like this one: https://tiplanet.org/nspire-linux-builds/devicetree/nspire-cx.dtb

Another difference I can spot is that for some reason linuxloader2 does not print the commands it's executing to the serial console. It should look like this:

That I know why, I opened linuxloader and inserted the commands manually. For some reason my start_initrd.tns does this:

Image

Which really doesn´t make sense, because if I manually execute them it works. But ok, for now I´ll ignore this.

What you can try next to get some output from the kernel in firebird is to use

CODE JAVASCRIPT : SELECT ALL
cmdline root=/dev/ram debug earlycon=pl011,0x90020000
in the ll2 script.


Ok so now the screen gets black but the debugger as more info, I´ll leave the .txt´s as an attachment

Image

On your CX (I), did you edit start_initrd.ll2.tns to use the correct path to the DTB file? By default it uses dtb.tns as filename, not nspire-cx.dtb.tns. Having no DTB or a broken one would explain the boot failure.

I´ve edited the name of the file to nspre-cx.dtb.tns and it´s in the linux folder, so I think it´s ok. And it says it loaded the .dtb so I think it´s working

I should also mention that even when the kernel boots fully and the console is visible, the generic nspire-cx.dtb does not contain the matching information for the LCD of HW-W+ calcs, so it'll be distorted and look a bit like "snow" on the black background. Should be clearly distinguishable from the random color bars though.


Uhm, so where can I find a .dtb for my calculator? All of them just say nspire-cx.dtb and all of the ones I tested didn´t worked.

And thank you once more for your help of course.
Fichiers joints
serialmonitoroutput2.txt
(15.45 Kio) Téléchargé 221 fois
debugger.txt
(4.7 Kio) Téléchargé 214 fois
Avatar de l’utilisateur
SuperXX
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 43.8%
 
Messages: 66
Inscription: 15 Mai 2021, 10:25
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude Vogtinator » 30 Sep 2021, 17:40

SuperXX a écrit:
Vogtinator a écrit:For some reason I thought that your calc was also a CX II, which is why I suggested to try a CX II DTB with USB disabled. Your calc is a CX (I) though, where USB host mode should actually work (at least it did in the past). USB initialization should also happen later than the console initialization.


No problem, that explains why I wasn´t really understanding what were you saying at first and I started to think that the USB has direct impact with screen issues.

Which is somewhat true - USB can cause issues during boot. Normally an error message is visible though.

Nevermind, but at least thank you for the explanation for the CX II.

The great news is that you were able to reproduce the issue within firebird, that makes debugging much much easier! The "Warning: Bad read_word: 90140020" means that you're using a DTB for the CX II, which is not quite compatible. At least here (OS 4.2 HW-W in FB) it still gets to the console even with the wrong DTB though. I tested with the various files downloaded from the locations you mentioned, so the setup should be fairly close.


Actually any .dtb targeted for the nspire cx also gives the problem, that why I searched for HW-W screen issues, because I already knew that the screen from HW-W was different then the HW-Y and anything above W and found this issue (https://github.com/tangrs/nspire-linux-loader2/issues/7#issuecomment-840887756) which I downloaded the archive.zip and tried the nspire-cx.dtb and the nspire-cxII.dtb but they both have the same outcome and other nspire-cx.dtb I tested gave it too like this one: https://tiplanet.org/nspire-linux-builds/devicetree/nspire-cx.dtb

Another difference I can spot is that for some reason linuxloader2 does not print the commands it's executing to the serial console. It should look like this:

That I know why, I opened linuxloader and inserted the commands manually. For some reason my start_initrd.tns does this:

Ah, ok.

Image

Which really doesn´t make sense, because if I manually execute them it works. But ok, for now I´ll ignore this.
That happens when using a Windows editor to edit text files. Those use incompatible line endings (CRLF instead of just LF). Try using an editor which supports "Unix" line endings.

What you can try next to get some output from the kernel in firebird is to use

CODE JAVASCRIPT : SELECT ALL
cmdline root=/dev/ram debug earlycon=pl011,0x90020000
in the ll2 script.


Ok so now the screen gets black but the debugger as more info, I´ll leave the .txt´s as an attachment

Image


Those messages mean that it actually booted until the login prompt! There should be more on the serial console, but you can try cmdline root=/dev/ram debug console=tty0 anyway.

On your CX (I), did you edit start_initrd.ll2.tns to use the correct path to the DTB file? By default it uses dtb.tns as filename, not nspire-cx.dtb.tns. Having no DTB or a broken one would explain the boot failure.

I´ve edited the name of the file to nspre-cx.dtb.tns and it´s in the linux folder, so I think it´s ok. And it says it loaded the .dtb so I think it´s working
Sounds good.

I should also mention that even when the kernel boots fully and the console is visible, the generic nspire-cx.dtb does not contain the matching information for the LCD of HW-W+ calcs, so it'll be distorted and look a bit like "snow" on the black background. Should be clearly distinguishable from the random color bars though.


Uhm, so where can I find a .dtb for my calculator? All of them just say nspire-cx.dtb and all of the ones I tested didn´t worked.

And thank you once more for your help of course.
IIRC I saw one floating around at some point, but no idea where that was. It's basically just copying the LCD section from the CX II DT into the CX one and adjusting the rotation. For now let's try to get it to boot at all first...
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: Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude SuperXX » 30 Sep 2021, 19:44

That happens when using a Windows editor to edit text files. Those use incompatible line endings (CRLF instead of just LF). Try using an editor which supports "Unix" line endings.


I was using Notepad++ so that explains it. Now I created with Ubuntu and it´s working

Those messages mean that it actually booted until the login prompt! There should be more on the serial console, but you can try cmdline root=/dev/ram debug console=tty0 anyway.


Ok, I did that but the output in serial console and debugger seems to be the same as last time. (Except now it printed the commands because start_initrd is working)

I´m sending them as attachments as always.

IIRC I saw one floating around at some point, but no idea where that was. It's basically just copying the LCD section from the CX II DT into the CX one and adjusting the rotation. For now let's try to get it to boot at all first...


Ok. Let´s see what happens then.
Fichiers joints
debugger2.txt
(3.45 Kio) Téléchargé 230 fois
serialmonitoroutput3.txt
(8.98 Kio) Téléchargé 217 fois
Avatar de l’utilisateur
SuperXX
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 43.8%
 
Messages: 66
Inscription: 15 Mai 2021, 10:25
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Screen Issues and more-linux Ti Nspire CX revision Y

Message non lude Vogtinator » 30 Sep 2021, 20:29

Ok, I did that but the output in serial console and debugger seems to be the same as last time. (Except now it printed the commands because start_initrd is working)


Does it behave the same on hardware?

If so, it's unlikely to be something specific to HW or emulation. It's more likely to be something they have in common, like a setup issue (corrupted files, typo somewhere) or other shared properties. I assume you dumped boot1 and manuf from your calc and used that to set up firebird? Can you set up a new flash image without specifying a manuf (HW-W as subtype) and try with that?
There might be a difference between HW-W and HW-Y in the manuf which breaks it.

Which version of Firebird are you using? You could also try to boot linux with the JIT disabled, by entering "t-" and "c" as debugger commands before running the script.
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 Problèmes divers / Aide débutants

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 43 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.
2630 utilisateurs:
>2620 invités
>5 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)