无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 129945|回复: 328
打印 上一主题 下一主题

[原创] NTBOOT & wimboot for UEFI GRUB2

    [复制链接]
1#
发表于 2019-11-20 22:31:26 | 显示全部楼层
回复

使用道具 举报

2#
发表于 2020-7-8 12:25:40 | 显示全部楼层
https://github.com/a1ive/grub/co ... 6242a8511bfd599d0b9开始,terminal_output gfxterm 在某些电脑上会导致黑屏(uefi 启动时菜单不显示,但会倒计时并启动)。

set timeout="5"
set default="0"

font=/boot/grub2/fonts/unicode.pf2
if loadfont ${font}; then
set locale_dir=/boot/grub2/locale
set lang=zh_cn
fi

terminal_output gfxterm

menuentry "test 测试" {
search -f -s  /EFI/Microsoft/Boot/bootmgfw.efi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

点评

是不是输出到其他显示器/端口上了? 执行 terminal_output console,再执行 terminal_output gfxterm 呢?  详情 回复 发表于 2020-7-8 14:17
把配置文件编码改为UTF8-BOM试下  详情 回复 发表于 2020-7-8 12:54
回复

使用道具 举报

3#
发表于 2020-7-8 18:51:15 | 显示全部楼层
wintoflash 发表于 2020-7-8 14:17
是不是输出到其他显示器/端口上了?
执行 terminal_output console,再执行 terminal_output gfxterm 呢 ...

terminal_output gfxterm 前面加一句 terminal_output console 还是黑屏。
一个U盘上的配置文件改为 UTF-8 BOM 后,确实能看到菜单了,但是另一个U盘如法炮制却仍然黑屏。现在还是改为以前的 UTF-8 NO BOM 了,反正没事重新编译了一下。
其实试了几台不同的电脑,就一个老本本有这个黑屏的问题,其他的台式机和本本都没问题。小概率事件吧。

点评

我已经改回原来的语句了 https://github.com/a1ive/grub/commit/ecab7b52f4c377520b1a89149a877a013823217a 总感觉黑屏可能是因为切换显示模式的时候需要输出点什么东西  详情 回复 发表于 2020-7-8 20:58
回复

使用道具 举报

4#
发表于 2020-7-18 17:36:18 | 显示全部楼层
https://github.com/a1ive/grub/commit/5936f5f47f3cfcaf9427c44e3ed43a9ffc0575fd开始,UEFI 下map img貌似没反应了。

menuentry "test" {
search -f -s /x.img
map -t hd /x.img
}
x.7z (99.87 KB, 下载次数: 4)

点评

已修复 https://github.com/a1ive/grub/commit/837cb3e452a644819048687970d86287c710d345 这个镜像没有分区表,应该属于 "软盘" 范畴吧。  详情 回复 发表于 2020-7-18 18:22
回复

使用道具 举报

5#
发表于 2020-7-18 20:28:26 | 显示全部楼层

img 文件是用 diskgenius 生成的“分区映像”。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-25 13:57

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表