-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathboot_debug.sh
More file actions
executable file
·33 lines (32 loc) · 1.04 KB
/
Copy pathboot_debug.sh
File metadata and controls
executable file
·33 lines (32 loc) · 1.04 KB
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/bash
boot_debug() {
log "Launching AluminiumOS (Build CP1A.260305.018) without Trusty TEE..."
qemu-system-aarch64 \
-M virt,gic-version=3 \
-cpu max,sve=off \
-smp $CORES \
-m $MEM \
-accel tcg,thread=multi \
-kernel "$KERNEL" \
-initrd "$RAMDISK" \
-dtb "$DTB" \
-device qemu-xhci,id=xhci,addr=05.0 \
-drive file="$DISK",if=none,id=super_drive,format=raw \
-device virtio-blk-pci,drive=super_drive,id=super-disk,addr=04.0 \
-device virtio-gpu-gl-pci,id=gpu0,addr=06.0,blob=true,max_outputs=1 \
-append "$CMDLINE_DEBUG" \
-device virtio-tablet-pci \
-display sdl,gl=on,show-cursor=on \
-device virtio-keyboard-pci \
-serial stdio \
-device virtio-serial-pci,id=virtio-serial0 \
-device virtserialport,name=com.android.emulator.secure_env,id=vc_secure_env \
-monitor none
}
# If the script is not sourced from the main script still can be executed as an individual file
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
. vars.sh || exit 255
. colors.sh || exit 255
. logger.sh || exit 255
boot_debug
fi