Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone. Im trying to follow DrOzz's excellant thread about compiling kernels. Im compiling the 2.6.8.1 kernel from source, all was well until I tryed executing "make bzImage"
Here's what the console gave me:
Code:
debian:/home/src/kernel/linux# make bzImage
CHK include/linux/version.h
scripts/kconfig/conf -s arch/i386/Kconfig
#
# using defaults found in .config
#
SPLIT include/linux/autoconf.h -> include/config/*
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CC init/main.o
CHK include/linux/compile.h
CC init/do_mounts.o
LD init/mounts.o
LD init/built-in.o
scripts/Makefile.build:13: usr/Makefile: No such file or directory
make[1]: *** No rule to make target `usr/Makefile'. Stop.
make: *** [usr] Error 2
Im not sure what to do from here.
Replies are appreciated
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
I'm guessing here, but I suspect that imported a .config file without subsequently running make oldconfig (or menuconfig,or xconfig). The kernel compile does not directly use .config. .config is input to one of the config tools which creates Makefiles in accord with .config. The make bzImage (and make and make modules_install) use these created Makefiles directly.
Originally posted by kevinalm I'm guessing here, but I suspect that imported a .config file without subsequently running make oldconfig (or menuconfig,or xconfig). The kernel compile does not directly use .config. .config is input to one of the config tools which creates Makefiles in accord with .config. The make bzImage (and make and make modules_install) use these created Makefiles directly.
That's odd... I ran make xconfig and chose the options for my kernel. I then went to File > Save As in the xconfig menu, and saved the options as .config (the default, already-imputted, filename) in /home/src/kernel/linux-2.6.8.1 (the default, already-navagated-to directory).
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
Well, that shoots down my idea. xconfig should take care of the problem I suggested. It's a rather strange error, not being able to find one of the recursive Makefiles. Something went very badly wrong. Maybe a corrupt download of the kernel source?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.