summaryrefslogtreecommitdiff
path: root/create_installroot/boot_qemu_arm64.sh
blob: fc4ec51630f09212223155c809939e30fecc8ac5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/dash


qemu-system-aarch64 \
    -machine virt -m 1024M -cpu cortex-a53  \
    -kernel bootfs-arm64/Image.gz \
    -initrd initrd-out.gz \
    -append "root=/dev/ram0  console=ttyAMA0 debug " \
    -nographic


#qemu-system-x86_64 \
#    -kernel bootfs-arm64/vmlinuz-xos \
#    -hda xos_image.img \
#    -append "root=/dev/sda2 rw console=ttyS0 raid=noautodetect init=/Programs/Core/busybox_ASH ip=192.168.4.66" \
#    -serial stdio -display none \
#    -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

#qemu-system-x86_64  -drive format=raw,file=xos_image.img -m 128
#qemu-system-x86_64 \
#    -kernel bootfs/vmlinuz-xos \
#    -hda xos_image.img \
#    -append "root=/dev/sda2 rw console=ttyS0 raid=noautodetect init=/Programs/Core/busybox_ASH" \
#    -serial stdio -display none \
#    -m 256 \
#    -vga qxl