This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
управление_ядром_и_модулями_в_linux [2017/11/29 07:49] val [Сборка ядра в Debian/Ubuntu] |
управление_ядром_и_модулями_в_linux [2020/06/25 07:42] val [Сборка ядра в Gentoo] |
||
---|---|---|---|
Line 13: | Line 13: | ||
$ lsmod | $ lsmod | ||
+ | |||
+ | # modinfo e1000 | ||
# modprobe ip_gre | # modprobe ip_gre | ||
Line 50: | Line 52: | ||
* [[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 ==== | ||