π
<-
Chat plein-écran
[^]

Linux on CX II CAS Status

C, C++, ASM...

Re: Linux on CX II CAS Status

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

Re: Linux on CX II CAS Status

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

Re: Linux on CX II CAS Status

Unread postby technogeek48 » 18 Apr 2021, 20:07

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

Re: Linux on CX II CAS Status

Unread postby technogeek48 » 26 Apr 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.
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):

Previous

Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: No registered users and 5 guests

-
Search
-
Social
-
Featured topics
Concours de rentrée 2021 - La Geste d'Alrys
Concours de rentrée 2021 - Synchro-donjon !
Comparaisons des meilleurs prix pour acheter sa calculatrice !
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.
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.
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.
12345678
-
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.
583 utilisateurs:
>564 invités
>13 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)