sunsea 发表于 2021-12-24 13:52
bootmgfw的话绝无可能。
wintoflash 发表于 2021-12-24 16:00
大佬有没有x86下BOOT_APPLICATION_PARAMETER_BLOCK里面FirmwareParametersOffset对应的BL_FIRMWARE_PARAM ...
sunsea 发表于 2021-12-24 20:07
我这是没有的,我这没研究过UEFI……Google出来的大部分都没啥用,但是这个似乎有点那个意思,不知道能不 ...
So in order to run normal UEFI applications, you have to perform a section of platform-specific code (I implemented only in ARM32, which is reverse-engineered from developrmenu.efi from a private Windows Phone Adaption Kit). See my example here: https://github.com/imbushuo/boot-shim
After performing platform-specific initialization code, you takes control of certain things, have interrupt services & exception vector disabled. Then you can do whatever you want with EFI protocols. Simple text input/out works for me.
Things will be easier on x86 / amd64 platforms. I think there is a reference implementation in ReactOS's UEFI library. IDA Pro is helpful to this too. Load symbols, check functions with name started "ArchInitializeContext"... and "ArchSwitchContext".
wintoflash 发表于 2021-12-24 20:24
这个不是完整的结构体。EFI_SYSTEM_TABLE* SystemTable 下面还有东西。不过我的汇编水平菜的抠脚,所以 ...
szmsys 发表于 2022-1-9 06:32
很简单,把g4e的 bootx.efi 改名 bootmgfw.efi 替换微软的就行了
欢迎光临 无忧启动论坛 (http://wuyou.net/) | Powered by Discuz! X3.3 |