WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tiny Kernel Compilation Error  (Read 12795 times)

Offline mattiaxx86to

  • Newbie
  • *
  • Posts: 17
Tiny Kernel Compilation Error
« on: March 19, 2010, 06:23:47 AM »
Hello everyone,

I have a problem with compilation of tiny core kernel,
i want to change the cpu type to 386 and enable math emulation.

I have read the "Custom Kernel" in the wiki tiny core, and installed compiletc.tcz

I have downloaded this kernel : ftp://ftp.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/src/linux-2.6.29.1-patched.tar.bz2

I have downloaded this config : ftp://ftp.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/src/config-2.6.29.1-tinycore

Extract the kernel in a directory on a usb key (from a tiny core installation), copy the downloaded config file in the kernel extract directory (with name: config)

and i have execute thi command in the extract kernel directory:

make oldconfig        (all ok)
make menuconfig    (change cpu type and enable math emulation, save all ok)
make bzImage        (see the error below)

CHK  include/linux/version.h
CHK  include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
ln: include/asm: Operation not permitted
make: *** [include/asm] Error 1


Why ??? can you help me to compile the kernel with 386 cpu and math emulation?

Thanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: Tiny Kernel Compilation Error
« Reply #1 on: March 19, 2010, 06:38:27 AM »
Either there are permission problems, or your the filesystem on your usb doesn't support symlinks.
If it's fat*, do use a linux fs. If a permission problem, IIRC I compiled the kernel as root, so to do it as an user:
sudo chown -R tc.staff *

Also, the config should be called ".config" for the previous one to be taken into account.

I must say though that anything less than 486 is not supported even if you change the kernel to do. Glibc has dropped that support, and all our userspace is compiled for a 486 minimum.
« Last Edit: March 19, 2010, 06:40:37 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline mattiaxx86to

  • Newbie
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #2 on: March 19, 2010, 06:49:35 AM »
Great! i have copy all in the local tiny core and make bzImage work!

But, i have a vortex86sx, and the basic tiny core kernel don't work for
a fpu error, for you, if i compile the kernel with math emulation and
don't change cpu type (from 486 to 386), is possible to work?

Thanks!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: Tiny Kernel Compilation Error
« Reply #3 on: March 19, 2010, 06:53:15 AM »
Good news, looks like that cpu is a 486sx. Just enabling math emulation should make things work.
The only barriers that can stop you are the ones you create yourself.

Offline mattiaxx86to

  • Newbie
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #4 on: March 19, 2010, 06:59:52 AM »
no..... there is a 386 ..... don't work?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: Tiny Kernel Compilation Error
« Reply #5 on: March 19, 2010, 07:39:35 AM »
What Google found said it was a 486. It could be wrong, but if it's a 386, no current linux will run on it.
The only barriers that can stop you are the ones you create yourself.

Offline mattiaxx86to

  • Newbie
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #6 on: March 19, 2010, 09:03:26 AM »
Sorry it's a 486, but i have another problem.

When i make the bzImage, after 30minutes, return this error :

MKCAP arch/x86/kernel/cpu/capflags.c not found

i try to do bzimage with the non patched kernel

Offline mattiaxx86to

  • Newbie
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #7 on: March 19, 2010, 10:56:47 AM »
thw result of the two compile is the same,
see the error below

CHK   include/linux/compile.h
MKCAP arch/x86/kernel/cpu/capflags.c
/bin/sh: perl: not found
make[2]: *** [arch/x86/kernel/cpu/capflags.c] Error 127
make[1]: *** [arch/x86/kernel/cpu] Error 2

Any idea?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: Tiny Kernel Compilation Error
« Reply #8 on: March 19, 2010, 11:05:52 AM »
to compile the kernel, you will need both the bash and perl5 extensions loaded

Offline mattiaxx86to

  • Newbie
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #9 on: March 22, 2010, 04:44:34 AM »
Hi! i have compiled the tiny core patched kernel and i have selected math emulation.

After i have created a tiny core cd with custom kernel but when this boot, print a kernel panic - not syncing: attempted to kill the idle task, i have only flag the math emulation!

Have you and idea?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: Tiny Kernel Compilation Error
« Reply #10 on: March 22, 2010, 05:09:22 AM »
You will need to use microcore/tinycore >= version 2.9 - prior to that there were problems booting on i486/i586 machines.

Offline mattiaxx86to

  • Newbie
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #11 on: March 22, 2010, 05:17:25 AM »
Where i can find the tiny core 2.9 kernel? i use a 2.6 in this moment

Thanks

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831

Offline mattiaxx86to

  • Newbie
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #13 on: March 22, 2010, 05:21:49 AM »
sorry but i can't find the kernel, can you post me the link?

i find only thee the iso 2.10

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: Tiny Kernel Compilation Error
« Reply #14 on: March 22, 2010, 05:39:33 AM »
Ah - maybe we're speaking at cross purposes here..

I was speaking of using the kernel bzImage you compiled together with microcore.gz/tinycore.gz from the microcore/tinycore-2.9 or 2.10 iso

Alternatively, you could try using tinycore.gz from http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/archive/tinycore_1.4.3.iso together with the bzImage you compiled