Contents
When do we configure the kernel for compilation?
When we configure the kernel for compilation the file get created. The .config file keep the configuration for the kernel to be built. Whatever configuration changes you do while configuring the kernel, it gets saved in this file. Here is a small snippet of the configuration file which we will generate in sometime.
How does depmod print a module.dep file?
Print the help message and exit. This sends the resulting modules.dep and the various map files to standard output rather than writing them into the module directory. In verbose mode, depmod will print (to stdout) all the symbols each module depends on and the module’s file name which provides that symbol.
How is DEP endency mod ules used in Linux?
depmod ( Dep endency Mod ules) command is used to generate a list of dependency description of kernel modules and its associated map files. This analyzes the kernel modules in the directory /lib/modules/kernel-release and creates a “ Makefile”-like dependency file named modules.dep based on the symbols present in the set of modules.
How to move modules to normal directory in DEP?
If your modules are not currently in the (normal) directory /lib/modules/version, but in a staging area, you can specify a basedir which is prepended to the directory name. This basedir is stripped from the resulting modules.dep file, so it is ready to be moved into the normal location.
How to compile custom kernels in Arch Linux?
In Arch Linux, there are two ways to compile custom kernels: Using the Arch Build System (ABS) The traditional method.
How to compile and boot a Linux kernel?
Compile a Linux kernel. Package a compiled kernel. Install a Linux kernel. Boot from a new Linux kernel. Making only a module in the kernel. 3.1.3. Prerequisites ¶ We expect that you have already installed a Linux system and have some basic understanding of Linux terminal.
Why is the Linux kernel distributed with general settings?
The kernel distributed with general settings setting which should run on all the possible installations. Thus they need to support a wide range of hardware. Some of the features may be built in the kernel while some of them may be built as modules. It’s alright if they are built as module as they don’t increase the size of the kernel.