Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

armv7a9-qemu: Adjust serial device #997

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions scripts/armv7a9-zynq7000-qemu-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
#
# Shell script for running phoenix-rtos loader on Qemu fork from Xilinx (zynq-7000)
#
# Copyright 2021 Phoenix Systems
# Author: Hubert Buczynski, Damian Modzelewski
#

IMG_PLO_ZYNQ7000="$(dirname "${BASH_SOURCE[0]}")/../_boot/armv7a9-zynq7000-qemu/plo.img"
IMG_FLASH_QEMU="$(dirname "${BASH_SOURCE[0]}")/../_boot/armv7a9-zynq7000-qemu/phoenix.disk"
DTB_ZYNQ7000="$(dirname "${BASH_SOURCE[0]}")/../scripts/zynq7000-zc702.dtb"

for FILE in "$IMG_PLO_ZYNQ7000" "$IMG_FLASH_QEMU" "$DTB_ZYNQ7000"; do
if [ ! -f "$FILE" ]; then
echo "Missing required file: $FILE"
exit 1
fi
done

exec qemu-system-aarch64 \
-M arm-generic-fdt-7series \
-dtb "$DTB_ZYNQ7000" \
-serial null \
-serial stdio \
-device loader,file="$IMG_PLO_ZYNQ7000" \
-drive file="$IMG_FLASH_QEMU",if=mtd,format=raw,index=0
Loading