[OE-core] [PATCH v2][fido 3/4] runqemu-internal: add support to boot arm64 qemu target via NFS

Jagadeesh Krishnanjanappa jkrishnanjanappa at mvista.com
Tue Jun 16 10:48:29 UTC 2015


Add required boot parameters inorder to boot arm64 qemu
target via NFS

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa at mvista.com>
---
 scripts/runqemu-internal | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index dc0e053..fb51754 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
 
 
-- 
1.9.1




More information about the Openembedded-core mailing list