WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tinycore kernel installed ???  (Read 4014 times)

Offline ftmouse

  • Newbie
  • *
  • Posts: 4
tinycore kernel installed ???
« on: November 24, 2009, 06:46:31 AM »
I am very concerned about the tiny core linux.
I tried to compile
http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz

in this os, but it can not get correct results.
The error message is
"
Code: [Select]
You do not appear to have the sources for the 2.6.29.1-tinycore kernel installed".
Please tell me what extensions should be installed?
ps:
ahdi-linux-complete-2.2.0.2 +2.2.0. tar.gz is an extension package of asterisk
ps: I already installed the linux-headers-2.6.29.1-tinycore.tcz package.

 
 

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: tinycore kernel installed ???
« Reply #1 on: November 24, 2009, 06:59:37 AM »
I didn't try with this one, but some packages require the full kernel source to be installed rater than just the headers.

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: tinycore kernel installed ???
« Reply #2 on: November 24, 2009, 01:57:57 PM »
Also, see your first thread if you haven't http://forum.tinycorelinux.net/index.php?topic=3984.0

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: tinycore kernel installed ???
« Reply #3 on: November 24, 2009, 06:40:44 PM »
This package builds if you unpack the complete kernel source somewhere and link it to /usr/src/linux.  Then enter /usr/src/linux and run "make menuconfig" and then "make" for at least a few seconds to set up headers.

Now the package should build fine if you have the other dependencies installed.

Offline ftmouse

  • Newbie
  • *
  • Posts: 4
Re: tinycore kernel installed ???
« Reply #4 on: November 25, 2009, 05:34:41 PM »
十分感谢 Jason W  的回复,指导。虽然到目前为止还是没有解决这个问题 ,如果 官方可以将该包做成 tcz 希望可以 ,希望可以发给我一份。

再次感谢

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: tinycore kernel installed ???
« Reply #5 on: November 25, 2009, 06:24:39 PM »
Sorry it has not worked.  Might be missing dependencies. 

Oh, and please remember to use English here as per the official rules, unless it is in the international section.

Thanks.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: tinycore kernel installed ???
« Reply #6 on: November 25, 2009, 06:30:22 PM »
Oh, one important detail.  Make sure to use these commands after unpacking the kernel source, naming it or linking it to /usr/src/linux, then doing "make menuconfig && make install" in /usr/src/linux:

Code: [Select]
# rm /lib/modules/2.6.29.1-tinycore/build
# ln -s /usr/src/linux /lib/modules/2.6.29.1-tinycore/build

Now it should work with "make all" in the dahdi directory.
« Last Edit: November 25, 2009, 06:46:36 PM by Jason W »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: tinycore kernel installed ???
« Reply #7 on: November 27, 2009, 01:28:13 AM »
Oh, one important detail.  Make sure to use these commands after unpacking the kernel source, naming it or linking it to /usr/src/linux...

I could easily be mistaken, but I thought the readme for 2.6.x advises against this. You might need to link /lib/build or similar to /usr/src/linux-2.6.x for compiling modules from extenal source though.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: tinycore kernel installed ???
« Reply #8 on: November 27, 2009, 05:22:13 AM »
That is the same warning that was in linux-2.4.0, and it especially applied in the era when kernel headers used by glibc were symlinks in /usr/src/linux/include that pointed to  /usr/linclude/linux, or vice versa.  In other words, unpacking a different kernel into /usr/src/linux would overwrite the headers glibc was built against.  Being that our kernel headers are real files in the base-dev extension, we don't have anything installed into /usr/src/linux.  It is most likely harmless to have, especially as we don't update kernel verisons without a toolchain update.  

Lunar linux and Gentoo I believe still uses the symlink to point to the currently used kernel source probably due to their package manager cd-ing into /usr/src/linux to do the kernel build, but Arch, Debian, CRUX, and others do not.  It is a relic from having the kernel headers present there.  The "build" symlink in /lib/modules to the current source is used by modern distros, as well as /usr/src/linux-VERSION.  

WIth the proper BUILD symlink in /lib/modlues/`uname -r`, the symlink is most likely not needed for any builds of modern module packages.  So I would personally agree that avoiding the /usr/src/linux symlink is good practice.

Offline ftmouse

  • Newbie
  • *
  • Posts: 4
Re: tinycore kernel installed ???
« Reply #9 on: November 27, 2009, 10:27:11 PM »
Thanks again for "jason W" and you administrator for my help.
Finally yesterday, has passed the compilation, although still do not understand all the details, and causes of
My approach is to:

1 downloads
   http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.1.tar.bz2
Code: [Select]
mv linux-2.6.29.1.tar.bz2 /tmp

2 unzip
Code: [Select]
cd /tmp
tar xfvj linux-2.6.29.1.tar.bz2


3 link to /usr/src/linux
Code: [Select]
ln -s /tmp/linux-2.6.29.1 /usr/src/linux

4 link to /lib/modules/2.6.29.1-tinycore/build
Code: [Select]
ln -s /tmp/linux-2.6.29.1 /lib/modules/2.6.29.1-tinycore/build

5  compilation  "config"
Code: [Select]
cd linux-2.6.29.1
make menuconfig
Direct selection save


6 compilation   kernel
   
Code: [Select]
make
Then you can successfully build a   dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz

The other: by tracking the discovery seems to tinycore_2.5.iso, as well as linux-headers-2.6.29.1-tinycore.tcz in the
Do not include ". Config" file. I do not know how to get, and perhaps this is the most fundamental solution.

ps:
My English is bad, maybe the word does not convey his ideas, very sorry.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: tinycore kernel installed ???
« Reply #10 on: November 27, 2009, 10:54:25 PM »
tinycore kernel .config = http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/src/config-2.6.29.1-tinycore

Then you just have to rename config-2.6.29.1-tinycore -> .config