Test markdown
1. Determine and configure hardware settings
Introduction
- /sys/, /proc/, /dev/
- modprobe, lsmod, lspci, lsusb
- BIOS, UEFI
- 2 commands to identify connected devices:
lspcifor PCI andlsusbfor USB. May need root privileges to execute. - Hardware part requires kernel module to control the device. Linux kernel modules related to hardware devices are called drivers.
- Linux system can have many loaded kernel modules, managed by
kmodpackage. lsmodcommand shows all loaded modules. Output oflsmodhas 3 columns: Module, Size, Used by.- Some modules require other modules to work properly.
modprobecommand can be used to load and to unload kernel modules.modprobe -rwill unload a module and its related modules if they are note being used by a running process.- While the kernel is being loaded, module parameters can be changed.
modinfocommand use the module name as only argument, show description, file, author, license, identification, dependencies and parameters.- Customized module parameters can be made persistent by including in file
/etc/modprobe.confor individual.conffiles in directory/etc/modprobe.d/. - File
/etc/modprobe.d/blacklist.confcan be used to block the loading of module. - Hardware information stored by operating system is kept in files in directories
/procand/sys. These directories are mount points to pseudo-filesystems, they only present in RAM space used by kernel, storing runtime configuration and process information. These filesystems only exist while system is running. /procdirectory contains information about running processes and hardware resources. For example:/proc/cpuinfo,/proc/interrupts,/proc/iooprts,/proc/dma./sysdirectory has similar roles to/proc./sysstores device information and kernel data related to hardware./procalso contains information about kernel data structures, including running processes and configuration.