summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>2015-06-16 16:18:29 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-23 11:47:14 +0100
commit67b9643b29eba22b999ecc235b67c2ce29636b09 (patch)
tree08773a7729da9c6a834fb4cfe1407c8dbc76b7d4 /scripts
parent8b1bc367be6ecaf4bc9c59c3abe6483878546110 (diff)
downloadpoky-67b9643b29eba22b999ecc235b67c2ce29636b09.tar.gz
runqemu-internal: add support to boot arm64 qemu target via NFS
Add required boot parameters inorder to boot arm64 qemu target via NFS (From OE-Core rev: 0b614317b38b933a4845cd006b0ad734adfa559d) Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu-internal9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index bc2a3557a5..eff5ab4ea5 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -389,6 +389,15 @@ if [ "$MACHINE" = "qemuarm64" ]; then
389 # qemu-system-aarch64 only support '-machine virt -cpu cortex-a57' for now 389 # qemu-system-aarch64 only support '-machine virt -cpu cortex-a57' for now
390 QEMUOPTIONS="$QEMU_NETWORK_CMD -machine virt -cpu cortex-a57 $ROOTFS_OPTIONS $QEMU_UI_OPTIONS" 390 QEMUOPTIONS="$QEMU_NETWORK_CMD -machine virt -cpu cortex-a57 $ROOTFS_OPTIONS $QEMU_UI_OPTIONS"
391 fi 391 fi
392 if [ "$FSTYPE" = "nfs" ]; then
393 if [ "$NFS_SERVER" = "192.168.7.1" -a ! -d "$NFS_DIR" ]; then
394 echo "Error: NFS mount point $ROOTFS doesn't exist"
395 cleanup
396 return 1
397 fi
398 KERNCMDLINE="root=/dev/nfs nfsroot=$NFS_SERVER:$NFS_DIR,$UNFS_OPTS rw console=ttyAMA0,38400 mem=$QEMU_MEMORY highres=off $KERNEL_NETWORK_CMD"
399 QEMUOPTIONS="$QEMU_NETWORK_CMD -machine virt -cpu cortex-a57 $QEMU_UI_OPTIONS"
400 fi
392fi 401fi
393 402
394 403