文章目录

  • 一、安装内核模块
  • 二、安装内核
  • 三、重启系统
  • 四、查看当前内核版本

一、安装内核模块


确保 Linux 内核编译完成 , 没有任何报错之后 ; 参考 【Linux 内核】编译 Linux 内核 ⑥ ( 安装 OpenSSL | 安装其它依赖库 | 内核编译完成 ) 博客 ;

进入 Linux 内核源码的根目录 , 执行

sudo make modules_install

命令 , 安装编译好的内核模块 ;

安装成功后命令行最后一页内容 :

完整过程如下 :

root@ubuntu:~# cd kernel/
root@ubuntu:~/kernel# cd linux-5.6.14
root@ubuntu:~/kernel/linux-5.6.14#
root@ubuntu:~/kernel/linux-5.6.14#
root@ubuntu:~/kernel/linux-5.6.14# ls
arch   COPYING  Documentation  include  Kbuild   lib          Makefile         modules.builtin.modinfo  net      scripts   System.map  virt            vmlinux.o
block  CREDITS  drivers        init     Kconfig  LICENSES     mm               modules.order            README   security  tools       vmlinux
certs  crypto   fs             ipc      kernel   MAINTAINERS  modules.builtin  Module.symvers           samples  sound     usr         vmlinux-gdb.py
root@ubuntu:~/kernel/linux-5.6.14#
root@ubuntu:~/kernel/linux-5.6.14#
root@ubuntu:~/kernel/linux-5.6.14# sudo make modules_installINSTALL arch/x86/crypto/aesni-intel.koINSTALL arch/x86/crypto/blowfish-x86_64.koINSTALL arch/x86/crypto/camellia-aesni-avx-x86_64.koINSTALL arch/x86/crypto/camellia-aesni-avx2.koINSTALL arch/x86/crypto/camellia-x86_64.koINSTALL arch/x86/crypto/cast5-avx-x86_64.koINSTALL arch/x86/crypto/cast6-avx-x86_64.koINSTALL arch/x86/crypto/chacha-x86_64.koINSTALL arch/x86/crypto/crc32-pclmul.koINSTALL arch/x86/crypto/crct10dif-pclmul.koINSTALL arch/x86/crypto/des3_ede-x86_64.koINSTALL arch/x86/crypto/ghash-clmulni-intel.koINSTALL arch/x86/crypto/glue_helper.koINSTALL arch/x86/crypto/poly1305-x86_64.koINSTALL arch/x86/crypto/serpent-avx-x86_64.koINSTALL arch/x86/crypto/serpent-avx2.koINSTALL arch/x86/crypto/serpent-sse2-x86_64.koINSTALL arch/x86/crypto/sha1-ssse3.koINSTALL arch/x86/crypto/sha256-ssse3.koINSTALL arch/x86/crypto/sha512-ssse3.koINSTALL arch/x86/crypto/twofish-avx-x86_64.koINSTALL arch/x86/crypto/twofish-x86_64-3way.koINSTALL arch/x86/crypto/twofish-x86_64.koINSTALL arch/x86/events/intel/intel-cstate.koINSTALL arch/x86/events/intel/intel-rapl-perf.koINSTALL arch/x86/kernel/cpu/mce/mce-inject.koINSTALL arch/x86/kernel/cpuid.koINSTALL arch/x86/kernel/msr.koINSTALL arch/x86/kvm/kvm-amd.koINSTALL arch/x86/kvm/kvm-intel.koINSTALL arch/x86/kvm/kvm.koINSTALL arch/x86/oprofile/oprofile.koINSTALL arch/x86/platform/atom/punit_atom_debug.koINSTALL block/bfq.koINSTALL block/kyber-iosched.koINSTALL crypto/842.koINSTALL crypto/aes_ti.koINSTALL crypto/af_alg.koINSTALL crypto/algif_aead.koINSTALL crypto/algif_hash.koINSTALL crypto/algif_rng.koINSTALL crypto/algif_skcipher.koINSTALL crypto/ansi_cprng.koINSTALL crypto/anubis.koINSTALL crypto/arc4.koINSTALL crypto/asymmetric_keys/pkcs7_test_key.koINSTALL crypto/async_tx/async_memcpy.koINSTALL crypto/async_tx/async_pq.koINSTALL crypto/async_tx/async_raid6_recov.koINSTALL crypto/async_tx/async_tx.koINSTALL crypto/async_tx/async_xor.koINSTALL crypto/authenc.koINSTALL crypto/authencesn.koINSTALL crypto/blake2b_generic.koINSTALL crypto/blowfish_common.koINSTALL crypto/blowfish_generic.koINSTALL crypto/camellia_generic.koINSTALL crypto/cast5_generic.koINSTALL crypto/cast6_generic.koINSTALL crypto/cast_common.koINSTALL crypto/ccm.koINSTALL crypto/chacha20poly1305.koINSTALL crypto/chacha_generic.koINSTALL crypto/cmac.koINSTALL crypto/crc32_generic.koINSTALL crypto/cryptd.koINSTALL crypto/crypto_engine.koINSTALL crypto/crypto_simd.koINSTALL crypto/crypto_user.koINSTALL crypto/des_generic.koINSTALL crypto/ecc.koINSTALL crypto/ecdh_generic.koINSTALL crypto/echainiv.koINSTALL crypto/essiv.koINSTALL crypto/fcrypt.koINSTALL crypto/keywrap.koINSTALL crypto/khazad.koINSTALL crypto/lrw.koINSTALL crypto/lz4.koINSTALL crypto/lz4hc.koINSTALL crypto/md4.koINSTALL crypto/michael_mic.koINSTALL crypto/pcbc.koINSTALL crypto/pcrypt.koINSTALL crypto/poly1305_generic.koINSTALL crypto/rmd128.koINSTALL crypto/rmd160.koINSTALL crypto/rmd256.koINSTALL crypto/rmd320.koINSTALL crypto/salsa20_generic.koINSTALL crypto/seed.koINSTALL crypto/serpent_generic.koINSTALL crypto/sha3_generic.koINSTALL crypto/tcrypt.koINSTALL crypto/tea.koINSTALL crypto/tgr192.koINSTALL crypto/twofish_common.koINSTALL crypto/twofish_generic.koINSTALL crypto/vmac.koINSTALL crypto/wp512.koINSTALL crypto/xcbc.koINSTALL crypto/xor.koINSTALL crypto/xxhash_generic.koINSTALL crypto/zstd.koINSTALL drivers/acpi/acpi_configfs.koINSTALL drivers/acpi/acpi_extlog.koINSTALL drivers/acpi/acpi_ipmi.koINSTALL drivers/acpi/acpi_pad.koINSTALL drivers/acpi/apei/einj.koINSTALL drivers/acpi/dptf/dptf_power.koINSTALL drivers/acpi/ec_sys.koINSTALL drivers/acpi/nfit/nfit.koINSTALL drivers/acpi/sbs.koINSTALL drivers/acpi/sbshc.koINSTALL drivers/acpi/video.koINSTALL drivers/ata/acard-ahci.koINSTALL drivers/ata/ahci.ko# 省略5000 行INSTALL sound/usb/line6/snd-usb-toneport.koINSTALL sound/usb/line6/snd-usb-variax.koINSTALL sound/usb/misc/snd-ua101.koINSTALL sound/usb/snd-usb-audio.koINSTALL sound/usb/snd-usbmidi-lib.koINSTALL sound/usb/usx2y/snd-usb-us122l.koINSTALL sound/usb/usx2y/snd-usb-usx2y.koINSTALL sound/x86/snd-hdmi-lpe-audio.koINSTALL virt/lib/irqbypass.koDEPMOD  5.6.14
root@ubuntu:~/kernel/linux-5.6.14#
root@ubuntu:~/kernel/linux-5.6.14#

二、安装内核


内核模块安装完成后 , 执行

sudo make install

命令 , 安装内核 ;

下面的内核安装过程会持续很长时间 ;

内核安装过程 :

root@ubuntu:~# cd kernel/linux-5.6.14
root@ubuntu:~/kernel/linux-5.6.14#
root@ubuntu:~/kernel/linux-5.6.14# sudo make install
sh ./arch/x86/boot/install.sh 5.6.14 arch/x86/boot/bzImage \System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.6.14 /boot/vmlinuz-5.6.14
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.6.14 /boot/vmlinuz-5.6.14
update-initramfs: Generating /boot/initrd.img-5.6.14
run-parts: executing /etc/kernel/postinst.d/pm-utils 5.6.14 /boot/vmlinuz-5.6.14
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.6.14 /boot/vmlinuz-5.6.14
run-parts: executing /etc/kernel/postinst.d/update-notifier 5.6.14 /boot/vmlinuz-5.6.14
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.6.14 /boot/vmlinuz-5.6.14
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-5.6.14
Found initrd image: /boot/initrd.img-5.6.14
Found linux image: /boot/vmlinuz-4.15.0-142-generic
Found initrd image: /boot/initrd.img-4.15.0-142-generic
Found linux image: /boot/vmlinuz-4.13.0-36-generic
Found initrd image: /boot/initrd.img-4.13.0-36-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
root@ubuntu:~/kernel/linux-5.6.14#

三、重启系统


执行

reboot

命令 , 重启 Ubuntu 操作系统 ;

四、查看当前内核版本


重启之后 , 在命令行终端执行

uname -a

命令 , 查看当前的内核版本 , 发现当前内核版本已经

【Linux 内核】编译 Linux 内核 ⑦ ( 安装内核模块 | 安装内核 | 重启系统 | 查看当前内核版本 )相关推荐

  1. 最小的linux内核编译,Linux最小内核移植

    class="markdown_views prism-github-gist"> Linux内核编译 本篇博客来自凌云实验室开发板介绍及其烧录学习笔记 1.内核介绍 一种开 ...

  2. Linux单独编译设备树,迅为IMX6Q开发板-非设备树内核-单独编译内核驱动

    内核驱动不仅可以将驱动编译到内核中,还可以动态的编译内核驱动.本文档介绍如何以模块的方式编译内核驱动. 要动态的编译内核,首先需要将内核源码编译通过,内核的编译请参考使用手册第五章. 9.5.2.1 ...

  3. linux iptables 编译,Linux下编译安装iptables

    Linux下如何编译安装iptables实例: 先卸载系统已经安装的iptables,卸载前需备份三个文档:iptables启动脚本,iptables-config配置文档,以及已经建立好的iptab ...

  4. linux 2.4内核编译,linux 2.4内核编译详解

    2.4内核编译详解 内核简介 内核,是一个操作系统的核心.它负责管理系统的进程.内存.设备驱动程序.文件和网络系统,决定着系统的性能和稳定性. Linux的一个重要的特点就是其源代码的公开性,所有的内 ...

  5. 安装oracle后重启电脑很卡,关于linux下安装oracle之后,重启系统后oracle不能正常启动的配置总结...

    一.linux下无法启动sqlplus 问题描述: [root@localhost oracle]# su - oracle [oracle@localhost oracle]$ sqlplus &q ...

  6. linux dvb编译,linux dvb - frontend

    1. linux dvb devices linux dvb api使得应用程序可以控制相关硬件模块通过六个unix风格的字符设备,包括video, audio, frontend, demux, c ...

  7. linux格式化时设备或资源忙,Linux下用fdisk命令和partprobe命令不重启系统新建分区并格式化...

    由于工作的需要,最近一段时间一直在学习Linux.学习一门新的知识,我是喜欢根据谋一本书或者某一个学习视频系统的学习,这样可以对学习的新知识有一个系统全面的认识和了解.所以学习之前,买了一本鸟哥的私房 ...

  8. suse linux c 编译环境,SUSE 11中安装GCC开发环境

    SUSE11中安装GCC开发环境 安装包下载网站:http://213.174.32.130/sles/distribution/11.0-SP1/repo/disk1/suse/x86_64/ RP ...

  9. 编译arm linux内核,编译Linux内核(下)---KConfig、Makefile详解以及ARM平台Linux内核的编译...

    转载自:http://blog.csdn.net/newthinker_wei/article/details/8022696 本文主要介绍Linxu2.6的内核配置系统. 如果你浏览一下源代码目录, ...

最新文章

  1. 我的天,你工作5年了,连Java agent都不知道...
  2. BOM,DOM常见操作和DHML
  3. 2020年12月大学英语四六级英语作文预测(XDF王江涛)
  4. QT5+android_ubuntu软件源
  5. ICCV2021 Oral | UNO:用于“新类发现”的统一目标函数,简化训练流程!已开源!...
  6. 图形学必备!斯坦福图形学几何处理算法课程1——Surface Reconstruction
  7. 学python可以做什么职业-python学完之后比较适合哪些职业工作呢?
  8. linux服务器查看系统装到哪个盘,查看linux安装了什么服务器地址
  9. Emacs进阶之M-x创建别名
  10. Django 路由系统
  11. Linux 常用ping命令详解
  12. 分辨率、像素、像素尺寸、GSD、图片文件大小
  13. selenium网易云登录定位不成功的问题
  14. 计算与推断思维 十六、比较两个样本
  15. uni-app微信小程序配置(三)
  16. 关于SCI检索背后的故事
  17. 爆料!滴滴或于4-5月开启第二轮裁员,内部员工透露细节:或无赔偿!
  18. 数字信号处理综合MATLAB设计 双音多频拨号系统
  19. android 解决微信登录白屏样式问题
  20. 华赛防火墙ipsec-***配置

热门文章

  1. 艾美捷ProSci 激活素RIB / ACVR1B重组蛋白方案
  2. python 实现三维向量之间的夹角
  3. 驰为v10刷linux,V10HD强势回归 3G双系统聚划算首发
  4. 基于AKA的IMS接入认证机制
  5. 北京信息科技大学计算机研究生在哪个校区,北京信息科技大学有几个校区,哪个校区最好及各校区介绍...
  6. 【pygame学习+实战】第一篇:游戏最小系统
  7. ilitek win10 触摸屏驱动_德国布拉本达(Brabender)触摸屏维修常见故障_触摸屏维修吧...
  8. 64码高清电视 android版,爱直播tv版-爱直播v4.7.64 安卓智能电视版__西西安卓tv
  9. wo zai gong si de yi tian
  10. 辽宁师范大学计算机学院查寝吗,辽宁师范大学影视艺术学院