机器人 救救瓜
Toggle navigation
Home
SCM-tool
Linux
Jenkins
SVN
other
About Me
Archives
Tags
kernel upgrade
2021-03-17 15:31:30
990
0
0
gua_l
## 获取官方 kernel 指定版本头文件 先安装kernel 头文件 ``` sudo apt-get install linux-headers-5.4.0-65-generic ``` 内核头文件在:/usr/src/ ,去打包 ``` cd /usr/src/ tar -zcvf linux-headers-5.4.0-65-generic.tar.gz ./linux-headers-5.4.0-65-generic tar -zcvf linux-headers-5.4.0-65.tar.gz ./linux-headers-5.4.0-65 ``` 将头文件包放至需要集成编的项目中一起编译。 ## kernel 相关设置和查询命令 ### 安装指定版本kernel ``` apt-get install linux-image-5.4.0-65-generic ``` ### 保持kerknel 版本不升级 ``` apt-mark hold linux-image-5.4.0-65-generic linux-headers-5.4.0-65-generic ``` ### 查看已安装 版本 ``` root@gua-vm2:/vob# dpkg --get-selections | grep linux-image linux-image-5.4.0-52-generic deinstall linux-image-5.4.0-53-generic deinstall linux-image-5.4.0-56-generic deinstall linux-image-5.4.0-58-generic deinstall linux-image-5.4.0-59-generic deinstall linux-image-5.4.0-60-generic deinstall linux-image-5.4.0-62-generic deinstall linux-image-5.4.0-65-generic install linux-image-5.4.0-66-generic install linux-image-5.4.0-67-generic install linux-image-generic install root@gua-vm2:/vob# dpkg -l | grep linux-image rc linux-image-5.4.0-52-generic 5.4.0-52.57 amd64 Signed kernel image generic rc linux-image-5.4.0-53-generic 5.4.0-53.59 amd64 Signed kernel image generic rc linux-image-5.4.0-56-generic 5.4.0-56.62 amd64 Signed kernel image generic rc linux-image-5.4.0-58-generic 5.4.0-58.64 amd64 Signed kernel image generic rc linux-image-5.4.0-59-generic 5.4.0-59.65 amd64 Signed kernel image generic rc linux-image-5.4.0-60-generic 5.4.0-60.67 amd64 Signed kernel image generic rc linux-image-5.4.0-62-generic 5.4.0-62.70 amd64 Signed kernel image generic ii linux-image-5.4.0-65-generic 5.4.0-65.73 amd64 Signed kernel image generic ii linux-image-5.4.0-66-generic 5.4.0-66.74 amd64 Signed kernel image generic ii linux-image-5.4.0-67-generic 5.4.0-67.75 amd64 Signed kernel image generic ii linux-image-generic 5.4.0.67.70 amd64 Generic Linux kernel image root@gua-vm2:/vob# root@gua-vm2:/vob# root@gua-vm2:/vob# uname -rm 5.4.0-65-generic x86_64 root@gua-vm2:/vob# uname -r 5.4.0-65-generic ```
Pre:
安装 mellanox 驱动
Next:
python 笔记之 构造函数 存取方法 生成器 迭代器
0
likes
990
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.