User Tools

Site Tools


управление_ядром_и_модулями_в_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
управление_ядром_и_модулями_в_linux [2017/11/29 07:49]
val [Сборка ядра в Debian/Ubuntu]
управление_ядром_и_модулями_в_linux [2022/12/13 14:38] (current)
val [Модули ядра]
Line 13: Line 13:
  
 $ lsmod $ lsmod
 +
 +# modinfo e1000
  
 # modprobe ip_gre # modprobe ip_gre
Line 25: Line 27:
 </​code>​ </​code>​
  
 +===== Сообщения ядра =====
 +<​code>​
 +$ dmesg -T
 +</​code>​
 ===== Переменные ядра ===== ===== Переменные ядра =====
 +
 +  * [[https://​coderoad.ru/​8290046/​ICMP-%D1%81%D0%BE%D0%BA%D0%B5%D1%82%D1%8B-linux|ICMP-сокеты (linux)]]
 +
 <​code>​ <​code>​
 # sysctl -a # sysctl -a
Line 50: Line 59:
  
   * [[https://​wiki.gentoo.org/​wiki/​Kernel/​Configuration/​ru|Ядро/​Конфигурация]]   * [[https://​wiki.gentoo.org/​wiki/​Kernel/​Configuration/​ru|Ядро/​Конфигурация]]
-  * [[https://​wiki.gentoo.org/​wiki/​Hardened_Gentoo/​ru|Hardened Gentoo]] 
  
 +  * [[https://​www.gentoo.org/​news/​2017/​08/​19/​hardened-sources-removal.html|Hardened Linux kernel sources removal]]
 +<​code>​
 +# emerge --ask hardened-sources
 +# echo "​=sys-kernel/​hardened-sources-4.8.17-r2"​ >> /​etc/​portage/​package.unmask
 +# emerge --ask hardened-sources
 +</​code>​
 +
 +<​code>​
 +# time emerge -av sys-kernel/​gentoo-sources
 +
 +real    8m44.821s
 +user    5m37.132s
 +sys     ​1m56.026s
 +
 +/​usr/​src/​linux # make defconfig
 +
 +/​usr/​src/​linux # make menuconfig
 +
 +/​usr/​src/​linux # time make -j3
 +
 +real    20m6.287s
 +user    34m28.865s
 +sys     ​4m4.605s
 +
 +/​usr/​src/​linux # make modules_install
 +
 +/​usr/​src/​linux # make install
 +
 +# grub-mkconfig -o /​boot/​grub/​grub.cfg
 +</​code>​
 ==== Сборка ядра в Debian/​Ubuntu ==== ==== Сборка ядра в Debian/​Ubuntu ====
  
управление_ядром_и_модулями_в_linux.1511930966.txt.gz · Last modified: 2017/11/29 07:49 by val