Shachar Shemesh wrote:
> Hi all,
>
> I have a kernel image that was compiled by someone else for a platform
> I don't own. The kernel was (probably) compiled to export its
> configuration parameters via /proc/config.gz. I want to get that file.
>
> The problem is, of course, that I cannot run the kernel.
>
> Does anyone know how I can extract the kernel's config without running it?
>
> Thanks,
> Shachar
From Kconfig:

 │
CONFIG_IKCONFIG:                                                                
                                                              
│
 
│                                                                               
                                                                
│
  │ This option enables the complete Linux kernel ".config"
file                                                                            
      
│
  │ contents to be saved in the kernel. It provides
documentation                                                                   
              
│
  │ of which kernel options are used in a running kernel or in
an                                                                              
   
│
  │ on-disk kernel.  This information can be extracted from the
kernel                                                                          
  
│
  │ image file with the script scripts/extract-ikconfig and used
as                                                                              
 
│
  │ input to rebuild the current kernel or to build another
kernel.                                                                         
      
│
  │ It can also be extracted from a running kernel by
reading                                                                         
            
│
  │ /proc/config.gz if enabled
(below).                                                                        
                                   
│

-- 
Ilya A. Volynets-Evenbakh
http://www.total-knowledge.com


_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to