生成的bzImage需要配置以下定义
CONFIG_EFI=y
CONFIG_RELOCATABLE=yCONFIG_FB_EFI=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_EFI_PARTITION=y
CONFIG_EFI_VARS=y
CONFIG_EFI_STUB=y
CONFIG_CMDLINE="root=/dev/sda3" ---不需要
Here's what I have enabled in my kernel config:
Enable the block layer --->
- Parition Types --->
-- [*] Advanced parition selection
-- [*] EFI GUID Partition support
Processor type and features --->
- [*] EFI runtime service support
- [*] EFI stub support
- [*] Built-in kernel command line
- (root=/dev/sda3 rw quiet) Built-in kernel command string ---不需要