From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 12/31] board_f: Add new function to allow runtime DTB selection
Date: Thu, 9 Mar 2017 21:12:56 +0100 [thread overview]
Message-ID: <20170309211256.23e3227a@jawa> (raw)
In-Reply-To: <20170309130820.GQ19897@bill-the-cat>
On Thu, 9 Mar 2017 08:08:20 -0500
Tom Rini <trini@konsulko.com> wrote:
> On Thu, Mar 02, 2017 at 01:04:16PM -0600, Franklin S Cooper Jr wrote:
>
> > Runtime U-boot dtb selection is generally a two step process. First
> > step is to simply use an initial generic dtb. The second step is to
> > select the dtb and perhaps execute additional code ones U-boot
> > knows what board it is running on. Embedded_dtb_select handles the
> > second step by allowing board specific code to run and perform what
> > ever necessary configuration that is needed.
>
> So I'm not 100% sure on how to proceed here exactly. We have a few
> things to consider. First, I bet the generic dtb is good enough for
> loading up and booting to Linux (and loading/passing a different,
> complete and board specific DTB). Second, we have the (reasonable)
> set of patches and discussion to make the DTB that we use available
> easily so that it could be passed on to Linux (or EFI apps or
> whatever). So, this is probably the right thing to do in the long
> run, but is also another data point in the "but we need to think and
> talk about if some platforms really shouldn't be shipping their full
> FT on the HW somewhere".
It might also happen that somebody would like to have one "blessed"
u-boot binary stored in one place and then only change u-boot DTB stored
on another memory region (like eMMC, NOR).
The above also seems like a valid use case, especially when one wants to
support device for a long time (many DTBs) and avoid uncontrolled grown
of final u-boot.img binary size (as this is now the case for TI).
>
> >
> > Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
> [snip]
> > +config DTB_RESELECT
> > + bool "Support swapping dtbs at a later point in boot"
> > + depends on FIT_EMBED
> > + default n
>
> This is the default, you can drop it.
>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170309/d7f70d6c/attachment.sig>
next prev parent reply other threads:[~2017-03-09 20:12 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-02 19:04 [U-Boot] [PATCH 00/31] ARM: k2g: Add support for new K2G ICE EVM Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 01/31] ti: common: board_detect: Allow settings board detection variables manually Franklin S Cooper Jr
2017-03-02 19:10 ` Felipe Balbi
2017-03-02 19:52 ` Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 02/31] spl: fit: Break out some functions into a common file Franklin S Cooper Jr
2017-03-08 21:01 ` Simon Glass
2017-03-08 21:30 ` Franklin S Cooper Jr
2017-03-13 12:33 ` Simon Glass
2017-03-02 19:04 ` [U-Boot] [PATCH 03/31] boot_fit: Create helper functions that can be used to select DTB out of FIT Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 04/31] fdt: Enable selecting correct DTB from append FIT Image Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 05/31] ti: common: board_detect: Add function to determine if EEPROM was read Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 06/31] dts: Allow OF_LIST to depend on FIT_EMBED Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 07/31] arm: dts: Add new "generic" 66AK2Gx device tree file Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 08/31] ti: common: board_detect: Rename EEPROM scratch start macro Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 09/31] ti_armv7_keystone2: Define scratch space in SRAM Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 10/31] ARM: Use Kconfig for board EEPROM's I2C bus and chip address Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 11/31] ARM: k2g: Enable TI board detection code Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 12/31] board_f: Add new function to allow runtime DTB selection Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-09 20:12 ` Lukasz Majewski [this message]
2017-03-10 15:42 ` Tom Rini
2017-03-30 16:22 ` Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 13/31] Makefile: Build additional binaries for dtb FIT blobs appended to U-boot Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 14/31] ARM: keystone2: Allow to build with all image formats Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 15/31] ARM: k2g: Define embedded_dtb_select for runtime DTB selection in U-boot Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 16/31] ARM: keystone2: Define board_fit_config_name_match for Keystone 2 boards Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 17/31] ks2_evm: Add EEPROM based board detection Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 18/31] defconfig: keystone2: Enable U-boot runtime DTB detection Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-16 21:52 ` Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 19/31] ARM: keystone2: Add additional fields used for DDR3 configuration Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 20/31] ARM: k2g: Program DDR PHY MR2 register with the default value Franklin S Cooper Jr
2017-03-09 13:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 21/31] ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables Franklin S Cooper Jr
2017-03-09 13:09 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 22/31] ks2_evm: Add EEPROM based board detection helper functions Franklin S Cooper Jr
2017-03-09 13:09 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 23/31] ARM: k2g: Add pinmux support for K2G ICE evm Franklin S Cooper Jr
2017-03-09 13:09 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 24/31] ARM: k2g: Add DDR3 configuration " Franklin S Cooper Jr
2017-03-09 13:09 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 25/31] board: ks2: Use board detection to wrap code not specific to " Franklin S Cooper Jr
2017-03-09 13:09 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 26/31] ARM: k2g: Use board detection to wrap K2G GP specific calls Franklin S Cooper Jr
2017-03-09 13:09 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 27/31] ARM: k2g: Update board_name u-boot env variable at runtime Franklin S Cooper Jr
2017-03-09 13:09 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 28/31] ARM: dts: k2g: Disable netcp by default Franklin S Cooper Jr
2017-03-09 13:09 ` Tom Rini
2017-03-16 21:55 ` Franklin S Cooper Jr
2017-03-02 19:04 ` [U-Boot] [PATCH 29/31] ARM: dts: k2g: Add DT support for K2G Industrial Communication Engine evm Franklin S Cooper Jr
2017-03-09 13:09 ` Tom Rini
2017-03-16 21:56 ` Franklin S Cooper Jr
2017-03-17 14:08 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 30/31] ARM: k2g: Add K2G ICE DTB to the list of possible DTBs Franklin S Cooper Jr
2017-03-09 13:10 ` Tom Rini
2017-03-02 19:04 ` [U-Boot] [PATCH 31/31] defconfig: k2g_evm_defconfig: Add K2G ICE to OF_LIST Franklin S Cooper Jr
2017-03-09 13:10 ` Tom Rini
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=20170309211256.23e3227a@jawa \
--to=lukma@denx.de \
--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