WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Need help for compiling tinycore : make modules fail  (Read 856 times)

Offline Bams

  • Newbie
  • *
  • Posts: 4
Need help for compiling tinycore : make modules fail
« on: July 17, 2014, 01:02:02 PM »
Hi all,
I'm an old newbie atempting to compile tinycore on a box dedicated to electronics DiY (with RTAI)
sources : linux-3.8.13-patched + config-3.8.13-tinycore (further mv to ".config")
how to : newbielink:http://wiki.tinycorelinux.net/wiki:custom_kernel [nonactive]

I began to verify if things works without any modification.
make bzImage works well and I was able to use this it with core.gz "like a charm"
But when compiling modules, i'm stuck with error in ipt_ECN.c:   'XT_DSCP_MASK' undeclared
and then make install error:    can't stat '/work_directory/modules.builtin': No such file or directory

Where to dig ??

Box : IBM lenovo _ Intel Pentium E2200 (2x 2.2GHz / 1MB / 800MHz FSB)

tools : kmaps.tcz, compiletc.tcz, perl5.tcz, ncurses-dev.tcz, bash.tcz

Thanks for help.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 3858
Re: Need help for compiling tinycore : make modules fail
« Reply #1 on: July 17, 2014, 01:06:28 PM »
Are you running out of memory?
Remember that the root filesystem resides in RAM.
Unless your build tree is on a persistent drive, you will not have enough RAM to do the compile.

Offline Bams

  • Newbie
  • *
  • Posts: 4
Re: Need help for compiling tinycore : make modules fail
« Reply #2 on: July 17, 2014, 11:23:59 PM »
device used for build tree :
Filesystem                Size      Used Available Use% Mounted on
/dev/sda3                23.6G      2.7G     20.8G  12% /mnt/sda3

Memory free :
             total         used         free       shared      buffers
Mem:       1032900       171848       861052            0        15396
-/+ buffers:             156452       876448
Swap:      1334976            0      1334976

is'nt it sufficient ?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 8483
Re: Need help for compiling tinycore : make modules fail
« Reply #3 on: July 18, 2014, 12:00:45 AM »
Your sda3 is a linux partition, correct? Google says that error could be caused by trying to compile on fat32.
The only barriers that can stop you are the ones you create yourself.

Offline Bams

  • Newbie
  • *
  • Posts: 4
Re: Need help for compiling tinycore : make modules fail
« Reply #4 on: July 20, 2014, 05:18:18 AM »
YES curaga, you'r right ... fat32 !
shame on me : I didn't ask Google the good way (or may be didn't understand itsreplys, as it don't speaks the way my mother taught to me).
so move to EXP3 part. and it works.
Thanks to be patient.

Offline Bams

  • Newbie
  • *
  • Posts: 4
Re: Need help for compiling tinycore : make modules fail
« Reply #5 on: September 12, 2014, 12:44:59 PM »
Finally, I got it! Tiny core patched real time (RTAI) works well.
I had trials with many kernel config options and figures obtained for latency are pretty good, compared with these published on CNC site and these obtained with knoppix RTAI live CD (may be better).
I tested it on 5 box and 2 laptops (most of it saved from waste, I'm not so rich), UP or SMP, with or without local APIC, "recent" or very old ones.
I had a dream ... Tiny Core seams to be such a good candidate for building a live CD useful for DIY electronics : RT features (thanks RTAI) + tiny C Compiler, (+ may be CNC package) = very light package, quick busy or quick installed and efficient.
If of some interest for somebody , I can join my kernel and RTAI config files.

Offline teseosw

  • Newbie
  • *
  • Posts: 1
Re: Need help for compiling tinycore : make modules fail
« Reply #6 on: June 22, 2015, 04:33:51 AM »
Hi Bams,
I'm interested on patching tinycore with RTAI, now i'm using an old CNC Linux distro, can you share infos on how to produce the patched kernel and RTAI config files ?

Thank you in advance,
Andrea.
teseosw'AT'yahoo.it