Patchwork [U-Boot,2/2] at91sam9263ek: fix 'update' script

login
register
mail settings
Submitter Andreas Bießmann
Date June 28, 2012, 12:32 p.m.
Message ID <1340886752-31199-2-git-send-email-andreas.devel@googlemail.com>
Download mbox | patch
Permalink /patch/167864/
State Accepted
Commit 88461f164ed751b582998b28b93d5668d4afec56
Delegated to: Andreas Bießmann
Headers show

Comments

Andreas Bießmann - June 28, 2012, 12:32 p.m.
The old update script uses 'load_addr' which is never set. Use 'fileaddr'
instead whic his automagically set by e.g. dhcp.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
cc: Stelian Pop <stelian@popies.net>
---
 include/configs/at91sam9263ek.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/include/configs/at91sam9263ek.h b/include/configs/at91sam9263ek.h
index 2d46502..f93a436 100644
--- a/include/configs/at91sam9263ek.h
+++ b/include/configs/at91sam9263ek.h
@@ -163,7 +163,7 @@ 
 	"update=" \
 		"protect off ${monitor_base} +${filesize};" \
 		"erase ${monitor_base} +${filesize};" \
-		"cp.b ${load_addr} ${monitor_base} ${filesize};" \
+		"cp.b ${fileaddr} ${monitor_base} ${filesize};" \
 		"protect on ${monitor_base} +${filesize}\0"
 
 #ifndef CONFIG_SKIP_LOWLEVEL_INIT