Author Topic: nspire Linux Questions  (Read 133463 times)

0 Members and 1 Guest are viewing this topic.

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #465 on: April 18, 2013, 12:03:29 pm »
Nspires support all mini-USB hardware male hardware, but the OS doesn't host.
So you can use any USB mode with Nspire's USB port
Keep trying.

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: nspire Linux Questions
« Reply #466 on: April 18, 2013, 02:30:43 pm »
Actually, the OS is hosting when it is collecting data, and one calculator is hosting when sending a file. I think that the viewscreen also uses host mode on the calculator, while the veiwscreen is a dressed-up CAS+.

Yamashita: The USB A is used by TI in the link cable, so that when two calculators are linked, on is the host and one is the peripheral. It is not possible to use a flash drive without a mini-A connector. Before I found one at a garage sale one time, I put a little peice of tinfoil into a mini-B, which I had attached to a female standard USB cable. A usb A connector signifies to the device that it will be a host, and a USB B connector tells the device that it is a peripheral. USB OTG just means that a device is able to be both a peripheral and a host.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #467 on: April 18, 2013, 02:33:54 pm »
Link to schematics on your little USB port hack?
Keep trying.

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: nspire Linux Questions
« Reply #468 on: April 18, 2013, 02:46:39 pm »

USB mini-A is the one on the bottom. The only difference that the device can tell is with pin x. If pin x is connected to pin 4 with something such as a piece of tinfoil, the device thinks it is a USB A.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #469 on: April 18, 2013, 02:47:44 pm »
oh thats awesome
Keep trying.

Offline Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #470 on: April 18, 2013, 03:16:00 pm »
Thank you for the explanation fortytwo.
I now quite understand how all this mess works :p

Offline Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #471 on: April 21, 2013, 11:18:12 am »
Okay !
Debian is installed and it seems to works ... but I encountered some type of a problem ...
When I run dpkg --configure -a, I get an error :
Code: [Select]
dpkg : error : unable to access dpkg status area : No such file or directoryIs this behaviour expected ?
« Last Edit: April 21, 2013, 11:18:28 am by Yamashita Ren »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: nspire Linux Questions
« Reply #472 on: April 21, 2013, 11:19:55 am »
This dpkg message indicates that there's no /var/lib/dpkg/status file, which is not expected.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #473 on: April 21, 2013, 02:22:25 pm »
Instead of the apt cache, I have like nothing in /var ...
Let's see where is the problem !

edit :
Okay, problem solved. It was my fault.
I have now installed X11 and it seems to work but the touchpad does nothing ...
Where is the problem ?

edit n°2 : Maybe the problem isn't the touchpad ... If the screen turn off while X is "running", I can't wake it ...

I tested the TI-Planet xconfig build and startx isn't included in it ...
« Last Edit: April 21, 2013, 05:37:41 pm by Yamashita Ren »

Offline kaimano

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: nspire Linux Questions
« Reply #474 on: April 22, 2013, 06:16:17 am »
May I ask which kind of procedure did you use for debian installation? Did you made an image of a working partition on a pen drive? Can the modified kernel for the NSPIRE manage a working Debian partition? Any explanation would be greatly appreciated. Thanks and regards

Tiziano

Offline Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #475 on: April 22, 2013, 07:07:08 am »
Actually, it's quite simple. It's exactly the same as running the xconfig rootfs from TI-Planet but with a debian rootfs.

Create the rootfs with debootstrap (Thank you Lionel for the script) :
Code: [Select]
# Make sure we have the appropriate packages.
apt-get install debootstrap multistrap binfmt-support
# This package ought to register the appropriate definitions for binfmt-support
apt-get install qemu-user-static
# Load binfmt support
modprobe binfmt_misc
# Start a debootstrap that will fail when trying to install the packages
mkdir $DEST_DIR
cd $DEST_DIR
debootstrap --verbose --arch=armel sid . http://ftp.fr.debian.org/debian/
# Fix it. ln assumes the programs are on the same partition, use cp instead if they aren't.
ln /usr/bin/qemu-arm-static ./usr/bin/qemu-arm-static
# Start debootstrap again, and while at it, we can add some packages into the mix :)
debootstrap --verbose --arch=armel --include=locales,build-essential sid . http://ftp.fr.debian.org/debian/
I have replaced sid by testing which will become stable in a few months
Plus, I have added xpdf and the xorg metapkg

And then, I used qemu to finish the installation, create the root password and install xcas : http://wiki.debian.org/QemuUserEmulation (appendix)

Once you have your rootfs, you can put it on your pen drive ;)
If you succeed to run X, let me know !
« Last Edit: April 22, 2013, 07:40:47 am by Yamashita Ren »

Offline itechnoguy

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
    • iTechnoguy Studios
Re: nspire Linux Questions
« Reply #476 on: April 23, 2013, 01:36:15 pm »
I've been having an issue with X/Xorg, where after I issue the command, it loads to a blank screen. I have a working rootfs, and everything else works. (I got it from TI-Planet)
Am I missing a xinitrc file? Also, I would post my log file but I don't have access to a *nix computer right now.
I'm using a CX with a USB OTG hub. OTG mode is enabled, since my rootfs didn't work without it. The rootfs is the full rootfs, most recent release.
Edit 2: Never mind. I'm just going to use an older build. It seems that something with xinitrd is broken in the latest release.
« Last Edit: April 23, 2013, 11:34:54 pm by itechnoguy »
I've known about Omnimaga for so long but I only recently signed up.

Offline kaimano

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: nspire Linux Questions
« Reply #477 on: April 24, 2013, 03:52:07 am »
Sorry to ask again for help but yesterday evening I had a bad experience. I untar the Full buildroot image (xconfig) into my usb key and tried to boot it. First boot stopped saying that tty0 could not be found. I tried another boot script and the second time stopped with error

r4:0000000000 r3:0000000000

I saw another person had this error in the forum but couldn't find a solution. Third boot my NSPIRE crashed and was caught in a restart loop. I made first a reset, then a complete format, then I removed the battery and finally the maintenance mode let the nspire resurrect.

After this problems, I kindly ask if some could give some clear instructions and link to working images and boot scripts.

Thanks

Tiziano

Offline Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #478 on: April 24, 2013, 05:54:24 am »
1) First, boot the initrd image and see if the pen drive is detected.
2) Use the xconfig image with
Code: [Select]
kernel Linux/zImage.tns
cmdline root=/dev/sda1 rootdelay=10 cx_usb_otg
boot

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #479 on: April 24, 2013, 05:17:03 pm »
I've gotten USB working, a keyboard and flash drive are detected! BUT, it doesn't seem to MOUNT the drive. I have been using an initrd to test. Now, I want to boot straight into Linux on my flashdrive, the xconfig? Or even Debian ARM Linux. I JUST can't seem to get it to do so.
« Last Edit: April 26, 2013, 01:39:47 pm by Dapianokid »
Keep trying.