From mboxrd@z Thu Jan 1 00:00:00 1970 From: Minkyu Kang Date: Fri, 29 Mar 2013 11:43:36 +0900 Subject: [U-Boot] [PATCH] spl:falcon:trats: Fix SPL image size computing. In-Reply-To: <1363095709-11085-1-git-send-email-p.marczak@samsung.com> References: <1363095709-11085-1-git-send-email-p.marczak@samsung.com> Message-ID: <5154FFD8.5010009@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/03/13 22:41, Przemyslaw Marczak wrote: > "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 > Signed-off-by: Kyungmin Park > Cc: Minkyu Kang > --- > include/configs/trats.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/configs/trats.h b/include/configs/trats.h > index 63745ac..1fd7943 100644 > --- a/include/configs/trats.h > +++ b/include/configs/trats.h > @@ -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.