summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal15
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
59 "qemush4") 59 "qemush4")
60 mem_size=1024 60 mem_size=1024
61 ;; 61 ;;
62 "qemuzynq")
63 mem_size=1024
64 ;;
62 *) 65 *)
63 mem_size=64 66 mem_size=64
64 ;; 67 ;;
@@ -270,6 +273,7 @@ case "$MACHINE" in
270 "qemuarmv7") ;; 273 "qemuarmv7") ;;
271 "qemux86") ;; 274 "qemux86") ;;
272 "qemux86-64") ;; 275 "qemux86-64") ;;
276 "qemuzynq") ;;
273 "akita") ;; 277 "akita") ;;
274 "spitz") ;; 278 "spitz") ;;
275 *) 279 *)
@@ -492,6 +496,17 @@ if [ "$MACHINE" = "akita" ]; then
492 fi 496 fi
493fi 497fi
494 498
499if [ "$MACHINE" = "qemuzynq" ]; then
500 QEMU=qemu-system-arm
501 QEMU_SYSTEM_OPTIONS="-M xilinx-zynq-a9 -serial null -serial mon:stdio -dtb $KERNEL-$MACHINE.dtb"
502 # zynq serial ports are named 'ttyPS0' and 'ttyPS1', fixup the default values
503 SCRIPT_KERNEL_OPT=$(echo "$SCRIPT_KERNEL_OPT" | sed 's/console=ttyS/console=ttyPS/g')
504 if [ "${FSTYPE:0:3}" = "ext" -o "${FSTYPE:0:4}" = "cpio" ]; then
505 KERNCMDLINE="earlyprintk root=/dev/ram rw"
506 QEMUOPTIONS="$QEMU_SYSTEM_OPTIONS -initrd $ROOTFS"
507 fi
508fi
509
495if [ "x$RAMFS" = "xtrue" ]; then 510if [ "x$RAMFS" = "xtrue" ]; then
496 QEMUOPTIONS="-initrd $ROOTFS -nographic" 511 QEMUOPTIONS="-initrd $ROOTFS -nographic"
497 KERNCMDLINE="root=/dev/ram0 debugshell" 512 KERNCMDLINE="root=/dev/ram0 debugshell"