LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   make .config file from bzImage (https://www.linuxquestions.org/questions/linux-software-2/make-config-file-from-bzimage-176688/)

luponec 05-01-2004 12:03 PM

make .config file from bzImage
 
I?? t is possible to obtain .config file for make from a working kernel bzImage ?? (...sources directory is lost :-( ... )

tnx

esben 05-01-2004 02:21 PM

If you're running the kernel, you could try something like
Code:

cat  /proc/config.gz | gunzip > .config
It rather depends on a kernel option being checked, though, so it may not work. I know of no other way (which is why I always check that option)

Anvil 05-01-2004 04:40 PM

Hence the tradition of copying the .config and the System.map files to the /boot directory and numbering them for the full kernel version as with the kernel itself. I know it really doesn't help after the fact, but it might at least arm you against it happening again.

Hope the original turns up

Andy M

luponec 05-02-2004 03:58 AM

>esben WROTE
>
>cat /proc/config.gz | gunzip > .config
>

YES IT WORKS TNX :-) GREAT SUGGEST


>anvil wrote
>
>copying the .config and the System.map files to the /boot directory
>

yep surely I will do that since now

(sorry 4 my bad english)
Tnx both 4 support


All times are GMT -5. The time now is 01:02 PM.