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

0 Members and 1 Guest 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 #225 on: November 13, 2012, 01:59:44 pm »
The loader relocates it to the right place before launching the OS.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6231
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Calling all Linux Kernel developers!
« Reply #226 on: November 13, 2012, 02:03:54 pm »
Quote
The loader relocates it to the right place before launching the OS.
Ah ok, so I'm assuming it handles protecting it's relocating code so that it isn't written over during the relocation process. I haven't actually looked at the code myself yet. I probably should take a peek at what I can before asking questions :P
/e

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #227 on: November 13, 2012, 04:23:26 pm »
Nice FAQ tangrs :)

Quote
Can this run like KDE, Gnome, Xfce, dwm, Fluxbox, [insert favourite window manager]?
Yes but it'll probably suck. Try not to forget that this is a 120MHz device with 64MB of RAM.

Isn't there any window manager for suited embedded environments?

Quote
Why doesn't this run on the emulator?
I'm not sure. I think some co-processor instructions that Linux requires but not the stock OS weren't implemented in the emulator.

You should contact Goplat about this if not already done, he will surely have an idea on this.

Quote
But seriously, don't email me about this (unless it is a very specific/technical question) because I don't have time to help you step by step.

Then anyone who have configured successfully wireless network should post hints here to help you enrich the FAQ.

The loader relocates it to the right place before launching the OS.

There's no relocator in tangrs's loader, I suppose the Linux kernel relocates itself.

tangrs, do you plan to make the loader replace the TI-Nspire OS instead of using its realloc() function? I suppose this would leave more RAM to Linux.
BTW what is the roadmap of all this? :) This could help to gather developers to help you.
Ndless.me with the finest TI-Nspire programs

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #228 on: November 13, 2012, 04:32:03 pm »
X and directfb are working!
Now we're one step closer to minecraft :D
Note: I can't login on SSH because of an german umlaut in my password and I haven't changed the keyboard-layout yet.
Note2: I don't know where that segfault came from, maybe too much ctrl-c? ;-)
[/youtube]

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 #229 on: November 13, 2012, 04:41:44 pm »
Very nice work Vogtinator :)

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #230 on: November 13, 2012, 06:09:24 pm »
rhomicubo, can you please tell me what kind of hub you are using? thank you

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #231 on: November 13, 2012, 06:22:59 pm »
rhomicubo, can you please tell me what kind of hub you are using? thank you
http://www.rocketfishproducts.com/products/computer-accessories/RFNBSKHB.html
bought it at bestbuy
« Last Edit: November 13, 2012, 06:23:17 pm by Rhombicuboctahedron »

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #232 on: November 13, 2012, 06:47:36 pm »
Don't count on straight minecraft. Maybe one of the clones.

I would recommend something tiny, like nano-X for the WM. It lists as being 100 kb on 32 bit systems. It also says that it should run on any 32 bit system with a kernel framebuffer (which we now have :D )

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Calling all Linux Kernel developers!
« Reply #233 on: November 13, 2012, 06:58:39 pm »
Amazing, Vogtinator !

Edit : can you share your files ? :D
« Last Edit: November 13, 2012, 07:04:16 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 228
  • Rating: +97/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #234 on: November 13, 2012, 09:04:55 pm »
There's no relocator in tangrs's loader, I suppose the Linux kernel relocates itself.

Yep, this is pretty much it.

We first load Linux into memory no different than loading anything into memory. I.e. we follow the rules and use malloc, etc... Right up until we actually boot it, the bootloader follows the OS's rules and is capable of exiting without having corrupted anything. After we boot and transfer control to Linux, Linux will relocate itself.

This is a much cleaner approach than say, loading directly into RAM since we can potentially overwrite OS data structures/code while loading.

X and directfb are working!
Now we're one step closer to minecraft :D
Note: I can't login on SSH because of an german umlaut in my password and I haven't changed the keyboard-layout yet.
Note2: I don't know where that segfault came from, maybe too much ctrl-c? ;-)
[/youtube]

Nice work! I better start catching up and getting my own X to work :)
« Last Edit: November 13, 2012, 09:07:59 pm by tangrs »

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #235 on: November 14, 2012, 02:55:03 am »
this is becoming really impressive.

You should try compiling gnuplot. It allows real-time rotating 3D graphs! It also uses, from what I understand, relatively few libs to do so. (libjpeg, among others)

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #236 on: November 14, 2012, 12:06:36 pm »
Quote
You should try compiling gnuplot.
Although you can get a better performance with the built-in from TI, here you go:
http://imgur.com/a/TlFSf

Here's a snapshot of both files (zImage.tns and rootfs.tar.bz2 (smaller and tar)):
http://ritter-vogt.dyndns.biz/lowlevel/rootfs.tar.bz2 (29 MiB)
http://ritter-vogt.dyndns.biz/lowlevel/zImage.tns (2 MiB)
If your firewall blocks dyndns, I'll upload it to dropbox.
Use `tar -xvf rootfs.tar.bz2 -C <mountpoint of usb-stick>`!
Then, if you don't want to wait at boottime, you can rename everything within /etc/init.d (e.g. `mv S85tinyhttpd tinyhttpd`).

Contents of rootfs.tar:
modular x.org (Needs some time to start)
links
Some directfb tests and examples
dhcp client (Preconfigured for eth0)
ethtool
wget (not tested)
blackbox window manager (runs perfectly, to run it create /etc/X11/xinit/xinitrc)
xterm, xcalc, xclock, twm
gnuplot (warning: slow as hell!; you have to `export GNUPLOT_DRIVER_DIR=/bin` first; I was to lazy to search, I symlinked :D)
mplayer (not tested)
fbv picture viewer
e2fsprogs (not tested)
ntfs3g (not tested)
fdisk (not tested)
hdparm (128 KiB/s read from USB :-/ )
minicom (not tested)
iw, wpa_supplicant, wireless tools (not tested, needs own kernel to be built)
tinyhttpd, openssh
bash
rsyslog
Not working "reset" cmd
nano
vim (not tested)
No locale support (but keyboard layouts)
Crysis

Of course you can also use debian or openSUSE armv5.

Kernel:
devtmpfs support
cdc_ether for networking
Swap support
Framebuffer with a dirty hack you don't wanna see (but it works and it didn't destroy my calc)
USB HID support
Sunplus Wireless Desktop support
No support for modules
No Initrd support (as it'd be useless without modules)
« Last Edit: November 14, 2012, 01:42:25 pm by Vogtinator »

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #237 on: November 14, 2012, 02:18:07 pm »
i made it.... great job tangrs,

but how did u opened lynx? o.O
regards,

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #238 on: November 14, 2012, 02:27:14 pm »
There's no lynx in the image.
You can use links, it's nearly the same.
To open a page, press "g", to quit "q".

Edit: How did you made it? Was it a mistake or an hardware error?
« Last Edit: November 14, 2012, 04:23:24 pm by Vogtinator »

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #239 on: November 14, 2012, 05:01:50 pm »

hardware error vogt, my hub wasnt compatible, btw vogt your error is just that: in the bootscript you dont load the initrd, so you just have to modify the bootscrip with a text editor and add the initrd
« Last Edit: November 14, 2012, 05:02:32 pm by noobnonin »