40 Star 211 Fork 27

铜豌豆 Linux / debian-cn

 / 详情

grub 2.06-3~deb11u5 在 Phytium FT-2000 (FT-2000/4) 盒子上,efi 启动 grubaa64.efi 文件报错

待办的
拥有者
创建于  
2022-12-14 10:00

该问题是怎么引起的?

Debian 11.6 的 grub 升级到 2.06-3~deb11u5 版本,安装此版本后,在一台 飞腾 FT-2000/4 启动,报 EFI 文件错误。

机器信息:
https://linux-hardware.org/?probe=11e15101d3

重现步骤

重启必现

报错信息

在 Welcome to GRUB!
下出现错误提示,一闪而过

机器在安装 2.06-3~deb11u4 版本没有问题。

评论 (3)

atzlinux 创建了任务

对 Debian grub "2.06-3deb11u4" 版本到 "2.06-3deb11u5" 版本中间的改动进行了排查,发现

是如下这个提交导致的问题,将该提交反转后,重新编译,新的 grubaa64.efi 文件,能够正常启动。

https://salsa.debian.org/grub-team/grub/-/commit/8af342b1f1352e31c618835d8da9df088e48ec31

commit 8af342b1f1352e31c618835d8da9df088e48ec31
Author: Steve McIntyre <93sam@debian.org>
Date:   Wed Nov 16 00:11:16 2022 +0000

    Add fonts to the EFI images
    
    The previous security updates disallowed loading unsigned fonts when
    in SB mode. To make things work again:
    
     * Embed the "unicode" font into the embedded memdisk image so it can
       be loaded.
     * Add the memdisk to our normal grubx64.efi loader too
     * Add a patch from Chris Coulson to make the font loader look for
       fonts in the memdisk whenever they're loaded.
    
    Closes: #1024395, #1025352, #1024447
    
    Backported fix from unstable.

这个提交给 efi 文件增加了字体,使 grubaa64.efi 文件大小由原来的 1M 多增加到超过 4M。

原因分析

  1. 新版本的 efi 文件,在 amd64 架构和 另外一台 飞腾 D2000 8 核机器上,没有问题
  2. 不知道是否这台机器的 EDKII EFI 固件是否有 bug?或者对加载的 efi 文件大小有限制?
  3. grub 上游软件 bug,导致触发
  4. Debian 里面的此次提交有 bug,对 FAT memdisk 处理有问题。

https://salsa.debian.org/grub-team/grub/-/commit/8af342b1f1352e31c618835d8da9df088e48ec31

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
5349448 atzlinux 1586501537
Shell
1
https://gitee.com/atzlinux/debian-cn.git
git@gitee.com:atzlinux/debian-cn.git
atzlinux
debian-cn
debian-cn

搜索帮助