public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andre Heider <a.heider@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH] Add fdtfile for Marvell Armada 37xx default environment
Date: Sun, 29 Nov 2020 19:29:24 +0100	[thread overview]
Message-ID: <b2e8f0df-eea1-b59a-2788-09bd6fbcf070@gmail.com> (raw)
In-Reply-To: <CAJs94EYS_8K=oqF+X=DJrOtYO413r=txZaRos+fA4U3kr+FfQg@mail.gmail.com>

On 29/11/2020 09:32, Matwey V. Kornilov wrote:
> 
> 
> ??, 26 ????. 2020 ?. ? 12:40, Andre Heider <a.heider@gmail.com 
> <mailto:a.heider@gmail.com>>:
> 
>     On 26/11/2020 10:04, Matwey V. Kornilov wrote:
>      >
>      >
>      > ??, 26 ????. 2020 ?. ? 06:45, Andre Heider <a.heider@gmail.com
>     <mailto:a.heider@gmail.com>
>      > <mailto:a.heider at gmail.com <mailto:a.heider@gmail.com>>>:
>      >
>      >? ? ?On 25/11/2020 10:14, Matwey V. Kornilov wrote:
>      >? ? ? > Signed-off-by: Matwey V. Kornilov
>     <matwey.kornilov at gmail.com <mailto:matwey.kornilov@gmail.com>
>      >? ? ?<mailto:matwey.kornilov@gmail.com
>     <mailto:matwey.kornilov@gmail.com>>>
>      >? ? ? > ---
>      >? ? ? >? ?configs/mvebu_db-88f3720_defconfig? ? ? ? ? | 1 +
>      >? ? ? >? ?configs/mvebu_espressobin-88f3720_defconfig | 1 +
>      >? ? ? >? ?include/configs/mvebu_armada-37xx.h? ? ? ? ?| 1 +
>      >? ? ? >? ?3 files changed, 3 insertions(+)
>      >? ? ? >
>      >? ? ? > diff --git a/configs/mvebu_db-88f3720_defconfig
>      >? ? ?b/configs/mvebu_db-88f3720_defconfig
>      >? ? ? > index a6bbe1a7af..1a3a267890 100644
>      >? ? ? > --- a/configs/mvebu_db-88f3720_defconfig
>      >? ? ? > +++ b/configs/mvebu_db-88f3720_defconfig
>      >? ? ? > @@ -12,6 +12,7 @@ CONFIG_DM_GPIO=y
>      >? ? ? >? ?CONFIG_DEBUG_UART_BASE=0xd0012000
>      >? ? ? >? ?CONFIG_DEBUG_UART_CLOCK=25804800
>      >? ? ? >? ?CONFIG_DEFAULT_DEVICE_TREE="armada-3720-db"
>      >? ? ? > +CONFIG_DEFAULT_FDT_FILE="marvell/armada-3720-db.dtb"
>      >? ? ? >? ?CONFIG_DEBUG_UART=y
>      >? ? ? >? ?CONFIG_AHCI=y
>      >? ? ? >? ?CONFIG_DISTRO_DEFAULTS=y
>      >? ? ? > diff --git a/configs/mvebu_espressobin-88f3720_defconfig
>      >? ? ?b/configs/mvebu_espressobin-88f3720_defconfig
>      >? ? ? > index 8a859cba2e..56ec482794 100644
>      >? ? ? > --- a/configs/mvebu_espressobin-88f3720_defconfig
>      >? ? ? > +++ b/configs/mvebu_espressobin-88f3720_defconfig
>      >? ? ? > @@ -12,6 +12,7 @@ CONFIG_DM_GPIO=y
>      >? ? ? >? ?CONFIG_DEBUG_UART_BASE=0xd0012000
>      >? ? ? >? ?CONFIG_DEBUG_UART_CLOCK=25804800
>      >? ? ? >? ?CONFIG_DEFAULT_DEVICE_TREE="armada-3720-espressobin"
>      >? ? ? > +CONFIG_DEFAULT_FDT_FILE="marvell/armada-3720-espressobin.dtb"
>      >
>      >? ? ?No, that doesn't work for this board, see
>      >? ? ?68e32e344 "arm: mvebu: Espressobin: Set environment variable
>     fdtfile"
>      >
>      >
>      > Good point.
>      > But why does this autodetection not work for me?
> 
>     I guess that can only happen if:
>     - the commit isn't part of you tree
>     - you disabled CONFIG_BOARD_LATE_INIT or didn't refresh from the
>     defconfig
>     - you already have the envvar set/saved
> 
> 
> Hi,
> 
> I've double checked, and you are right.
> It seems that I did "env default" and fdtfile disappeared until the next 
> reset.
> 
> What do you think? If the patch still needed for 3720-DB?

I'm not so sure anybody cares about that board anymore, but it's not up 
to me ;)

You would need to wrap setting `fdtfile` for the default env with
"#ifdef CONFIG_DEFAULT_FDT_FILE" then though.

> 
>      >
>      >? ? ? >? ?CONFIG_DEBUG_UART=y
>      >? ? ? >? ?CONFIG_AHCI=y
>      >? ? ? >? ?CONFIG_DISTRO_DEFAULTS=y
>      >? ? ? > diff --git a/include/configs/mvebu_armada-37xx.h
>      >? ? ?b/include/configs/mvebu_armada-37xx.h
>      >? ? ? > index 0d585606a7..377ac60def 100644
>      >? ? ? > --- a/include/configs/mvebu_armada-37xx.h
>      >? ? ? > +++ b/include/configs/mvebu_armada-37xx.h
>      >? ? ? > @@ -96,6 +96,7 @@
>      >? ? ? >? ? ? ?"kernel_addr=0x7000000\0"? ? ? ?\
>      >? ? ? >? ? ? ?"kernel_addr_r=0x7000000\0"? ? ?\
>      >? ? ? >? ? ? ?"ramdisk_addr_r=0xa000000\0"? ? \
>      >? ? ? > +? ? ?"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
>      >? ? ? >? ? ? ?BOOTENV
>      >? ? ? >
>      >? ? ? >? ?#endif /* _CONFIG_MVEBU_ARMADA_37XX_H */
>      >? ? ? >
>      >
>      >
>      >
>      > --
>      > With best regards,
>      > Matwey V. Kornilov
> 
> 
> 
> -- 
> With best regards,
> Matwey V. Kornilov

      reply	other threads:[~2020-11-29 18:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25  9:14 [PATCH] Add fdtfile for Marvell Armada 37xx default environment Matwey V. Kornilov
2020-11-25 10:00 ` Stefan Roese
2020-11-26  3:44 ` Andre Heider
2020-11-26  9:04   ` Matwey V. Kornilov
2020-11-26  9:40     ` Andre Heider
2020-11-29  8:32       ` Matwey V. Kornilov
2020-11-29 18:29         ` Andre Heider [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=b2e8f0df-eea1-b59a-2788-09bd6fbcf070@gmail.com \
    --to=a.heider@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox