All of lore.kernel.org
 help / color / mirror / Atom feed
From: Teresa Remmet <T.Remmet@phytec.de>
To: "jagan@amarulasolutions.com" <jagan@amarulasolutions.com>
Cc: "festevam@gmail.com" <festevam@gmail.com>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	"uboot-imx@nxp.com" <uboot-imx@nxp.com>,
	"sbabic@denx.de" <sbabic@denx.de>,
	"peng.fan@nxp.com" <peng.fan@nxp.com>, "hs@denx.de" <hs@denx.de>
Subject: Re: [PATCH v2 9/9] board: phytec: imx8mp-phycore: Switch to binman
Date: Tue, 6 Jul 2021 12:24:10 +0000	[thread overview]
Message-ID: <6235aa154e9b45a3a1d0fcae695906d9500d2fa9.camel@phytec.de> (raw)
In-Reply-To: <CAMty3ZC0k0v370xe75LSD+xOXdjUOxUToHdH4AwOZVY-r=1n0Q@mail.gmail.com>

Hello Jagan,

Am Montag, den 05.07.2021, 11:01 +0530 schrieb Jagan Teki:
> On Fri, Jul 2, 2021 at 4:49 PM Teresa Remmet <t.remmet@phytec.de>
> wrote:
> > Use now binman for image creation.
> > 
> > Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
> > ---
> >  .../imx8mp-phyboard-pollux-rdk-u-boot.dtsi    | 105
> > ++++++++++++++++++
> >  arch/arm/mach-imx/imx8m/Kconfig               |   1 +
> >  .../phytec/phycore_imx8mp/imximage-8mp-sd.cfg |  10 ++
> >  configs/phycore-imx8mp_defconfig              |   4 +-
> >  4 files changed, 118 insertions(+), 2 deletions(-)
> >  create mode 100644 board/phytec/phycore_imx8mp/imximage-8mp-sd.cfg
> > 
> > diff --git a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
> > b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
> > index dbc48dfb4841..2b8e77cb27c5 100644
> > --- a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
> > +++ b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
> > @@ -7,6 +7,10 @@
> >  #include "imx8mp-u-boot.dtsi"
> > 
> >  / {
> > +       binman: binman {
> > +               multiple-images;
> > +       };
> > +
> >         wdt-reboot {
> >                 compatible = "wdt-reboot";
> >                 wdt = <&wdog1>;
> > @@ -81,3 +85,104 @@
> >  &wdog1 {
> >         u-boot,dm-spl;
> >  };
> > +
> > +&binman {
> > +        u-boot-spl-ddr {
> > +               filename = "u-boot-spl-ddr.bin";
> > +               pad-byte = <0xff>;
> > +               align-size = <4>;
> > +               align = <4>;
> > +
> > +               u-boot-spl {
> > +                       align-end = <4>;
> > +               };
> > +
> > +               blob_1: blob-ext@1 {
> > +                       filename =
> > "lpddr4_pmu_train_1d_imem_202006.bin";
> > +                       size = <0x8000>;
> > +               };
> > +
> > +               blob_2: blob-ext@2 {
> > +                       filename =
> > "lpddr4_pmu_train_1d_dmem_202006.bin";
> > +                       size = <0x4000>;
> > +               };
> > +
> > +               blob_3: blob-ext@3 {
> > +                       filename =
> > "lpddr4_pmu_train_2d_imem_202006.bin";
> > +                       size = <0x8000>;
> > +               };
> > +
> > +               blob_4: blob-ext@4 {
> > +                       filename =
> > "lpddr4_pmu_train_2d_dmem_202006.bin";
> > +                       size = <0x4000>;
> > +               };
> > +       };
> > +
> > +       flash {
> > +               mkimage {
> > +                       args = "-n spl/u-boot-spl.cfgout -T
> > imx8mimage -e 0x920000";
> > +
> > +                       blob {
> > +                               filename = "u-boot-spl-ddr.bin";
> > +                       };
> > +               };
> > +       };
> > +
> > +       itb {
> > +               filename = "u-boot.itb";
> > +
> > +               fit {
> > +                       description = "Configuration to load ATF
> > before U-Boot";
> > +                       #address-cells = <1>;
> > +                       fit,external-offset =
> > <CONFIG_FIT_EXTERNAL_OFFSET>;
> > +
> > +                       images {
> > +                               uboot {
> > +                                       description = "U-Boot (64-
> > bit)";
> > +                                       type = "standalone";
> > +                                       arch = "arm64";
> > +                                       compression = "none";
> > +                                       load =
> > <CONFIG_SYS_TEXT_BASE>;
> > +
> > +                                       uboot_blob: blob-ext {
> > +                                               filename = "u-boot-
> > nodtb.bin";
> > +                                       };
> > +                               };
> > +
> > +                               atf {
> > +                                       description = "ARM Trusted
> > Firmware";
> > +                                       type = "firmware";
> > +                                       arch = "arm64";
> > +                                       compression = "none";
> > +                                       load = <0x970000>;
> > +                                       entry = <0x970000>;
> > +
> > +                                       atf_blob: blob-ext {
> > +                                               filename =
> > "bl31.bin";
> > +                                       };
> > +                               };
> > +
> > +                               fdt {
> > +                                       description = "NAME";
> > +                                       type = "flat_dt";
> > +                                       compression = "none";
> > +
> > +                                       uboot_fdt_blob: blob-ext {
> > +                                               filename = "u-
> > boot.dtb";
> > +                                       };
> > +                               };
> > +                       };
> > +
> > +                       configurations {
> > +                               default = "conf";
> > +
> > +                               conf {
> > +                                       description = "NAME";
> > +                                       firmware = "uboot";
> > +                                       loadables = "atf";
> > +                                       fdt = "fdt";
> > +                               };
> > +                       };
> > +               };
> > +       };
> > +};
> 
> I think this will increase the same copy of its in respective boards
> with changes in ddr names. Better to have common script to update the
> final its by taking ddr files via env, like it was done in Rockchip,
> Allwinner.

I could move the binman nodes also to "imx8mp-u-boot.dtsi". If it is
only the ddr firmware names that might differ, they could be
overwritten in the board specific u-boot.dtsi files using the blob_*
labels. 

What do you think?

Teresa


> 
> Jagan.

  reply	other threads:[~2021-07-06 12:24 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-02 11:19 [PATCH v2 0/9] phyCORE-i.MX8MP Update Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 1/9] arm: dts: imx8mp: Resync imx8mp device tree include Teresa Remmet
2021-07-05  4:54   ` Heiko Schocher
2021-07-02 11:19 ` [PATCH v2 2/9] arm: dts: imx8mp: Add common u-boot dtsi Teresa Remmet
2021-07-05  4:55   ` Heiko Schocher
2021-07-02 11:19 ` [PATCH v2 3/9] arm: dts: imx8mp-phyboard-pollux: Sync dts files with kernel Teresa Remmet
2021-07-05  4:59   ` Heiko Schocher
2021-07-02 11:19 ` [PATCH v2 4/9] board: phytec: phycore_imx8mp: Change debug UART Teresa Remmet
2021-07-05  4:58   ` Heiko Schocher
2021-07-06 12:16     ` Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 5/9] board: phytec: phycore_imx8mp: Add fec support Teresa Remmet
2021-07-05  4:58   ` Heiko Schocher
2021-07-02 11:19 ` [PATCH v2 6/9] board: phytec: phycore_imx8mp: Set VDD_ARM to 0,95V Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 7/9] board: phytec: phycore-imx8mp: Enable DVS1 control Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 8/9] arm: dts: imx8mp-phyboard-pollux-rdk-u-boot: Add wdog pinctrl entry Teresa Remmet
2021-07-02 11:19 ` [PATCH v2 9/9] board: phytec: imx8mp-phycore: Switch to binman Teresa Remmet
2021-07-05  5:13   ` Heiko Schocher
2021-07-05  5:31   ` Jagan Teki
2021-07-06 12:24     ` Teresa Remmet [this message]
2021-07-07  4:47       ` Jagan Teki
2021-07-02 11:53 ` [PATCH v2 0/9] phyCORE-i.MX8MP Update Fabio Estevam

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=6235aa154e9b45a3a1d0fcae695906d9500d2fa9.camel@phytec.de \
    --to=t.remmet@phytec.de \
    --cc=festevam@gmail.com \
    --cc=hs@denx.de \
    --cc=jagan@amarulasolutions.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.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 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.