From: Jagadeesh Krishnanjanappa Date: Tue, 16 Jun 2015 10:48:29 +0000 (+0530) Subject: runqemu-internal: add support to boot arm64 qemu target via NFS X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~30035 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b614317b38b933a4845cd006b0ad734adfa559d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton --- diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index bc2a3557a59..eff5ab4ea59 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