ARM Lab on Mac Silicon (m1)
brew install qemuqemu-system-armLast updated
brew install qemuqemu-system-armLast updated
qemu-system-arm -kernel kernel-qemu-<version> \
-cpu arm1176 -m 256 -M versatilepb -serial stdio \
-append "root=/dev/sda2 rootfstype=ext4 rw" \
-hda <version>.img \
-nic user,hostfwd=tcp::2022-:22 \
-no-reboot &qemu-system-arm : To run with ARM
-kernel : To set the kernel file
-cpu : To set the architecture of the CPU to run
-m : To set the RAM for the machine
-M : machine type for the emulation
-serial : Redirects the serial output to the terminal for interaction and debugging.
-append : Appends kernel boot parameters.
root=/dev/sda2 rootfstype=ext4 rw : the root filesystem (/dev/sda2) as ext4 and mounts it as read-write.
-hda : Sets the disk image
-nic : Configures a user-mode network stack.
hostfwd : Forwards traffic from port 5022 on the host to port 22 on the emulated machine.
-no-reboot : Specifies that the virtual machine should not automatically reboot after shutdownssh [email protected] -p 2022
raspberry ps -ef | awk '/qemu/ && !/awk/' | sed -e 's/[^/]*//' -e 's/ -/\n\t-/g'Ctr + A and then X