LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Linux config file Questions (http://www.linuxquestions.org/questions/linux-from-scratch-13/linux-config-file-questions-914111/)

spiky0011 11-17-2011 03:43 PM

Linux config file Questions
 
I have a Question I have an old lfs 6.7 installed I,m having problems with network eth0 failed. OK I rebuilt the kernel a couple of times to no avail, I have lfs7 installed on the same laptop eth0 works. Now Q1 where is the config file kept I know /boot/config, but on 6.7 I have /usr/src/linux/.config but not in lfs7 there is no /usr/src/linux dir???
Q2 could I copy the lfs7 /boot/config to lfs6.7/boot/config.
Is the usr/src/linux/.config a backup???

druuna 11-19-2011 03:48 AM

Hi,
Quote:

Originally Posted by spiky0011 (Post 4526875)
I have a Question I have an old lfs 6.7 installed I,m having problems with network eth0 failed. OK I rebuilt the kernel a couple of times to no avail, I have lfs7 installed on the same laptop eth0 works. Now Q1 where is the config file kept I know /boot/config, but on 6.7 I have /usr/src/linux/.config but not in lfs7 there is no /usr/src/linux dir???
Q2 could I copy the lfs7 /boot/config to lfs6.7/boot/config.
Is the usr/src/linux/.config a backup???

Q1 - You must have build it somewhere, did you build the LFS 7.0 kernel in $LFS/sources?
But there is no problem here: Just unpack the kernel in /usr/src and you're good to go.

Q2 - I'm not entirely sure what will happen if you use the .config file that belongs to a newer kernel version and use it as input for an older kernel. Especially in this case: LFS 6.7 -> kernel 2.6.35 and LFS 7.0 -> kernel 3.1. Newer kernels have new/changed options, which is taken care of by the make oldmenuconfig command if you go from older to newer kernel.

I would advise against using a .config that belongs to a new kernel as input for an older kernel, but you can always give it a try :)

BTW: Did you check the network card options to see if changed have been made? I had a similar problem with my network card a while back: The kernel driver was completely rebuild and had a different name in the newer kernel. Once I activated that one, things worked again.

Hope this helps.


All times are GMT -5. The time now is 05:46 AM.