Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
I just installed lfs 3.3 on a partition, and i am having some troubles
(duSIOCSIFADDR: No such device
eth0: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: unknown interface: No such device
Setting up default gateway...
SIOCADDRT: No such device
.... unforseen error in /etc/rc.d/rc3.d/S20network, which exited w/ a return value of 7ring bootup (etho: no such device.... )
anyways, someone suggested that i re-compile my kernel, so i have been playing around with that, and i have some questions.
1) in order to re-compile, do i have to delete /usr/src/linux , and then unpack the source (linux...tar.bz2)?
2)when i run make menuconfig, what file does it create and how can i use a different file (i think it is called .config?)
3)i want to use the config file from my R.H. 7.3 system, when i go to usr/src/linux, there's a whole bunch of other folders, all with linux....xxx.config, are these the config files that make menuconfig would create?
4)Last, but not least, after compiling, and copying bzImage to /boot/lfskernel, is that the kernel that is being used on the system? how can i have a couple of them and try different ones?
I don't know very much about linux ... or any other os for that matter, but i am trying to learn. help on any of the q's would be great. THANK YOU
ooh yeah... HOW DO I DELETE NON-EMPTY FOLDERS? I USED THE CORRECT ARGUMENTS IN RM, RMDIR AND THEY WON'T WORK!!!
1) You do not have to delete /usr/src/linux to recompile the same kernel version.
2/3) You are right. make menuconfig creates a .config file. That file is placed in the kernel source root. That is /usr/src/linux. Because the file starts with a period(.), its hidden. ==> ls -a
If you want to use your .config file from another system, you can just copy it into /usr/src/linux dir.
4) To boot other kernel images, you have to edit your /etc/lilo.conf file
and add the new kernel image that you have compiled.
ie:
.... but when i move the config file from r.h., do i still have to run make menuconfig, make oldconfig, or do i just skip that step? do i need to rename the config file from redhat to .config?
no, you do not have to run make menuconfig if you have all the settings you want in that new .config file. But you can run make menuconfig if you want to change anything else.
you don't need to rename the file, because the name of the file is .config
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.