1#!/bin/bash 2 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19 20cd optee-qemuv8-3.14.0-ubuntu-20.04 && ./qemu-system-aarch64 \ 21 -nodefaults \ 22 -nographic \ 23 -serial stdio -serial file:/tmp/serial.log \ 24 -smp 2 \ 25 -s -machine virt,secure=on -cpu cortex-a57 \ 26 -d unimp -semihosting-config enable=on,target=native \ 27 -m 1057 \ 28 -bios bl1.bin \ 29 -initrd rootfs.cpio.gz \ 30 -append 'console=ttyAMA0,38400 keep_bootcon root=/dev/vda2' \ 31 -kernel Image -no-acpi \ 32 -fsdev local,id=fsdev0,path=$(pwd)/../shared,security_model=none \ 33 -device virtio-9p-device,fsdev=fsdev0,mount_tag=host \ 34 -netdev user,id=vmnic \ 35 -device virtio-net-device,netdev=vmnic 36