Author Topic: nspire Linux Questions  (Read 152772 times)

0 Members and 3 Guests are viewing this topic.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #420 on: April 11, 2013, 04:33:24 pm »
Quote
WEll Linux hangs without it.
If it hangs it's most linkely in the initrd already.
Could you wait for some more time (2 minutes)?
Smallconfig has ifconfig support and tries to setup the network devices.

Quote
that gives me a panic
Which we want to see.
Could you boot into the initrd again, mount the drive and execute "cd /mnt" "stat /mnt/bin/sh"?

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: nspire Linux Questions
« Reply #421 on: April 11, 2013, 04:42:11 pm »
-sh stat: not found

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #422 on: April 11, 2013, 04:44:44 pm »
ok, then "ls -l /mnt/bin/sh"
« Last Edit: April 12, 2013, 07:00:14 am by Vogtinator »

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: nspire Linux Questions
« Reply #423 on: April 11, 2013, 04:59:52 pm »
nspire wont get past the "gray" screen when booting the os, tried the reset button still now boot that worked. hm, lets try getting the battery out, thats weird it dos not turn off the screen. (stupid usb cable)

i will try that.

Edit
gives me:
lrwxrwxrwx 1 root root 4 jan 12 2013 /mnt/bin/sh -> bash
« Last Edit: April 11, 2013, 05:07:19 pm by floris497 »

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #424 on: April 11, 2013, 05:08:07 pm »
floris, hold Esc+Menu+Minus (-) on your Nspire and press reset. Then, wait for a white screen with text similar to Casio's large font text. Press reset now. Good as new. :)
Yeah I'm not getting anything going with USB...
Keep trying.

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: nspire Linux Questions
« Reply #425 on: April 11, 2013, 10:10:33 pm »
On a Touchpad non-CAS, I'm using the expanded kernel in linux/zImage.tns and I extracted the small busybox tar.bz2 to a ext4 flash drive. My bootscript is as follows.

kernel linux/zImage.tns
cmdline root=/dev/sda earlyprintk debug console=tty0 console=ttyAMA0,115200n8 rootdelay=10
boot

I get a kernel panic. What's messing it up? I appreciate any help. Thanks
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #426 on: April 12, 2013, 08:52:22 am »
Quote
On a Touchpad non-CAS
I can only help for CX calcs, I don't own one of the older ones.
But you could try /dev/sda1.
If it still doesn't work, try to mount it. If that works, I give up, sorry :-/

Quote
floris, hold Esc+Menu+Minus (-) on your Nspire and press reset. Then, wait for a white screen with text similar to Casio's large font text. Press reset now. Good as new.
I have to run the nand tests everytime

Quote
lrwxrwxrwx 1 root root 4 jan 12 2013 /mnt/bin/sh -> bash
That's exactly how it's supposed to be, no idea.

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: nspire Linux Questions
« Reply #427 on: April 12, 2013, 09:10:20 am »
If that works, I give up, sorry :-/
if it works you give up?
That's exactly how it's supposed to be, no idea.
perhaps I need to take an newer kernel.. but the one i'm using is not so old?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #428 on: April 12, 2013, 09:12:11 am »
Quote
if it works you give up?
If mounting works but booting doesn't I give up, yes.

Quote
perhaps I need to take an newer kernel.. but the one i'm using is not so old?
The latest kernel confirmed to boot from usb drives (tested by me) is nspire-linux-builds

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: nspire Linux Questions
« Reply #429 on: April 12, 2013, 09:31:27 am »
i can mount it manually but the stat command in not included..
« Last Edit: April 12, 2013, 09:31:39 am by floris497 »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #430 on: April 12, 2013, 09:32:59 am »
Yes, we tried "ls -l" instead.
It mounts, that's enough. But it doesn't on boot, which doesn't make any sense to me :(
« Last Edit: April 12, 2013, 09:33:06 am by Vogtinator »

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #431 on: April 12, 2013, 01:35:44 pm »
Well I know Linux well enough to diagnose my own problems. Of course, I know ARM well enough to say "hey, I know why this MAY not be working!" So when I had all these problems, I was furious...
I'm going to have to recommend that people trying to boot into a flash drive first configure the kernel to USE the USB. Different model calculators will obviously have differences. In my case, USB WILL NOT work without cx_usb_ogb as part of my cmdline arguments before boot. If you still have problems after asking for help like I have, research the cause of it. Use Linux to find out. I ended up learning that I had to upgrade my Kernel, use ext4 not ext2 as a filesystem, find a low power and simple Kingston flash drive, and boot into the initrd before finally running Linux on a flash drive... But it still didn't work. Solution?
Powered USB hub. That is what I'm hoping will work (It should arrive tomorrow...)...

Vog, I only had to run the NAND tests once. Oh, yes, DONT leave your flash drive in the calculator if it hangs and you have to reboot with reset... I observed my calculator at less than 1 Mhz. After all night, it booted. Then, I kept watching it and the screen, pixel by pixel, updated. So I found that a nuisance.

I had Linux running once with a Penguin at the top, but not since the first time I ran it.. Is this because it was my first run, or am I REALLY missing something that could solve all my problems?
Keep trying.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #432 on: April 12, 2013, 01:45:36 pm »
Quote
I had Linux running once with a Penguin at the top, but not since the first time I ran it.. Is this because it was my first run, or am I REALLY missing something that could solve all my problems?
I thought it occupies so much space on the tiny display so I removed it in the kernel .configs :-)

Quote
Oh, yes, DONT leave your flash drive in the calculator if it hangs and you have to reboot with reset... I observed my calculator at less than 1 Mhz. After all night, it booted. Then, I kept watching it and the screen, pixel by pixel, updated. So I found that a nuisance.
I keep my hub plugged in all day and never had any problems (if soft reboot).

Quote
In my case, USB WILL NOT work without cx_usb_ogb as part of my cmdline arguments before boot.
That's weird. I tested cx_use_otg and it was VERY slow (<100 kB/s) but I was able to connect it to my computer and usb hub without a reboot :-)
Without cx_use_otg it works fine the whole time, with speeds > 500 kB/s (which is still slow as hell but acceptable).
Maybe there are some compatibility problems with some usb devices? With cx_usb_org USB 2.0 devices work, without only USB 1.1.

We are currently working on a rewrite for device tree support (it boots, but without lcd), so maybe it works better with DT?

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #433 on: April 12, 2013, 01:49:40 pm »
I could test for you once my hub gets here. Hard, or cold, reboot (depending on where you're from) is what I did when my flash drive was unbelievably slow. I never waited long enough for the home menu to come up fully, but I could tell it was trying.
Well cx_use_otg is what it's called? Oh.. Oops.. I could try that now!
With it, I might have my problems solved. I don't mind it being slow, honestly. My dad can tell you of the days when compiling Linux took a supercomputer 2 days to do for you :P

DT meaning what?

Oh, and ^+Alt+Del doesn't reboot...
« Last Edit: April 12, 2013, 01:50:55 pm by Dapianokid »
Keep trying.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #434 on: April 12, 2013, 01:54:25 pm »
Actually, when I was little and had no idea of linux (~10 years old) I created a VM with VBox on WinXP and installed Ubuntu 7.04 with 384MB RAM available to experiment a bit with (I was very curious about everything IT ;-) ). The CPU was 1 GHz and compiling the kernel took a whole day :-/