diff options
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-x | scripts/runqemu-internal | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 4f3ba7b882..f156c4dae5 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal @@ -59,6 +59,9 @@ else "qemush4") mem_size=1024 ;; + "qemuzynq") + mem_size=1024 + ;; *) mem_size=64 ;; @@ -270,6 +273,7 @@ case "$MACHINE" in "qemuarmv7") ;; "qemux86") ;; "qemux86-64") ;; + "qemuzynq") ;; "akita") ;; "spitz") ;; *) @@ -492,6 +496,17 @@ if [ "$MACHINE" = "akita" ]; then fi fi +if [ "$MACHINE" = "qemuzynq" ]; then + QEMU=qemu-system-arm + QEMU_SYSTEM_OPTIONS="-M xilinx-zynq-a9 -serial null -serial mon:stdio -dtb $KERNEL-$MACHINE.dtb" + # zynq serial ports are named 'ttyPS0' and 'ttyPS1', fixup the default values + SCRIPT_KERNEL_OPT=$(echo "$SCRIPT_KERNEL_OPT" | sed 's/console=ttyS/console=ttyPS/g') + if [ "${FSTYPE:0:3}" = "ext" -o "${FSTYPE:0:4}" = "cpio" ]; then + KERNCMDLINE="earlyprintk root=/dev/ram rw" + QEMUOPTIONS="$QEMU_SYSTEM_OPTIONS -initrd $ROOTFS" + fi +fi + if [ "x$RAMFS" = "xtrue" ]; then QEMUOPTIONS="-initrd $ROOTFS -nographic" KERNCMDLINE="root=/dev/ram0 debugshell" |