All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
To: u-boot@lists.denx.de
Subject: [U-Boot] [REGRESSION] commit b502611b51... "Change env_get_char from a..." breaks imx31_phycore
Date: Fri, 5 Sep 2008 21:30:59 +0200	[thread overview]
Message-ID: <00ab01c90f8d$ed254d60$c76fe820$@Tjernlund@transmode.se> (raw)
In-Reply-To: <Pine.LNX.4.64.0809052102280.5482@axis700.grange>



> -----Original Message-----
> From: Guennadi Liakhovetski [mailto:lg at denx.de]
> Sent: den 5 september 2008 21:26
> To: Joakim Tjernlund
> Cc: U-Boot at lists.denx.de; Jean-Christophe PLAGNIOL-VILLARD; Remy Bohmer
> Subject: RE: [REGRESSION] commit b502611b51... "Change env_get_char from a..." breaks imx31_phycore
> 
> On Fri, 5 Sep 2008, Joakim Tjernlund wrote:
> 
> >
> > > -----Original Message-----
> > > From: Guennadi Liakhovetski [mailto:lg at denx.de]
> > > Sent: den 5 september 2008 20:01
> > > To: U-Boot at lists.denx.de
> > > Cc: Joakim Tjernlund
> > > Subject: [REGRESSION] commit b502611b51... "Change env_get_char from a..." breaks imx31_phycore
> > >
> > > Hi,
> > >
> > > The aforementioned commit
> > >
> > > commit b502611b51f02718c2d1117d4981dabceb5af6de
> > > Author: Joakim Tjernlund <joakim.tjernlund@transmode.se>
> > > Date:   Sun Jul 6 12:30:09 2008 +0200
> > >
> > >     Change env_get_char from a global function ptr to a function
> > >
> > >     This avoids an early global data reference.
> > >
> > >     Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> > >
> > > found by bisection and causes at least the imx31_phycore board to break.
> > > The boot process becomes slow, printenv is very slow too, booting does not
> > > always come to the bootdelay countdown, tftp wtops working too. Reverting
> > > this commit from the current HEAD fixes the problem.
> >
> > Your board probably don't flip the GD_FLG_RELOC flag after relocation. A few
> > ARM boards had a problem with this too.
> 
> Ok, this sounds good, but a grep over the current tree (as of commit
> 3e3c026ed746a284c6f0ef139b26d859939de7e9) reveals only one ARM board that
> does this: davinci. It is also set globally if you define
> CONFIG_SKIP_RELOCATE_UBOOT, which also is done by a couple of boards. From
> the README:
> 
> - CONFIG_SKIP_LOWLEVEL_INIT
> - CONFIG_SKIP_RELOCATE_UBOOT
> 
> 		[ARM only] If these variables are defined, then
> 		certain low level initializations (like setting up
> 		the memory controller) are omitted and/or U-Boot does
> 		not relocate itself into RAM.
> 		Normally these variables MUST NOT be defined. The
> 		only exception is when U-Boot is loaded (to RAM) by
> 		some other boot loader or by a debugger which
> 		performs these initializations itself.
> 
> So, this doesn't look like the proper way to force setting of
> GD_FLG_RELOC. OTOH, other architectures do it centrally in their
> lib_*/board.c::board_init_[fr](). I certainly do not know all ARM boards
> (maintainer added to CC), so, the question is: shall / can we do the same
> on ARM - set this flag centrally, or is there a reason not to do that? I
> see this email
> 
> http://lists.denx.de/pipermail/u-boot/2008-July/037375.html
> 
> trying to do exactly this, as a reply came this
> 
> http://lists.denx.de/pipermail/u-boot/2008-July/037389.html
> 
> promising a fix for all, and that resulted in this:
> 
> http://lists.denx.de/pipermail/u-boot/attachments/20080722/92a646d6/attachment.txt
> 
> which does indeed fix it for all boards setting
> CONFIG_SKIP_RELOCATE_UBOOT, i.e., booting directly from RAM... Please,
> correct me if I am wrong!

I think Remy and friends can best answer this.

  reply	other threads:[~2008-09-05 19:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05 18:01 [U-Boot] [REGRESSION] commit b502611b51... "Change env_get_char from a..." breaks imx31_phycore Guennadi Liakhovetski
2008-09-05 18:22 ` Joakim Tjernlund
2008-09-05 19:25   ` Guennadi Liakhovetski
2008-09-05 19:30     ` Joakim Tjernlund [this message]
2008-09-06  6:57     ` Remy Bohmer
2008-09-06  8:23       ` Guennadi Liakhovetski
2008-09-06  8:57         ` Wolfgang Denk
2008-09-06  9:23           ` Guennadi Liakhovetski
2008-09-06  9:29             ` Wolfgang Denk
2008-09-07 20:42               ` Guennadi Liakhovetski
2008-09-15  6:42                 ` Magnus Lilja
2008-09-15  7:03                   ` Wolfgang Denk
2008-09-06 10:22             ` Magnus Lilja
2008-09-05 18:54 ` Wolfgang Denk
     [not found] ` <6884773996468454042@unknownmsgid>
2008-09-05 19:15   ` Magnus Lilja
2008-09-05 19:32     ` Joakim Tjernlund

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00ab01c90f8d$ed254d60$c76fe820$@Tjernlund@transmode.se' \
    --to=joakim.tjernlund@transmode.se \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.