dmikushin / RK3328_Uboot_SPI

Tutorial for Booting NanoPi R2S from SPI Flash
GNU General Public License v3.0
0 stars 2 forks source link

Get networking flags for Qemu #8

Open dmikushin opened 1 year ago

dmikushin commented 1 year ago

Add Qemu flags to bridge the VM network to the host network, so that the virtual machine could talk to the TFTP server located on host.

dmikushin commented 1 year ago

What the guy is doing here:

qemu-system-arm -M orangepi-pc -m 1G -smp 4\
    -kernel vmlinuz-5.10.60-sunxi \
    -dtb sun8i-h3-orangepi-pc.dtb \
    -initrd initrd.img-5.10.60-sunxi \
    -sd armbian.img \
    -append 'console=ttyS0,115200 root=/dev/mmcblk0p1' \
    -nic user,hostfwd=tcp::2022-:22,model=allwinner-sun8i-emac \
    -no-reboot -serial stdio -nographic -monitor none

nic is network, set to user, forwarding port 22 to 2022 for SSH connection.