当前位置: 首页 > 工具软件 > bds > 使用案例 >

Boot device select (BDS) menu

薛淮晨
2023-12-01

Boot device select (BDS) menu
QTI added a UEFI application, which is loaded at BDS stage if ‘hotkey press’ is detected.
Disable the hotkey detection so that the screen is not displayed.
The screen that is displayed is decided by the app MenuApp.efi at
QcomPkg\Application\MenuApp\Uefi_Menu.cfg. Customize the options available on
the screen by modifying the file Uefi_Menu.cfg.
The BDSMenu is for debug. It is present in userdebug builds and not in the release
builds. The menu should not be enabled for release builds.
启动设备选择 (BDS) 菜单
QTI 新增了一个 UEFI 应用程序,如果检测到“按下热键”,则会在 BDS 阶段加载该程序。禁
用热键检测后,便不会显示此画面。
显示的画面由位于 QcomPkg\Application\MenuApp\Uefi_Menu.cfg 的应用 MenuApp.efi
决定。可通过修改文件 Uefi_Menu.cfg 自定义画面上的可用选项。
BDS 菜单用于调试。该菜单存在于 userdebug 编译中,而不存在于发布版本编译中。不应为发
布版本编译启用此菜单。

1 .前提条件是用DEBUG版本的XBL

2.编译DEBUG版本xbl的命令  python buildex.py --variant LAA -r DEBUG -t SaipanPkg,QcomToolsPkg

3.编译的过程会报错

Generate Region at Offset 0x0
   Region Size = 0x230000
   Region Name = FV

Generating FVMAIN_COMPACT FV
#####
Generating FVMAIN FV
###################################
########################################
########################################
########################################
########################################
########################################
########################################
##########################################Return Value = 2
GenFv: ERROR 3000: Invalid

  the required fv image size 0x2395b0 exceeds the set fv image size 0x230000


GenFds.py...

 : error 7000: Failed to generate FV
修复方法

 ./boot_images/QcomPkg/SocPkg/SaipanPkg/LAA/Core.fdf
[FD.Saipan_EFI]
BaseAddress   = 0x9FC00000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress  #The base address of the FLASH Device.
Size          = 0x00230000改为0x00240000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdSize         #The size in bytes of the FLASH Device
ErasePolarity = 1
BlockSize     = 0x200
NumBlocks     = 改为0x1200

################################################################################
################################################################################

# 512 bytes of configuration header & 8 bytes of image header
0x00000000|0x00230000改为0x00240000
gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
FV = FVMAIN_COMPACT

 

 

 类似资料: