mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Lars Pedersen <lapeddk@gmail.com>, Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: Getting serial console output on new imx7d tqma7 board UART4
Date: Wed, 5 Aug 2020 14:30:55 +0200	[thread overview]
Message-ID: <74c8e732-2fda-6814-f306-426f66681517@pengutronix.de> (raw)
In-Reply-To: <CAKd8=GvaxTV8AHwBaiTb-JG5yneeUX9SoW2=5j+QS9m=CG5reQ@mail.gmail.com>

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.


I am not sure what we could do better here. You can use barebox
as non-relocatable binary if you set CONFIG_TEXT_BASE to a sensible
value. You might want this if you are keen on reducing barebox size
further at cost of portability. So having a select here to ensure
it's always set won't work.

We can also not set a suitable CONFIG_TEXT_BASE at Kconfig level,
because, due to multi-image support, we may be building different
boards with different TEXT_BASEs...

We could have RELOCATABLE be default y as it's a more sensible default
though. Sascha, what do you think?

> 
>  Symbol: RELOCATABLE [=y]
>  Type  : bool
>  Defined at common/Kconfig:336
>    Prompt: generate relocatable barebox binary
>    Depends on: PPC || ARM [=y]
>    Location:
>  (2) -> General Settings
>  Selected by [y]:
>    - MACH_CCMX51 [=y] && ARCH_IMX [=y] && IMX_MULTI_BOARDS [=y]
>  Selected by [n]:
>    - ARCH_BCM283X [=n] && <choice>
>    - ARCH_TEGRA [=n] && <choice>
>    - ARCH_ZYNQMP [=n] && <choice>
>    - MACH_VEXPRESS [=n] && <choice>
>    - ARCH_ZYNQ7000 [=n] && ARCH_ZYNQ [=n]
> 
> 
>>
>> Cheers,
>> Ahmad
>>
>> --
>> 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 |
> 

-- 
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-05 12:30 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 [this message]
2020-08-05 15:00                   ` Lars Pedersen
2020-08-10  8:00                     ` Sascha Hauer

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=74c8e732-2fda-6814-f306-426f66681517@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=lapeddk@gmail.com \
    --cc=s.hauer@pengutronix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox