Patchwork [13/14] runqemu-internal: qemuarm can handle 256M

login
register
mail settings
Submitter Khem Raj
Date Feb. 3, 2012, 8:36 a.m.
Message ID <5407fb2fc93f7d28a0e5000834c7b3b548826392.1328257913.git.raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/20643/
State Accepted
Commit cfd84a05581e068d705b0804829c4833a06bffa6
Headers show

Comments

Khem Raj - Feb. 3, 2012, 8:36 a.m.
Raise the check for max RAM supported for QEMU/arm
its 256M since we patched it to be so in OE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 scripts/runqemu-internal |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
Scott Garman - Feb. 3, 2012, 4:54 p.m.
On 02/03/2012 12:36 AM, Khem Raj wrote:
> Raise the check for max RAM supported for QEMU/arm
> its 256M since we patched it to be so in OE
>
> Signed-off-by: Khem Raj<raj.khem@gmail.com>

Thanks Khem.

Acked-by: Scott Garman <scott.a.garman@intel.com>

> ---
>   scripts/runqemu-internal |   13 +++++++------
>   1 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
> index 21fbce3..73b8b41 100755
> --- a/scripts/runqemu-internal
> +++ b/scripts/runqemu-internal
> @@ -67,13 +67,14 @@ fi
>   # QEMU_MEMORY has 'M' appended to mem_size
>   QEMU_MEMORY="$mem_size"M
>
> -# Bug 433: qemuarm cannot use>  128 MB RAM
> +# Bug 433: qemuarm cannot use>  256 MB RAM
>   if [ "$MACHINE" = "qemuarm" ]; then
> -    if [[ -z "$mem_size" || $mem_size -gt 128 ]]; then
> -        echo "WARNING: qemuarm does not support>  128M of RAM."
> -        echo "Changing QEMU_MEMORY to default of 128M."
> -        QEMU_MEMORY="128M"
> -        SCRIPT_QEMU_EXTRA_OPT=`echo $SCRIPT_QEMU_EXTRA_OPT | sed -e "s/$mem_set/-m 128/" `
> +    if [[ -z "$mem_size" || $mem_size -gt 256 ]]; then
> +        echo "WARNING: qemuarm does not support>  256M of RAM."
> +        echo "Changing QEMU_MEMORY to default of 256M."
> +        QEMU_MEMORY="256M"
> +	mem_size="256"
> +        SCRIPT_QEMU_EXTRA_OPT=`echo $SCRIPT_QEMU_EXTRA_OPT | sed -e "s/$mem_set/-m 256/" `
>       fi
>   fi
>

Patch

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 21fbce3..73b8b41 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -67,13 +67,14 @@  fi
 # QEMU_MEMORY has 'M' appended to mem_size
 QEMU_MEMORY="$mem_size"M
 
-# Bug 433: qemuarm cannot use > 128 MB RAM
+# Bug 433: qemuarm cannot use > 256 MB RAM
 if [ "$MACHINE" = "qemuarm" ]; then
-    if [[ -z "$mem_size" || $mem_size -gt 128 ]]; then
-        echo "WARNING: qemuarm does not support > 128M of RAM."
-        echo "Changing QEMU_MEMORY to default of 128M."
-        QEMU_MEMORY="128M"
-        SCRIPT_QEMU_EXTRA_OPT=`echo $SCRIPT_QEMU_EXTRA_OPT | sed -e "s/$mem_set/-m 128/" `
+    if [[ -z "$mem_size" || $mem_size -gt 256 ]]; then
+        echo "WARNING: qemuarm does not support > 256M of RAM."
+        echo "Changing QEMU_MEMORY to default of 256M."
+        QEMU_MEMORY="256M"
+	mem_size="256"
+        SCRIPT_QEMU_EXTRA_OPT=`echo $SCRIPT_QEMU_EXTRA_OPT | sed -e "s/$mem_set/-m 256/" `
     fi
 fi