From: Tom Rini Date: Thu, 13 Aug 2015 09:21:38 -0400 Subject: [U-Boot] [U-Boot, 2/2] common/cmd_source.c: Fix the source command failure under 64-bit platform In-Reply-To: <1438236001-31047-1-git-send-email-Qianyu.Gong@freescale.com> References: <1438236001-31047-1-git-send-email-Qianyu.Gong@freescale.com> Message-ID: <20150813132138.GS25532@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jul 30, 2015 at 02:00:01PM +0800, Gong Qianyu wrote: > Modify the data pointer type from ulong* to u32*. > > For arm64 type "ulong" could be 64-bit. Then in line 89 of common/cmd_source.c: > "while (*data++);" data will point to the next 64 bits each time. As the uImage > file generated by mkimage tool keeps the same data format in either 32-bit or 64-bit > platform, the difference would cause failure in 64-bit platform. > > Signed-off-by: Gong Qianyu > > diff --git a/common/cmd_source.c b/common/cmd_source.c > index d2a881d..db7ab7e 100644 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: