Hi Vitorio,
Just to clarify Gabe's reply a bit. We do actually have a minimal bootloader in the ARMv8 platform, but it's only responsible for some basic CPU initialisation (see system/arm/aarch64_bootloader). The majority of the machinery that loads the kernel lives in the ArmSystem class. This class will load the mini-bootoader and the kernel into memory, and setup some data structures needed to boot the system (mainly entry points and DTB pointers).
There is nothing preventing you from running something like a UEFI firmware in gem5. I haven't done it myself, but I believe it would be reasonably easy to port Trusted Firmware and the EDK II UEFI implementation to gem5. A good starting point would be the firmware implementation for the Juno dev board or one of the Arm FastModel FVPs.
In most cases, simulating a production firmware won't be needed. The only exceptions I can think of is if you want to look at the interactions between a rich OS (e.g., Linux) and a trusted environment.
Cheers,
Andreas
On 04/10/2018 22:40, Gabe Black wrote:
Hi Vitorio. gem5 doesn't run any system firmware/bootloader, and instead puts the kernel into memory itself. There are a number of reasons for this, but the net effect is that you wouldn't boot an image with UEFI at all. Also, the (linux) kernel is fed into gem5 separately, and the disk image just has the file system(s) on it.
On Wed, Oct 3, 2018 at 11:20 AM Vitorio Cargnini (lcargnini) <***@micron.com<mailto:***@micron.com>> wrote:
Hello,
Question please do gem5 support booting an image disk file that contains UEFI?
REgards,
Vitorio
_______________________________________________
gem5-users mailing list
gem5-***@gem5.org<mailto:gem5-***@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-***@gem5.org<mailto:gem5-***@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
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.