

Title Start virtual hard disk (loaded into memory) Title Start virtual CD (loaded into memory) #Load font (if it is not a 16*16 font, add parameters, such as -font-high=24)

Splashimage /efi/grub/splashimage.jpg || splashimage /boot/grub/splashimage.bmp #Set graphics mode (you can use graphicsmode to detect graphics modes supported by the system) #Set the character color (the upper 32 bits are the background color, and the lower 32 bits are the foreground color)Ĭolor normal=0xff9933 highlight=0xffff00 helptext=0xff00ff heading=0圆6ff00 # The font should be in unifont.hex format. # It must be UTF-8 encoding to support multiple languages. Currently, PXE Netstart only supports tftp.Īnd this is a sample menu.lst translated to English with Google Translate for your convenience, also attached: Cancel the delete disk function, such as map (hd1) (hd1).Ħ. In the UEFI environment, you can boot from a disk other than 0x80, so there is no need to swap disk operations, such as map (hd0) (hd1).ĥ. Cancel the -hook, -unhook, -rehook, -unmap=, -floppies=, -harddrives= commands.Ĥ. There is no need to execute the -hook command.ģ. Mount after the map function is executed. You can view the graphics modes supported by the system through the graphicsmode command.Ģ.

#Grub4dos boot menu code
For the mapping, refer to the source code of wintoflash.ģ. Modified console keyboard input and output, console screen output, memory control,ĭrive control, get date and time, pause control, graphics mode and Unicode font implementation, PXE net start, etc.ĭuring the development process, the GRUB2 source code was referenced. This is a huge project, almost all the code has been stroked. The script set can be written in multiple lines. The curly brace must be the end of a line.Ģ. Reading general memory value is still ‘read memory address’, while reading GRUB4DOS internal value, use ‘read *memory address’ (eg read *0x8308).Īdd else function to batch processing. The variable address is changed from 0x8304 to 0x8308, from 32 bits to 64 bits. The function subscript remains unchanged, and the parameter is changed from 32 bits to 64 bits. Add the function exit_g4d to exit GRUB4DOS. When there are multiple CDs, adjust the boot CD to the first CD to suit windows.Ĥ. Change the menu directory to: /efi/grub/menu.lstģ. Support to use the kernel and initrd commands to start the linux kernel.ġ. So far our fellow wimb was able to sucessfully UEFI boot Win10XPE_圆4.ISO, from internal HD and also from a USB device, hope he will share his experiences with all of us. On this topic we will talk about the experiences with this new version, as not all the usual commands work on this version. Hope this desition is fine with forum admins. I made that desition because unfortunately the author hasn't opened a topic on this forum.

This new grub4dos for UEFI was developed by yaya, so in no way I'm involved on it's development, but I think this thread deserves to be on this section of the forum just because the relevance of the subject. Please remember this is a work in progress so it is an experimental version. There is a new version of grub4dos for UEFI, made by yaya, this is his third version:
