Is it possible to "extract" a .config file from a compiled kernel? And if so, how? Fxf -- ______________________ Courtesy of SuSE Linux Kernel 2.2.18 (who Kares?)
On Sat, 13 Jan 2001, fx Fraipont wrote: fx> Is it possible to "extract" a .config file from a compiled kernel? fx> And if so, how? fx> Depends, did you use the SuSE kernel source to compile your new kernel, or did you use the linux/linclude sources to compile your new kernel? The first one will have an option to rebuild the config file based on the current kernel (make cloneconfig). The second one will not and you will have to recreate the config from scratch. fx> Fxf fx> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v7.0+ - Kernel 2.2.17 Down with categorical imperative!
fx Fraipont wrote:
Is it possible to "extract" a .config file from a compiled kernel? And if so, how?
Fxf
I beleive that as long as you are using the SuSE patched sources (lx_suse) that you can do a make cloneconfig which should build you a .config file from your running kernel. -- Mark Hounschell dmarkh@cfl.rr.com
I don't know how wide-spread this is, but on my SuSE 6.4 system at home there is a file "/proc/config.gz" that appears to be a compressed copy of the .config file used to build the running kernel. I also have access to a SuSE 6.3 and a RedHat 6.1 system that do NOT have this file in /proc. I don't know what SuSE 7.0 has, but I'd bet it's the same as 6.4. "make cloneconfig" will decompress this file from /proc into .config Jim Cunning On Sat, 13 Jan 2001, Mark Hounschell wrote:
fx Fraipont wrote:
Is it possible to "extract" a .config file from a compiled kernel? And if so, how?
Fxf
I beleive that as long as you are using the SuSE patched sources (lx_suse) that you can do a make cloneconfig which should build you a .config file from your running kernel.
On Sat, Jan 13, 2001 at 04:31:28PM -0800, jcunning@cts.com wrote:
I don't know how wide-spread this is, but on my SuSE 6.4 system at home there is a file "/proc/config.gz" that appears to be a compressed copy of the .config file used to build the running kernel. I also have access to a SuSE 6.3 and a RedHat 6.1 system that do NOT have this file in /proc. I don't know what SuSE 7.0 has, but I'd bet it's the same as 6.4.
Correct, it does. Cliff
Mark Hounschell wrote:
fx Fraipont wrote:
Is it possible to "extract" a .config file from a compiled kernel? And if so, how?
Fxf
I beleive that as long as you are using the SuSE patched
what patches?, i was installing XFree-4.0.2 according to the README and when i tried to build the new modules it said to "make cloneconfig" which failed on my box with "no rule to make cloneconfig" my box is a recently updated 6.4>7.0 with stock kernel and sources installed via yast1......
sources (lx_suse) that you can do a make cloneconfig which should build you a .config file from your running kernel. -- Mark Hounschell dmarkh@cfl.rr.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- proud Linux user since kernel 1.1.54 icq#42235604
On Sat, 13 Jan 2001, Donald G. Knecht wrote: dk> Mark Hounschell wrote: dk> > dk> > fx Fraipont wrote: dk> > > dk> > > Is it possible to "extract" a .config file from a compiled kernel? dk> > > And if so, how? dk> > > dk> > > Fxf dk> > > dk> > I beleive that as long as you are using the SuSE patched dk> dk> what patches?, i was installing XFree-4.0.2 according to the README dk> and when i tried to build the new modules it said to "make cloneconfig" dk> which failed on my box with "no rule to make cloneconfig" dk> my box is a recently updated 6.4>7.0 with stock kernel and dk> sources installed via yast1...... dk> There are no actual patches, so to speak. What it is is a SuSE patched kernel, the kernel was already patched before making a package for distro. So if your getting 'no rule to make cloneconfig', then your not using the SuSE kernel source (lx_suse) package. dk> > sources (lx_suse) that you can do a make cloneconfig which should dK> > build you a .config file from your running kernel. dk> > -- dk> > Mark Hounschell dk> > dmarkh@cfl.rr.com dk> > dk> dk> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v7.0+ - Kernel 2.2.17 There *__is* intelligent life on Earth, but I leave for Texas on Monday.
"S.Toms" wrote:
There are no actual patches, so to speak. What it is is a SuSE patched kernel, the kernel was already patched before making a package for distro. So if your getting 'no rule to make cloneconfig', then your not using the SuSE kernel source (lx_suse) package.
well , i thought i was......yast shows the sources installed, but when i go to /usr/src/linux i have: drwxr-xr-x 3 root root 4096 Jan 10 22:45 kernel-modules lrwxrwxrwx 1 root root 12 Jan 5 18:07 linux -> linux-2.2.16 drwxr-xr-x 15 root root 4096 Jul 26 15:05 linux-2.2.13 drwxr-xr-x 3 root root 4096 Jan 13 2000 linux-2.2.13.SuSE drwxr-xr-x 2 root root 4096 Jan 5 18:40 linux-2.2.14 drwxr-xr-x 15 root root 4096 Jan 10 23:53 linux-2.2.16 drwxr-xr-x 7 root root 4096 May 31 2000 packages i notice the 2.2.13.SuSE, so maybe the others are non SuSE kernels? anyway, i'm not sure that's the problem, if i just make config, make dep, then try to compile the modules as the README says, i get all kinds of error messages refering to agp......i don't have agp on this AT motherboard....
-- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v7.0+ - Kernel 2.2.17
There *__is* intelligent life on Earth, but I leave for Texas on Monday.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- proud Linux user since kernel 1.1.54 icq#42235604
"S.Toms" wrote:
On Sat, 13 Jan 2001, Donald G. Knecht wrote:
dk> Mark Hounschell wrote: dk> > dk> > fx Fraipont wrote: dk> > > dk> > > Is it possible to "extract" a .config file from a compiled kernel? dk> > > And if so, how? dk> > > dk> > > Fxf dk> > > dk> > I beleive that as long as you are using the SuSE patched dk> dk> what patches?, i was installing XFree-4.0.2 according to the README dk> and when i tried to build the new modules it said to "make cloneconfig" dk> which failed on my box with "no rule to make cloneconfig" dk> my box is a recently updated 6.4>7.0 with stock kernel and dk> sources installed via yast1...... dk>
There are no actual patches, so to speak. What it is is a SuSE patched kernel, the kernel was already patched before making a package for distro. So if your getting 'no rule to make cloneconfig', then your not using the SuSE kernel source (lx_suse) package.
DOH! you're right i was using a regular kernel in 6.4 and when yast did update, guess what, still a regular non-SuSE kernel tanks
dk> > sources (lx_suse) that you can do a make cloneconfig which should dK> > build you a .config file from your running kernel. dk> > -- dk> > Mark Hounschell dk> > dmarkh@cfl.rr.com dk> > dk> dk>
-- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v7.0+ - Kernel 2.2.17
There *__is* intelligent life on Earth, but I leave for Texas on Monday.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- proud Linux user since kernel 1.1.54 icq#42235604
"Donald G. Knecht" wrote:
Mark Hounschell wrote:
fx Fraipont wrote:
Is it possible to "extract" a .config file from a compiled kernel? And if so, how?
Fxf
I beleive that as long as you are using the SuSE patched
what patches?, i was installing XFree-4.0.2 according to the README and when i tried to build the new modules it said to "make cloneconfig" which failed on my box with "no rule to make cloneconfig" my box is a recently updated 6.4>7.0 with stock kernel and sources installed via yast1......
sources (lx_suse) that you can do a make cloneconfig which should build you a .config file from your running kernel.
I'm talking about the kernel sources that have been patched by SUSE ie. package lx_suse. As far as I know (and could be wrong) make cloneconfig only works if using the SuSE patched kernel sources from package lx_suse.
-- Mark Hounschell dmarkh@cfl.rr.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- proud Linux user since kernel 1.1.54 icq#42235604
-- Mark Hounschell dmarkh@cfl.rr.com
On Sun, 14 Jan 2001 05:33, Mark Hounschell wrote:
fx Fraipont wrote:
Is it possible to "extract" a .config file from a compiled kernel? And if so, how?
Fxf
I beleive that as long as you are using the SuSE patched sources (lx_suse) that you can do a make cloneconfig which should build you a .config file from your running kernel.
Sorry for butting in here but I am curious. If I do a make cloneconfig then do a make xconfig will the settings for the current kernal be loaded up into the xconfig utility? thanks, Glenn
On Sun, 14 Jan 2001, Glenn wrote: g> On Sun, 14 Jan 2001 05:33, Mark Hounschell wrote: g> > fx Fraipont wrote: g> > > Is it possible to "extract" a .config file from a compiled kernel? g> > > And if so, how? g> > > g> > > Fxf g> > g> > I beleive that as long as you are using the SuSE patched g> > sources (lx_suse) that you can do a make cloneconfig which should build you g> > a .config file from your running kernel. g> g> Sorry for butting in here but I am curious. If I do a make cloneconfig then g> do a make xconfig will the settings for the current kernal be loaded up into g> the xconfig utility? g> Yes. As long as you don't run 'make mrproper' it will use which ever .config file it finds for settings in either 'make config', 'make menuconfig' or 'make xconfig'. g> thanks, Glenn g> g> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v7.0+ - Kernel 2.2.17 Philadelphia is not dull -- it just seems so because it is next to exciting Camden, New Jersey.
g> g> Sorry for butting in here but I am curious. If I do a make cloneconfig then g> do a make xconfig will the settings for the current kernal be loaded up into g> the xconfig utility? g>
Yes. As long as you don't run 'make mrproper' it will use which ever ..config file it finds for settings in either 'make config', 'make menuconfig' or 'make xconfig'.
Ok thanks.
Glenn wrote:
On Sun, 14 Jan 2001 05:33, Mark Hounschell wrote:
fx Fraipont wrote:
Is it possible to "extract" a .config file from a compiled kernel? And if so, how?
Fxf
I beleive that as long as you are using the SuSE patched sources (lx_suse) that you can do a make cloneconfig which should build you a .config file from your running kernel.
Sorry for butting in here but I am curious. If I do a make cloneconfig then do a make xconfig will the settings for the current kernal be loaded up into the xconfig utility?
Yes, but again I beleive this is only true is your using the SuSE patched version of the kernel sources (lx_suse). -- Mark Hounschell dmarkh@cfl.rr.com
participants (7)
-
Cliff Sarginson
-
Donald G. Knecht
-
fx Fraipont
-
Glenn
-
jcunning@cts.com
-
Mark Hounschell
-
S.Toms