LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 07-26-2002, 04:52 PM   #1
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
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!!!
 
Old 07-26-2002, 06:01 PM   #2
champ
Member
 
Registered: Jul 2002
Distribution: Slackware 10.0
Posts: 46

Rep: Reputation: 16
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
 
Old 07-26-2002, 06:52 PM   #3
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
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?
 
Old 07-27-2002, 06:22 AM   #4
champ
Member
 
Registered: Jul 2002
Distribution: Slackware 10.0
Posts: 46

Rep: Reputation: 16
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
menuconfig mickeyboa Fedora 1 05-22-2005 06:42 PM
Cannot use make menuconfig Brakki Debian 8 03-17-2004 12:38 PM
make menuconfig itsjustme Slackware 6 03-07-2004 01:33 PM
make menuconfig pudhiyavan Fedora 3 12-14-2003 05:16 PM
Menuconfig casp Linux - General 4 03-03-2003 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration