Author Topic: Calling all Linux Kernel developers!  (Read 351021 times)

0 Members and 3 Guests are viewing this topic.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #90 on: October 22, 2012, 06:47:26 am »
hm dang, I was hoping for snes9x

No, I think snes9x is a very real possibility.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #91 on: October 26, 2012, 05:59:42 am »
Just a progress update. I believe I know why the Linux USB driver isn't working on the Nspire.

Hidden in a corner of the documentation for the USB controller lies this:

Quote
However, the queue heads (dQH) must be placed in on-chip RAM. A design limita- tion on burst size does not allow the queue heads to be placed in DRAM.

Basically, I think this means that queue heads must go in the SRAM. Linux isn't aware of this and is handing out DMA addresses that point to the SDRAM. Unfortunately there doesn't seem to be an obvious way to tell Linux to hand out SRAM DMA addresses to the USB driver.

In other words, this sucks because I know what's wrong but not actually sure how to solve this problem. :\

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #92 on: October 26, 2012, 08:38:42 am »
Excellent work, tangrs!

Would there be a way to include more software in the linux image? Like have vim, gcc, g++, etc?

I would love to see something like that happen.

Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Calling all Linux Kernel developers!
« Reply #93 on: October 26, 2012, 08:56:00 am »
I assume you can install new stuff with those commands under Linux:
Code: [Select]
mkdir /mnt/initrd
mount -o loop initrd.tns /mnt/initrd
Then you would throw additional ARM-compiled binaries in /mnt/initrd/usr/bin. That or you can always generate a new image with buildroot with the stuff you want on it, just take care the resulting image size will not exceed the Nspire memory.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #94 on: October 26, 2012, 09:05:49 am »
gcc and g++ might be a bit heavyweight for the poor little Nspire, even the CX :)
At http://ourl.ca/17131/318757 , I posted a sample buildroot config.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #95 on: October 26, 2012, 09:49:19 am »
Thanks, I think ill try what Juju suggested, it seems safer.

I have basically no ability to build a new image, since I have only basic skill with linux.

Hopefully, someone would be willing to post a pre-made image with the stuff that Lionel Debroux put in his config.

Anyway, what is the limit of the Nspire CX CAS's memory? I'd rather not accidentally kill my calculator. :)
« Last Edit: October 26, 2012, 09:52:41 am by merauder75 »
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #96 on: October 26, 2012, 10:00:12 am »
Don't worry, it's basically impossible to kill a Nspire through pure software, unless you're doing it on purpose ;)
The only model where it's possible (and even then, it does require a program flat out aiming at killing the calculator) is prototype Clickpads; on production Clickpads, it requires a hardware modification, and on the newer models, it's not known to be possible.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #97 on: October 26, 2012, 01:33:19 pm »
Good, so linux is effectively in a sandbox, and can't mess with the regular TI-OS image/bootloader.

There is so much potential for this project. Sorry to keep bugging you guys for info :P

Ah well, one more newbie question, after I mount and put my stuff onto the image, do I just unmount it and my changes to it will be saved?
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #98 on: October 26, 2012, 10:40:10 pm »
I'm somewhat a Linux noob, so...
How do you start Linux on the new bootloader?
Are Classic models supported? I'm confused...
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #99 on: October 27, 2012, 01:57:04 am »
Clickpad & Touchpad models are not supported yet.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #100 on: October 27, 2012, 10:42:56 am »
How the heck did my build get to be 60MB ??? All I added was gcc to the default config
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Re: Calling all Linux Kernel developers!
« Reply #101 on: October 27, 2012, 10:51:49 am »
Told ya gcc would be pretty heavyweight. When you download the tar.gz it's something like 80MB.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #102 on: October 27, 2012, 05:41:13 pm »
Ah well, I wonder if there are smaller compilers than gcc available, or even just compilers for other languages that would fit in the 30MB limit. Heck, any language or toolset is better than nothing
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Calling all Linux Kernel developers!
« Reply #103 on: October 27, 2012, 05:43:26 pm »
« Last Edit: October 27, 2012, 05:44:06 pm by Jim Bauwens »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #104 on: October 28, 2012, 05:13:29 am »
ARM seems to be a second-class citizen in TCC, and last I checked, TCC wasn't actively maintained anymore.

FWIW, the buildroot config I posted contains Lua compiler, interpreter and LuaJIT (but not some extra libraries) :)
MicroPerl shouldn't consume much space either.

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.