aboutsummaryrefslogtreecommitdiffstats
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:38:13 +0100
commit0b614317b38b933a4845cd006b0ad734adfa559d (patch)
treed8128d7e95f7c32aa72b7d6cbd9dcbaff7639492 /scripts
parent388b243668a5c28fb69b760ce9be5adbc85352d8 (diff)
downloadopenembedded-core-contrib-0b614317b38b933a4845cd006b0ad734adfa559d.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 Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
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
# qemu-system-aarch64 only support '-machine virt -cpu cortex-a57' for now
QEMUOPTIONS="$QEMU_NETWORK_CMD -machine virt -cpu cortex-a57 $ROOTFS_OPTIONS $QEMU_UI_OPTIONS"
fi
+ if [ "$FSTYPE" = "nfs" ]; then
+ if [ "$NFS_SERVER" = "192.168.7.1" -a ! -d "$NFS_DIR" ]; then
+ echo "Error: NFS mount point $ROOTFS doesn't exist"
+ cleanup
+ return 1
+ fi
+ KERNCMDLINE="root=/dev/nfs nfsroot=$NFS_SERVER:$NFS_DIR,$UNFS_OPTS rw console=ttyAMA0,38400 mem=$QEMU_MEMORY highres=off $KERNEL_NETWORK_CMD"
+ QEMUOPTIONS="$QEMU_NETWORK_CMD -machine virt -cpu cortex-a57 $QEMU_UI_OPTIONS"
+ fi
fi