From: Tom Rini Date: Wed, 14 Jun 2017 09:12:40 -0400 Subject: [U-Boot] ARM: fixed relocation using proper alignment In-Reply-To: <71b208be-b81e-fa1e-eb75-c6a80fc2b0bf@ginzinger.com> References: <20170612224241.GG10782@bill-the-cat> <71b208be-b81e-fa1e-eb75-c6a80fc2b0bf@ginzinger.com> Message-ID: <20170614131240.GY10782@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 Wed, Jun 14, 2017 at 02:58:31PM +0200, Manfred Schlaegl wrote: > On 2017-06-13 00:42, Tom Rini wrote: > > On Wed, May 10, 2017 at 03:41:32PM +0200, Manfred Schlaegl wrote: > > > >> Using u-boot-2017.05 on i.MX6UL we ran into following problem: > >> Initially U-Boot could be started normally. > >> If we added one random command in configuration, the newly generated > >> image hung at startup (last output was DRAM: 256 MiB). > >> > >> We tracked this down to a data abort within relocation (relocated_code). > >> > >> relocated_code in arch/arm/lib/relocate.S copies 8 bytes per loop > >> iteration until the source pointer is equal to __image_copy_end. > >> In a good case __image_copy_end was aligned to 8 bytes, so the loop > >> stopped as suggested, but in an errornous case __image_copy_end was > >> not aligned to 8 bytes, so the loop ran out of bounds and caused a > >> data abort exception. > >> > >> This patches solves the issue by aligning __image_copy_end to 8 byte > >> using the linker script related to arm. > >> > >> I don't know if it's the correct way to solve this, so some review would > >> be very appreciated. > > > > Applied to u-boot/master, thanks! > > Hi! > > Please do not apply this patch! > u-boot/master was not the cause of the problem. > The patch had hidden the symptom of a bug which was located in custom modifications. > > For see the other mails in the conversation for details. Oh? Hmm, sorry, it read like this was still a useful / correct change when I was looking over it. I'll undo it, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: