Author Topic: nspire Linux Questions  (Read 150861 times)

0 Members and 1 Guest are viewing this topic.

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: nspire Linux Questions
« Reply #270 on: January 06, 2013, 11:46:52 am »
can someone tell me how to connect an usb drive to linux on my nspire cx?

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: nspire Linux Questions
« Reply #271 on: January 06, 2013, 01:10:02 pm »
On a linux pc, run the following:
Code: [Select]
mount -t ext2 -o loop initrd.tns /mnt
cd /mnt/etc
vi inittab
cd /
umount /mnt

I've done it and commented the line.

The error does not show up anymore :).

But now, I have new problems, like linux asking me to login again and again after a few seconds/minutes, and I can only type a few characters like + or enter.
Also, why is home mapped as ctrl and not the "ctrl" key?

Offline InspiredByCas

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +4/-1
    • View Profile
Re: nspire Linux Questions
« Reply #272 on: January 06, 2013, 01:20:19 pm »
But now, I have new problems, like linux asking me to login again and again after a few seconds/minutes, and I can only type a few characters like + or enter.
Also, why is home mapped as ctrl and not the "ctrl" key?

Wrong keyboard mapping...? I think you don't have a CAS CX...

can someone tell me how to connect an usb drive to linux on my nspire cx?

You can buy a OTG USB cable with a mini USB 5-pin A connector on one side and ot the other side there should be female USB plug.

Or, if you are impatient and if you can solder: (my selfmade solution) You desolder a double-USB-plug from an old mainboard and connect all 8 pins in a way that you get 4 parallel connections. That was the hardest part. Then plug in the end of a mini USB A connector (you can use the cable which came came with your CAS for exchanging data between two calcs; plug in the thicker end which says 'A' and leave the other end unconnected) and start linucx. While linucx running, deconnect the mini USB A cable and connect the standart cable (I mean the cable which you can connect to your CAS and to your PC) plug it in the CAS and the 'adapter' which you soldered before. The other port of your 'adapter' should get connected to a powered USB hub and then you can connect all your devices to your hub.
If you are booting from a USB stick you maybe should increase the rootdelay.
« Last Edit: January 06, 2013, 01:33:16 pm by InspiredByCas »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #273 on: January 06, 2013, 01:27:45 pm »
Try to use
Code: [Select]
cmdline root=/dev/ram init=/bin/bashnow you should be able to run commands without being thrown out.

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: nspire Linux Questions
« Reply #274 on: January 06, 2013, 01:48:29 pm »
But now, I have new problems, like linux asking me to login again and again after a few seconds/minutes, and I can only type a few characters like + or enter.
Also, why is home mapped as ctrl and not the "ctrl" key?

Wrong keyboard mapping...? I think you don't have a CAS CX...
I don't. I have a CAS Clickpad.

Try to use
Code: [Select]
cmdline root=/dev/ram init=/bin/bashnow you should be able to run commands without being thrown out.

About the ctrl key, during different boots, I got home being ctrl, ctrl being ctrl (after pressing "del") and sometimes none of them being ctrl.

Also, the "del" key seems to be the main problem. If I press it, the keyboard map goes wild and I still get kicked out quickly. Otherwise, It's working quite fine.

PS: tried again making sure I do not press "del". Home seems to be the "begin", "page up" or whichever key which goes back to the beginning, ctrl apparently does nothing, and "maj" works only one way. I long as I press it, everything is in CAPS and pressing it again makes nothing.
PSĀ²: there are a lot other odd mapped keys as well
« Last Edit: January 06, 2013, 01:53:35 pm by excale »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #275 on: January 06, 2013, 01:55:30 pm »
Which kernel? Try some more versions
http://tiplanet.org/nspire-linux-builds/kernel.html

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: nspire Linux Questions
« Reply #276 on: January 06, 2013, 02:10:26 pm »

You can buy a OTG USB cable with a mini USB 5-pin A connector on one side and ot the other side there should be female USB plug.

Or, if you are impatient and if you can solder: (my selfmade solution) You desolder a double-USB-plug from an old mainboard and connect all 8 pins in a way that you get 4 parallel connections. That was the hardest part. Then plug in the end of a mini USB A connector (you can use the cable which came came with your CAS for exchanging data between two calcs; plug in the thicker end which says 'A' and leave the other end unconnected) and start linucx. While linucx running, deconnect the mini USB A cable and connect the standart cable (I mean the cable which you can connect to your CAS and to your PC) plug it in the CAS and the 'adapter' which you soldered before. The other port of your 'adapter' should get connected to a powered USB hub and then you can connect all your devices to your hub.
If you are booting from a USB stick you maybe should increase the rootdelay.


I solderd a cable but i don't get the usb to work it connects but i don't know how to boot it :s
« Last Edit: January 06, 2013, 02:11:03 pm by floris497 »

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: nspire Linux Questions
« Reply #277 on: January 06, 2013, 02:12:22 pm »
I also had strange behaviours although never the exact same one with the latest two kernels (I was using the ones from 23/12 before).

Also, this time, pressing home showed me a screen with some information, and I spotted "Failed to execute /bin/bash. Attempting defaults...."
« Last Edit: January 06, 2013, 02:12:38 pm by excale »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #278 on: January 06, 2013, 02:26:51 pm »
Oh, try /bin/sh then

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: nspire Linux Questions
« Reply #279 on: January 06, 2013, 02:31:23 pm »
Not really better^^
I get:
"/bin/sh : can't access tty: job control turned off"
« Last Edit: January 06, 2013, 02:31:30 pm by excale »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #280 on: January 06, 2013, 02:34:37 pm »
That's just a warning, no prob at all.
Do you get a shell?
If not, try console=tty0

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: nspire Linux Questions
« Reply #281 on: January 06, 2013, 02:36:35 pm »
I did get a shell (already had console=tty0 ), but with the crazy keyboard, meaning I could only type a few characters like * or +.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #282 on: January 06, 2013, 02:37:47 pm »
USB Keyboard?
I'll try the current kernel on my cx cas, maybe I get the same error

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: nspire Linux Questions
« Reply #283 on: January 06, 2013, 02:42:34 pm »
I've been thinking again...
It looks like "clear" is in fact the ctrl key, but like "maj", you can't disable it (thats why the keyboard acted strangly).
But in this case, * and + cannot be typed.

So, I rebooted and waited a little. This time, the keyboard was strange in the other way, only a few keys like * or + worked.
« Last Edit: January 06, 2013, 04:21:55 pm by excale »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nspire Linux Questions
« Reply #284 on: January 06, 2013, 10:55:35 pm »
Would this run on an Nspire running Linux?

http://www.onlive.com/

O.O