mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Lars Pedersen <lapeddk@gmail.com>
Cc: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: Getting serial console output on new imx7d tqma7 board UART4
Date: Mon, 10 Aug 2020 10:00:18 +0200	[thread overview]
Message-ID: <20200810080018.GX31536@pengutronix.de> (raw)
In-Reply-To: <CAKd8=GvnrpFHDGx2Sm2ri+JJA4f6NngMA4L-kcZP-d-87nbPRA@mail.gmail.com>

On Wed, Aug 05, 2020 at 05:00:06PM +0200, Lars Pedersen wrote:
> Hi. Thanks for your patience :D
> 
> /Lars Pedersen
> 
> On Wed, 5 Aug 2020 at 14:30, Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >
> > Hello,
> >
> > On 8/5/20 1:12 PM, Lars Pedersen wrote:
> > >> Text base is ignored, when you are relocatable. If you aren't relocatable,
> > >> you need a valid address as your text base. Why did you turn it off?
> > >
> > > I didn't turn it off. It isn't selected by MACH_FREESCALE_MX7_SABRESD
> > > so it gets turned off if only this board is used. It is selected by 6
> > > other boards, which is the reason it works when compiling for all
> > > boards.
> >
> > I don't think that's how it works. If it was =y and the select went
> > away because of CONFIG_MACH_CCMX51=n, it remains at =y. I just tested
> > it and that's the behavior I observed.
> 
> If I use the imx_v7_defconfig and go and deselect  "ConnectCore
> i.MX51" (MACH_CCMX51), then RELOCATABLE will change from =y to =n
> 
> So in other words. Deselecting this one board (MACH_CCMX51) will set
> RELOCATABLE=n and now all the boards rely on CONFIG_TEXT_BASE to be
> set correct. And as you also mentioned later on, this will be an
> issue.

That's strange. I can confirm what Ahmad said: starting from
imx_v7_defconfig and deselecting MACH_CCMX51 still leaves RELOCATABLE
enabled here. I have no idea why this is different for you.

Anyway, on i.MX a barebox binary with RELOCATABLE disabled only works in
very special cases and requires setting TEXT_BASE to a suitable value,
one that works on all boards selected. It would be nice to hide
RELOCATABLE from the user in most cases.

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-08-10  8:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-29 16:52 Lars Pedersen
2020-07-29 17:22 ` Ahmad Fatoum
2020-07-30  6:58   ` Lars Pedersen
2020-07-30  7:25     ` Ahmad Fatoum
2020-07-30 10:16       ` Lars Pedersen
2020-07-30 13:55         ` Ahmad Fatoum
2020-08-03  7:56           ` Lars Pedersen
2020-08-03 21:51         ` Sascha Hauer
2020-08-04 12:53           ` Lars Pedersen
2020-08-03 10:10 ` Ahmad Fatoum
2020-08-04 13:07   ` Lars Pedersen
2020-08-04 16:15     ` Ahmad Fatoum
2020-08-04 19:21       ` Lars Pedersen
2020-08-05  8:49         ` Ahmad Fatoum
2020-08-05  9:37           ` Lars Pedersen
2020-08-05  9:48             ` Ahmad Fatoum
2020-08-05 11:12               ` Lars Pedersen
2020-08-05 12:30                 ` Ahmad Fatoum
2020-08-05 15:00                   ` Lars Pedersen
2020-08-10  8:00                     ` 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=20200810080018.GX31536@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=lapeddk@gmail.com \
    /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