From e9c47914f2f0b0da33623afe2c6ef07640323381 Mon Sep 17 00:00:00 2001 From: Jagadeesh Krishnanjanappa Date: Tue, 16 Jun 2015 16:18:29 +0530 Subject: 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) (From OE-Core rev: 4311b8f59b2a551f2928a4705d4e85901a39995e) Signed-off-by: Jagadeesh Krishnanjanappa Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/runqemu-internal | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts') diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 2db5566..954bba5 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 -- cgit v1.1