[U-Boot] [PATCH v3 2/2] warp7: secure_defconfig: Remove secure_defconfig

2018-03-31 Thread Bryan O'Donoghue
there's no need to support the secure defconfig - drop it now. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Suggested-by: Fabio Estevam <fabio.este...@nxp.com> Reviewed-by: Fabio Estevam <fabio.este...@nxp.com> --- board/warp7/MAINTAINERS| 1 - configs/warp

Re: [U-Boot] [PATCH] configs: warp7: Fix CAAM on boot with tip-of-tree

2018-03-30 Thread Bryan O'Donoghue
On 30/03/18 15:53, Fabio Estevam wrote: Hi Bryan, On Fri, Mar 30, 2018 at 7:55 AM, Bryan O'Donoghue <bryan.odonog...@linaro.org> wrote: Booting the following image with tip-of-tree we get a CAAM DECO error (and subsequent crash due to a kernel bug in 4.1). For booting NXP based kern

Re: [U-Boot] [PATCH 15/18] warp7: Make load command an environment variable

2018-03-30 Thread Bryan O'Donoghue
On 30/03/18 16:05, Fabio Estevam wrote: This will conflict with Pierre-Jean's recent patch series that makes use of the generic load command: https://lists.denx.de/pipermail/u-boot/2018-March/324065.html and https://lists.denx.de/pipermail/u-boot/2018-March/324066.html Would his approach

[U-Boot] [PATCH v2 0/3] imx: hab: Add helper functions for scripted HAB auth

2018-03-26 Thread Bryan O'Donoghue
in one place - again allowing for scripting to reuse instead of replicate functionality over and over again. These helper functions could all be buried in the board-port but, they are made available here in the hopes they will be of use to others. Bryan O'Donoghue (3): imximage: Encase major

[U-Boot] [PATCH v2 1/3] imximage: Encase majority of header in __ASSEMBLY__ declaration

2018-03-26 Thread Bryan O'Donoghue
Subsequent patches will want to include imageimage.h but in doing so include it on an assembly compile path causing a range of compile errors. Fix the errors pre-emptively by encasing the majority of the declarations in imximage.h inside an ifdef __ASSEMBLY__ block. Signed-off-by: Bryan

[U-Boot] [PATCH v2 2/3] imximage: Specify default IVT offset in IMX image

2018-03-26 Thread Bryan O'Donoghue
continue to follow the first-stage authentication layout. This patch defines the first stage offset with an upcoming set of BSP patches making use of that offset subsequently. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Utkarsh Gupta <utkarsh.gu...@nxp.com> Cc: Breno L

[U-Boot] [PATCH v2 3/3] imx: hab: Provide hab_auth_img_or_fail command

2018-03-26 Thread Bryan O'Donoghue
images can be run. It's possible to script this logic but, when done over and over again the environment starts get very complex and repetitive, reducing that script repetition down to a command line function makes sense. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: U

[U-Boot] [PATCH v3 1/2] imximage: Encase majority of header in __ASSEMBLY__ declaration

2018-03-26 Thread Bryan O'Donoghue
Subsequent patches will want to include imageimage.h but in doing so include it on an assembly compile path causing a range of compile errors. Fix the errors pre-emptively by encasing the majority of the declarations in imximage.h inside an ifdef __ASSEMBLY__ block. Signed-off-by: Bryan

[U-Boot] [PATCH v3 2/2] imx: hab: Provide hab_auth_img_or_fail command

2018-03-26 Thread Bryan O'Donoghue
images can be run. It's possible to script this logic but, when done over and over again the environment starts get very complex and repetitive, reducing that script repetition down to a command line function makes sense. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: U

[U-Boot] [PATCH v3 1/3] imx: mx7: Fix CONFIG_SERIAL_TAG compilation

2018-03-26 Thread Bryan O'Donoghue
Currently when we define CONFIG_SERIAL_TAG we will barf with a failure to define "struct tag_serialnr". This structure is defined in , this patch includes to fix. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Fabio Estevam <fabio.este...@nxp.com&

[U-Boot] [PATCH v3 0/3] NXP WaARP7 set serial# from OTP fuses for USB iSerial

2018-03-26 Thread Bryan O'Donoghue
mated LAVA testing environment, hopefully its useful and acceptable to others. Bryan O'Donoghue (3): imx: mx7: Fix CONFIG_SERIAL_TAG compilation imx: mx7: Add comment to describe OTP TESTER registers warp7: Set u-boot serial# based on OTP value arch/arm/mach-imx/mx7/

[U-Boot] [PATCH v3 0/2] imx: hab: Add helper functions for scripted HAB auth

2018-03-26 Thread Bryan O'Donoghue
they are made available here in the hopes they will be of use to others. Bryan O'Donoghue (2): imximage: Encase majority of header in __ASSEMBLY__ declaration imx: hab: Provide hab_auth_img_or_fail command arch/arm/mach-imx/hab.c | 35 +++ include/imximage.h

[U-Boot] [PATCH v3 2/3] imx: mx7: Add comment to describe OTP TESTER registers

2018-03-26 Thread Bryan O'Donoghue
Unique ID 10:0 - FSL-wide unique, encoded LOT ID STD II/SJC CHALLENGE/ Unique ID The 64 bits of data generate a unique serial number per-chip. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Fabio Estevam <fabio.este...@nxp.com> Cc: Peng Fan <peng@nxp.co

[U-Boot] [PATCH v3 3/3] warp7: Set u-boot serial# based on OTP value

2018-03-26 Thread Bryan O'Donoghue
ad. With this patch in place the USB mass storage device will appear in /dev/disk/by-id with a unique name based on the OTP value. For example /dev/disk/by-id/usb-Linux_UMS_disk_0_WaRP7-0xf42400d301d4-0:0 Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Fabio Estevam <f

Re: [U-Boot] [PATCH v2 2/3] imximage: Specify default IVT offset in IMX image

2018-03-26 Thread Bryan O'Donoghue
On 26/03/18 15:31, Fabio Estevam wrote: On Mon, Mar 26, 2018 at 11:30 AM, Bryan O'Donoghue <bryan.odonog...@linaro.org> wrote: Ah not _yet_ There's a bunch of code in a BSP mod I plan to bomb the list with that makes use of this. In this case, please make this patch part of the

Re: [U-Boot] [PATCH v2 2/3] imximage: Specify default IVT offset in IMX image

2018-03-26 Thread Bryan O'Donoghue
On 26/03/18 15:15, Fabio Estevam wrote: On Mon, Mar 26, 2018 at 11:11 AM, Bryan O'Donoghue <bryan.odonog...@linaro.org> wrote: +/* Specify the offset of the IVT in the IMX header as expected by BootROM */ +#define BOOTROM_IVT_HDR_OFFSET 0xC00 You introduce this new

[U-Boot] [PATCH v2 00/17] warp7: Enable automated OPTEE/HAB boot flow

2018-04-02 Thread Bryan O'Donoghue
mmcpart} run finduuid; run mmcargs; # Now boot echo Booting secure Linux/OPTEE OS from mmc ...; bootm ${optee_addr} - ${fdt_addr}; # Failsafe if something goes wrong hab_failsafe Bryan O'Donoghue (17): imximage: Specify default IVT offset in IMX image warp7: hab: Add a CSF location definition wa

[U-Boot] [PATCH v2 01/17] imximage: Specify default IVT offset in IMX image

2018-04-02 Thread Bryan O'Donoghue
continue to follow the first-stage authentication layout. This patch defines the first stage offset which later patch make use of. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Utkarsh Gupta <utkarsh.gu...@nxp.com> Cc: Breno Lima <breno.l...@nxp.com> Cc: Fabio E

[U-Boot] [PATCH v2 12/17] warp7: select uuid partition based on rootpart

2018-04-02 Thread Bryan O'Donoghue
a boot script to select ping or pong as necessary without reprogramming the bootloader. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- include/configs/warp7.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/warp7.h b/include/configs/warp7.h

[U-Boot] [PATCH v2 14/17] warp7: add warp7_auth_or_fail

2018-04-02 Thread Bryan O'Donoghue
_addr} ${filesize} 0". Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- include/configs/warp7.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 0ed95d8..454bc1c 100644 --- a/include/configs/warp7.h +++ b/include/configs/

[U-Boot] [PATCH v2 13/17] warp7: Define the name of a signed boot-script file

2018-04-02 Thread Bryan O'Donoghue
We need to know the name of a signed boot-script, its better to have a separate variable for this then to simply append some fixed string to an existing image name. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- include/configs/warp7.h | 1 + 1 file changed, 1 ins

[U-Boot] [PATCH v2 08/17] warp7: defconfig: Enable CONFIG_SECURE_BOOT

2018-04-02 Thread Bryan O'Donoghue
Various function associated with booting the WaRP7 in High Assurance Boot (HAB) mode are enabled by switching on CONFIG_SECURE_BOOT. This patch enables CONFIG_SECURE_BOOT for the WaRP7 defconfig. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- configs/warp7_defconfig |

[U-Boot] [PATCH v2 16/17] warp7: defconfig: Enable CMD_SETEXPR

2018-04-02 Thread Bryan O'Donoghue
setexpr allows us to do arithmetic for env variables - something that is both useful and required when doing HAB authentication without hard-coding HAB load addresses. Enable setexpr in the secure defconfig - it's not required for the unsecure version. Signed-off-by: Bryan O'Donoghue

[U-Boot] [PATCH v2 15/17] warp7: hab: Set environment variable indicating IVT offset

2018-04-02 Thread Bryan O'Donoghue
to have the real load addresses exported in uboot.cfg. ivt_offset represents the addition or subtraction from the load address that must happen to find an IVT header. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- include/configs/warp7.h | 2 ++ 1 file changed, 2 insertions(+)

[U-Boot] [PATCH v2 17/17] warp7: Add support for automated secure boot.scr verification

2018-04-02 Thread Bryan O'Donoghue
to executing the commands contained in boot.scr. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- include/configs/warp7.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index fe9b7d5..f340bff 100644 --- a/i

[U-Boot] [PATCH v2 07/17] warp7: Specify CONFIG_OPTEE_LOAD_ADDR

2018-04-02 Thread Bryan O'Donoghue
makes the OPTEE_LOAD_ADDR available via u-boot.cfg for further parsing by external tools. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Reviewed-by: Ryan Harkin <ryan.har...@linaro.org> --- configs/warp7_defconfig | 1 + include/configs/warp7.h | 1 + 2 files changed,

[U-Boot] [PATCH v2 10/17] warp7: Make CONFIG_SYS_FDT_ADDR a define

2018-04-02 Thread Bryan O'Donoghue
-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Reviewed-by: Ryan Harkin <ryan.har...@linaro.org> --- board/warp7/Kconfig | 6 ++ include/configs/warp7.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/board/warp7/Kconfig b/board/warp7/Kconfig index 61c3

[U-Boot] [PATCH v2 11/17] warp7: Add Kconfig WARP7_ROOT_PART

2018-04-02 Thread Bryan O'Donoghue
Adding CONFIG_WARP7_ROOT_PART allows a defconfig to specify which partition is use as the root partition on WaRP7, this is a desirable change in order to support a different partitioning schemes. The default is the current partition #2. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.

[U-Boot] [PATCH v2 02/17] warp7: hab: Add a CSF location definition

2018-04-02 Thread Bryan O'Donoghue
nt because it gives the addresses for the HAB that we will require to sign the u-boot image using the CST. Since the addresses can change this logfile is a critical output. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- board/warp7/imximage.cfg | 4 1 file chang

[U-Boot] [PATCH v2 04/17] warp7: defconfig: Enable OPTEE for WaRP7

2018-04-02 Thread Bryan O'Donoghue
Requires setting CONFIG_OPTEE=y and setting an OPTEE TrustZone DRAM base in include/configs/warp7.h. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- configs/warp7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/warp7_defconfig b/configs/warp7_def

[U-Boot] [PATCH v2 03/17] warp7: hab: Set environment variable indicating HAB enable

2018-04-02 Thread Bryan O'Donoghue
Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- board/warp7/warp7.c | 8 include/configs/warp7.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 327f656..0d3d324 100644 --- a/board/warp7/warp7.c +++ b/boa

[U-Boot] [PATCH v2 09/17] warp7: defconfig: Enable CONFIG_BOOTM_TEE

2018-04-02 Thread Bryan O'Donoghue
Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- configs/warp7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index efb6f51..d5dc009 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defcon

[U-Boot] [PATCH v2 05/17] warp7: Allocate specific region of memory to OPTEE

2018-04-02 Thread Bryan O'Donoghue
. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- board/warp7/warp7.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 0d3d324..56f0cdd 100644 --- a/board/warp7/warp7.c +++ b/board/warp7/warp7.c @@ -58,6 +58,11 @@ int dra

[U-Boot] [PATCH v2 06/17] warp7: Print out the OPTEE DRAM region

2018-04-02 Thread Bryan O'Donoghue
Right now a region of 0x30 bytes is allocated at the end of DRAM for the purposes of loading an OPTEE firmware inside of it. This patch adds the printout of the relevant address ranges. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- board/warp7/warp7.c | 10 +++

[U-Boot] [PATCH v2 0/2] WaRP7 unify secure and non-secure defconfigs

2018-03-31 Thread Bryan O'Donoghue
the bug and zap the fat ! Bryan O'Donoghue (2): warp7: defconfig: Fix CAAM on boot with tip-of-tree warp7: secure_defconfig: Remove secure_defconfig configs/warp7_defconfig| 1 + configs/warp7_secure_defconfig | 42 -- 2 files changed, 1 insertion

[U-Boot] [PATCH v2 1/2] warp7: defconfig: Fix CAAM on boot with tip-of-tree

2018-03-31 Thread Bryan O'Donoghue
reeable) from [<8076aa38>] (kernel_init+0x8/0xe8) [<8076aa38>] (kernel_init) from [<8000f468>] (ret_from_fork+0x14/0x2c) Code: e59d300c e2832010 e5843008 e5834068 (e58a2004) ---[ end trace d5f941204ed8cb29 ]--- Kernel panic - not syncing: Attempted to kill init! exitcode=0x000b

[U-Boot] [PATCH v2 2/2] warp7: secure_defconfig: Remove secure_defconfig

2018-03-31 Thread Bryan O'Donoghue
there's no need to support the secure defconfig - drop it now. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Suggested-by: Fabio Estevam <fabio.este...@nxp.com> --- configs/warp7_secure_defconfig | 42 -- 1 file changed, 42 deletions(-)

Re: [U-Boot] [PATCH 3/4] imx: hab: Specify IVT padding size

2018-03-20 Thread Bryan O'Donoghue
On 20/03/18 01:53, Breno Matheus Lima wrote: Hi Bryan, 2018-03-17 8:06 GMT-03:00 Bryan O'Donoghue <bryan.odonog...@linaro.org>: On 15/03/18 16:54, Breno Matheus Lima wrote: Hi Bryan, 2018-03-09 14:35 GMT-03:00 Bryan O'Donoghue <bryan.odonog...@linaro.org>: This patch adds

Re: [U-Boot] [PATCH 1/4] imx: hab: Add routine to set HAB IVT address

2018-03-17 Thread Bryan O'Donoghue
On 16/03/18 08:17, Lothar Waßmann wrote: 'setexpr hab_ivt_addr ${loadaddr} + 0x400' could not do as well? That might work too. I'll check. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 3/4] imx: hab: Specify IVT padding size

2018-03-17 Thread Bryan O'Donoghue
On 15/03/18 16:54, Breno Matheus Lima wrote: Hi Bryan, 2018-03-09 14:35 GMT-03:00 Bryan O'Donoghue <bryan.odonog...@linaro.org>: This patch adds IVT_PAD_SIZE at 0xC00. The IVT header is padded to this size. Defining the size explicitly makes it possible to use the define to locate the

Re: [U-Boot] [PATCH 4/4] imx: hab: Provide hab_auth_img_or_fail command

2018-03-17 Thread Bryan O'Donoghue
On 15/03/18 17:15, Breno Matheus Lima wrote: If I run this command without any parameter the code is wrongly executed, and the system goes to USB recovery mode. Oops. I'll fix that so. --- bod ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v4 08/12] doc: TEE: Add documentation describing TEE in u-boot

2018-02-26 Thread Bryan O'Donoghue
On 26/02/18 14:56, Dr. Philipp Tomsich wrote: Now, I am confused. Fair enough. In my view there are really only two required paths i.e. kever's stuff can use the existing "tee" type, let's not discuss a third option further. So for clarity the proposal is 1. Maintain the existing "tee"

Re: [U-Boot] [PATCH v4 08/12] doc: TEE: Add documentation describing TEE in u-boot

2018-02-26 Thread Bryan O'Donoghue
On 26/02/18 13:53, Dr. Philipp Tomsich wrote: + To identify this type of image to u-boot you should use mkimage like this: + + mkimage -A arm -T tee -C none -d tee-image.bin uTee-standalone The type should be “tee-standalone” to avoid confusion with the boot-through variety. Eh, I

[U-Boot] [PATCH v4 00/12] Add new OPTEE bootm support to u-boot

2018-02-26 Thread Bryan O'Donoghue
the link address specified we refuse to boot. Kever - I'd like to suggest that your OPTEE SPL image takes a different image type IH_TYPE_OPTEE_SPL ? to indicate the different behavior your image type has versus a directly bootable bootm image. Bryan O'Donoghue (12): optee: Add lib entries for sharing O

[U-Boot] [PATCH v4 10/12] optee: Add error printout

2018-02-26 Thread Bryan O'Donoghue
When encountering an error in OPTEE verification print out various details of the OPTEE header to aid in further debugging of encountered errors. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Harinarayan Bhatta <harinara...@ti.com> Cc: Andrew F. Davis <a...@ti.co

[U-Boot] [PATCH v4 01/12] optee: Add lib entries for sharing OPTEE code across ports

2018-02-26 Thread Bryan O'Donoghue
as more functionality gets added. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Harinarayan Bhatta <harinara...@ti.com> Cc: Andrew F. Davis <a...@ti.com> Cc: Tom Rini <tr...@konsulko.com> Cc: Kever Yang <kever.y...@rock-chips.com> Cc: Philipp Toms

[U-Boot] [PATCH v4 08/12] doc: TEE: Add documentation describing TEE in u-boot

2018-02-26 Thread Bryan O'Donoghue
not return to u-boot. Subsequent methods of performing a TEE boot with u-boot may be added over time, for example "tee-combo" is being discussed. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- doc/README.trusted-execution-environment | 123 +++

[U-Boot] [PATCH v4 09/12] optee: Add optee_verify_bootm_image()

2018-02-26 Thread Bryan O'Donoghue
This patch adds optee_verify_bootm_image() which will be subsequently used to verify the parameters encoded in the OPTEE header match the memory allocated to the OPTEE region, OPTEE header magic and version prior to handing off control to the OPTEE image. Signed-off-by: Bryan O'Donoghue

[U-Boot] [PATCH v4 02/12] optee: Add CONFIG_OPTEE_TZDRAM_SIZE

2018-02-26 Thread Bryan O'Donoghue
to boot an OPTEE image. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Harinarayan Bhatta <harinara...@ti.com> Cc: Andrew F. Davis <a...@ti.com> Cc: Tom Rini <tr...@konsulko.com> Cc: Kever Yang <kever.y...@rock-chips.com> Cc: Philipp Tomsich <phil

[U-Boot] [PATCH v4 03/12] optee: Add CONFIG_OPTEE_TZDRAM_BASE

2018-02-26 Thread Bryan O'Donoghue
prior to trying to boot an OPTEE image. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Harinarayan Bhatta <harinara...@ti.com> Cc: Andrew F. Davis <a...@ti.com> Cc: Tom Rini <tr...@konsulko.com> Cc: Kever Yang <kever.y...@rock-chips.com> Cc: Philipp Toms

[U-Boot] [PATCH v4 05/12] optee: Add optee_image_get_load_addr()

2018-02-26 Thread Bryan O'Donoghue
This patch adds optee_image_get_load_addr() a helper function used to calculate the load-address of an OPTEE image based on the lower entry-point address given in the OPTEE header. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Harinarayan Bhatta <harinara...@ti.com>

[U-Boot] [PATCH v4 11/12] bootm: optee: Add mechanism to validate a bootable TEE image

2018-02-26 Thread Bryan O'Donoghue
This patch makes it possible to verify the contents and location of an a bootable TEE image in DRAM prior to handing off control to that image. If image verification fails we won't try to boot any further. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Harinarayan

[U-Boot] [PATCH v4 07/12] tools: mkimage: add tee-bootable image type

2018-02-26 Thread Bryan O'Donoghue
l optee-header checks on. Subsequent patches add logic to perform those optee-specific changes prior to handing over control as described in flow #1 above. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Cc: Harinarayan Bhatta <harinara...@ti.com> Cc: Andrew F. Dav

[U-Boot] [PATCH v4 04/12] optee: Add optee_image_get_entry_point()

2018-02-26 Thread Bryan O'Donoghue
Add a helper function for extracting the least significant 32 bits from the OPTEE entry point address, which will be good enough to load OPTEE binaries up to (2^32)-1 bytes. We may need to extend this out later on but for now (2^32)-1 should be fine. Signed-off-by: Bryan O'Donoghue <bryan.odo

[U-Boot] [PATCH v4 12/12] optee: Add CONFIG_OPTEE_LOAD_ADDR

2018-02-26 Thread Bryan O'Donoghue
CONFIG_OPTEE_LOAD_ADDR appear in u-boot.cfg. Adding new CONFIG entires to u-boot should be kconfig driven so this patch does just that. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> Reviewed-by: Ryan Harkin <ryan.har...@linaro.org> --- lib/optee/Kconfig | 6 ++ 1 file changed,

[U-Boot] [PATCH v4 06/12] image: Update comment for IH_TYPE_TEE

2018-02-26 Thread Bryan O'Donoghue
Add "(TEE)" to the name of the existing TEE in the comment adjacent to its definition. Later patches reuse the TEE name so introduce the reduced TLA acronym properly here. Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- include/image.h | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH v4 08/12] doc: TEE: Add documentation describing TEE in u-boot

2018-02-26 Thread Bryan O'Donoghue
On 26/02/18 15:26, Andrew F. Davis wrote: Lets look at u-boot/include/image.h for a moment, the table of IH_TYPE_* already has a type for what we are trying to do here: IH_TYPE_KERNEL. The comment on this table describes "OS Kernel Images" as exactly what you are doing with your TEE image. To

[U-Boot] [PATCH 5/8] warp7: defconfig: Switch on IMX7 pinctrl for both ports

2019-01-02 Thread Bryan O'Donoghue
Switches on the IMX7 pinctrl driver for the warp7 and warp7_bl33 ports, necessary to convert over to DM for this board. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp7_bl33_defconfig | 2 ++ configs/warp7_defconfig | 2 ++ 2 files

[U-Boot] [PATCH 2/8] arm: imx7s-warp: Add DT file hooks

2019-01-02 Thread Bryan O'Donoghue
This patch adds DT file hooks for imx7s-warp.dtb to the warp7 and warp7_bl33 builds. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/Makefile| 3 ++- configs/warp7_bl33_defconfig | 3 ++- configs/warp7_defconfig

[U-Boot] [PATCH 3/8] arm: imx7s-warp: Convert to DM MMC initialization

2019-01-02 Thread Bryan O'Donoghue
Converts from fixed initialization of MMC to DM initialization of MMC. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 11 --- board/warp7/warp7.c | 34

[U-Boot] [PATCH 6/8] warp7: defconfig: Switch on DM GPIO for both warp7 ports

2019-01-02 Thread Bryan O'Donoghue
This patch switches on DM_GPIO for both WaRP7 ports. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp7_bl33_defconfig | 1 + configs/warp7_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/warp7_bl33_defconfig b

[U-Boot] [PATCH 4/8] arm: dts: imx7s-warp: Create alias for mmc0 to

2019-01-02 Thread Bryan O'Donoghue
that rely on mmc 0. Setup the alias of mmc0 and usdhc3 so that existing warp7 boot code will work unmodified. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 4 1 file changed, 4 insertions(+) diff

[U-Boot] [PATCH 7/8] warp7: defconfig: Switch to DM for I2C

2019-01-02 Thread Bryan O'Donoghue
This commit switches to DM I2C for warp7 and warp7_bl33 defconfigs. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 24 configs/warp7_bl33_defconfig | 1 + configs/warp7_defconfig | 1

[U-Boot] [PATCH 0/8] Convert i.MX7 WaRP7 ports to DM

2019-01-02 Thread Bryan O'Donoghue
This series does a minimal conversion of WaRP7 and the BL33 version of WaRP7 to the DM. Pinctrl, GPIO, I2C, Regulators, PMIC and MMC are converted. Later patches will convert USB and UART. Bryan O'Donoghue (8): arm: dts: imx7s-warp: Import Linux warp7 dts arm: imx7s-warp: Add DT file hooks

[U-Boot] [PATCH 1/8] arm: dts: imx7s-warp: Import Linux warp7 dts

2019-01-02 Thread Bryan O'Donoghue
okay"; -}; - - -_lpsr { - pinctrl_wdog: wdoggrp { - fsl,pins = < - MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74 - >; - }; -}; it causes a DTC compile error for me and isn't needed for u-boot in any case. Signed-off-by: Bryan O'Donogh

[U-Boot] [PATCH 8/8] arm: imx7s-warp: Convert to DM PMIC

2019-01-02 Thread Bryan O'Donoghue
This patch converts the warp7 and warp7_bl33 board ports over to using the DM PMIC model. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 27 +++ configs/warp7_bl33_defconfig | 6 ++ configs

[U-Boot] [PATCH] cmd: image_info: Add checking of default FIT config

2019-01-18 Thread Bryan O'Donoghue
@1): sha1+ Hash(es) for Image 3 (bootscr): sha1+ Hash for default configuration: sha1,rsa2048:mbl-fit-rot-key+ Signed-off-by: Bryan O'Donoghue Cc: Jun Nie Cc: Simon Glass Cc: Tom Rini Reviewed-by: Simon Glass --- cmd/bootm.c | 17 + 1 file changed, 17 insertions(+) diff

[U-Boot] [RESEND] [PATCH v3 0/8] Convert i.MX7 WaRP7 ports to DM

2019-01-18 Thread Bryan O'Donoghue
ted. Later patches will convert USB and UART. Bryan O'Donoghue (8): arm: dts: imx7: Correct spelling mistake in GPIO name arm: dts: imx7s-warp: Import Linux warp7 dts arm: imx7s-warp: Add DT file hooks arm: imx7s-warp: Convert to DM MMC initialization arm: dts: imx7s-warp: Create alia

[U-Boot] [RESEND] [PATCH v3 4/8] arm: imx7s-warp: Convert to DM MMC initialization

2019-01-18 Thread Bryan O'Donoghue
Converts from fixed initialization of MMC to DM initialization of MMC. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 34 -- configs/warp7_bl33_defconfig | 1 + configs

[U-Boot] [RESEND] [PATCH v3 6/8] warp7: defconfig: Switch on IMX7 GPIO/pinctrl for both ports

2019-01-18 Thread Bryan O'Donoghue
Switches on the IMX7 pinctrl driver for the warp7 and warp7_bl33 ports, necessary to convert over to DM for this board. It is necessary to switch on pinctrl and GPIO in one go. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp7_bl33_defconfig

[U-Boot] [RESEND] [PATCH v3 8/8] arm: imx7s-warp: Convert to DM PMIC

2019-01-18 Thread Bryan O'Donoghue
This patch converts the warp7 and warp7_bl33 board ports over to using the DM PMIC model. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 27 +++ configs/warp7_bl33_defconfig

[U-Boot] [RESEND] [PATCH v3 7/8] warp7: defconfig: Switch to DM for I2C

2019-01-18 Thread Bryan O'Donoghue
This commit switches to DM I2C for warp7 and warp7_bl33 defconfigs. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 24 configs/warp7_bl33_defconfig | 1 + configs

[U-Boot] [RESEND] [PATCH v3 5/8] arm: dts: imx7s-warp: Create alias for mmc0 to

2019-01-18 Thread Bryan O'Donoghue
that rely on mmc 0. Setup the alias of mmc0 and usdhc3 so that existing warp7 boot code will work unmodified. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 4 1 file changed, 4 insertions(+) diff

[U-Boot] [RESEND] [PATCH v3 2/8] arm: dts: imx7s-warp: Import Linux warp7 dts

2019-01-18 Thread Bryan O'Donoghue
This patch imports the Linux kernel warp7 dts as at upstream kernel commit cf76c364a1e1. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 438 1 file changed, 438

[U-Boot] [RESEND] [PATCH v3 1/8] arm: dts: imx7: Correct spelling mistake in GPIO name

2019-01-18 Thread Bryan O'Donoghue
As pointed out by Lucas WDOD1_WDOG_ANY should be WDOG1_WDOG_ANY. Once corrected we can import the latest kernel DTS unmodified. Signed-off-by: Bryan O'Donoghue Reported-by: Lukas Auer --- arch/arm/dts/imx7d-pinfunc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [RESEND] [PATCH v3 3/8] arm: imx7s-warp: Add DT file hooks

2019-01-18 Thread Bryan O'Donoghue
This patch adds DT file hooks for imx7s-warp.dtb to the warp7 and warp7_bl33 builds. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/Makefile| 3 ++- configs/warp7_bl33_defconfig | 3

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread Bryan O'Donoghue
On 21/01/2019 10:34, jorisoffouga wrote: Le 21/01/2019 à 10:52, Bryan O'Donoghue a écrit : On 20/01/2019 21:18, Joris Offouga wrote: This patch imports the Linux kernel base board imx7d-pico.dtsi and specific dts for imx7d-pico-pi I recommend including the upstream Linux SHA

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread Bryan O'Donoghue
On 20/01/2019 21:18, Joris Offouga wrote: This patch imports the Linux kernel base board imx7d-pico.dtsi and specific dts for imx7d-pico-pi I recommend including the upstream Linux SHA in the commit log to make it easier to validate against and also if any changes/bugfixes go in upstream

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-23 Thread Bryan O'Donoghue
On 21/01/2019 12:02, Offouga Joris wrote: Le 21 janv. 2019 à 11:58, Bryan O'Donoghue a écrit : On 21/01/2019 10:34, jorisoffouga wrote: Le 21/01/2019 à 10:52, Bryan O'Donoghue a écrit : On 20/01/2019 21:18, Joris Offouga wrote: This patch imports the Linux kernel base board imx7d

[U-Boot] [PATCH] cmd: image_info: Add checking of default FIT config

2018-12-18 Thread Bryan O'Donoghue
@1): sha1+ Hash(es) for Image 3 (bootscr): sha1+ Hash for default configuration: sha1,rsa2048:mbl-fit-rot-key+ Signed-off-by: Bryan O'Donoghue Cc: Jun Nie Cc: Simon Glass Cc: Tom Rini --- cmd/bootm.c | 17 + 1 file changed, 17 insertions(+) diff --git a/cmd/bootm.c b/cmd

Re: [U-Boot] [PATCH 1/8] arm: dts: imx7s-warp: Import Linux warp7 dts

2019-01-04 Thread Bryan O'Donoghue
On 04/01/2019 00:46, Auer, Lukas wrote: This is caused by a typo in arch/arm/dts/imx7d-pinfunc.h, which lists it as MX7D_PAD_LPSR_GPIO1_IO00__WDOD1_WDOG_B (WDOD instead of WDOG). ah good catch let me go fix that and we can import the DT wholesale

Re: [U-Boot] [PATCH 3/8] arm: imx7s-warp: Convert to DM MMC initialization

2019-01-09 Thread Bryan O'Donoghue
On 08/01/2019 13:22, Peng Fan wrote: Hi Bryan, -Original Message- From: Bryan O'Donoghue [mailto:bryan.odonog...@linaro.org] Sent: 2019年1月3日 9:45 To: u-boot@lists.denx.de Cc: Fabio Estevam ; Peng Fan ; Bryan O'Donoghue ; Albert Aribaud ; Stefano Babic Subject: [PATCH 3/8] arm: imx7s

Re: [U-Boot] [PATCH 5/8] warp7: defconfig: Switch on IMX7 pinctrl for both ports

2019-01-09 Thread Bryan O'Donoghue
On 08/01/2019 13:26, Peng Fan wrote: -Original Message- From: Bryan O'Donoghue [mailto:bryan.odonog...@linaro.org] Sent: 2019年1月3日 9:45 To: u-boot@lists.denx.de Cc: Fabio Estevam ; Peng Fan ; Bryan O'Donoghue ; Stefano Babic Subject: [PATCH 5/8] warp7: defconfig: Switch on IMX7

[U-Boot] [PATCH v2 1/8] arm: dts: imx7: Correct spelling mistake in GPIO name

2019-01-09 Thread Bryan O'Donoghue
As pointed out by Lucas WDOD1_WDOG_ANY should be WDOG1_WDOG_ANY. Once corrected we can import the latest kernel DTS unmodified. Signed-off-by: Bryan O'Donoghue Reported-by: Auer Lukas --- arch/arm/dts/imx7d-pinfunc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v2 7/8] warp7: defconfig: Switch to DM for I2C

2019-01-09 Thread Bryan O'Donoghue
This commit switches to DM I2C for warp7 and warp7_bl33 defconfigs. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 24 configs/warp7_bl33_defconfig | 1 + configs

[U-Boot] [PATCH v3 0/8] Convert i.MX7 WaRP7 ports to DM

2019-01-09 Thread Bryan O'Donoghue
Lukas Auer - Imports imx7s-warp7.dts from kernel unmodified as a result of #1 - Bryan V1: This series does a minimal conversion of WaRP7 and the BL33 version of WaRP7 to the DM. Pinctrl, GPIO, I2C, Regulators, PMIC and MMC are converted. Later patches will convert USB and UART. Bryan O'Donoghue (8):

[U-Boot] [PATCH v3 4/8] arm: imx7s-warp: Convert to DM MMC initialization

2019-01-09 Thread Bryan O'Donoghue
Converts from fixed initialization of MMC to DM initialization of MMC. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 34 -- configs/warp7_bl33_defconfig | 1 + configs

[U-Boot] [PATCH v2 0/8] Convert i.MX7 WaRP7 ports to DM

2019-01-09 Thread Bryan O'Donoghue
V1: This series does a minimal conversion of WaRP7 and the BL33 version of WaRP7 to the DM. Pinctrl, GPIO, I2C, Regulators, PMIC and MMC are converted. Later patches will convert USB and UART. Bryan O'Donoghue (8): arm: dts: imx7: Correct spelling mistake in GPIO name arm: dts: imx7s-warp

[U-Boot] [PATCH v2 4/8] arm: imx7s-warp: Convert to DM MMC initialization

2019-01-09 Thread Bryan O'Donoghue
Converts from fixed initialization of MMC to DM initialization of MMC. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 34 -- configs/warp7_bl33_defconfig | 1 + configs

[U-Boot] [PATCH v2 3/8] arm: imx7s-warp: Add DT file hooks

2019-01-09 Thread Bryan O'Donoghue
This patch adds DT file hooks for imx7s-warp.dtb to the warp7 and warp7_bl33 builds. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/Makefile| 3 ++- configs/warp7_bl33_defconfig | 3

[U-Boot] [PATCH v3 6/8] warp7: defconfig: Switch on IMX7 GPIO/pinctrl for both ports

2019-01-09 Thread Bryan O'Donoghue
Switches on the IMX7 pinctrl driver for the warp7 and warp7_bl33 ports, necessary to convert over to DM for this board. It is necessary to switch on pinctrl and GPIO in one go. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp7_bl33_defconfig

[U-Boot] [PATCH v3 8/8] arm: imx7s-warp: Convert to DM PMIC

2019-01-09 Thread Bryan O'Donoghue
This patch converts the warp7 and warp7_bl33 board ports over to using the DM PMIC model. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 27 +++ configs/warp7_bl33_defconfig

[U-Boot] [PATCH v3 2/8] arm: dts: imx7s-warp: Import Linux warp7 dts

2019-01-09 Thread Bryan O'Donoghue
This patch imports the Linux kernel warp7 dts as at upstream kernel commit cf76c364a1e1. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 438 1 file changed, 438

[U-Boot] [PATCH v2 8/8] arm: imx7s-warp: Convert to DM PMIC

2019-01-09 Thread Bryan O'Donoghue
This patch converts the warp7 and warp7_bl33 board ports over to using the DM PMIC model. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 27 +++ configs/warp7_bl33_defconfig

[U-Boot] [PATCH v2 6/8] warp7: defconfig: Switch on IMX7 GPIO/pinctrl for both ports

2019-01-09 Thread Bryan O'Donoghue
Switches on the IMX7 pinctrl driver for the warp7 and warp7_bl33 ports, necessary to convert over to DM for this board. It is necessary to switch on pinctrl and GPIO in one go. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp7_bl33_defconfig

[U-Boot] [PATCH v3 1/8] arm: dts: imx7: Correct spelling mistake in GPIO name

2019-01-09 Thread Bryan O'Donoghue
As pointed out by Lucas WDOD1_WDOG_ANY should be WDOG1_WDOG_ANY. Once corrected we can import the latest kernel DTS unmodified. Signed-off-by: Bryan O'Donoghue Reported-by: Lukas Auer --- arch/arm/dts/imx7d-pinfunc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v2 2/8] arm: dts: imx7s-warp: Import Linux warp7 dts

2019-01-09 Thread Bryan O'Donoghue
This patch imports the Linux kernel warp7 dts as at upstream kernel commit cf76c364a1e1. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 438 1 file changed, 438

[U-Boot] [PATCH v2 5/8] arm: dts: imx7s-warp: Create alias for mmc0 to

2019-01-09 Thread Bryan O'Donoghue
that rely on mmc 0. Setup the alias of mmc0 and usdhc3 so that existing warp7 boot code will work unmodified. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 4 1 file changed, 4 insertions(+) diff

[U-Boot] [PATCH v3 3/8] arm: imx7s-warp: Add DT file hooks

2019-01-09 Thread Bryan O'Donoghue
This patch adds DT file hooks for imx7s-warp.dtb to the warp7 and warp7_bl33 builds. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/Makefile| 3 ++- configs/warp7_bl33_defconfig | 3

[U-Boot] [PATCH v3 7/8] warp7: defconfig: Switch to DM for I2C

2019-01-09 Thread Bryan O'Donoghue
This commit switches to DM I2C for warp7 and warp7_bl33 defconfigs. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 24 configs/warp7_bl33_defconfig | 1 + configs

<    1   2   3   4   5   6   >