From 872fc67c1e6571d25a534385b8653a9b074929a9 Mon Sep 17 00:00:00 2001 From: Liam McLoughlin Date: Wed, 25 Jul 2012 16:58:07 -0700 Subject: [PATCH] Add 240MB memory split option --- rpi-update | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpi-update b/rpi-update index b2764fb..d8ee3f8 100755 --- a/rpi-update +++ b/rpi-update @@ -19,8 +19,8 @@ GITCMD="git --git-dir=\"${FW_REPOLOCAL}/.git\" --work-tree=\"${FW_REPOLOCAL}\"" function detect_split() { if [[ -f "$FW_PATH/start.elf" && ${FW_RAM} -eq 0 ]]; then echo "Autodetecting memory split" - FW_RAM=224 - for R in 128 192 224 + FW_RAM=240 + for R in 128 192 224 240 do if [[ -f "$FW_PATH/arm${R}_start.elf" ]] then @@ -201,8 +201,8 @@ command -v readelf >/dev/null 2>&1 || { } detect_split -if [[ ${FW_RAM} -ne 224 ]] && [[ ${FW_RAM} -ne 192 ]] && [[ ${FW_RAM} -ne 128 ]]; then - echo "RAM value must be one of: 224, 192, 128" +if [[ ${FW_RAM} -ne 240 ]] &&[[ ${FW_RAM} -ne 224 ]] && [[ ${FW_RAM} -ne 192 ]] && [[ ${FW_RAM} -ne 128 ]]; then + echo "RAM value must be one of: 240, 224, 192, 128" exit 1 fi echo "Using ARM/GPU memory split of ${FW_RAM}MB/${FW_GPU}MB"