General TC > General TC Talk

Tiny Kernel Compilation Error

(1/7) > >>

mattiaxx86to:
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

curaga:
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.

mattiaxx86to:
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!

curaga:
Good news, looks like that cpu is a 486sx. Just enabling math emulation should make things work.

mattiaxx86to:
no..... there is a 386 ..... don't work?

Navigation

[0] Message Index

[#] Next page

Go to full version