Re: [U-Boot] [PATCH 2/2] image: fit: Show information about OS type in firwmare case too

2018-04-02 Thread Jun Nie
2018-03-26 22:31 GMT+08:00 Michal Simek : > SPL ATF implementation requires FIT image with partitions where the one > is Firmware/ATF and another one Firmware/U-Boot. OS field is used for > recording that difference that's why make sense to show values there for > Firmware

Re: [U-Boot] [PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

2018-04-02 Thread Alex Kiernan
On Mon, Apr 2, 2018 at 12:13 PM, Felix Brack wrote: > Hi Alex, > > On 01.04.2018 11:22, Alex Kiernan wrote: >> This converts CONFIG_DRIVER_TI_CPSW to Kconfig >> >> Signed-off-by: Alex Kiernan >> Acked-by: Joe Hershberger >> --- >> >>

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread Jagan Teki
Hi Andre, On Thu, Mar 29, 2018 at 2:49 PM, Andre Przywara wrote: > Hi, > > On 29/03/18 09:51, Jagan Teki wrote: >> Hi Andre, >> >> On Wed, Mar 14, 2018 at 7:26 AM, Andre Przywara >> wrote: >>> A minor update to the v3 version sent earlier this

[U-Boot] [PATCH] Makefile: Disable stack-usage check for ARC

2018-04-02 Thread Alexey Brodkin
With the most recent tools for ARC (arc-2017.09) in case of "naked" function compiler throws a warning: -->8- board/synopsys/hsdk/hsdk.c: In function 'hsdk_core_init_f': board/synopsys/hsdk/hsdk.c:345:1: warning: stack usage computation

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-02 Thread Jagan Teki
On Mon, Apr 2, 2018 at 7:13 AM, André Przywara wrote: > Hi, > > On 01/04/18 14:19, Tom Rini wrote: >> On Tue, Mar 27, 2018 at 11:34:19PM +0530, Jagan Teki wrote: >>> On Mon, Sep 4, 2017 at 9:57 PM, wrote: Hi Tom, On 7 August 2017 at 09:39,

Re: [U-Boot] [U-Boot, 18/36] rockchip: rk3188: remove rockchip timer as sys timer

2018-04-02 Thread Artturi Alm
On Sun, Apr 01, 2018 at 10:21:50PM +0200, Philipp Tomsich wrote: > > We use ARM arch timer instead. > > > > Signed-off-by: Kever Yang > > --- > > > > include/configs/rk3188_common.h | 3 --- > > 1 file changed, 3 deletions(-) > > > > Acked-by: Philipp Tomsich

[U-Boot] Please pull ARC changes for 2018.05

2018-04-02 Thread Alexey Brodkin
Hi Tom, The following changes since commit f3b623fa52ce5c67732ea2d789d5e21667e88db3: Merge git://git.denx.de/u-boot-marvell (2018-03-30 18:18:22 -0400) are available in the Git repository at: git://git.denx.de/u-boot-arc.git tags/arc-for-2018.05 for you to fetch changes up to

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread André Przywara
On 02/04/18 08:40, Jagan Teki wrote: Hi Jagan, > On Thu, Mar 29, 2018 at 2:49 PM, Andre Przywara > wrote: >> Hi, >> >> On 29/03/18 09:51, Jagan Teki wrote: >>> Hi Andre, >>> >>> On Wed, Mar 14, 2018 at 7:26 AM, Andre Przywara >>> wrote: A

Re: [U-Boot] [PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

2018-04-02 Thread Felix Brack
Hi Alex, On 01.04.2018 11:22, Alex Kiernan wrote: > This converts CONFIG_DRIVER_TI_CPSW to Kconfig > > Signed-off-by: Alex Kiernan > Acked-by: Joe Hershberger > --- > > Changes in v2: > - Move DRIVER_TI_CPSW outside of the NETDEVICES guard > -

Re: [U-Boot] [PATCH] vxworks: fixed cpu enable using PSCI on armv8

2018-04-02 Thread Vasyl Vavrychuk
Hi Bin, On Sun, Apr 1, 2018 at 4:51 PM, Bin Meng wrote: > > Why I mentioned the 'bootm' command, is that AFAIK the only official > way of booting a VxWorks 7 ARM kernel is to use 'bootm'. Are you > saying that 'bootm' command does not work on your Intel Stratix 10 > DevKit

Re: [U-Boot] [PATCH 1/2] image: fit: Show firmware configuration property if present

2018-04-02 Thread Dr. Philipp Tomsich
> On 26 Mar 2018, at 16:31, Michal Simek wrote: > > SPL ATF support requires to have firmware property which should be also > listed by mkimage -l when images is created. > > The patch is also using this macro in spl_fit to match keyword. > > When image is created: >

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread André Przywara
On 02/04/18 13:47, Mark Kettenis wrote: Hi, >> From: =?UTF-8?Q?Andr=c3=a9_Przywara?= >> Date: Mon, 2 Apr 2018 12:51:50 +0100 >> >> On 02/04/18 12:20, Mark Kettenis wrote: >> >> >> This feature make U-Boot to have full Linux dts inside, Can't we implement

Re: [U-Boot] [PATCH 1/2] image: fit: Show firmware configuration property if present

2018-04-02 Thread Jun Nie
2018-03-26 22:31 GMT+08:00 Michal Simek : > SPL ATF support requires to have firmware property which should be also > listed by mkimage -l when images is created. > > The patch is also using this macro in spl_fit to match keyword. > > When image is created: > Default

[U-Boot] [PATCH 1/1] efi_loader: completely initialize network

2018-04-02 Thread Heinrich Schuchardt
Add missing network initialization code. Before the patch the network was only usable if a network command like dhcp or tftp had beed executed. This was visible when interrupting the console countdown and executing bootefi selftest for vexpress_ca15_tc2_defconfig. Signed-off-by: Heinrich

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread Mark Kettenis
> From: =?UTF-8?Q?Andr=c3=a9_Przywara?= > Date: Mon, 2 Apr 2018 12:51:50 +0100 > > On 02/04/18 12:20, Mark Kettenis wrote: > > > > >> This feature make U-Boot to have full Linux dts inside, Can't we > >> implement automatic-boot-of-os distro to grab Linux dtb

Re: [U-Boot] [PATCH v3 14/14] log: Add documentation

2018-04-02 Thread Simon Glass
Hi Lukasz, On 21 November 2017 at 18:19, Lukasz Majewski wrote: > On Mon, 20 Nov 2017 15:33:35 -0700 > Simon Glass wrote: > >> Add documentation for the log system. >> >> Signed-off-by: Simon Glass >> Reviewed-by: Bin Meng

[U-Boot] [PATCH] log: Add units to code-size stats in README.log

2018-04-02 Thread Simon Glass
Without the units these numbers are confusing. Add a comment about the unit being 'bytes' and mention 'buildman' as the source. Suggested-by: Lukasz Majewski Signed-off-by: Simon Glass --- doc/README.log | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[U-Boot] [RFC PATCH 2/2] zynq: Add support for loading secure images

2018-04-02 Thread Siva Durga Prasad Paladugu
This patch adds support to load secure images secure image is an image which is authenticated or encrypted or both autheticated and encrypted image in xilinx boot image(BOOT.BIN) format. The secure image has to be created using xilinx bootgen tool. Signed-off-by: Siva Durga Prasad Paladugu

[U-Boot] [RFC PATCH 1/2] fpga: xilinx: zynq: Add support to decrypt images

2018-04-02 Thread Siva Durga Prasad Paladugu
This patch adds support to decrypt an encrypted bitstream or image. This zynq aes command can either load decrypted image back to DDR or it can load an encrypted bitsream to PL directly by decrypting it. The image has to be encrypted using xilinx bootgen tool and to get only the encrypted image

Re: [U-Boot] [PATCH] tools: buildman: prevent trying to use the working directory as build dorectory

2018-04-02 Thread Simon Glass
Hi Lothar, On 14 July 2017 at 14:57, Lothar Waßmann wrote: > Hi, > > On Thu, 13 Jul 2017 13:09:58 -0600 Simon Glass wrote: >> On 5 July 2017 at 01:34, Lothar Waßmann wrote: >> > When the U-Boot base directory happens to have the same name as

Re: [U-Boot] [U-Boot, 18/36] rockchip: rk3188: remove rockchip timer as sys timer

2018-04-02 Thread Dr. Philipp Tomsich
Arturri, > On 2 Apr 2018, at 11:38, Artturi Alm wrote: > > On Sun, Apr 01, 2018 at 10:21:50PM +0200, Philipp Tomsich wrote: >>> We use ARM arch timer instead. >>> >>> Signed-off-by: Kever Yang >>> --- >>> >>> include/configs/rk3188_common.h |

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread Mark Kettenis
> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de > X-Spam-Level: > X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, > RCVD_IN_MSPIKE_H2,T_DKIM_INVALID autolearn=unavailable > autolearn_force=no > version=3.4.0 > DKIM-Signature: v=1;

[U-Boot] [PATCH v2] tools: buildman: Don't use the working dir as build dir

2018-04-02 Thread Simon Glass
From: Lothar Waßmann When the U-Boot base directory happens to have the same name as the branch that buildman is directed to use via the '-b' option and no output directory is specified with '-o', buildman happily starts removing the whole U-Boot sources eventually only

[U-Boot] [PATCH] log: Correct missing free() on error in log_add_filter()

2018-04-02 Thread Simon Glass
If there is a problem with the parameters to log_add_filter(), the memory allocated is currently not freed. Fix this. Reported-by: Coverity (CID: 171962) Signed-off-by: Simon Glass --- common/log.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-)

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-02 Thread André Przywara
Hi, On 02/04/18 03:30, Simon Glass wrote: > > Hi Andre, > > On 2 April 2018 at 09:43, André Przywara wrote: >> Hi, >> >> On 01/04/18 14:19, Tom Rini wrote: >>> On Tue, Mar 27, 2018 at 11:34:19PM +0530, Jagan Teki wrote: On Mon, Sep 4, 2017 at 9:57 PM,

[U-Boot] [PATCH] vxworks: fixed cpu enable using PSCI on armv8

2018-04-02 Thread Vasyl Vavrychuk
Without armv8_setup_psci register VBAR_EL3 is not set up property which makes SMC calls jump to invalid location. smp_kick_all_cpus is required to make slave cpus leave gic_wait_for_interrupt. Without this they will never pursue booting process. Fix was applied to the two ways of booting

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread Mark Kettenis
> From: =?UTF-8?Q?Andr=c3=a9_Przywara?= > Date: Mon, 2 Apr 2018 16:14:29 +0100 > > On 02/04/18 13:47, Mark Kettenis wrote: > > Hi, > > >> From: =?UTF-8?Q?Andr=c3=a9_Przywara?= > >> Date: Mon, 2 Apr 2018 12:51:50 +0100 > >> > >> On 02/04/18

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

2018-04-02 Thread Bryan O'Donoghue
https://git.linaro.org/landing-teams/working/mbl/u-boot.git/log/?h=linaro-mbl%2bbod v2: - Ensure warp7_defconfig boots existing yocto with this change plus the automated HAB layer being added here following on from "[PATCH v3 0/2] WaRP7 unify secure and non-secure defconfigs" - Fix reference

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

2018-04-02 Thread Bryan O'Donoghue
This patch adds BOOTROM_IVT_HDR_OFFSET at 0xC00. The BootROM expects to find the IVT header at a particular offset in an i.MX image. Defining the expected offset of the IVT header in the first-stage BootROM image format is of use of later stage authentication routines where those routines

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

2018-04-02 Thread Bryan O'Donoghue
Assigning the UUID discovery path to a tweakable environment variable means that later steps in the boot process - particularly a boot script can change the target root partition of a particular Linux boot. Retargeting the rootfs is an important feature when doing ping/pong upgrades allowing a

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

2018-04-02 Thread Bryan O'Donoghue
Doing secure boot on the WaRP7 using a common image format and the same variable to represent the base address for each call means we can reduce down the command to a single environment command. This patch adds warp7_auth_or_fail as a wrapper around "hab_auth_img_or_fail ${hab_ivt_addr}

[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 --- include/configs/warp7.h | 1 + 1 file changed, 1 insertion(+)

[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 --- configs/warp7_defconfig | 1 + 1

[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] [ANN] U-Boot v2018.05-rc1 released

2018-04-02 Thread Tom Rini
Hey all, So it's release day and I've put up v2018.05-rc1. The merge window is now closed and I've updated git and the tarballs are also up now. I'm sure my patch queue is in bad shape as I've been on vacation for the last week (hence my relative silence). I also am sad to report I don't have

Re: [U-Boot] Please pull u-boot-dm

2018-04-02 Thread Tom Rini
On Mon, Apr 02, 2018 at 07:22:39AM +0800, Simon Glass wrote: > Hi Tom, > > Here's an assortment of things that were in my queue. Test result is here: > > https://travis-ci.org/sglass68/u-boot/builds/360881266 > > > The following changes since commit 81cf7c8d45935a295991fe2cd1df286f0f47511f: >

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

2018-04-02 Thread Bryan O'Donoghue
This patch introduces the environment variable ivt_offset. When we define a load address for Linux or DTB or any file the IVT associated with that file is prepended. We extract the actual load addresses from u-boot.cfg and feed these values into the code-signing process - hence we want u-boot to

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

2018-04-02 Thread Bryan O'Donoghue
This patch adds support for verifying a signed boot.scr. With this in place it's possible for run-time Linux to update boot.scr to set different variables such as switching between different boot partitions, pointing to different kernels etc and for u-boot to verify these changes via the HAB prior

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

2018-04-02 Thread Bryan O'Donoghue
In order to sign images with the IMX code-signing-tool (CST) we need to know the load address of a given image. The best way to derive this load address is to make it into a define - so that u-boot.cfg contains the address - which we can then parse when generating the IMX CST headers. This patch

Re: [U-Boot] [PATCH v2] timer: add High Precision Event Timers (HPET) support

2018-04-02 Thread Ivan Gorinov
On Sat, Mar 31, 2018 at 06:31:03AM -0600, Andy Shevchenko wrote: > >> > + tl = readl(regs + HPET_MAIN_COUNT_L); > >> > + th = readl(regs + HPET_MAIN_COUNT_H); > >> > >> Ditto. > > > > If readq() is defined as two read operations in 32-bit code, main counter > > rollover

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

2018-04-02 Thread Bryan O'Donoghue
In order to sign images with the IMX code-signing-tool (CST) we need to know the load address of a given image. The best way to derive this load address is to make it into a define - so that u-boot.cfg contains the address - which we can then parse when generating the IMX CST headers.

[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

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

2018-04-02 Thread Bryan O'Donoghue
In order to correctly produce an image with a IVT/DCD header we need to define a CSF in imximage.cfg. We just use the mx7 default here. All we have to do with this option switched on is "make u-boot.imx" and we then will get - u-boot.imx - u-boot.imx.log The log file is really important because

[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 --- configs/warp7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig

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

2018-04-02 Thread Bryan O'Donoghue
This patch adds an environment variable called "hab_enabled" which gets set to a boolean status indicating whether HAB is enabled or not. Subsequent patches can use this environment variable to determine if its necessary to run a given binary through the hab_auth_img console command.

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

2018-04-02 Thread Bryan O'Donoghue
This patch enables CONFIG_BOOTM_TEE. Once enabled its possible to chain-load Linux through OPTEE. Loading kernel to 0x8080 => run loadimage Load FDT to 0x8300 => run loadfdt Load OPTEE to 0x8400 => fatload mmc 0:5 0x8400 /lib/firmware/uTee.optee Then chain-load to the kernel

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

2018-04-02 Thread Bryan O'Donoghue
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size. On WaRP7 we simply define the OPTEE region as from the maximum DRAM address minus CONFIG_OPTEE_TZDRAM_SIZE bytes. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux.

Re: [U-Boot] Please pull u-boot-dm

2018-04-02 Thread Tom Rini
On Mon, Apr 02, 2018 at 02:11:59PM +0800, Simon Glass wrote: > Hi Tom, > > On 4 February 2018 at 02:13, Tom Rini wrote: > > On Sat, Feb 03, 2018 at 10:12:41AM -0700, Simon Glass wrote: > >> Hi Tom, > >> > >> On 26 January 2018 at 17:50, Tom Rini wrote: >

[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 --- board/warp7/warp7.c | 10 ++ 1

Re: [U-Boot] Please pull u-boot-dm

2018-04-02 Thread Simon Glass
Hi Tom, On 4 February 2018 at 02:13, Tom Rini wrote: > On Sat, Feb 03, 2018 at 10:12:41AM -0700, Simon Glass wrote: >> Hi Tom, >> >> On 26 January 2018 at 17:50, Tom Rini wrote: >> > On Fri, Jan 26, 2018 at 02:45:29PM -0700, Simon Glass wrote: >> > >> >>

[U-Boot] [PATCH] ARC: Bump ARC tools used in TravisCI to the most recent release arc-2017.09

2018-04-02 Thread Alexey Brodkin
This is much more recent version of ARC tools based on GCC 7.1.1 and Binutils 2.29. Signed-off-by: Alexey Brodkin --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6cad65fd378d..d83a5e63329a 100644

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread André Przywara
On 02/04/18 12:20, Mark Kettenis wrote: >> This feature make U-Boot to have full Linux dts inside, Can't we >> implement automatic-boot-of-os distro to grab Linux dtb during >> commands stage like other distro does? Because this make few >> development struggles for U-Boot project like (few