Core and core modules, loading and unloading modules
Source: Internet
Author: User
Core and core modules, loading and uninstalling Modules 1. core:/boot/vmlinuz or/boot/vmlinuz-version; RAMDisk required for core decompression: /boot/initrd (/boot/initrd-version); Core Module:/lib/modules/version/kernel or /... core and core modules, loading and uninstalling Modules 1. core:/boot/vmlinuz or/boot/vmlinuz-version; RAM Disk required for core decompression: /boot/initrd (/boot/initrd-version); core modules:/lib/modules/version/kernel or/lib/modules/$ (uname-r)/kernel; core original code:/usr/src/linux (installation required! Otherwise, it is not installed by default !) Www.2cto.com 2. if the core is successfully loaded into the system, several pieces of information will be recorded: Core version:/proc/version system core functions: /proc/sys/kernel3. what should I do if I have a new hardware but my operating system does not support it? Recompile the core and add the latest hardware driver source code. Alternatively, compile the hardware driver into a module and load the module at startup. Www.2cto.com 4. Core Module dependency/lib/modules/$ (uname-r)/modules. dep! It records the dependencies of the modules supported at the core. [Root @ www ~] # Depmod [-Ane] options and parameters:-A: When no parameters are added, depmod will take the initiative to analyze the current core modules, and re-write/lib/modules/$ (uname-r)/modules. dep. If the-A parameter is added, depmod searches for modules that are newer than those in modules. dep. if A new module is found, the module is updated. -N: Do not write modules. dep, but outputs the result to the screen (standard out);-e: displays the currently loaded unexecutable module name Example 1: If I have a network card driver, file name:. ko, how to update core dependency? [Root @ www ~] # Cp a. ko/lib/modules/$ (uname-r)/kernel/drivers/net [root @ www ~] # Depmod display all modules: depmod-e5. observation of core modules: What modules does lsmod currently contain? The displayed content includes the Module name, the size of the Module, and whether the Module is Used by other modules (Used ). 6. modinfo: displays the module details, for example, [root @ www ~]. # Modinfo mii7 and modprobe to process module loading: [root @ www ~] # Modprobe [-lcfr] module_name option and parameter:-c: list all modules of the current system! (More detailed code table)-l: lists the complete file names of all modules in/lib/modules/'uname-r'/kernel.-f: forcibly load the module.-r: Similar to rmmod, it means to remove a module ??? /Div> using modprobe is much more convenient than insmod! Because he directly searches for the records of modules. dep ??? Is it better than a hacker? What is the Yunnan Yunxiao ?? Total zookeeper ?? Ranmei w Nan Luga is a bet? /Div> 8. uninstall the Module: modprobe-r module name
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service