[U-Boot] Relocation issue - need help!

Marek Vasut marex at denx.de
Thu Oct 23 00:06:07 CEST 2014


On Wednesday, October 22, 2014 at 11:57:39 PM, Pavel Machek wrote:
> On Wed 2014-10-22 23:46:45, Marek Vasut wrote:
> > On Wednesday, October 22, 2014 at 11:27:42 PM, Pavel Machek wrote:
> > > Hi!
> > > 
> > > > > In message <CANVMifLGzKz+=-K-E9_sSXBxpYPdG1YqEXc-
> > 
> > tsCApi7WVxQAHg at mail.gmail.com> you wrote:
> > > > > > I had exactly the same behaviour some time ago and tracked it
> > > > > > down to
> > > > > 
> > > > > > this (and posted it on the mailing list, but sadly got no feedback):
> > > > > Thanks a lot for this pointer.
> > > > > 
> > > > > > So there a three things to notice:
> > > > > > 1. Do not use gcc 4.8 and u-boot at the moment.
> > > > > > 2. You might not notice that you have a problem until you erase
> > > > > > u-boot from flash (and get your cache flushed).
> > > > > > 3. Handling relro properly should be on the TODO-List
> > > > > 
> > > > > I confirm that the problem is in my case with gcc 4.8.1, too.  I
> > > > > did not try another compiler yet.
> > > > > 
> > > > > > Maybe this is already common knowledge an maybe somebody is
> > > > > > already working on this - but I did not notice yet. So in this
> > > > > > case: sorry for the noise :)
> > > > > 
> > > > > I highly appreciate your hint, it was definitely very useful.
> > > > > Thanks!
> > > > 
> > > > Is this ARM or PowerPC?  The kernel has blacklisted 4.8.x for ARM in
> > > > some cases, and this may or may not be related (see
> > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854)
> > > 
> > > Just for the record, I also stree strange issues with 4.8.1 on
> > > arm/socfpga. u-boot works ok when compiled with 4.7.2, and behaviour
> > > on 4.8.1 seems to change based on compiler flags (-Os vs. -O2).
> > > 
> > > If anyone knows some kind of workaround, that would be nice... I'm
> > > using bitbake with eldk-5.5, and changing that would not be too easy
> > 
> > What is the issue that you do see and I do not see ? What are the
> > symptoms?
> 
> I'm not sure if you should be seing this issue, are you using gcc
> 4.8.1?
> 
> I get hang during MMC init. If I comment it out, it hangs at setenv of
> random variable. With changed compiler flags, commenting out MMC init
> does not get me to prompt.
> 
> I'll try to update to gcc-4.8.3 as gcc-4.8.1 has known issues.

Actually 4.8.2 from ELDK 5.6 . I recall there were some fixes for GCC , but this 
should be fixed in ELDK 5.5.2 . See:
https://www.mail-archive.com/eldk@lists.denx.de/msg00908.html

Best regards,
Marek Vasut


More information about the U-Boot mailing list