This document provides a step-by-step guide on how to emulate Cortex A72 using a dietpi image. Please note that this is not intended for production. Use at your own risk.
Prerequisites
A Linux or macOS (I haven’t tried this on MacOS) system
wget to download the dietpi image
xz to decompress the image
parted to resize the image
kpartx to create loop devices
nano or any other text editor of your choice to edit the fstab file
Create a Project directory
Create a directory to store the project files:
Download and decompress the Debian RasPi4 image
Download the Debian RasPi4 image and decompress it:
Mount partitions inside the image
Use kpartx to create loop devices :
Mount them like this:
Copy the kernel and dtb from boot
Copy the kernel to wherever you created your rpi_image folder
Unmount the image
Resize the image
You can use parted to resize the second partition, look at the lines starting with (parted)
Start qemu
After the machine boots up, you can ssh into it using the following command: