extract 内核config

 

 

./scripts/extract-ikconfig  vmlinux
extract-ikconfig: Cannot find kernel config.

 

If the kernel has been compiled with CONFIG_IKCONFIG=m (note the m), the configuration in stored in a module (configs.ko) and not in the kernel itself. That's the reason why running extract-ikconfig on the kernel image fails.

In this case, we can extract the config from the configuration module:

/usr/src/$(uname -r)/scripts/extract-ikconfig \ 
   /lib/modules/$(uname -r)/kernel/kernel/configs.ko

 

posted on 2020-10-22 19:02  tycoon3  阅读(221)  评论(0编辑  收藏  举报

导航