Skip to contentSkip to conversation

spl:falcon:trats: Fix SPL image size computing.

PATCH New Przemyslaw Marczak 2 participants 2 messages Mar 12, 2013 – Mar 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl:falcon:trats: Fix SPL image size computing.

"spl_imgsize" was set as decimal variable by "setexpr" and this causes wrong image size written by "ext4write". Preset this val with "0x" prefix allow to fix this issue.

---
 include/configs/trats.h |    1 +
 1 file changed, 1 insertion(+)
include/configs/trats.h +1 -0
index 63745ac..1fd7943 100644
@@ -199,6 +199,7 @@
 	"splfile=falcon.bin\0" \
 	"spl_export=" \
 		   "setexpr spl_imgsize ${splsize} + 8 ;" \
+		   "setenv spl_imgsize 0x${spl_imgsize};" \
 		   "setexpr spl_imgaddr ${spladdr} - 8 ;" \
 		   "setexpr spl_addr_tmp ${spladdr} - 4 ;" \
 		   "mw.b ${spl_imgaddr} 0x00 ${spl_imgsize};run loaduimage;" \
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 spl:falcon:trats: Fix SPL image size computing.

Quoted 17 lines · Przemyslaw Marczak

"spl_imgsize" was set as decimal variable by "setexpr" and this causes wrong image size written by "ext4write". Preset this val with "0x" prefix allow to fix this issue.

---
 include/configs/trats.h |    1 +
 1 file changed, 1 insertion(+)
include/configs/trats.h +0 -0
index 63745ac..1fd7943 100644

include/configs/trats.h line 205

Quoted 7 lines
include/configs/trats.h +1 -0
@@ -199,6 +199,7 @@
 	"splfile=falcon.bin\0" \
 	"spl_export=" \
 		   "setexpr spl_imgsize ${splsize} + 8 ;" \
+		   "setenv spl_imgsize 0x${spl_imgsize};" \
 		   "setexpr spl_imgaddr ${spladdr} - 8 ;" \
 		   "setexpr spl_addr_tmp ${spladdr} - 4 ;" \
 		   "mw.b ${spl_imgaddr} 0x00 ${spl_imgsize};run loaduimage;" \

applied to u-boot-samsung.

Thanks,
Minkyu Kang.