Skip to content

Commit

Permalink
Fix problem where memory split specified on cmdline was ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexxeh committed May 29, 2012
1 parent a01ab6a commit e1c7f9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpi-update
Expand Up @@ -18,6 +18,7 @@ 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
do
Expand Down Expand Up @@ -54,7 +55,7 @@ function update_self() {
#!/bin/bash
if mv "${_tempFileName}" "$0"; then
rm -- "\$0"
exec env UPDATE=0 /bin/bash "$0" "$@"
exec env UPDATE=0 /bin/bash "$0" "$FW_RAM"
else
echo "Failed!"
fi
Expand Down

0 comments on commit e1c7f9e

Please sign in to comment.