diff options
Diffstat (limited to 'create_installroot/boot_qemu_arm64.sh')
-rwxr-xr-x | create_installroot/boot_qemu_arm64.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/create_installroot/boot_qemu_arm64.sh b/create_installroot/boot_qemu_arm64.sh index 08020e9..94c9975 100755 --- a/create_installroot/boot_qemu_arm64.sh +++ b/create_installroot/boot_qemu_arm64.sh @@ -2,10 +2,13 @@ qemu-system-aarch64 \ - -machine virt -m 256M \ - -append "root=/dev/mtdblock0 rw console=ttyAMA0" \ - -kernel bootfs-arm64/Image -nographic -smp 1 -cpu cortex-a53 - + -machine virt -m 1024M -cpu cortex-a53 \ + -kernel xos_image_arm64.gz \ + -initrd initramfs.cpio.zst \ + -append "root=/dev/initrd init=init" \ + -netdev user,id=mynet \ + -device virtio-net-pci,netdev=mynet \ + -nographic #qemu-system-x86_64 \ @@ -16,6 +19,9 @@ qemu-system-aarch64 \ # -m 256 \ # -netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no -device e1000,netdev=mynet0,mac=52:55:00:d1:55:01 +# -drive if=none,file=xos_image_arm64.img,id=hd0 \ +# -device virtio-blk-device,drive=hd0 \ + #https://gist.github.com/extremecoders-re/e8fd8a67a515fee0c873dcafc81d811c #https://stackoverflow.com/questions/15626088/tap-interfaces-and-dev-net-tun-device-using-ip-tuntap-command |