ubuntu 编译5.15 内核不能启动

ljp9405312 2024-02-15 10:49:11

如下 vmlinuz-5.15.0-94-generic 内核可以启动,自己编译的  vmlinuz-5.15.148 启动不了,

  vmlinuz-5.15.148 使用  initrd.img-5.15.0-94-generic 的 ramdisk  可以启动到ramdisk 但是不能启动磁盘 根文件系统 

 vmlinuz-5.15.148  编译沿用 vmlinuz-5.15.0-94-generic  配置, 只有几个认证的为空 如下:
# Certificates for signature checking
#
CONFIG_MODULE_SIG_KEY=""

 

ubuntu boot 启动目录各内核文件:

total 1056780
-rw-r--r-- 1 root root    254083 11月 10  2021 config-5.11.0-41-generic
-rw-r--r-- 1 root root    262305 1月  16 21:17 config-5.15.0-94-generic
-rw-r--r-- 1 root root    260080 2月  15 09:55 config-5.15.148
-rw-r--r-- 1 root root    260101 2月  15 09:00 config-5.15.148.old
-rw-r--r-- 1 root root    236693 2月  14 10:51 config-5.4.259
drwx------ 2 root root      4096 1月   1  1970 efi
drwxr-xr-x 4 root root      4096 2月  15 09:56 grub
lrwxrwxrwx 1 root root        28 2月  14 12:02 initrd.img -> initrd.img-5.15.0-94-generic
-rw-r--r-- 1 root root  59060489 2月  14 11:52 initrd.img-5.11.0-41-generic
-rw-r--r-- 1 root root  68086734 2月  14 12:03 initrd.img-5.15.0-94-generic
-rw-r--r-- 1 root root 856468663 2月  15 10:40 initrd.img-5.15.148
-rw-r--r-- 1 root root  14250145 2月  14 10:51 initrd.img-5.4.259
lrwxrwxrwx 1 root root        18 2月  14 12:02 initrd.img.old -> initrd.img-5.4.259
-rw-r--r-- 1 root root    182704 2月  14  2020 memtest86+.bin
-rwxrwxrwx 1 root root    184380 2月  14  2020 memtest86+.elf
-rw-r--r-- 1 root root    184884 2月  14  2020 memtest86+_multiboot.bin
-rw------- 1 root root   5864035 11月 10  2021 System.map-5.11.0-41-generic
-rw------- 1 root root   6246098 1月  16 21:17 System.map-5.15.0-94-generic
-rw-r--r-- 1 root root   6207371 2月  15 09:55 System.map-5.15.148
-rw-r--r-- 1 root root   6207371 2月  15 09:00 System.map-5.15.148.old
-rw-r--r-- 1 root root   4734719 2月  14 10:51 System.map-5.4.259
lrwxrwxrwx 1 root root        16 2月  15 09:55 vmlinuz -> vmlinuz-5.15.148
-rw------- 1 root root  11744992 11月 10  2021 vmlinuz-5.11.0-41-generic
-rw------- 1 root root  11525480 1月  16 21:19 vmlinuz-5.15.0-94-generic
-rw-r--r-- 1 root root  10171136 2月  15 09:55 vmlinuz-5.15.148
-rw-r--r-- 1 root root  10170624 2月  15 09:00 vmlinuz-5.15.148.old
-rw-r--r-- 1 root root   9509760 2月  14 10:51 vmlinuz-5.4.259
lrwxrwxrwx 1 root root        20 2月  15 09:55 vmlinuz.old -> vmlinuz-5.15.148.old
 

...全文
113 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,256

社区成员

发帖
与我相关
我的任务
社区描述
本社区专注于分享Linux驱动和Kernel源码分析解读
linuxharmonyosubuntu 个人社区 北京·大兴区
社区管理员
  • Coder个人博客
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧