-
how can I run gem5 with vxWorks, please give me your advice ,thanks |
Beta Was this translation helpful? Give feedback.
Answered by
hnpl
Dec 23, 2023
Replies: 1 comment 3 replies
-
Do you mean running vxWorks inside a gem5 simulated system? I'm not familiar with vxWorks by i suspect it'd be quite hard to do. You'd need to create a kernel and disk image containing the vxWorks operating system. Then you'd need to construct your simulated system to load the OS via the kernel and disk image. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Disclaimer: I have no idea how vxWorks works or how to create vxWorks BSP. My understanding of how vxWorks boots is via this documentation [1].
In gem5, when you run a full-system simulation for ARM and RISC-V, there'll be a file called
m5out/devices.dtb
that will be generated at simulation time. This file contains a Linux-compatible device tree that has specifications of all gem5 hardware components. This device tree will be written to a specific address in the memory before simulation. The address of where the device tree will be loaded is known by the bootloader, which will read the device tree.The bootloader + kernel workflow in gem5 is that,