]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl:falcon:trats: Fix SPL image size computing.
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Tue, 12 Mar 2013 03:41:49 +0000 (03:41 +0000)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 29 Mar 2013 02:42:35 +0000 (11:42 +0900)
"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.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
include/configs/trats.h

index 31d81901bcd097962bcfb1deb240ab57177fab34..fd58558bebced3b8f433b270ebbce3ccbed76e34 100644 (file)
        "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;" \