What is Oldconfig?
make oldconfig is used to apply your old . config file to the newer kernel. For exapmle, you have .config file of your current kernel and you downloaded new kernel and want to build your new kernel. Since very likely new kernel will have some new configuration options, you will need to update your config.
What is the use of menuconfig?
make menuconfig , with a menu-driven user interface, allows the user to choose the features of Linux (and other options) that will be compiled. It is normally invoked using the command make menuconfig ; menuconfig is a target in Linux Makefile.
What to do after making menuconfig?
In general, after a make menuconfig or make config , the . config file is changed. This file describes which options are choosen and will tell make and Makefile which file to compile and which options to activate. It may be useful to know that the previous .
How do I search in Create menuconfig?
As pointed of above; search for “FRAME_POINTER” after make menuconfig by pressing ‘/’ key. It’ll display all the config option having this string. Press the number against the desired option. It’ll take you to that specific configuration.
How do I use Localmodconfig?
“make localmodconfig” Create a config based on current config and loaded modules (lsmod). Disables any module option that is not needed for the loaded modules. To create a localmodconfig for another machine, store the lsmod of that machine into a file and pass it in as a LSMOD parameter.
Where is Kconfig?
Kconfig-related tools and source code reside mainly under scripts/kconfig/ in the kernel source.
What is the difference between modprobe and Insmod?
insmod is similar to modprobe: it can insert a module into the Linux kernel. Unlike modprobe, however, insmod does not read its modules from a set location, automatically insert them, and manage any dependencies. insmod can insert a single module from any location, and does not consider dependencies when doing so.
What is make bzImage?
` make bzImage ‘ will compile the kernel, and leave a file in arch/i386/boot called ` bzImage ‘ (among other things). This is the new compressed kernel. ` make bzdisk ‘ does the same thing, but also places the new bzImage on a floppy disk which you hopefully put in drive “A:”.
What is make Modules_install?
make modules_install will make sure that there are compiled binaries (and compile the modules, if not) and install the binaries into your kernel’s modules directory. If you are sure that all modules compile without problems, you can use make modules_install directly.
How do I open the kernel configuration menu?
To configure the kernel, change to /usr/src/linux and enter the command make config. Choose the features you want supported by the kernel. Usually, There are two or three options: y, n, or m. m means that this device will not be compiled directly into the kernel, but loaded as a module.
What is Distclean make?
make distclean is the first step up from the basic make clean on many GNU Make systems. It seems to be pseudonymous or at least very similar to with make realclean and make clobber in many, but not all cases. It will delete everything that make clean does and remove the configuration.
What is make Localmodconfig?
“make localmodconfig” Create a config based on current config and loaded modules (lsmod). Disables any module option that is not needed for the loadedmodules. To create a localmodconfig for another machine, store the lsmod of that machine into a file and pass it in as a LSMOD parameter.
What is Kbuild?
kbuild is an assortment of scripts that are built-in inside the kernel’s sources, and the kernel build process does not depend on anything named kmk. The kernel build system depends only on the standard GNU make, and it takes care of compiling its own helper programs, most of which are located under scripts/ directory.
Where is insmod and rmmod located?
The insmod Command ko) into the kernel. There are only 2 options – on -h for help, and -V fto show the version of insmod. This example shows running the insmod command from the /lib/modules/$(uname -r) directory, and that the . ko file exists in the specified directory.
What happens when insmod is called?
Insmod physically writes the address of the symbol into the appropriate place in the module. When insmod has fixed up the module’s references to exported kernel symbols, it asks the kernel for enough space to hold the new kernel, again using a privileged system call.
What is zImage and bzImage?
The bzImage (big zImage) format was developed to overcome this limitation by splitting the kernel over non-contiguous memory regions. The bzImage was compressed using gzip until Linux 2.6.30. The bzImage file is in a specific format. It contains concatenated bootsect.o + setup.o + misc.o + piggy.o.
What is Symvers?
symvers is a plain text file which is generated after kernel building. It records CRC values of all the exported symbols in both vmlinux and modules.