Discussion:
[gem5-users] Linux images --booting newer systems - Gem5 FS
Vitorio Cargnini (lcargnini)
2018-10-03 18:20:02 UTC
Permalink
Hello,


Question please do gem5 support booting an image disk file that contains UEFI?


REgards,

Vitorio
Gabe Black
2018-10-04 21:40:03 UTC
Permalink
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) <
Post by Vitorio Cargnini (lcargnini)
Hello,
Question please do gem5 support booting an image disk file that contains UEFI?
REgards,
Vitorio
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Ciro Santilli
2018-10-05 05:29:10 UTC
Permalink
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.
Can you expand a little on the reasons? Isn't a firmware-based system
with the Linux kernel inside the disk image very similar to a
baremetal system?
Post by Vitorio Cargnini (lcargnini)
Hello,
Question please do gem5 support booting an image disk file that contains UEFI?
REgards,
Vitorio
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Andreas Sandberg
2018-10-09 10:57:41 UTC
Permalink
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.
Loading...