-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboot2.sh
More file actions
executable file
·28 lines (27 loc) · 1.03 KB
/
boot2.sh
File metadata and controls
executable file
·28 lines (27 loc) · 1.03 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
#!/bin/bash
GSI="super_alos.img"
KERNEL="./p9pf/boot/kernel"
RAMDISK="./p9pf/vendor_boot/alos.cpio"
DTB="./dtb/alos.dtb"
CORES="12"
MEM="16G"
echo "Launching AluminiumOS (Build CP1A.260305.018)..."
qemu-system-aarch64 \
-M virt,gic-version=3 \
-cpu max \
-smp $CORES \
-m $MEM \
-accel tcg,thread=multi \
-kernel "$KERNEL" \
-initrd "$RAMDISK" \
-dtb "$DTB" \
-drive file="$GSI",if=virtio,format=raw,readonly=on \
-append "earlycon=pl011,0x09000000 console=ttyAMA0 root=/dev/vda rw init=/init androidboot.hardware=zumapro androidboot.boot_devices=4010000000.pcie androidboot.boot_devices=pci0000:00/0000:00:05.0 androidboot.selinux=permissive androidboot.lcd_density=160 androidboot.super_partition=vda androidboot.force_normal_boot=1 androidboot.vbmeta.device_state=unlocked androidboot.verifiedbootstate=orange" \
-device virtio-gpu-gl-pci \
-display gtk,gl=on \
-device virtio-tablet-pci \
-device virtio-keyboard-pci \
-netdev user,id=net0 \
-device virtio-net-pci,netdev=net0 \
-serial stdio \
-monitor none