π
<-
Chat plein-écran
[^]

Linux on CX II CAS Status

C, C++, ASM...

Re: Linux on CX II CAS Status

Message non lude technogeek48 » 18 Avr 2021, 16:23

Hmmm, linux-loader2 compiled with the latest toolchain doesn't seem to be able to work with the filesystem.
The one you posted and the one I just compiled behave the same, I'm debugging it now.

https://github.com/tangrs/nspire-linux-loader2/blob/ca31ca096bea419b687d6d46ec31e6e67a61b7aa/load.c#L37
kenel doesn't exist or is empty
https://github.com/tangrs/nspire-linux-loader2/blob/ca31ca096bea419b687d6d46ec31e6e67a61b7aa/load.c#L127
failed to open dtb image
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):

Re: Linux on CX II CAS Status

Message non lude Vogtinator » 18 Avr 2021, 16:31

Maybe the paths in your .ll2 script are wrong? Try using paths relative to the virtual filesystem root, e.g. ndless/ndless_resources.tns.
Avatar de l’utilisateur
VogtinatorPremium
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Prochain niv.: 86.7%
 
Messages: 196
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):

Re: Linux on CX II CAS Status

Message non lude technogeek48 » 18 Avr 2021, 16:36

Indeed I just tried that, same thing. Weird
(initially everything was in the linux/ folder but I moved everything to the root)

example .ll2.tns :
Code: Tout sélectionner
kernel linux/ndlessKernel.tns
initrd linux/newinitrd.tns
cmdline root=/dev/ram
dtb linux/nspire-cx2.dtb.tns
boot


EDIT: can load each component manually via the commands and not ll2 script but i get a new error : Failed to create 'chosen' node! (it can't update the command line)
https://github.com/tangrs/nspire-linux-loader2/blob/ca31ca096bea419b687d6d46ec31e6e67a61b7aa/fdt.c#L37

Image

EDIT 2: Ok it boots if all commands are done manually and no kernel command line is specified. LCD is now working! But now keypad is broken or initrd is not loaded properly
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):

Re: Linux on CX II CAS Status

Message non lude Vogtinator » 18 Avr 2021, 19:45

That took a while to track down. It only happens when the "dump" command was used and the screen had to be scrolled between loading the dtb and "boot". That zeroed some random data, which was in the middle of the loaded dtb in this case. Fix is here: https://github.com/Vogtinator/nspire-io ... 01add4b3c9

I rebuilt linuxloader and replaced the uploaded version.
Avatar de l’utilisateur
VogtinatorPremium
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Prochain niv.: 86.7%
 
Messages: 196
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):

Re: Linux on CX II CAS Status

Message non lude technogeek48 » 18 Avr 2021, 20:07

Vogtinator a écrit:I rebuilt linuxloader and replaced the uploaded version.

Thanks for all your help!

That does indeed let me specify root=/dev/ram and lets me get to busybox!

There are still some issue with the bootloader : ll2 script loader is not working, since any file specified from a script fails to load (maybe something to do with the standard library and strings ?)

Edit : It might be a coincidence, but I think it will only boot if USB is plugged in ? Either that or it takes many attempts
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):

Re: Linux on CX II CAS Status

Message non lude Vogtinator » 26 Avr 2021, 16:59

> There are still some issue with the bootloader : ll2 script loader is not working, since any file specified from a script fails to load (maybe something to do with the standard library and strings ?)

I can't reproduce that issue here unfortunately. Do you use relative or absolute paths?

> Edit : It might be a coincidence, but I think it will only boot if USB is plugged in ? Either that or it takes many attempts

Last time I tried that it works. How does it fail when USB isn't plugged in?
Avatar de l’utilisateur
VogtinatorPremium
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Prochain niv.: 86.7%
 
Messages: 196
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):

Re: Linux on CX II CAS Status

Message non lude technogeek48 » 26 Avr 2021, 17:33

Absolute and relative were not working via ll2 afaik.

USB is probably a coincidence, sometimes the bootloader will hang after the boot command.

I will try to do some more testing soon.
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):

Précédente

Retourner vers Native: Ndless, Linux, ...

Qui est en ligne

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

-
Rechercher
-
Social
-
Sujets à la une
Concours de rentrée 2021 - La Geste d'Alrys
Concours de rentrée 2021 - Synchro-donjon !
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
Journées APMEP 2021 à l'IUT de Bourges les 24-25 Octobre. Viens rencontrer Casio, NumWorks, TI et Vittascience.
Coque NumWorks édition limitée Octobre 2021 à gagner.
123456
-
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.
506 utilisateurs:
>491 invités
>9 membres
>6 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)