mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-21 06:13:34 +08:00
Fix problem where memory split specified on cmdline was ignored
This commit is contained in:
@@ -18,6 +18,7 @@ GITCMD="git --git-dir=\"${FW_REPOLOCAL}/.git\" --work-tree=\"${FW_REPOLOCAL}\""
|
|||||||
|
|
||||||
function detect_split() {
|
function detect_split() {
|
||||||
if [[ -f "$FW_PATH/start.elf" && ${FW_RAM} -eq 0 ]]; then
|
if [[ -f "$FW_PATH/start.elf" && ${FW_RAM} -eq 0 ]]; then
|
||||||
|
echo "Autodetecting memory split"
|
||||||
FW_RAM=224
|
FW_RAM=224
|
||||||
for R in 128 192 224
|
for R in 128 192 224
|
||||||
do
|
do
|
||||||
@@ -54,7 +55,7 @@ function update_self() {
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if mv "${_tempFileName}" "$0"; then
|
if mv "${_tempFileName}" "$0"; then
|
||||||
rm -- "\$0"
|
rm -- "\$0"
|
||||||
exec env UPDATE=0 /bin/bash "$0" "$@"
|
exec env UPDATE=0 /bin/bash "$0" "$FW_RAM"
|
||||||
else
|
else
|
||||||
echo "Failed!"
|
echo "Failed!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user