On Sun, Nov 4, 2018 at 4:02 PM Thawra Kadeed <kad...@ida.ing.tu-bs.de> wrote:
>
> Hello everyone,
>
> I m trying to boot a real-time operating system (RTOS) e.g. MicroC/OS on
> ARM using Gem5 full system mode.
>
> I replaced the Linux kernel in FSConfig.py by the RTOS one.

Did you have to modify that file? How exactly? Or do you mean just
pass --kernel path/to/rtos.elf (that's what I'd expect).

> And I need to compile the ARM bootloader (available here: system/arm/)
> for RTOS rather than Linux which is explained here
> "http://www.gem5.org/ARM_Kernel";. The latter explanation uses gcc linux
> cross compiler to do so.
>
> However, does anyone know how can I direct/compile the ARM bootloader
> for RTOS?
>

I have never booted anything besides Linux, but I really want to give
it a try some day.

Have you ever used those gem5 bootloaders for Linux to start with? If
not, here is a minimal runnable setup that builds them and puts them
in M5_PATH so they are used:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/8fb9db39316d43a6dbd571e04dd46ae73915027f#gem5-buildroot-setup-getting-started

Once you have that working, I would just try to point --kernel to the
rtos. And then if it does not work, start to step debug stuff and
examine memory / pc until you undertand why it's not booting, should
not be too hard.

> Thanks in advance,
> Thawra
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to