From: Alexandru Gagniuc <mr.nuke.me@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v4 0/8] spl: fit: Play nicely with OP-TEE and Linux
Date: Wed, 20 Jan 2021 10:46:48 -0600 [thread overview]
Message-ID: <20210120164656.1396639-1-mr.nuke.me@gmail.com> (raw)
The purpose of this series is to allow SPL to boot an image with
both OP-TEE and Linux.
The "simple" fit code was mostly ready for this, albeit quite
unreadable. To be able to make these changes reviewable, some major
refactoring had to be done. In fact, of the eight changes, (6) are
refactoring patches, and (2) are functional changes.
I wish I could have written this with a negative line count. I have
unfortunately failed at that, and this series will be adding 5 lines
to u-boot. The takeaway is that the following type FIT can be loaded
from SPL directly:
images {
optee at 1 {
type = "tee";
os = "tee";
...
};
kernel at 1 {
type = "kernel";
os = "linux";
...
};
fdt at devicetree.dtb { ... }
fdt at overlay.dto { ... };
};
configurations {
conf at quickboot {
kernel = "optee at 1";
fdt = "fdt at stm32mp157c-ev1.dtb", "fdt at overlay.dto";
loadables = "kernel at 1";
};
};
Changes since v2:
* Fix copmiler error for IMX spl.c
Changes since v2:
* Fixed embarrasing rebase mishap on one of the patches.
Changes since v1:
* Added struct comments (Simon Glass)
* Added comment do describe args of board_spl_fit_post_load() (Simon Glass)
* Fixed predicate of if clause on spl_load_simple_fit() (me)
Alexandru Gagniuc (8):
spl: fit: Drop 'length' argument to board_spl_fit_post_load()
spl: fit: Factor out FIT parsing and use a context struct
spl: fit: Pass FIT context via a structure pointer
spl: fit: Remove useless loop in spl_fit_get_image_name()
spl: fit: Only look up FIT configuration node once
image: Do not #if guard board_fit_image_post_process() prototype
spl: fit: Replace #ifdef blocks with more readable constructs
spl: fit: Load devicetree when a Linux payload is found
arch/arm/mach-imx/spl.c | 7 +-
common/spl/spl_fit.c | 261 +++++++++++++++++++++-------------------
include/image.h | 7 --
include/spl.h | 4 +-
4 files changed, 142 insertions(+), 137 deletions(-)
--
2.26.2
next reply other threads:[~2021-01-20 16:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-20 16:46 Alexandru Gagniuc [this message]
2021-01-20 16:46 ` [PATCH v4 1/8] spl: fit: Drop 'length' argument to board_spl_fit_post_load() Alexandru Gagniuc
2021-02-19 16:55 ` Tom Rini
2021-01-20 16:46 ` [PATCH v4 2/8] spl: fit: Factor out FIT parsing and use a context struct Alexandru Gagniuc
2021-02-19 16:55 ` Tom Rini
2021-01-20 16:46 ` [PATCH v4 3/8] spl: fit: Pass FIT context via a structure pointer Alexandru Gagniuc
2021-02-19 16:55 ` Tom Rini
2021-01-20 16:46 ` [PATCH v4 4/8] spl: fit: Remove useless loop in spl_fit_get_image_name() Alexandru Gagniuc
2021-02-19 16:55 ` Tom Rini
2021-01-20 16:46 ` [PATCH v4 5/8] spl: fit: Only look up FIT configuration node once Alexandru Gagniuc
2021-02-19 16:55 ` Tom Rini
2021-01-20 16:46 ` [PATCH v4 6/8] image: Do not #if guard board_fit_image_post_process() prototype Alexandru Gagniuc
2021-02-19 16:55 ` Tom Rini
2021-01-20 16:46 ` [PATCH v4 7/8] spl: fit: Replace #ifdef blocks with more readable constructs Alexandru Gagniuc
2021-02-19 16:55 ` Tom Rini
2021-01-20 16:46 ` [PATCH v4 8/8] spl: fit: Load devicetree when a Linux payload is found Alexandru Gagniuc
2021-02-19 16:55 ` 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=20210120164656.1396639-1-mr.nuke.me@gmail.com \
--to=mr.nuke.me@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