Author Topic: nspire Linux Questions  (Read 138082 times)

0 Members and 1 Guest are viewing this topic.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #330 on: January 19, 2013, 02:47:08 pm »
Simple example:
Code: [Select]
int main(int argc, char** argv)
{
    printf("Hello World");
    return 0;
}
gcc main.c -o hw
needed 2 minutes (not overclocked).

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: nspire Linux Questions
« Reply #331 on: January 19, 2013, 03:10:12 pm »
For hello world? Wow...thats slow :o. If its that slow, then nevermind. I guess I'll just put lua/python or something lighter on there, and stick to my android phone for GCC.
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #332 on: January 19, 2013, 03:14:29 pm »
Quote
I guess I'll just put lua/python or something lighter on there
Buildroot even has php and perl :3
« Last Edit: January 19, 2013, 03:14:43 pm by Vogtinator »

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: nspire Linux Questions
« Reply #333 on: January 19, 2013, 03:17:11 pm »
Quote
I guess I'll just put lua/python or something lighter on there
Buildroot even has php and perl :3

I think ill add perl and lua, and try it, now, for the 2.5 hour compile process with my laptop...
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #334 on: January 19, 2013, 03:20:20 pm »
Remeber: Change system/skeleton/etc/passwd and etc/securetty before the first build!

Edit: Made two rebuilds for tiplanet.org/nspire-linux-builds.
It works now, should be easier to read with a larger font. Also, the console output is faster.

Edit2: The bottleneck we have is neither the ram nor the cpu, it's rather the slow connection to our drive. USB 2 will make a huge difference.
« Last Edit: January 19, 2013, 09:11:24 pm by Vogtinator »

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: nspire Linux Questions
« Reply #335 on: January 22, 2013, 05:28:01 pm »
How do I edit those two files? securetty is just a list of names (ttyS0, etc.), and I don't understand what passwd contains (default passwords?).

If this builds correctly I'll post it in the main thread so that people can use it. It contains vim, lua, python, and ruby, in addition to X windows. (It's based off xconfig)
« Last Edit: January 22, 2013, 05:29:30 pm by merauder75 »
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline battlestar

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 14
  • Rating: +0/-0
    • View Profile
Re: nspire Linux Questions
« Reply #336 on: January 23, 2013, 04:54:35 pm »
When I enter nano on linux, the ctrl key state reverses, so whenever I press ctrl, it is off, and when I release ctrl it thnks that it is on. How do I fix this ???

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: nspire Linux Questions
« Reply #337 on: January 23, 2013, 07:01:39 pm »
When I enter nano on linux, the ctrl key state reverses, so whenever I press ctrl, it is off, and when I release ctrl it thnks that it is on. How do I fix this ???

Is this a touchpad/clickpad model? This issue was fixed just yesterday. It should be in the next nightly build at http://tiplanet.org/nspire-linux-builds/

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: nspire Linux Questions
« Reply #338 on: January 23, 2013, 07:38:44 pm »
On my Touchpad, when I use the defconfig kernel, tiny buildroot ramdisk, and ramdisk script from tiplanet.org/nspire-linux-builds, I get a kernel panic. What am I doing wrong? Can anybody help?
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: nspire Linux Questions
« Reply #339 on: January 23, 2013, 07:47:50 pm »
On my Touchpad, when I use the defconfig kernel, tiny buildroot ramdisk, and ramdisk script from tiplanet.org/nspire-linux-builds, I get a kernel panic. What am I doing wrong? Can anybody help?

What does the kernel panic message say?

Edit: Does the kernel seem to work correctly after the panic?
« Last Edit: January 23, 2013, 07:52:01 pm by tangrs »

Offline gtugablue

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Re: nspire Linux Questions
« Reply #340 on: January 23, 2013, 07:48:42 pm »
On my Touchpad, when I use the defconfig kernel, tiny buildroot ramdisk, and ramdisk script from tiplanet.org/nspire-linux-builds, I get a kernel panic. What am I doing wrong? Can anybody help?
Same here with a clickpad, but works with the expanded config kernel (except usb that seems not to be working fine with the most recent one/ones).
« Last Edit: January 23, 2013, 07:49:26 pm by gtugablue »

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Re: nspire Linux Questions
« Reply #341 on: January 23, 2013, 09:24:35 pm »
I used the extended kernel and it works. Thanks tangrs and gtugablue!
"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 #342 on: January 24, 2013, 01:24:11 am »
It may be that tangrs defconfig doesn't support bzip2ed images.

USB is not working with expandedconfig?
That's strange, I used defconfig as starting point, added some drivers
and removed the annoying logo.

Offline gtugablue

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Re: nspire Linux Questions
« Reply #343 on: January 24, 2013, 03:01:55 am »
With the other kernel, initrd and loader, every time I connected my Nspire to my PC the calculator would show a message saying a USB connection was made and the computer would recognize it as a Gadget Serial and use the corresponding driver. I was able to establish a serial connection using putty, even tough the console was always black (idk if it was suposed to show something but at least I know it was connected).
This time the calculator shows nothing when connected to my PC and the computer is unable to recognise it, calling it Unknown Device. I'm also unable to use putty with this kernel.
BTW, linux logo is still there, I'm using the expanded cfg kernel provided in the nspire linux builds homepage.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: nspire Linux Questions
« Reply #344 on: January 24, 2013, 03:37:23 am »
With the other kernel, initrd and loader, every time I connected my Nspire to my PC the calculator would show a message saying a USB connection was made and the computer would recognize it as a Gadget Serial and use the corresponding driver. I was able to establish a serial connection using putty, even tough the console was always black (idk if it was suposed to show something but at least I know it was connected).
This time the calculator shows nothing when connected to my PC and the computer is unable to recognise it, calling it Unknown Device. I'm also unable to use putty with this kernel.
BTW, linux logo is still there, I'm using the expanded cfg kernel provided in the nspire linux builds homepage.

Which kernel did it work with and which did it not work? Did you connect any USB host devices to it beforehand?

To get a shell on the Gadget Serial device through putty, you need Nspire Linux to attach a shell to /dev/ttyGS0