All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v6, 09/10] image: Add IH_OS_TEE for TEE chain-load boot
Date: Mon, 19 Mar 2018 18:37:18 -0400	[thread overview]
Message-ID: <20180319223718.GJ4418@bill-the-cat.ec.rr.com> (raw)
In-Reply-To: <1520959836-16105-10-git-send-email-bryan.odonoghue@linaro.org>

On Tue, Mar 13, 2018 at 04:50:35PM +0000, Bryan O'Donoghue wrote:

> This patch adds a new type IH_OS_TEE. This new OS type will be used for
> chain-loading to Linux via a TEE.
> 
> With this patch in-place you can generate a bootable OPTEE image like this:
> 
> mkimage -A arm -T kernel -O tee -C none -d tee.bin uTee.optee
> 
> where "tee.bin" is the input binary prefixed with an OPTEE header and
> uTee.optee is the output prefixed with a u-boot wrapper header.
> 
> This image type "-T kernel -O tee" is differentiated from the existing
> IH_TYPE_TEE "-T tee" in that the IH_TYPE is installed by u-boot (flow
> control returns to u-boot) whereas for the new IH_OS_TEE control passes to
> the OPTEE firmware and the firmware chainloads onto Linux.
> 
> Andrew Davis gave the following ASCII diagram:
> 
> IH_OS_TEE: (mkimage -T kernel -O tee)
> Non-Secure       Secure
> 
>                  BootROM
>                    |
>       -------------
>      |
>      v
>     SPL
>      |
>      v
>    U-Boot ------>
>           <-----  OP-TEE
>       |
>       V
>     Linux
> 
> IH_TYPE_TEE: (mkimage -T tee)
> Non-Secure       Secure
> 
>                  BootROM
>                    |
>       -------------
>      |
>      v
>     SPL ------->
>          <-----  OP-TEE
>      |
>      v
>    U-Boot
>       |
>       V
>     Linux
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> Suggested-by: Andrew F. Davis <afd@ti.com>
> Cc: Harinarayan Bhatta <harinarayan@ti.com>
> Cc: Andrew F. Davis <afd@ti.com>
> Cc: Tom Rini <trini@konsulko.com>
> Cc: Kever Yang <kever.yang@rock-chips.com>
> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Cc: Peng Fan <peng.fan@nxp.com>
> Link: http://mrvan.github.io/optee-imx6ul

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180319/0cbe730c/attachment.sig>

  reply	other threads:[~2018-03-19 22:37 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-13 16:50 [U-Boot] [PATCH v6 00/10] Add new OPTEE bootm support to u-boot Bryan O'Donoghue
2018-03-13 16:50 ` [U-Boot] [PATCH v6 01/10] optee: Add lib entries for sharing OPTEE code across ports Bryan O'Donoghue
2018-03-19 22:36   ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-03-13 16:50 ` [U-Boot] [PATCH v6 02/10] optee: Add CONFIG_OPTEE_TZDRAM_SIZE Bryan O'Donoghue
2018-03-19 22:36   ` [U-Boot] [U-Boot,v6,02/10] " Tom Rini
2018-03-13 16:50 ` [U-Boot] [PATCH v6 03/10] optee: Add CONFIG_OPTEE_TZDRAM_BASE Bryan O'Donoghue
2018-03-19 22:36   ` [U-Boot] [U-Boot,v6,03/10] " Tom Rini
2018-03-13 16:50 ` [U-Boot] [PATCH v6 04/10] optee: Add CONFIG_OPTEE_LOAD_ADDR Bryan O'Donoghue
2018-03-19 22:36   ` [U-Boot] [U-Boot,v6,04/10] " Tom Rini
2018-03-13 16:50 ` [U-Boot] [PATCH v6 05/10] optee: Add optee_image_get_entry_point() Bryan O'Donoghue
2018-03-19 22:37   ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-03-13 16:50 ` [U-Boot] [PATCH v6 06/10] optee: Add optee_image_get_load_addr() Bryan O'Donoghue
2018-03-19 22:37   ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-03-13 16:50 ` [U-Boot] [PATCH v6 07/10] optee: Add optee_verify_bootm_image() Bryan O'Donoghue
2018-03-19 22:37   ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-03-13 16:50 ` [U-Boot] [PATCH v6 08/10] optee: Add error printout Bryan O'Donoghue
2018-03-19 22:37   ` [U-Boot] [U-Boot,v6,08/10] " Tom Rini
2018-03-13 16:50 ` [U-Boot] [PATCH v6 09/10] image: Add IH_OS_TEE for TEE chain-load boot Bryan O'Donoghue
2018-03-19 22:37   ` Tom Rini [this message]
2018-03-13 16:50 ` [U-Boot] [PATCH v6 10/10] bootm: optee: Add a bootm command for type IH_OS_TEE Bryan O'Donoghue
2018-03-19 22:37   ` [U-Boot] [U-Boot, v6, " 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=20180319223718.GJ4418@bill-the-cat.ec.rr.com \
    --to=trini@konsulko.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 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.