Page MenuHomePhabricator

Add information on running under QEMU to the user guide
Open, LowPublic


docs/user_guides/ currently has information on how to run under the Fast Model and on the MPS2 board. The example and test suite will also run using a sufficiently new version of QEMU, so we can add that too.

Requested by: Peter Maydell

Event Timeline

abhishek-pandit moved this task from Backlog to Restricted Project Column on the Trusted Firmware M board.Apr 19 2018, 10:29 PM
abhishek-pandit edited projects, added Restricted Project; removed Trusted Firmware M.
abhishek-pandit edited projects, added Trusted Firmware M; removed Restricted Project.
abhishek-pandit edited projects, added Restricted Project; removed Trusted Firmware M.Apr 19 2018, 10:31 PM
adeaarm edited projects, added Restricted Project; removed Restricted Project.Apr 23 2018, 2:37 PM
adeaarm triaged this task as Low priority.Feb 15 2019, 12:40 PM

This set of instructions proposed in this patch is now *OUTDATED* as it's based on running on mps2-an505 QEMU board even for AN521. As we have introduces some code now which is specific to AN521 with this commit , the instructions are no longer valid and need further update to be able to use AN521 build on QEMU.

pm215 added a subscriber: pm215.Feb 15 2019, 3:10 PM

True. QEMU 4.0 will have a proper AN521 model.

With a recent version of QEMU (i.e. 4.x), it should be enough just to use this to run TF-M on QEMU for AN521:

qemu-system-arm -M mps2-an521 -kernel "BUILD/bin/bl2.axf" -device loader,file="BUILD/bin/tfm_s_ns_signed.bin",addr=0x10080000 -serial stdio -display none

I will try to get a patch to add this to the user guide and finally close this ticket.

Due to a bug recently discovered in Qemu, we should mention in the docs that minimum required version is 6.1 (to be released around mid-end of August)