Inquiry Regarding Capsule Update Support on i.MX95 Board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Inquiry Regarding Capsule Update Support on i.MX95 Board

1,378 次查看
rahul_raja
Contributor II

Hi All,

I attempted to perform a Capsule Update on the i.MX95 board by following the steps provided in the ARM documentation Test SystemReady Devicetree band - Capsule Update, but the update process failed with an error.
Error:

FS0:\acs_tests\app\> CapsuleApp.efi unauth.bin
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdeModulePkg/Library/UefiHiiServicesLib/Uefit
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdePkg/Library/DxeServicesTableLib/DxeServic)
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/build/Build/MdeModule/RELEASE_GCC5/AARCH64/MdeModo
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdePkg/Library/DxeHobLib/HobLib.c(48): !(((I)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdePkg/Library/DxeHobLib/HobLib.c(49): mHobL)
CapsuleApp: creating capsule descriptors at 0xE16A6040
CapsuleApp: capsule data starts at 0xE132E040 with size 0x32C1D8
CapsuleApp: capsule block/size 0xE132E040/0x32C1D8
Processing update 'u-boot.bin' :sha1+
Alt setting [-19] to write not found!Firmware update failed: <NULL>
CapsuleApp: failed to update capsule - Device Error

FS0:\acs_tests\app\> CapsuleApp.efi tampered.bin
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdeModulePkg/Library/UefiHiiServicesLib/Uefit
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdePkg/Library/DxeServicesTableLib/DxeServic)
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/build/Build/MdeModule/RELEASE_GCC5/AARCH64/MdeModo
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdePkg/Library/DxeHobLib/HobLib.c(48): !(((I)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdePkg/Library/DxeHobLib/HobLib.c(49): mHobL)
CapsuleApp: creating capsule descriptors at 0xE1675040
CapsuleApp: capsule data starts at 0xE12F9040 with size 0x32C6F1
CapsuleApp: capsule block/size 0xE12F9040/0x32C6F1
Processing update 'u-boot.bin' :sha1 error!
Bad hash value for 'hash-1' hash node in 'u-boot.bin' image node
Error: invalid update hash, aborting
Firmware update failed: <NULL>
CapsuleApp: failed to update capsule - Device Error

FS0:\acs_tests\app\> CapsuleApp.efi signed_capsule.bin
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdeModulePkg/Library/UefiHiiServicesLib/Uefit
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdePkg/Library/DxeServicesTableLib/DxeServic)
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/build/Build/MdeModule/RELEASE_GCC5/AARCH64/MdeModo
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdePkg/Library/DxeHobLib/HobLib.c(48): !(((I)
ASSERT [CapsuleApp] /home/gurrev01/release/arm-systemready/SystemReady-devicetree-band/Yocto/meta-woden/build/tmp/work/genericarm64-oe-linux/uefi-apps/1.0/edk2/MdePkg/Library/DxeHobLib/HobLib.c(49): mHobL)
CapsuleApp: creating capsule descriptors at 0xE1654040
CapsuleApp: capsule data starts at 0xE12D6040 with size 0x32C6F1
CapsuleApp: capsule block/size 0xE12D6040/0x32C6F1
Processing update 'u-boot.bin' :sha1+
Alt setting [-19] to write not found!Firmware update failed: <NULL>
CapsuleApp: failed to update capsule - Device Error
FS0:\acs_tests\app\>



Additionally, I referred to the i.MX Linux User's Guide, but found no detailed information specific to the DFU_ALT settings for the i.MX95. I also noticed that the soc.mak  file does not contain a Capsule GUID.

I have the following questions:

  1. Is Capsule Update supported on the i.MX95 platform?

  2. If it is supported, could you please provide guidance on how to properly configure and execute the update, and help resolve the error I'm encountering?

Thank you for your assistance.

Best regards,
Rahul R.

标记 (1)
0 项奖励
回复
3 回复数

1,326 次查看
rahul_raja
Contributor II

Hi ,
I am  enabling the STMM feature for SystemReady certification on the i.MX95 platform. As per the i.MX Linux User Guide, I have added the MACHINE_FEATURES:append = " stmm" to conf/local.conf to include the stmm feature.
However, after making this change and running bitbake imx-boot, I encountered the following build error during the do_deploy task:
ERROR: imx-boot-1.0-r0 do_deploy: ExecutionError(...)
install: cannot stat '.../git/iMX95/capsule1.bin': No such file or directory

It appears the build is attempting to deploy capsule1.bin, which does not exist in the expected path.

Could you please advise on how to resolve this issue? Is there a missing configuration or additional step required to generate capsule1.bin when enabling stmm support?

Looking forward to your guidance.

Best regards,
Rahul R

0 项奖励
回复

1,331 次查看
rahul_raja
Contributor II

Hi,
Thanks for the detailed steps on the capsule update. 

Could you please explain how to generate or obtain the capsule1.bin file used in the update process?

Best Regards,
Rahul R

0 项奖励
回复

1,346 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Capsule update is supported on MX95 please check it:

Capsule update
Use the following command to do the capsule update:
· For SD:
U-Boot > env set dfu_alt_info "mmc 1=1 raw 0x42 0x2000"
· For eMMC:
U-Boot > env set dfu_alt_info "mmc 2=1 raw 0x42 0x2000 mmcpart 1" U-Boot > efidebug boot add 0 Boot0000 mmc 1:1 capsule1.bin;efidebug boot next 0 U-Boot > setenv serverip 10.192.242.218;dhcp $loadaddr capsule1.bin;fatwrite
mmc 1:1 ${loadaddr} /EFI/UpdateCapsule/capsule1.bin 0x${filesize} U-Boot > setenv -e -nv -bs -rt -v OsIndications =0x04 U-Boot > efidebug capsule disk-update reset
Do not interrupt U-Boot. Let the board run into grub. Before grub runs, it should update the bootloader automatically and remove capsule1.bin. And reboot the board again. The board will boot up with the updated U-Boot.


Regards
0 项奖励
回复