QEMU

From Braindump
Jump to navigation Jump to search

QEMU

CTRL-A x is exit

https://ownyourbits.com/2018/06/13/transparently-running-binaries-from-any-architecture-in-linux-with-qemu-and-binfmt_misc/

export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
/etc/qemu-binfmt.conf
EXTRA_OPTS="-L /usr/arm-linux-gnueabihf"
export CROSS_COMPILE=arm-linux-gnueabi-
make defconfig
make menuconfig
make
qemu-system-arm -curses -machine virt -bios u-boot.bin

MIPS QEMU

qemu-system-mips64 -cpu 24Kc -serial pty -nographic -monitor none -no-reboot -bios u-boot.bin
qemu-system-mipsel -cpu 24KEc -m 64M -serial /dev/tty -drive file=3AC000,format=raw,index=0,media=disk
qemu-system-mipsel -cdrom deb.iso -hda mipsel.qcow -M malta -kernel vmlinuz -boot d -initrd initrd.gz -m 512 -appand "root=/dev/sda1 nokaslr" -nographic
qemu-system-mipsel -M 24KEc -m 1024M -kernel bzImage -initrd rootfs.img.gz -append "root=/dev/ram rdinit=/sbin/init console=ttyS0 nokaslr" -nographic -serial mon:stdio

iPXE

wget http://boot.ipxe.org/ipxe.iso
qemu-kvm -m 1024 ipxe.iso -display curses

ESP32

https://github.com/espressif/qemu

https://github.com/Ebiroll/qemu_esp32

Micro:bit

https://www.qemu.org/docs/master/system/arm/imx25-pdk.html

qemu-system-arm -M microbit -device loader,file=test.hex