OpenWrt + QEMU: Difference between revisions

From misc notes
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
= MEMO =
= MEMO =


<syntaxhighlight lang="text" enclose="div">
<syntaxhighlight lang="bash" enclose="div">
qemu-system-mips64el -M malta -cpu MIPS64R2-generic -kernel openwrt-malta-le64-vmlinux-initramfs.elf -nographic -m 256
qemu-system-mips64el -M malta -cpu MIPS64R2-generic -kernel openwrt-malta-le64-vmlinux-initramfs.elf -nographic -m 256
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="text" enclose="div">
<syntaxhighlight lang="bash" enclose="div">
qemu-system-mips64 -M malta -cpu MIPS64R2-generic -kernel openwrt-malta-be64-vmlinux-initramfs.elf -nographic -m 256
qemu-system-mips64 -M malta -cpu MIPS64R2-generic -kernel openwrt-malta-be64-vmlinux-initramfs.elf -nographic -m 256
</syntaxhighlight>
<syntaxhighlight lang="bash" enclose="div">
/mnt/QEMU/opt/bin/qemu-system-i386 -M pc -echr 0x1c \
                -device ide-hd,drive=drv0 \
                -drive file=openwrt-x86-legacy-generic-ext4-rootfs.img,format=raw,id=drv0,if=none \
                -kernel $TARGET/openwrt-x86-legacy-generic-kernel.bin \
                -nographic -m 512 -append "root=/dev/sda console=ttyS0 rootwait"
</syntaxhighlight>
</syntaxhighlight>

Revision as of 13:52, 7 April 2023

MEMO

qemu-system-mips64el -M malta -cpu MIPS64R2-generic -kernel openwrt-malta-le64-vmlinux-initramfs.elf -nographic -m 256
qemu-system-mips64 -M malta -cpu MIPS64R2-generic -kernel openwrt-malta-be64-vmlinux-initramfs.elf -nographic -m 256
/mnt/QEMU/opt/bin/qemu-system-i386 -M pc -echr 0x1c \
                 -device ide-hd,drive=drv0 \
                 -drive file=openwrt-x86-legacy-generic-ext4-rootfs.img,format=raw,id=drv0,if=none \
                 -kernel $TARGET/openwrt-x86-legacy-generic-kernel.bin \
                 -nographic -m 512 -append "root=/dev/sda console=ttyS0 rootwait"