Hi Duc

> -----Original Message-----
> From: Đức Anh via gem5-users <[email protected]>
> Sent: 08 April 2021 04:31
> To: gem5 users mailing list <[email protected]>
> Cc: Đức Anh <[email protected]>
> Subject: [gem5-users] Booting Rtems OS in Gem5 ARM FS mode
>
> Dear all,
>
> I am looking for a way to run RTEMS 5 OS in Gem5 ARM FS simulation.
> Previously, it was possible by booting with RealViewPBX machine-type (guide
> <http://e5914503f747d6e5213d08597a7da4aa95edcf59> ) but the
> RealViewPBX device was removed from Gem5 since 10-2019. So now I need
> to find another way to do it. Can someone give me some suggestions on
> what to do?

I would say it depends on the RTEMS project, if it supports any Versatile 
Express machine, you could
Try to run that port with the VExpress_GEM5_* platforms.

>
> - What do I need to do if I want to use a new OS/kernel in Gem5, like which
> config I need to be aware of?
> - Is there a Qemu counterpart of Gem5 machine-type? Like, if a kernel can
> boot on that Qemu type then it can boot on Gem5.

I am honestly not aware of which RTOS can run on gem5.

> - Just curious, but which real device does VExpress_GEM5_**** platform
> model? I found that VExpress probably refers to the Arm Versatile Express
> Juno Development board, but what about the term after it (V1, Base,
> HDLcd,...)

They model the Versatile Express RS1 memory map (with RS2 extensions).
More specifically, they are replicating the FVP implementation of VE boards [1].

The difference between V1,V2, HDLcd is minimal

V1 = VExpress_GEM5 with GICv2
V2 = VExpress_GEM5 with GICv3
V1_HDLcd = V1 + HDLcd
V2_HDLcd = V2 + HDLcd

Note that FVP doesn't follow the V1/V2 naming, but it still lets you choose 
between GICv2 and GICv3 at runtime
(I believe it does so by using GICv3 in legacy mode for GICv2).

The VE Juno Development Board is more or less sharing the same memory map but 
it contains some additions and
maybe some small modifications I am not currently aware of.

My advice would be to check if there is a FVP port of RTEMS. If yes, you should 
be able to use VExpress_GEM5 seamlessly.
If you are able to find a Juno port, some extra tweaking might be needed

Kind Regards

Giacomo

>
> Best regards,
> Duc Anh

[1]: 
https://developer.arm.com/documentation/100964/1112/Versatile-Express-Model/VE-memory-map-for-Cortex-A-series?lang=en
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to