Discussion:
[gem5-users] GEM5 Image Bootup in QEMU - ARM64
Qureshi Yasir Mahmood
2018-11-08 13:13:56 UTC
Permalink
Hello,

I trying to boot a gem5 image (ubuntu 16.04) along with the kernel (v4.3) in QEMU for ARM64. I want to do it to compile and build some packages, which are not building using the QEMU-chroot environment.

I am using the following command,
qemu-system-aarch64 -M virt -kernel vmlinux -m 1024 -cpu cortex-a53 -append 'root=/dev/vda2' -drive if=none,file=gem5_base.img,format=raw,id=hd -device virtio-blk-pci,drive=hd -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -nographic

but it returns an error,
qemu: fatal: Trying to execute code outside RAM or ROM at 0xffffffc000080000

If anyone has done that before, it would be great to share.

Thank you

Regards
Yasir
Ciro Santilli
2018-11-08 14:24:19 UTC
Permalink
On Thu, Nov 8, 2018 at 1:14 PM Qureshi Yasir Mahmood
Post by Qureshi Yasir Mahmood
Hello,
I trying to boot a gem5 image (ubuntu 16.04) along with the kernel (v4.3) in QEMU for ARM64. I want to do it to compile and build some packages, which are not building using the QEMU-chroot environment.
I am using the following command,
qemu-system-aarch64 -M virt -kernel vmlinux -m 1024 -cpu cortex-a53 -append 'root=/dev/vda2' -drive if=none,file=gem5_base.img,format=raw,id=hd -device virtio-blk-pci,drive=hd -netdev user,id=mynet -device virtio-net-pci,netdev=mynet –nographic
but it returns an error,
qemu: fatal: Trying to execute code outside RAM or ROM at 0xffffffc000080000
If anyone has done that before, it would be great to share.
Thank you
Working QEMU Ubuntu aarch64 deboostrap setup:
https://askubuntu.com/questions/281763/is-there-any-prebuilt-qemu-ubuntu-image32bit-online/1081171#1081171
Haven't tried on gem5 yet.

Working QEMU and gem5 Buildroot arm / aarch64 setup:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/66aec8e45a5784e6bf7e03378809c16cf492cb03#gem5-buildroot-setup-getting-started
Post by Qureshi Yasir Mahmood
Regards
Yasir
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Loading...