Tiny Core Linux
Tiny Core Base => Micro Core => Topic started by: mc006 on July 22, 2010, 06:49:59 AM
-
Hi,
I am trying to recompile kernel using the latest version of microcore 3.0. I have installed in virtual machine using qemu. I have downloaded the kernel from kernel.org website. I downloaded the patch file from here and patched it and than i downloaded the config file and renamed it ".config" and saved it in same directory as the linux kernel source code.
when i type make oldconfig i get following error messages:
root@box:/mnt/hda1/kernel/linux-2.6.33.3# make oldconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:106:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:107:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:108:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:109:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:110:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:111:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:112:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:113:19: error: stdio.h: No such file or directory
In file included from /tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.3/include-fixed/syslimits.h:7,
from /tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.3/include-fixed/limits.h:11,
from scripts/basic/fixdep.c:114:
/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.3/include-fixed/limits.h:122:61: error: limits.h: No such file or directory
scripts/basic/fixdep.c:115:19: error: ctype.h: No such file or directory
scripts/basic/fixdep.c:116:23: error: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function 'usage':
scripts/basic/fixdep.c:129: warning: implicit declaration of function 'fprintf'
scripts/basic/fixdep.c:129: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:129: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:129: error: for each function it appears in.)
scripts/basic/fixdep.c:130: warning: implicit declaration of function 'exit'
scripts/basic/fixdep.c:130: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c: In function 'print_cmdline':
scripts/basic/fixdep.c:138: warning: implicit declaration of function 'printf'
scripts/basic/fixdep.c:138: warning: incompatible implicit declaration of built-in function 'printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:141: error: 'NULL' undeclared here (not in a function)
scripts/basic/fixdep.c: In function 'grow_config':
scripts/basic/fixdep.c:154: warning: implicit declaration of function 'realloc'
scripts/basic/fixdep.c:154: warning: incompatible implicit declaration of built-in function 'realloc'
scripts/basic/fixdep.c:156: warning: implicit declaration of function 'perror'
scripts/basic/fixdep.c:156: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c: In function 'is_defined_config':
scripts/basic/fixdep.c:172: warning: implicit declaration of function 'memcmp'
scripts/basic/fixdep.c: In function 'define_config':
scripts/basic/fixdep.c:185: warning: implicit declaration of function 'memcpy'
scripts/basic/fixdep.c:185: warning: incompatible implicit declaration of built-in function 'memcpy'
scripts/basic/fixdep.c: In function 'use_config':
scripts/basic/fixdep.c:204: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:212: warning: incompatible implicit declaration of built-in function 'memcpy'
scripts/basic/fixdep.c:218: warning: implicit declaration of function 'tolower'
scripts/basic/fixdep.c:220: warning: incompatible implicit declaration of built-in function 'printf'
scripts/basic/fixdep.c:204: warning: unused variable 's'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:223: error: expected declaration specifiers or '...' before 'size_t'
scripts/basic/fixdep.c: In function 'parse_config_file':
scripts/basic/fixdep.c:225: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:231: warning: implicit declaration of function 'ntohl'
scripts/basic/fixdep.c:242: warning: implicit declaration of function 'isalnum'
scripts/basic/fixdep.c: In function 'strrcmp':
scripts/basic/fixdep.c:259: warning: implicit declaration of function 'strlen'
scripts/basic/fixdep.c:259: warning: incompatible implicit declaration of built-in function 'strlen'
scripts/basic/fixdep.c: In function 'do_config_file':
scripts/basic/fixdep.c:270: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:274: warning: implicit declaration of function 'open'
scripts/basic/fixdep.c:274: error: 'O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:276: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:276: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:278: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c:280: warning: implicit declaration of function 'fstat'
scripts/basic/fixdep.c:282: warning: implicit declaration of function 'close'
scripts/basic/fixdep.c:285: warning: implicit declaration of function 'mmap'
scripts/basic/fixdep.c:285: error: 'PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:285: error: 'MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:292: error: too many arguments to function 'parse_config_file'
scripts/basic/fixdep.c:294: warning: implicit declaration of function 'munmap'
scripts/basic/fixdep.c:270: warning: unused variable 'st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:299: error: expected declaration specifiers or '...' before 'size_t'
scripts/basic/fixdep.c: In function 'parse_dep_file':
scripts/basic/fixdep.c:302: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:304: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:306: warning: implicit declaration of function 'strchr'
scripts/basic/fixdep.c:306: warning: incompatible implicit declaration of built-in function 'strchr'
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:308: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:309: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c:311: warning: incompatible implicit declaration of built-in function 'memcpy'
scripts/basic/fixdep.c:312: warning: incompatible implicit declaration of built-in function 'printf'
scripts/basic/fixdep.c:304: warning: unused variable 's'
scripts/basic/fixdep.c: In function 'print_deps':
scripts/basic/fixdep.c:341: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:345: error: 'O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:347: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:347: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c:353: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:357: error: 'PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:357: error: 'MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:364: error: too many arguments to function 'parse_dep_file'
scripts/basic/fixdep.c:341: warning: unused variable 'st'
scripts/basic/fixdep.c: In function 'traps':
scripts/basic/fixdep.c:377: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:377: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:379: warning: incompatible implicit declaration of built-in function 'exit'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
Can some please help on how i can fix this error and progress further....Please help....
Thanks
-
It looks like the base-dev extension (which would be loaded by the compiletc psuedo-extension) is not loaded - note you will also need the perl5 and bash extensions loaded.
There is a patched kernel available at http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/release/src/kernel/linux-2.6.33.3-patched.tbz2 (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/release/src/kernel/linux-2.6.33.3-patched.tbz2)
-
It looks like the base-dev extension (which would be loaded by the compiletc psuedo-extension) is not loaded - note you will also need the perl5 and bash extensions loaded.
There is a patched kernel available at http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/release/src/kernel/linux-2.6.33.3-patched.tbz2 (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/release/src/kernel/linux-2.6.33.3-patched.tbz2)
Hi Juanito,
I can now get passed make oldconfig and also passed make menuconfig. After i make my selections and exit than type make bzImage, i get following error:
root@box:/mnt/hda1/kernel/linux-2.6.33.3# make bzImage
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GEN usr/initramfs_data.cpio
make[1]: *** [usr/initramfs_data.cpio] Error 1
make: *** [usr] Error 2
root@box:/mnt/hda1/kernel/linux-2.6.33.3#
I have install cpio package. I initially thought this was to do with cpio so installed cpio package and than re-entered the make bzImage command and i still get this error message.
Any ideas what i am missing.
I have applied the patch from linux-2.6.33.3-patched.tbz before i started re-compile process.
Thanks
-
I have applied the patch from linux-2.6.33.3-patched.tbz before i started re-compile process.
Since the patched kernel is already patched, you don't need to (re)apply the patch.
Once you've copied the tc config file as .config, you can use "make menuconfig" to load .config directly (next to last menu item), you don't need to use "make oldconfig" - however, all this wouldn't seem to explain your error..
-
Hi,
Here s all the packages i have loaded at the moment.
Is there anything else i might be missing:
Filesystem Size Used Available Use% Mounted on
tmpfs 452.5M 9.8M 442.7M 2% /
tmpfs 251.4M 0 251.4M 0% /dev/shm
/dev/hda1 687.1M 502.4M 149.8M 77% /mnt/hda1
/dev/loop0 80.0K 80.0K 0 100% /tmp/tcloop/make
/dev/loop1 480.0K 480.0K 0 100% /tmp/tcloop/gmp
/dev/loop2 4.4M 4.4M 0 100% /tmp/tcloop/ppl
/dev/loop3 356.0K 356.0K 0 100% /tmp/tcloop/mpfr
/dev/loop4 136.0K 136.0K 0 100% /tmp/tcloop/cloog
/dev/loop5 112.0K 112.0K 0 100% /tmp/tcloop/gcc_libs
/dev/loop6 10.6M 10.6M 0 100% /tmp/tcloop/gcc
/dev/loop7 1016.0K 1016.0K 0 100% /tmp/tcloop/glib2
/dev/loop8 624.0K 624.0K 0 100% /tmp/tcloop/glibc_apps
/dev/loop9 392.0K 392.0K 0 100% /tmp/tcloop/bash
/dev/loop10 120.0K 120.0K 0 100% /tmp/tcloop/readline
/dev/loop11 1.3M 1.3M 0 100% /tmp/tcloop/libiconv
/dev/loop12 84.0K 84.0K 0 100% /tmp/tcloop/libtasn1
/dev/loop13 60.0K 60.0K 0 100% /tmp/tcloop/libgpg-error
/dev/loop14 292.0K 292.0K 0 100% /tmp/tcloop/libgcrypt
/dev/loop15 388.0K 388.0K 0 100% /tmp/tcloop/gnutls
/dev/loop16 76.0K 76.0K 0 100% /tmp/tcloop/expat2
/dev/loop17 380.0K 380.0K 0 100% /tmp/tcloop/lftp
/dev/loop18 11.9M 11.9M 0 100% /tmp/tcloop/perl5
/dev/loop19 5.7M 5.7M 0 100% /tmp/tcloop/base-dev
/dev/loop20 612.0K 612.0K 0 100% /tmp/tcloop/bash-locale
/dev/loop21 24.0K 24.0K 0 100% /tmp/tcloop/sed
/dev/loop22 44.0K 44.0K 0 100% /tmp/tcloop/pkg-config
/dev/loop23 56.0K 56.0K 0 100% /tmp/tcloop/patch
/dev/loop24 80.0K 80.0K 0 100% /tmp/tcloop/m4
/dev/loop25 108.0K 108.0K 0 100% /tmp/tcloop/grep
/dev/loop26 36.0K 36.0K 0 100% /tmp/tcloop/gperf
/dev/loop27 292.0K 292.0K 0 100% /tmp/tcloop/gawk
/dev/loop28 108.0K 108.0K 0 100% /tmp/tcloop/flex
/dev/loop29 180.0K 180.0K 0 100% /tmp/tcloop/findutils
/dev/loop30 288.0K 288.0K 0 100% /tmp/tcloop/file
/dev/loop31 56.0K 56.0K 0 100% /tmp/tcloop/diffutils
/dev/loop32 248.0K 248.0K 0 100% /tmp/tcloop/bison
/dev/loop33 1.6M 1.6M 0 100% /tmp/tcloop/binutils
/dev/loop34 4.0K 4.0K 0 100% /tmp/tcloop/compiletc
/dev/loop35 48.0K 48.0K 0 100% /tmp/tcloop/cpio
Thanks
-
Coreutils and util-linux-ng, I think.
-
Hi,
I have manage to recompile the kernel,
i.e. make bzImage and make modules finished without any errors.
I have a bzImage which i have moved to /mnt/hda1/boot dir and renamed it as bzImage2 since i already have my original bzImage already in this dir.
I would like to know after the make modules command how to i install all the modules in mc3. What command do i need to execute?
Can some please advise?
For the new kernel how to i create initrd file?
In my grub menu.lst file i have following entries:
default 0
timeout 10
kernel /boot/bzImage quiet
initrd /boot/microcore.gz
title mc_kernel_custom
kernel /boot/bzImage2 quiet
initrd ??? what do i put for this and how do i create this
Please help with installing modules i am not sure about the paths bit and also how to i create new initial ram disk file.
Thanks so far for all you help....
-
I would like to know after the make modules command how to i install all the modules in mc3. What command do i need to execute?
"make modules_install" - note that after installing the modules, you will need to move them under /usr/local/lib/modules/2.6.33.3-tinycore and make an extension out of them.
For the new kernel how to i create initrd file?
You can use the existing microcore.gz/tinycore.gz
-
Hi,
Thanks for the info. i ran make modules_install and that worked fine. I am still not sure about creating the extensions bit.
"make modules_install" - note that after installing the modules, you will need to move them under /usr/local/lib/modules/2.6.33.3-tinycore and make an extension out of them.Can you provide some steps on how i copy modules to /usr/local/lib/modules/2.6.33.3-tinycore and how to make an extension of them...some steps to do this will be really helpful. I have tried looking at the wiki but could not find these steps.
When i recompiled the kernel i enabled lot modules, is there a easy way to copy them across using a single command....
Thanks alot for your help....i am nearly there....
-
Hi any help on how i go further with this....please help...
Thanks
-
The wiki has a section on extension making - did you have a look at this?
If you want to know what files have been copied using "make modules_install", you can do something like this: $ touch mymarker
$ sudo make install_modules
$ sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files
$ beaver files ..this needs the findutils and beaver extensions to be loaded
You will now have list of all the modules installed and can edit out the modules you don't want.
To copy the modules to the correct tc location, you could try loading the emelfm extension and starting it with "sudo emelfm". This will allow you to create the folders you need and copy the modules to these folders.
-
Everything installed is in INSTALL_MOD_PATH - /lib/modules by default.