无忧启动论坛

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

[原创] GRUB2 UEFI 下的磁盘仿真

    [复制链接]
1#
发表于 2019-11-21 10:20:03 | 显示全部楼层
hi, good working.
but backgroundimage was not showed in my grub theme.

how to create grubx64.efi with mod? or set to grub.cfg?

my cfg .

terminal_output gfxterm
insmod part_msdos
insmod ntfs
insmod gfxmenu
insmod png
insmod font

insmod jpeg
insmod part_acorn
insmod part_amiga
insmod part_apple
insmod part_bsd
insmod part_gpt
insmod part_msdos
insmod part_sun
insmod part_sunpc
insmod ext2
insmod ntfs
insmod iso9660
insmod loopback

set icondir=$prefix/themes/icons

set theme=${prefix}/themes/oxygen/theme.txt
export theme

点评

gfxmode not set.  详情 回复 发表于 2019-11-21 11:27
回复

使用道具 举报

2#
发表于 2019-11-21 12:10:59 | 显示全部楼层
本帖最后由 2012apple3000 于 2019-11-21 12:13 编辑

Sorry, but i have "set gfxmode"

if [ "$disable_gfxterm" != true ]; then
  insmod all_video
  gfxmode=1024x768
  if terminal_output --append gfxterm
  then
      terminal_output --remove console
  fi
fi

set gfxmode=1024x768


my old grubx64.efi is good work.
but new compiled grubx64.efi with your grub-mkimage bat (with module(ntboot wimboot)), has display problem.
So , i think that i must add some mod in bat..
what problem?

my old grubx64.efi
https://youtu.be/xWVUTFx37Mw

new compiled efi
https://youtu.be/rdGuJy3PVGA

点评

how did you build 'grubx64.efi'? and what's the content of theme.txt  详情 回复 发表于 2019-11-21 12:58
回复

使用道具 举报

3#
发表于 2019-11-21 13:20:41 | 显示全部楼层
wintoflash 发表于 2019-11-21 12:58
how did you build 'grubx64.efi'?
and what's the content of theme.txt

grub-mkimage -d x86_64-efi -p /boot/grub -o grubx64.efi -O x86_64-efi acpi affs afs all_video bfs bitmap bitmap_scale blocklist boot bsd btrfs cat chain cmp commandline configfile cpio crc date datehook dd disk dm_nv echo efi_gop efi_uga efifwsetup efiload eval exfat expr ext2 extcmd f2fs fat fb file font fshelp getenv getkey gfxmenu gfxterm gfxterm_background gfxterm_menu gptsync gzio halt hashsum help hexdump hfs hfsplus iso9660 jfs jpeg keystatus legacycfg linux linuxefi loadbios loadenv loopback ls lsacpi lua lvm lzopio mdraid09 mdraid09_be memdisk minicmd multiboot multiboot2 newc normal ntfs part_apple part_bsd part_gpt part_msdos partnew parttool png probe progress raid5rec raid6rec random read reboot regexp reiserfs sbpolicy search setenv shell sleep squash4 syslinuxcfg tar terminal terminfo test tga time true udf vhd video video_colors video_fb videoinfo wimboot xfs xnu xzio zfs map ntboot png

all theme same problem.

点评

can't reproduce  详情 回复 发表于 2019-11-21 14:22
回复

使用道具 举报

4#
发表于 2019-11-21 14:40:29 | 显示全部楼层
本帖最后由 2012apple3000 于 2019-11-21 14:41 编辑

good work. do you use theme? is it inner grub.cfg? i want use myUSB:\boot/grub/grub.cfg
would you show sample grub.cfg?



2019-11-21_15-35-42.jpg (264.09 KB, 下载次数: 299)

2019-11-21_15-35-42.jpg
回复

使用道具 举报

5#
发表于 2019-11-21 15:05:15 | 显示全部楼层
本帖最后由 2012apple3000 于 2019-11-21 15:11 编辑

this is my efi grub.cfg and theme

compiled_bootx64.efi(created with your bat commandline)


boot.7z

1.41 MB, 下载次数: 20, 下载积分: 无忧币 -2

回复

使用道具 举报

6#
发表于 2019-11-21 15:42:11 | 显示全部楼层

I appreciate you. i changed yours.Good working.
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-5-14 06:54

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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