QEMU: Difference between revisions

From Braindump
Jump to navigation Jump to search
(Created page with "=== QEMU === 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")
 
Line 13: Line 13:


  qemu-system-arm -curses -machine virt -bios u-boot.bin
  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

Revision as of 14:26, 7 March 2024

QEMU

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