I currently run Angstrom Linux 2.6.32. I intend to upgrade linux kernel from 2.6.32 to 3.0.7. For this reason, I had to configure kernel 3.0.7 running make menuconfig.
Now, I want to compare the new kernel configuration with the previous, but I can’t find kernel 3.0.7 configuration file. Any ideas?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Whenever you run make menuconfig, make xconfig, make XXX_defconfig, make oldconfig, make localmodconfig or any of the other make XXXconfig targets in the Linux kernel source tree, this creates (if successful) a file called .config. This file is used during the compilation of the kernel and is not erased unless you erase it manually or run make mrproper.
It’s common to keep kernel source trees in /usr/src; if you did the compilation in /usr/src/linux-3.0.7 then your .config file is in /usr/src/linux-3.0.7/.config. (Since this is a dot file, the ls command doesn’t show it unless run with the -a flag.)
Many distributions arrange to copy the .config file into the package containing the kernel, and install it next to the kernel, e.g. /boot/config-3.0.7 to match /boot/vmlinuz-3.0.7. Embedded distributions often don’t do that; I don’t know if Angstrom does, and anyway this doesn’t apply if you compiled the kernel manually.
The kernel configuration can sometimes be available from the running kernel in /proc/config.gz. This requires the IKCONFIG compile-time option.
Method 2
Your new one is .config at the top level of your kernel source tree. It may also get installed to /boot/config-3.0.7 or similar, depending.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0