armbian-build/config/boards/virtual-qemu.wip

32 lines
1.9 KiB
Plaintext
Raw Normal View History

# Armbian virtual ARM64 image for qemu
#
# how to use
# the resulting cache/sources/u-boot/v22021.04/u-boot.bin will need to be copied.. that is your bios
# i recommend converting image to qcow2 adn resize
# qemu-img convert -f raw -O qcow2 original.img armbian.qcow2
# how to run on linux
##!/bin/bash
#
#export image=armbian.qcow2
#smp=4
#rams=1000M
#bios=u-boot.bin
#/usr/bin/qemu-system-aarch64 -name ArmbianVirtualTest -m ${rams} -smp ${smp} -drive file=${image} -nographic -enable-kvm -M virt -cpu host -bios ${bios} -netdev user,id=user.0,hostfwd=udp::31783-:22,hostfwd=tcp::31783-:22 -device virtio-net,netdev=user.0 -machine gic-version=3
#
#how to run on mac... i'm using utm and making a custom config...
#/Applications/UTM.app/Contents/XPCServices/QEMUHelper.xpc/Contents/MacOS/QEMULauncher /Applications/UTM.app/Contents/Frameworks/libqemu-aarch64-softmmu.utm.dylib -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4000,server,nowait -vga none -spice port=4001,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off -device virtio-ramfb -cpu host -smp cpus=8,sockets=1,cores=8,threads=1 -machine none,highmem=off -accel hvf -accel tcg,tb-size=1024 -boot menu=on -m 4096 -name armbian -usb -device virtio-blk-pci,drive=drive0,bootindex=0 -drive if=none,media=disk,id=drive0,file=/Users/lane/Library/Containers/com.utmapp.UTM/Data/Documents/armbian.utm/Images/armbian.qcow2,cache=writethrough -device virtio-net-device,mac=AE:C6:BD:B0:F1:33,netdev=net0 -netdev user,id=net0 -uuid 3952DB60-A50E-4838-BAAE-BD13C526CC7A -rtc base=localtime -M virt -cpu host -accel hvf -bios u-boot.bin -device virtio-mouse -device virtio-keyboard
#
2021-05-16 12:56:51 +00:00
BOARD_NAME="virtual qemu"
BOARDFAMILY="virtual"
2021-05-15 19:55:15 +00:00
KERNEL_TARGET="current"
SERIALCON="ttyS0"
FULL_DESKTOP="no"
BOOT_LOGO="yes"
2021-05-15 23:39:49 +00:00
BOOTCONFIG="qemu_arm64_defconfig"
ATF_COMPILE="no"
BOOTBRANCH='tag:v2021.04'
USE_OVERLAYFS='no'
BOOT_USE_MAINLINE_ATF=yes
BOOT_SOC=qemu
EXTRAWIFI='no'