mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Koelle, Holger" <Holger.Koelle@allegion.com>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>,
	Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: imx27 phycard update problems from barebox 2019.01.0 to 2020.01.0
Date: Wed, 12 Feb 2020 09:08:45 +0100	[thread overview]
Message-ID: <20200212080845.o7j2pej3zg7m7ood@pengutronix.de> (raw)
In-Reply-To: <BL0PR01MB5251A7D93EE5446BFBF1F8778F180@BL0PR01MB5251.prod.exchangelabs.com>

Hi Holger,

On Tue, Feb 11, 2020 at 03:33:12PM +0000, Koelle, Holger wrote:
> Hey,
> 
> today i followed yout recommends with git bisect.
> 
> I've found the offending commit. 
> It is Commit :  [b0348d677bb47bdbd368983603b3e9604528d4ed] ARM: Compile with -fPIE
> 
> If I remove the Compilerflag (line 145) :
> 
> CPPFLAGS += -fPIE 
> 
> from arch/arm/Makefile , then every Barebox Version (include v2020.01.0) compile and run fine on phycard imx27.
> 
> Whats the impact if I remove this flag? Does imx27 not support this option?

The problem here is that the i.MX27 only loads 2k of memory from NAND
initially from which we have to bootstrap ourselves. This code is
cumbersome to write in assembly, so it is written in C. This requires
us to run code from a location it is not linked at. the -fPIE flag
influences the way how this code is compiled and apparently it doesn't
cope well with this flag.

The relevant code is in arch/arm/mach-imx/external-nand-boot.c.

I can see if I can find some time to debug it. Which toolchain are you
using?

Regards,
 Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2020-02-12  8:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-07 10:17 Koelle, Holger
2020-02-07 10:33 ` Ahmad Fatoum
2020-02-11 15:33   ` AW: " Koelle, Holger
2020-02-12  8:08     ` Sascha Hauer [this message]

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=20200212080845.o7j2pej3zg7m7ood@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=Holger.Koelle@allegion.com \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox