./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