Skip to contentSkip to conversation

scripts/runqemu: disable unfs boot mode for qemuppc

PATCH Superseded Liming Wang 2 participants 3 messages Aug 25, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover scripts/runqemu: disable unfs boot mode for qemuppc

It's a workaround to fix yocto bug:
[Bug 414][PPC] kernel panic when booting poky-image-sdk-qemuppc through UNFS

Liming Wang (1):
scripts/runqemu: disable unfs boot mode for qemuppc

 scripts/runqemu |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
#1 lore raw

PATCH 1/1 scripts/runqemu: disable unfs boot mode for qemuppc

Because unfs boot mode is unstable for qemuppc, disable it temporarily.

---
 scripts/runqemu |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
scripts/runqemu +6 -0
index ed8c05b..10da6c9 100755
@@ -351,6 +351,12 @@ if [ -z "$FSTYPE" ]; then
         usage
     fi
 fi
+
+if [ "$FSTYPE" = "nfs" -a "$MACHINE" = "qemuppc" ]; then
+    echo "Error: NFS boot mode is unstable for qemuppc, please don't use it now"
+    exit 1
+fi
+
 # FSTYPE is now set for all cases
 
 # Handle cases where a ROOTFS type is given instead of a filename, e.g.
Signature · 1 line
1.7.0.4
#2 lore raw
Quoted 13 lines · Liming Wang

Because unfs boot mode is unstable for qemuppc, disable it temporarily.

---
  scripts/runqemu |    6 ++++++
  1 files changed, 6 insertions(+), 0 deletions(-)
scripts/runqemu +0 -0
index ed8c05b..10da6c9 100755

scripts/runqemu if [ -z "$FSTYPE" ]; then · line 356

Quoted 6 lines
scripts/runqemu +3 -0
@@ -351,6 +351,12 @@ if [ -z "$FSTYPE" ]; then
          usage
      fi
  fi
+
+if [ "$FSTYPE" = "nfs" -a "$MACHINE" = "qemuppc" ]; then
+    echo "Error: NFS boot mode is unstable for qemuppc, please don't use it now"

We can drop the last part.

"Error: usermode NFS boot is not available for qemuppc."

... or something similar is sufficient.

On the v2, make sure to cc' Saul just to be sure that this doesn't miss any filters.

Cheers,

Bruce

Quoted 6 lines
scripts/runqemu +3 -0
+    exit 1
+fi
+
  # FSTYPE is now set for all cases
 
  # Handle cases where a ROOTFS type is given instead of a filename, e.g.