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

0 Members and 3 Guests are viewing this topic.

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 #120 on: October 30, 2012, 08:57:27 am »
Cool, certainly; but upstream Python is usually regarded as a fairly heavyweight language, and is unlikely to be a very good fit for the Nspire ;)
The simpler p14p would be more lightweight... but it was quite slow on the TI-68k series, so even on the Nspire series, it wouldn't be that fast.
« Last Edit: October 30, 2012, 09:01:00 am by Lionel Debroux »
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 #121 on: October 30, 2012, 09:11:30 am »
Good point, I think I'll stick with just Lua and Microperl on this one. I'll try and add Ruby too, and see how big the image gets.

If it works, ill post it later so others dont have to wait forever for the thing to compile.
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Augs

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 306
  • Rating: +30/-29
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #122 on: October 30, 2012, 09:31:27 am »
I am new to this, can someone make a video on how to get a linux file to run on the calculator?

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 #123 on: October 30, 2012, 10:02:54 am »
Have you attempted to follow the text instructions ? :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #124 on: October 30, 2012, 05:36:36 pm »
Hopefully, I can get Python to compile and run, though I think it might be too big. Can't hurt to try it :)

Currently, it fails on compiling the unicodeobject.h file, don't know why, something about variable declaration errors.

Python 2.7 on an Nspire, now THAT would be cool.


I got it to work a while ago but it increased the ramdisk size to ~20MB and the loading time wasn't really worth it XD

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #125 on: October 30, 2012, 05:45:18 pm »
I am new to this, can someone make a video on how to get a linux file to run on the calculator?

It's a tricky process to say the least. Best you didn't attempt unless you have some idea of what to do. It's still an area most people hate going into.

If the Linux program you want to get working can be provided by buildroot, I would just use that and let it create a new image for you.

Otherwise, you'd need a Linux cross-compiler toolchain to cross-compile the program. There is a tool called crosstools-ng or something like that which will create a toolchain for you automagically. Otherwise, when you create a image with buildroot, you also get a bonus toolchain which you can use.

You'll then have to pass your toolchain triplet to the configure script of whatever you're compiling to get it to cross compile.

When (if?) you eventually get it to cross compile and you've secured the binaries, you need to add it to an existing ramdisk image. You can often do this by mounting the file as a filesystem and copy the binary(ies) into /usr/bin or wherever.

After that, unmount and pass the modified ramdisk to the bootloader and boot Linux as usual. Then hope that you cross compiled it correctly :)

Offline Augs

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 306
  • Rating: +30/-29
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #126 on: October 30, 2012, 06:03:23 pm »
Well that sounds darn complicated, sorry, but I will have to back down. Thanks for the help anyway.

Offline jessedog3

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #127 on: October 30, 2012, 09:11:24 pm »
When (if?) you eventually get it to cross compile and you've secured the binaries, you need to add it to an existing ramdisk image. You can often do this by mounting the file as a filesystem and copy the binary(ies) into /usr/bin or wherever.

How would you mount the file as a filesystem (on a mac)?

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #128 on: October 30, 2012, 09:35:26 pm »
When (if?) you eventually get it to cross compile and you've secured the binaries, you need to add it to an existing ramdisk image. You can often do this by mounting the file as a filesystem and copy the binary(ies) into /usr/bin or wherever.

How would you mount the file as a filesystem (on a mac)?

I use OSXFuse and a fuse filesystem that lets you mount ext2/3 drives.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #129 on: October 30, 2012, 10:39:29 pm »
Hopefully, I can get Python to compile and run, though I think it might be too big. Can't hurt to try it :)

Currently, it fails on compiling the unicodeobject.h file, don't know why, something about variable declaration errors.

Python 2.7 on an Nspire, now THAT would be cool.


I got it to work a while ago but it increased the ramdisk size to ~20MB and the loading time wasn't really worth it XD

How'd you do that? I just tried messing with the broken header file, but to no avail. I mostly want to do it simply because I can, like everything else I do to my calculator  ;). Do you have to use the python source code from their site, not from buildroot?
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #130 on: October 31, 2012, 12:23:02 am »
Hopefully, I can get Python to compile and run, though I think it might be too big. Can't hurt to try it :)

Currently, it fails on compiling the unicodeobject.h file, don't know why, something about variable declaration errors.

Python 2.7 on an Nspire, now THAT would be cool.


I got it to work a while ago but it increased the ramdisk size to ~20MB and the loading time wasn't really worth it XD

How'd you do that? I just tried messing with the broken header file, but to no avail. I mostly want to do it simply because I can, like everything else I do to my calculator  ;). Do you have to use the python source code from their site, not from buildroot?

Were you trying to rebuild? You might need to make clean and rebuild from scratch. I had troubles where the toolchain wasn't being updated and couldn't compile Python problem but they went away when I deleted the output folder and rebuilt everything.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #131 on: October 31, 2012, 12:28:10 am »
that makes sense, since the toolchain would need wchar support, and thats the error im getting with the header file. I guess ill just set up to build clean,

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

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #132 on: October 31, 2012, 03:26:19 am »
YES. YES. YES. USB host works!

I have literally spent 5 minutes screaming and running in circles when USB host worked! After 3 weeks of trial and error, I finally got it to work.



There'll be another video soon demonstrating a USB keyboard working :D

Things will be getting very interesting, very soon!
« Last Edit: October 31, 2012, 03:28:19 am by tangrs »

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 #133 on: October 31, 2012, 03:27:42 am »
Congratulations ;)

What did you change in the code to achieve this ?

Indeed, things will become pretty interesting very soon :)
« Last Edit: October 31, 2012, 03:29:19 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #134 on: October 31, 2012, 03:34:21 am »
What did you change in the code to achieve this ?

It was seriously simple. I just had to set a DMA mask.

All that documentation studying was useless >.>

But I don't care, it works now :D

Edit: There are still a few kinks to work out but it works.
« Last Edit: October 31, 2012, 03:35:55 am by tangrs »