![]() |
cannot compile kernel
when compiling the kernel i hit the problem:
BFD: .tmp_vmlinux1: invalid string offset 14510904 >= 933047 for section '.strtab' sevrel times in a row followed by make: *** [.tmp_kallsyms1.S] - Error 139 |
how about letting people know the OS and the kernel. but other wise compiling the kernel is well defined in the read me file of every kernel .
|
the os is DAMN SMALL LINUX
the gcc version is 3.??? (i dont exactly know) the kernel version is 2.6 i configed it with the old question system and typed make i have 400 mb ram avil |
open a terminal and type uname - a and post it. then type gcc -v and post it . Then let me know if you did a full install of DSL. if not do not even want to go there. so you did a full install and you want to compile the kernel.
Quote:
|
root@box:~# uname -a
Linux box 2.4.26 #1 SMP Sa Apr 17 19:33:42 CEST 2004 i686 GNU/Linux root@box:~# gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.4 (Debian 1:3.3.4-7) yes i am using a full install Quote:
|
the response time on the kernel section is terriable!
|
using a full install dsl is a debian distro here is the correct way to build a debian kernel.
Quote:
read this and you will be ahead of the crowd try this apt-get update Then we install all needed packages like this: apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential udev now use a fresh kernel from kernel org or debian, now build kernel make mrproper make clean. Make config, make then make modules_install and make install |
Quote:
i was just frustrated |
also
it says something about warning: section mismatch on vmlinuz(x?).o soon before the erreos |
Been where you are before. And it took me a week to figure out what header files were.
you need a full kernel source to compile a kernel not some headers symlink to your /lib/moduels/uname -r /kernel/build files. I about went crazy learning how to compile a 2.2.11 kernel a long time ago. if you are using gcc 4.2 there has been some issues this was fixed with 4.3.3 please make sure you install the stuff I said before so you will be able to compile.kernel. |
i didnt create any symlink
i just downloaded the source from kernel.org (LOL) and did a make config and did a make sorry i am a linux newbie and i am typeing this on windows because i have trouble browsing the web with linux (almost got hang of it) |
here the exact warning:
WARNING: modpost: Found 1 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y also i followed your instructions it said udev package not found it also said some packages not installed then i did another make and the errors are still there |
please read the kernel source read me file.
extract the source. then make clean then make mrproper now copy the /boot/config file to /usr/src/"linux-your version" now rename it .config >>> .<<<<< see the period before config (.config) Now open a Console (terminal) and now assume root cd /usr/src/"linux-your version" now type make oldconfig" Default all questions based on the contents of your existing ./.config file and asking about new config symbols. Quote:
Now type make modules_install then type make install. if using grub update your /boot/grub/menu.1st to load your new kernel. If using lilo you must run /sbin/lilo |
never mind i solved it
i built the kernel relocatable and that caused the errors now that its built how can i install a boot loader on a floppy disk(ette) to boot the kernel on the hdd because i dont want to replace the kernel i just want tot test it |
Quote:
Drakeo has shown commendable patience in helping you so far. There is no need to replace anything - merely add another stanza to your boot-loader config file, and choose which kernel to boot. |
All times are GMT -5. The time now is 09:13 PM. |