Author Topic: nspire Linux Questions  (Read 153179 times)

0 Members and 1 Guest are viewing this topic.

Offline Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #450 on: April 13, 2013, 02:29:16 pm »
Hello !
I'm considering using linux on my nspire.
What do you think of the idea of running a pdf reader on it ?
Would it be usable ?

Thank you for your work ! It's really interesting to be able to run linux on the nspire.
Yama

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #451 on: April 13, 2013, 02:37:20 pm »
Quote
What do you think of the idea of running a pdf reader on it?
Why not? The only question would be where to store them.
But that's no problem if you want to have to use an usb drive the whole time.

Quote
Would it be usable ?
Yes, I think so.
Xpdf seems to be the right application to port.
« Last Edit: April 13, 2013, 02:37:30 pm by Vogtinator »

Offline Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #452 on: April 13, 2013, 02:53:04 pm »
Quote
What do you think of the idea of running a pdf reader on it?
Why not? The only question would be where to store them.
But that's no problem if you want to have to use an usb drive the whole time.
Are you saying that an usb drive isn't necessary to run X+xpdf ?
I came to understand that the usb drive was necessary to run X. Was I wrong ?
I only want to have Linux+X+Xpdf+ about 20Mo of PDFs ...

I wondering if it would be okay to solder and usb drive inside the nspire ...

Quote
Quote
Would it be usable ?
Yes, I think so.
Xpdf seems to be the right application to port.
When you say port ... you say compiling right ? Nothing hard or too long ?
I'm running out of time on this matter ...
« Last Edit: April 13, 2013, 02:58:55 pm 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 #453 on: April 13, 2013, 02:53:06 pm »
Not that it matters too much for our platform, but Xpdf's code base is not known for robustness: there has been a long list of vulnerabilities in Xpdf.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #454 on: April 13, 2013, 02:56:31 pm »
But sadly theres no real lightweight alternative (couldn't find some by quick search) :-/

Quote
When you say port ... you say compiling right ? Nothing hard or too long ?
I'm running out of time on this matter ...
Nope, it can be as quick as typing CC=arm-none-eabi-gcc make && make install if you're using linux ;)
« Last Edit: April 13, 2013, 02:57:45 pm by Vogtinator »

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #455 on: April 13, 2013, 07:55:30 pm »
:) This was one of the main reasons I wanted Linux
Keep trying.

Offline Vsod99

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +1/-1
    • View Profile
Re: nspire Linux Questions
« Reply #456 on: April 13, 2013, 09:03:25 pm »
Sorry in advance for being an absolute noob....
how do you run X?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: nspire Linux Questions
« Reply #457 on: April 14, 2013, 02:15:13 am »
Usually `startx`, if the tool exists.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Vsod99

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +1/-1
    • View Profile
Re: nspire Linux Questions
« Reply #458 on: April 14, 2013, 02:00:51 pm »
Usually `startx`, if the tool exists.
apparently it doesn't :(

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: nspire Linux Questions
« Reply #459 on: April 14, 2013, 11:18:33 pm »
then, you must have the wrong rootfs. try an xconfig from the builds site.
"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 Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #460 on: April 17, 2013, 01:18:57 pm »
Hello.
I would like to confirm that I understand well the usb support matter ...

1) I plug the usb while in the Nspire OS then boot linux => the nspire is the host and will keep the host status until I reboot it.
2) I plug the usb after booting linux => the nspire is the device and the usb (computer ?) is the host. I can't use an usb key in this mode.
3) I use the cx_usb_otg kernel parameter and the host/device status of the nspire depend of the cable I'm using (if it is an OTG cable the calc will be a host and if it a normal cable the calc will be a device).

Is it right ?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #461 on: April 17, 2013, 01:35:22 pm »
No, it isn't.
If you use OTG, you can use both, auto detected, if not, which works depends on the nspire os.
« Last Edit: April 17, 2013, 01:38:31 pm by Vogtinator »

Offline Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #462 on: April 17, 2013, 01:46:27 pm »
Okay, thank you :)
The lack of the otg feature isn't a problem for me.

And, by the way, you confirm me that my usb key isn't detected because I have done something wrong when soldering my miniUSB <=> USB cable ...

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #463 on: April 17, 2013, 04:38:14 pm »
Well apparently it only works with type A adapters, and I think the parameter is actually "cx_use_otg", or at least that's what Vog told me
Keep trying.

Offline Yamashita Ren

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +3/-0
    • View Profile
Re: nspire Linux Questions
« Reply #464 on: April 17, 2013, 05:47:53 pm »
@Vogtinator
Sorry, I don't understand your edited answer ...
- If I use OTG, the calc mode will be device if I use a 4-pin mini-usb cable or host if I use a 5-pin (with a bridge between pin 5 and pin 4) mini-usb cable. And the mode can be switched without rebooting the calc.
- If I don't use OTG, the usb mode will follow that rule (and will not follow the "cable rule") :
Quote
USB support is mostly working. The only thing missing is a USB PHY driver. The USB controller driver is currently unable to switch seamlessly between USB host and USB device mode because of this. Unfortunately, nothing much is known about the USB PHY.
That's probably the same reason why sometimes USB devices aren't recognised in USB host mode - the USB PHY hasn't changed the USB hardware to host mode.
To work around this, we get the Nspire OS to set the right modes in the USB PHY before booting Linux.
For USB Host mode: insert a USB OTG cable's A end or a USB device into the calculator while still inside the Nspire OS before running the bootloader.
For USB Device mode: connect the Nspire to a computer while in Nspire OS before running the bootloader.

Or there is something that I don't understand ?

@Dapianokid
I don't see why It should work with a type A instead of a type B when TI uses type B connectors ...
I'm not even sure that we can use a type A male connector with a type B female connector ...
I think that the parameter is "cx_usb_otg" because it's written on hackspire

edit :
Okayyyy
It's written usb type A in my quotation !!!
There is definitively something that I don't understand  :banghead:

edit n°2 :
So, if I understand well, it is not possible to use an usb key without an OTG usb cable ?!?
If I put a 4 pin mini-usb cable, nothing happens to the usb PHY who keeps is previous state which is device mode ... It makes me very unhappy  :w00t:
But I still don't see why I have to use a type A usb instead of a type B usb ...
« Last Edit: April 17, 2013, 06:29:25 pm by Yamashita Ren »