gem5-dev@gem5.org

The gem5 Developer List

View all threads

Query regarding Running Custom FS image for ARM FS simulation

SN
saras nanda
Sun, Nov 26, 2023 10:24 PM

Hello Everyone ,

I am trying to run some benchmarks on ARM FS simulation , I have modified
my disk image using qemu and runs successfully on qemu emulator (running
qemu as VM ) but when I pass the same disk image to the ARM FS I get the
kernel panic error
These are the commands I used in qemu to modify my image :

sudo qemu-system-aarch64 -m 1024 -cpu cortex-a57 -M virt -nographic -pflash
flash0.img -pflash flash1.img -drive
if=none,file=ubuntu-18.04-server-cloudimg-arm64.img,id=hd0 -drive
file=user-data.img,format=raw,id=cloud -device virtio-blk-device,drive=hd0
-net user,hostfwd=tcp::8080-:22 -net nic -vnc :3

I have

Passed the same image to ARM FS in gem5  using the following command :

/build/ARM/gem5.opt configs/example/arm/fs_power.py
--kernel=/home/saras/gem5-resources/src/arm-ubuntu/gem5/full_system_images/binaries/vmlinux.arm64
--disk=/home/saras/gem5-resources/src/arm-ubuntu/gem5/full_system_images/disks/
ubuntu-18.04-server-cloudimg-arm64.img --caches

I have also resized the image size using qemuing command

I want to avoid the kernel panic error and mount my image successfully on
gem5 ARM FS mode .
Kindly let me know what needs to be rectified.

Thankyou

Regards
Saras

Hello Everyone , I am trying to run some benchmarks on ARM FS simulation , I have modified my disk image using qemu and runs successfully on qemu emulator (running qemu as VM ) but when I pass the same disk image to the ARM FS I get the kernel panic error These are the commands I used in qemu to modify my image : sudo qemu-system-aarch64 -m 1024 -cpu cortex-a57 -M virt -nographic -pflash flash0.img -pflash flash1.img -drive if=none,file=ubuntu-18.04-server-cloudimg-arm64.img,id=hd0 -drive file=user-data.img,format=raw,id=cloud -device virtio-blk-device,drive=hd0 -net user,hostfwd=tcp::8080-:22 -net nic -vnc :3 I have Passed the same image to ARM FS in gem5 using the following command : /build/ARM/gem5.opt configs/example/arm/fs_power.py --kernel=/home/saras/gem5-resources/src/arm-ubuntu/gem5/full_system_images/binaries/vmlinux.arm64 --disk=/home/saras/gem5-resources/src/arm-ubuntu/gem5/full_system_images/disks/ ubuntu-18.04-server-cloudimg-arm64.img --caches I have also resized the image size using qemuing command I want to avoid the kernel panic error and mount my image successfully on gem5 ARM FS mode . Kindly let me know what needs to be rectified. Thankyou Regards Saras