Hi Arun,
My reply is in the colored below.
Regards,
Sherry Zhang
-----Original Message-----
From: Arun D via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Monday, October 23, 2023 8:03 PM
To: tf-m@lists.trustedfirmware.org
Subject: [TF-M] Re: Increasing the flash partition for the Secure Firmware in TF-M for MPS2-AN521 board emulated using Qemu
Hi Sherry,
Thanks for your response! Gowri and I are working together, so will respond to save time.
- The runtime env we have is emulation using QEMU, not a physical MPS2 FPGA board. I do not yet see if & how it should make a difference, given that with equal partition sizes of NS an S, there is no issue, Anything you can think of
that might counter this reasoning?
[SZ]: I used the mps2/an521 fvp model instead of the FPGA board. But I see no board difference issue that can cause this issue.
- QEMU does not have the same exact runtime setup as the MPS2 FPGA board has. There are no slots as you describe.
[SZ]: Which bootloader is used in your code? Is it MCUboot? MCUboot has two slots for each image: one primary slot and one secondary slot. It is actually a fixed storage area.
- With the same partition sizes you have mentioned, I to see the same problem, that the "hello world" of the non-secure Zephyr sample "hello_world" app does not print anything as expected. Tracing it down, points to the BL2 issue that
Gowri described in her message.
[SZ]: As a mentioned in the last email, no image upgrade should occur if there is only one image which locates in the primary slot in MCUboot.
- We are initiating the build using Zephyr 'v.3.4.0' build env. The TF-M hash for this branch is "79a6115d3".
[SZ]: You are using
https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/ repo? Seems this commit hash is not found in this repository.
Aside from the above: did you have to change anything in the TF-M build cmake or other files to accommodate the partition size changes?
[SZ]: My build environment is the default one in TF-M repo above with RTX running on the nonsecure as the os. I only changed the values of these two macros. No other change is made.
Regards,
-Arun.
--
TF-M mailing list --
tf-m@lists.trustedfirmware.org To unsubscribe send an email to
tf-m-leave@lists.trustedfirmware.org