WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: building realtime kernel & remastering for tiny core linux  (Read 22165 times)

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
building realtime kernel & remastering for tiny core linux
« on: March 30, 2011, 01:08:11 PM »
i have setup a git repository at gitorious to host build scripts
https://gitorious.org/tinyrt

to download:
Code: [Select]
git clone git://gitorious.org/tinyrt/linux.gitor
click linux-->source tree and download master as tar.gz

just run ./build.sh

everything from downloading to packing is automated

pre-built rt kernel and modules images posted in contrib repository
http://distro.ibiblio.org/tinycorelinux/4.x/x86/contrib/rt-kernel/

you can use this script to remaster latest tiny core linux images
https://gitorious.org/tinyrt/linux/blobs/master/extra/remaster-core.sh

build concepts:
  • latest stable linux kernel + tiny core linux patches + PREEMPT_RT patch
  • tiny core linux kernel configure + the principle of disabling latency killer options as much as possible
  • power management and cpu freq scaling is totally disabled, but your power buttons should work :)

read more about rt linux
https://rt.wiki.kernel.org/index.php/Main_Page
« Last Edit: June 09, 2012, 12:59:20 AM by Arslan S. »

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: building realtime kernel & remastering for tiny core linux
« Reply #1 on: April 02, 2011, 02:00:14 AM »
first product of the project is hosted in kernel contrib repository and
a script is attached to first post to remaster latest tinycore/microcore images, it is useful because grub does not support multiple initrds, there is a way chainloading a bootloader supporting multiple initrds though

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: building realtime kernel & remastering for tiny core linux
« Reply #2 on: April 02, 2011, 02:59:54 AM »
Grub is ok with merely cat'ed initrds though. cat tinycore.gz rt-modules.cpio.gz > tinycorert.gz

Less space efficient than repacking, but easier to do.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: building realtime kernel & remastering for tiny core linux
« Reply #3 on: April 02, 2011, 03:08:54 AM »
unfortunately grub does not support multiple initrds so use the script attached to this post to remaster latest tinycore/microcore images

Oh? Rather surprising...
I simply tried to load 2 initrd's with linld which is ~5Kb and next to zero documented, and "it just works"   ;D
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: building realtime kernel & remastering for tiny core linux
« Reply #4 on: April 02, 2011, 07:32:52 AM »
Grub is ok with merely cat'ed initrds though. cat tinycore.gz rt-modules.cpio.gz > tinycorert.gz

Less space efficient than repacking, but easier to do.

i tried cat'ing tinycore.gz with rt-modules.gz before but when i extract the output file i can not find the modules

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: building realtime kernel & remastering for tiny core linux
« Reply #5 on: April 02, 2011, 07:39:32 AM »
i tried cat'ing tinycore.gz with rt-modules.gz before but when i extract the output file i can not find the modules


The gunzip/cpio tools can't handle that, the kernel can. That's why it's not so good format when you won't have the original files anymore.
The only barriers that can stop you are the ones you create yourself.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: building realtime kernel & remastering for tiny core linux
« Reply #6 on: April 02, 2011, 01:31:49 PM »
unfortunately grub does not support multiple initrds so use the script attached to this post to remaster latest tinycore/microcore images

Oh? Rather surprising...
I simply tried to load 2 initrd's with linld which is ~5Kb and next to zero documented, and "it just works"   ;D
how?
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: building realtime kernel & remastering for tiny core linux
« Reply #7 on: April 02, 2011, 02:52:48 PM »
initrd=tinycore.gz,initram2.gz
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: building realtime kernel & remastering for tiny core linux
« Reply #8 on: June 05, 2012, 12:14:33 AM »
version bump to 3.0
kernel is 3.0.32-x1-rt52 please see the first post
« Last Edit: June 05, 2012, 07:33:43 AM by Arslan S. »

Offline ndrancs

  • Newbie
  • *
  • Posts: 34
  • I Love Linux
Re: building realtime kernel & remastering for tiny core linux
« Reply #9 on: August 09, 2012, 12:40:34 AM »
want to try to compile nvidia but no kernel headers for this rt kernel in the repo.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: building realtime kernel & remastering for tiny core linux
« Reply #10 on: August 09, 2012, 02:24:47 AM »
Just use the full kernel source.
The only barriers that can stop you are the ones you create yourself.

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: building realtime kernel & remastering for tiny core linux
« Reply #11 on: August 16, 2012, 02:02:52 AM »
or use this tool to build your module
http://code.google.com/p/tc-ext-tools/source/detail?r=858

it is not tested for rt-kernel though

Offline ndrancs

  • Newbie
  • *
  • Posts: 34
  • I Love Linux
Re: building realtime kernel & remastering for tiny core linux
« Reply #12 on: August 18, 2012, 12:15:10 AM »
@Arslan S.
I've compiled all from scratch, using the script here and use tce-ext-tools revision 824, and the result is libGL.so* missing.
but I will try to use tce-ext-tools that revision 858. Thank you.  ;D

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: building realtime kernel & remastering for tiny core linux
« Reply #13 on: August 18, 2012, 02:29:18 AM »
you should install Xorg-7.5 or Xorg-7.6 for libGL
also use the latest revision r858 is buggy
« Last Edit: August 18, 2012, 03:18:40 AM by Arslan S. »

Offline webb

  • Jr. Member
  • **
  • Posts: 52
Re: building realtime kernel & remastering for tiny core linux
« Reply #14 on: October 20, 2012, 02:00:35 PM »
hi arslan,

looks like a sweet project. unfortunately, i get many 404 not founds during the dl process. are you still maintaining this?

best,
webb