menuconfig...and more!!!
hi all
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: image = /boot/vmlinuz root = /dev/hda1 label = linux_new read-only run /sbin/lilo when you are finished. This is done to update the master boot record. ...and to delete dirs: rm -r |
thanks, i understand a little more....
.... 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 |
All times are GMT -5. The time now is 09:25 AM. |