Re: [PATCH v4 08/16] efi_loader: image_loader: support image authentication

2020-01-21 Thread AKASHI Takahiro
Heinrich, On Wed, Jan 22, 2020 at 10:13:48AM +0900, AKASHI Takahiro wrote: > On Tue, Jan 21, 2020 at 08:15:06AM +0100, Heinrich Schuchardt wrote: > > On 1/21/20 7:12 AM, AKASHI Takahiro wrote: > > >On Fri, Jan 17, 2020 at 06:51:50AM +0100, Heinrich Schuchardt wrote: > > >>On 1/17/20 6:11 AM,

Re: [PATCHv3] cmd/gpt: Address error cases during gpt rename more correctly

2020-01-21 Thread Simon Goldschmidt
On Tue, Jan 21, 2020 at 5:53 PM Tom Rini wrote: > > New analysis by the tool has shown that we have some cases where we > weren't handling the error exit condition correctly. When we ran into > the ENOMEM case we wouldn't exit the function and thus incorrect things > could happen. Rework the

Re: [PATCH v4 10/16] cmd: env: use appropriate guid for authenticated UEFI variable

2020-01-21 Thread AKASHI Takahiro
On Wed, Jan 22, 2020 at 07:38:06AM +0100, Heinrich Schuchardt wrote: > On 1/22/20 2:01 AM, AKASHI Takahiro wrote: > >On Tue, Jan 21, 2020 at 08:13:06AM +0100, Heinrich Schuchardt wrote: > >>On 12/18/19 1:45 AM, AKASHI Takahiro wrote: > >>>A signature database variable is associated with a specific

RE: [PATCH] configs: ls1021a: Reserve low memory for CMA

2020-01-21 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Alison Wang >Sent: Tuesday, January 21, 2020 1:03 PM >To: Priyanka Jain ; u-boot@lists.denx.de >Cc: Alison Wang ; Peng Ma >Subject: [PATCH] configs: ls1021a: Reserve low memory for CMA > >The default reserved memory for CMA is high memory.

Re: [PATCH v4 10/16] cmd: env: use appropriate guid for authenticated UEFI variable

2020-01-21 Thread Heinrich Schuchardt
On 1/22/20 2:01 AM, AKASHI Takahiro wrote: On Tue, Jan 21, 2020 at 08:13:06AM +0100, Heinrich Schuchardt wrote: On 12/18/19 1:45 AM, AKASHI Takahiro wrote: A signature database variable is associated with a specific guid. For convenience, if user doesn't supply any guid info, "env set|print

Re: [PATCH v2 3/9] Sifive: FU540: Add header files for SoC

2020-01-21 Thread Anup Patel
On Wed, Jan 22, 2020 at 10:08 AM Anup Patel wrote: > > On Mon, Jan 20, 2020 at 8:04 PM Pragnesh Patel > wrote: > > > > Hi Anup, > > > > >-Original Message- > > >From: Anup Patel > > >Sent: 20 January 2020 10:26 > > >To: Pragnesh Patel > > >Cc: U-Boot Mailing List ; Palmer Dabbelt > >

Re: [PATCH v2 3/9] Sifive: FU540: Add header files for SoC

2020-01-21 Thread Anup Patel
On Mon, Jan 20, 2020 at 8:04 PM Pragnesh Patel wrote: > > Hi Anup, > > >-Original Message- > >From: Anup Patel > >Sent: 20 January 2020 10:26 > >To: Pragnesh Patel > >Cc: U-Boot Mailing List ; Palmer Dabbelt > >; Atish Patra > >Subject: Re: [PATCH v2 3/9] Sifive: FU540: Add header

Re: [PATCH V2 1/3] mtd: rawnand: denali-spl: Add missing hardware init on SoCFPGA

2020-01-21 Thread Masahiro Yamada
Hi. On Wed, Jan 22, 2020 at 4:03 AM Marek Vasut wrote: > > On Altera SoCFPGA, upon either cold-boot or power-on reset, the > Denali NAND IP is initialized by the BootROM ; upon warm-reset, > the Denali NAND IP is NOT initialized by BootROM. In fact, upon > warm-reset, the SoCFPGA BootROM checks

[PATCH v4 10/10] configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC

2020-01-21 Thread Keerthy
Remove saving ENV in eMMC in R5 as the power domains are not setup. Environment in eMMC cannot be read if we do not boot from eMMC. Signed-off-by: Keerthy --- configs/j721e_evm_r5_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/j721e_evm_r5_defconfig

[PATCH v4 09/10] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-21 Thread Keerthy
Enable R5F remoteproc support in R5 defconfig so that R5s can be started in SPL. While at it enable the SPL_FS_EXT4 config option to load the firmwares from file system. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2

[PATCH v4 08/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-21 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- Changes in v4: * Env variable names changed. include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h

[PATCH v4 05/10] armv7R: K3: Add support for jumping to firmware

2020-01-21 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla

[PATCH v4 06/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-21 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v4 07/10] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-01-21 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts

[PATCH v4 04/10] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-01-21 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH v4 03/10] arm: k3: Add support for loading non linux remote cores

2020-01-21 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keerthy

[PATCH v4 01/10] env: nowhere: set default enviroment

2020-01-21 Thread Keerthy
Set default enviroment so that set_env calls succeed when only ENV_IS_NOWHERE set. Signed-off-by: Keerthy --- Changes in v4: * Reworded commit log env/nowhere.c | 1 + 1 file changed, 1 insertion(+) diff --git a/env/nowhere.c b/env/nowhere.c index f5b0a17652..70c3b3e011 100644 ---

[PATCH v4 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-21 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt Reviewed-by: Simon Goldschmidt --- Changes in v4: * /s/ELF/LIB_ELF config option name cmd/Kconfig |

[PATCH v4 00/10] Add support for loading main_r5fss0_core0

2020-01-21 Thread Keerthy
This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. Changes in v4: * Changed env variable names, config names and enhanced commit logs. Changes in v3: * Removed saving env in MMC and fixed env saving in SPL when nowhere

Re: [PATCH] genboardscfg.py: fix python version dependency comment

2020-01-21 Thread Masahiro Yamada
Hi. On Wed, Jan 22, 2020 at 12:57 AM Baruch Siach wrote: > > Hi Masahiro Yamada, > > On Wed, Jan 22, 2020 at 12:19:31AM +0900, Masahiro Yamada wrote: > > On Mon, Jan 20, 2020 at 9:08 PM Baruch Siach wrote: > > > > > > genboardscfg.py requires python 3.x since commit 3bc14098d8fb > > >

Re: [PATCH v4 08/16] efi_loader: image_loader: support image authentication

2020-01-21 Thread AKASHI Takahiro
On Tue, Jan 21, 2020 at 08:15:06AM +0100, Heinrich Schuchardt wrote: > On 1/21/20 7:12 AM, AKASHI Takahiro wrote: > >On Fri, Jan 17, 2020 at 06:51:50AM +0100, Heinrich Schuchardt wrote: > >>On 1/17/20 6:11 AM, AKASHI Takahiro wrote: > >>>On Thu, Jan 09, 2020 at 12:55:17AM +0100, Heinrich

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-21 Thread keerthy
On 1/21/2020 6:26 PM, Andrew F. Davis wrote: On 1/21/20 6:07 AM, Keerthy wrote: Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path

Re: [PATCH v4 10/16] cmd: env: use appropriate guid for authenticated UEFI variable

2020-01-21 Thread AKASHI Takahiro
On Tue, Jan 21, 2020 at 08:13:06AM +0100, Heinrich Schuchardt wrote: > On 12/18/19 1:45 AM, AKASHI Takahiro wrote: > >A signature database variable is associated with a specific guid. > >For convenience, if user doesn't supply any guid info, "env set|print -e" > >should complement it. > > >

Re: [PATCH v4 6/6] test: add rsa_verify() unit test

2020-01-21 Thread Tom Rini
On Wed, Jan 22, 2020 at 09:22:42AM +0900, AKASHI Takahiro wrote: > On Tue, Jan 21, 2020 at 10:40:23AM -0500, Tom Rini wrote: > > On Tue, Jan 21, 2020 at 02:48:52PM +0900, AKASHI Takahiro wrote: > > > On Fri, Jan 17, 2020 at 06:26:34AM +0100, Heinrich Schuchardt wrote: > > > > On 1/17/20 2:53 AM,

Re: [PATCH v4 6/6] test: add rsa_verify() unit test

2020-01-21 Thread AKASHI Takahiro
On Tue, Jan 21, 2020 at 10:40:23AM -0500, Tom Rini wrote: > On Tue, Jan 21, 2020 at 02:48:52PM +0900, AKASHI Takahiro wrote: > > On Fri, Jan 17, 2020 at 06:26:34AM +0100, Heinrich Schuchardt wrote: > > > On 1/17/20 2:53 AM, AKASHI Takahiro wrote: > > > >On Tue, Jan 14, 2020 at 01:04:58PM +0100,

Re: [PATCH v3] board_f.c: Insure gd->new_bootstage alignment

2020-01-21 Thread Tom Rini
On Thu, Jan 09, 2020 at 05:23:51PM +, Patrick DELAUNAY wrote: > Hi, > > > From: Patrick DELAUNAY > > Sent: mardi 7 janvier 2020 13:07 > > > > Hi Patrice and Tom > > > > > Sent: mercredi 18 décembre 2019 10:10 > > > > > > Hi Simon, > > > > > > > From: Simon Glass > > > > Sent: mardi 17

Re: [GIT PULL] Pull request: u-boot-imx u-boot-imx-20200121

2020-01-21 Thread Tom Rini
(2020-01-17 13:23:32 -0500) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20200121 > > for you to fetch changes up to 419603ca2d7a8065029a838cb0227ad7bfc5e1d3: > > colibri-imx8x: Remove un

Re: [PATCH v3 03/10] arm: mvebu: clearfog: initial ClearFog Base variant

2020-01-21 Thread Joel Johnson
On 2020-01-21 10:49, Baruch Siach wrote: Hi Joel, On Tue, Jan 21, 2020 at 10:32:17AM -0700, Joel Johnson wrote: Add a unique entry for ClearFog Base variant, reflected in the board name and adjusted SerDes topology. Signed-off-by: Joel Johnson --- v2 changes: - reworked based on Baruch's

[PATCH V2] ARM: dts: stm32: Add DH Electronics DHCOM SoM and PDK2 board

2020-01-21 Thread Marek Vasut
Add support for DH Electronics DHCOM SoM and PDK2 rev. 400 carrier board. This is an SoM with STM32MP157C and an evaluation kit. The baseboard provides Ethernet, UART, USB, CAN and optional display. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- V2: Rebase on

Re: [RFC PATCH] Provide mechanism for build-time default env entries

2020-01-21 Thread Joel Johnson
On 2020-01-21 10:49, Wolfgang Denk wrote: Dear Joel, In message you wrote: > I think you are following a wrong approach. Such user specific > settings should IMHO loaded separately, either over serial like > (should be fast enough for a few hundred bytes) or from external > storage. "env

[PATCH V2 2/3] mtd: rawnand: denali_dt: make the core clock optional

2020-01-21 Thread Marek Vasut
From: Masahiro Yamada The "nand_x" and "ecc" clocks are currently optional. Make the core clock optional in the same way. This will allow platforms with no clock driver support to use this driver. Signed-off-by: Masahiro Yamada Tested-by: Marek Vasut # On SoCFPGA Arria V --- V2: No change ---

[PATCH V2 3/3] mtd: rawnand: denali: Do not reset the block before booting the kernel

2020-01-21 Thread Marek Vasut
The register values programmed into the Denali NAND IP are not preserved when the IP reset signal is asserted. Depending on whether the Denali NAND IP implementation uses HW-assisted bootstrap or not, some of the register values are restored automatically after the IP is released from reset. If

[PATCH V2 1/3] mtd: rawnand: denali-spl: Add missing hardware init on SoCFPGA

2020-01-21 Thread Marek Vasut
On Altera SoCFPGA, upon either cold-boot or power-on reset, the Denali NAND IP is initialized by the BootROM ; upon warm-reset, the Denali NAND IP is NOT initialized by BootROM. In fact, upon warm-reset, the SoCFPGA BootROM checks whether the SPL image in on-chip RAM is valid and if so, completely

Re: [PATCH 1/3] mtd: rawnand: denali-spl: Add missing hardware init

2020-01-21 Thread Marek Vasut
On 1/14/20 7:55 AM, Masahiro Yamada wrote: Hi, [...] >> I only know what is written in the publicly available Altera >> documentation and how NAND works on Altera SoCs. > > Right. > Altera's SOCFPGA does not describe all the features of this IP. > > To understand this IP fully, you need to

Re: [PATCH v3 03/10] arm: mvebu: clearfog: initial ClearFog Base variant

2020-01-21 Thread Baruch Siach
Hi Joel, On Tue, Jan 21, 2020 at 10:32:17AM -0700, Joel Johnson wrote: > Add a unique entry for ClearFog Base variant, reflected in the board > name and adjusted SerDes topology. > > Signed-off-by: Joel Johnson > > --- > > v2 changes: > - reworked based on Baruch's run-time TLV EEPROM

Re: [RFC PATCH] Provide mechanism for build-time default env entries

2020-01-21 Thread Wolfgang Denk
Dear Joel, In message you wrote: > > > I think you are following a wrong approach. Such user specific > > settings should IMHO loaded separately, either over serial like > > (should be fast enough for a few hundred bytes) or from external > > storage. "env import" is your friend. > > I'm

Re: imx8qxp mek: Booting mainline kernel with mainline U-Boot

2020-01-21 Thread Fabio Estevam
Hi Peng, On Tue, Jan 14, 2020 at 4:01 PM Fabio Estevam wrote: > > Hi Peng, > > On Mon, Jan 13, 2020 at 10:08 PM Fabio Estevam wrote: > > > > Hi Peng, > > > > On Mon, Jan 13, 2020 at 9:46 PM Peng Fan wrote: > > > > > I have not try that. Aisheng has some Linux patches pending which are > > >

[PATCH v3 10/10] arm: mvebu: clearfog: reduce MMC boot assumptions

2020-01-21 Thread Joel Johnson
Reduce those MMC booting assumptions from clearfog_defconfig which are already selected by dependent options via Kconfig. Signed-off-by: Joel Johnson --- v2 changes: - rebased on master to use Baruch's dynamic MMC/SD offset logic - update description, will revisit removal of

[PATCH v3 07/10] arm: mvebu: clearfog: add SPI offsets

2020-01-21 Thread Joel Johnson
Add reasonable default SPI offsets and ENV size when configured to boot from SPI flash. Signed-off-by: Joel Johnson --- v2 changes: - none v3 changes: - none There was some reasonable concern raised about duplicating config entries within a board specific config file rather than making

[PATCH v3 09/10] arm: mvebu: clearfog: move ENV params to Kconfig

2020-01-21 Thread Joel Johnson
Migrate the values for ENV_SIZE and ENV_OFFSET into board specific Kconfig defaults so they're more accessible for configuration. --- v2 changes: - none v3 changes: - none Signed-off-by: Joel Johnson --- board/solidrun/clearfog/Kconfig | 8 configs/clearfog_defconfig | 2 --

[PATCH v3 08/10] arm: mvebu: enable working default boot support

2020-01-21 Thread Joel Johnson
With the move to driver model usage, ensure that the required driver support for SPI and MMC booting is available in SPL. Tested on SolidRun ClearFog devices. Signed-off-by: Joel Johnson --- v2 changes: - change "select" for ENV_IS_IN_X to "imply" to allow disabling the default env

[PATCH v3 06/10] arm: mvebu: clearfog: Add option for 2.5 Gbps SFP

2020-01-21 Thread Joel Johnson
Signed-off-by: Joel Johnson --- v2 changes: - fixed help indentation v3 changes: - none --- board/solidrun/clearfog/Kconfig| 7 +++ board/solidrun/clearfog/clearfog.c | 4 2 files changed, 11 insertions(+) diff --git a/board/solidrun/clearfog/Kconfig

[PATCH v3 01/10] arm: mvebu: fix SerDes table alignment

2020-01-21 Thread Joel Johnson
Tested on Solidrun ClearFog Base. Table alignment was: | Lane # | Speed | Type | | 0| 3 | SATA0 | | 1| 0 | SGMII1 | | 2| 3 | SATA1 | | 3| 5 | USB3 HOST1 | | 4| 5 | USB3 HOST0 | |

[PATCH v3 05/10] arm: mvebu: clearfog: Add SATA mode flags

2020-01-21 Thread Joel Johnson
The mPCIe slots on ClearFog Pro and ClearFog Base may be alternately configured for SATA usage. Signed-off-by: Joel Johnson --- v2 changes: - fixed help indentation v3 changes: - none --- board/solidrun/clearfog/Kconfig| 17 + board/solidrun/clearfog/clearfog.c | 6

[PATCH v3 00/10] ClearFog Base static variant support

2020-01-21 Thread Joel Johnson
This patch series adds support for ClearFog Base static configuration, as well as updating and fixing the ClearFog support for MMC and SPI booting. Stefan - I think everything is straight forward, with the only known unresolved question being handling of the duplicated Kconfig entries for the

[PATCH v3 02/10] arm: mvebu: solidrun: remove hardcoded DTS MAC address

2020-01-21 Thread Joel Johnson
Using a consistent hardcoded MAC address from the DTS file causes issues when using multiple devices on the same network segment. Instead rely on environment configuration or random generation. Signed-off-by: Joel Johnson --- v2 changes: - none v3 changes: - none ---

[PATCH v3 04/10] arm: mvebu: clearfog: Use Pro DT by default

2020-01-21 Thread Joel Johnson
Switch to explicitly using the Pro variant DT, which has been available since Linux 4.11. Also unify the location of DT selection in board_late_init instead of split between detection and static configuration paths. --- v2 changes - newly added in V2 series based on run-time rebasing v2

[PATCH v3 03/10] arm: mvebu: clearfog: initial ClearFog Base variant

2020-01-21 Thread Joel Johnson
Add a unique entry for ClearFog Base variant, reflected in the board name and adjusted SerDes topology. Signed-off-by: Joel Johnson --- v2 changes: - reworked based on Baruch's run-time TLV EEPROM detection series v3 changes: - rebased on mvebu merged run-time TLV EEPROM detection series

Re: [RFC PATCH] Provide mechanism for build-time default env entries

2020-01-21 Thread Joel Johnson
On 2020-01-20 11:59, Wolfgang Denk wrote: Dear Joel, In message <7cac871967a1317cea251e78d67a3...@lixil.net> you wrote: >> +config USER_ENV_SETTINGS >> + string "User build-time additional environment entries" >> + help >> +This value is reserved for the building user to

Re: [PATCH] env: introduce CONFIG_ENV_DOTVARS_TEMPORARY

2020-01-21 Thread Wolfgang Denk
Dear Rasmus, In message <2676be2b-2e4f-7aba-14e6-5659174ad...@prevas.dk> you wrote: > > > This is not a good idea. The decision whether a variable shall be > > stored permanently or not, or wheter it is readonly or writable, and > > other such properties should never based on their name. > >

[PATCHv3] cmd/gpt: Address error cases during gpt rename more correctly

2020-01-21 Thread Tom Rini
New analysis by the tool has shown that we have some cases where we weren't handling the error exit condition correctly. When we ran into the ENOMEM case we wouldn't exit the function and thus incorrect things could happen. Rework the unwinding such that we don't need a helper function now and

Re: [PATCHv2] cmd/gpt: Address error cases during gpt rename more correctly

2020-01-21 Thread Tom Rini
On Tue, Jan 21, 2020 at 08:33:04AM +0100, Simon Goldschmidt wrote: > On Mon, Jan 20, 2020 at 11:53 PM Tom Rini wrote: > > > > New analysis by the tool has shown that we have some cases where we > > weren't handling the error exit condition correctly. When we ran into > > the ENOMEM case we

Re: [PATCH V4 1/3] watchdog: designware: Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig

2020-01-21 Thread Marek Vasut
On 1/9/20 11:06 AM, Marek Vasut wrote: > Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig and update the headers > accordingly, no functional change. The S10 enables the WDT only in > SPL, but does not enable it in U-Boot itself, hence disable it in > the config again. > > Signed-off-by: Marek Vasut

Re: fat: handle Windows formatted partition (thru USB Mass Storage)

2020-01-21 Thread Andy Shevchenko
On Tue, Jan 21, 2020 at 2:39 AM AKASHI Takahiro wrote: > On Fri, Jan 17, 2020 at 11:47:03AM +0200, Andy Shevchenko wrote: > > On Fri, Jan 17, 2020 at 8:13 AM AKASHI Takahiro > > wrote: ... > Really? I've got messed up now. > - Why do you need to use g_multi to access the disk? How else you

Re: [PATCH] genboardscfg.py: fix python version dependency comment

2020-01-21 Thread Baruch Siach
Hi Masahiro Yamada, On Wed, Jan 22, 2020 at 12:19:31AM +0900, Masahiro Yamada wrote: > On Mon, Jan 20, 2020 at 9:08 PM Baruch Siach wrote: > > > > genboardscfg.py requires python 3.x since commit 3bc14098d8fb > > ("genboardscfg.py: Convert to Python 3"). > > > > Cc: Masahiro Yamada > >

Re: [PATCH v4 6/6] test: add rsa_verify() unit test

2020-01-21 Thread Tom Rini
On Tue, Jan 21, 2020 at 02:48:52PM +0900, AKASHI Takahiro wrote: > On Fri, Jan 17, 2020 at 06:26:34AM +0100, Heinrich Schuchardt wrote: > > On 1/17/20 2:53 AM, AKASHI Takahiro wrote: > > >On Tue, Jan 14, 2020 at 01:04:58PM +0100, Heinrich Schuchardt wrote: > > >>On 1/14/20 8:33 AM, AKASHI Takahiro

Re: [PATCH v4 2/6] rsa: add CONFIG_RSA_VERIFY_WITH_PKEY config

2020-01-21 Thread Tom Rini
On Tue, Jan 21, 2020 at 01:29:58PM +0900, AKASHI Takahiro wrote: > Tom, Simon, > > On Fri, Jan 17, 2020 at 06:59:44AM +0100, Heinrich Schuchardt wrote: > > On 1/17/20 3:24 AM, AKASHI Takahiro wrote: > > >On Tue, Jan 14, 2020 at 12:43:40PM +0100, Heinrich Schuchardt wrote: > > >>On 1/14/20 8:45

Re: [PATCH] genboardscfg.py: fix python version dependency comment

2020-01-21 Thread Masahiro Yamada
Hi. On Mon, Jan 20, 2020 at 9:08 PM Baruch Siach wrote: > > genboardscfg.py requires python 3.x since commit 3bc14098d8fb > ("genboardscfg.py: Convert to Python 3"). > > Cc: Masahiro Yamada > Signed-off-by: Baruch Siach > --- > tools/genboardscfg.py | 2 +- > 1 file changed, 1 insertion(+), 1

Please pull u-boot-marvell/master v2

2020-01-21 Thread Stefan Roese
Hi Tom, please pull the 2nd batch of MVEBU related patches in this merge window: - Clearfog: Add run-time board detection with TLV EEPROM support (Baruch)

[PATCH v3] cmd: add tlv_eeprom command

2020-01-21 Thread Baruch Siach
Add support for read/write of ONIE "Tlvinfo" EEPROM data format. TLV stands for Type-Length-Value. The data format is described here: https://opencomputeproject.github.io/onie/design-spec/hw_requirements.html#board-eeprom-information-format Based on U-Boot patch from the Open Compute project:

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Stefan Roese
On 21.01.20 14:31, Baruch Siach wrote: Hi Stefan, On Tue, Jan 21, 2020 at 02:19:19PM +0100, Stefan Roese wrote: Added Baruch to Cc On 21.01.20 14:11, Tom Rini wrote: On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: Hi Tom, please pull the 2nd batch of MVEBU related patches in

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Tom Rini
On Tue, Jan 21, 2020 at 03:31:31PM +0200, Baruch Siach wrote: > Hi Stefan, > > On Tue, Jan 21, 2020 at 02:19:19PM +0100, Stefan Roese wrote: > > Added Baruch to Cc > > > > On 21.01.20 14:11, Tom Rini wrote: > > > On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: > > > > Hi Tom, > > >

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Baruch Siach
Hi Stefan, On Tue, Jan 21, 2020 at 02:19:19PM +0100, Stefan Roese wrote: > Added Baruch to Cc > > On 21.01.20 14:11, Tom Rini wrote: > > On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: > > > Hi Tom, > > > > > > please pull the 2nd batch of MVEBU related patches in this merge > > >

[PATCH] mx7ulp_com: Remove unneeded SoC definitions

2020-01-21 Thread Fabio Estevam
Since commit 9c27310ac23c ("mx7ulp: Move SoC base address to a common file") we no longer need to have these SoC definitions in the board file, so remove them. Signed-off-by: Fabio Estevam --- include/configs/mx7ulp_com.h | 4 1 file changed, 4 deletions(-) diff --git

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Stefan Roese
Added Baruch to Cc On 21.01.20 14:11, Tom Rini wrote: On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: Hi Tom, please pull the 2nd batch of MVEBU related patches in this merge window: - Clearfog: Add run-time board

[GIT PULL] Pull request: u-boot-imx u-boot-imx-20200121

2020-01-21 Thread Stefano Babic
-boot/custodians/u-boot-imx.git tags/u-boot-imx-20200121 for you to fetch changes up to 419603ca2d7a8065029a838cb0227ad7bfc5e1d3: colibri-imx8x: Remove unused function detail_board_ddr_info() (2020-01-20 15:38:16 +0100

Re: Please pull u-boot-marvell/master

2020-01-21 Thread Tom Rini
On Tue, Jan 21, 2020 at 02:03:57PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the 2nd batch of MVEBU related patches in this merge > window: > > > - Clearfog: Add run-time board detection with TLV EEPROM support >

Re: [PATCH v3 10/10] env: nowhere: set default enviroment

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > set default enviroment so that set_env calls succeed > when ENV_IS_NOWHERE is alone set. > Capitalize first letter of a sentence. Also no need to line wrap at 50 chars.. For last line: "when only ENV_IS_NOWHERE is set." reads better. Andrew >

Re: [PATCH v3 08/10] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > Enable r5f remoteproc support in r5 defconfig so that r5s can > be started in spl. > s/r5f/R5F s/r5/R5 s/spl/SPL > Signed-off-by: Keerthy > Signed-off-by: Lokesh Vutla > --- > configs/j721e_evm_r5_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > >

Please pull u-boot-marvell/master

2020-01-21 Thread Stefan Roese
Hi Tom, please pull the 2nd batch of MVEBU related patches in this merge window: - Clearfog: Add run-time board detection with TLV EEPROM support (Baruch) Here

Re: [PATCH v3 07/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware > loadaddr and name. > > Signed-off-by: Keerthy > --- > include/configs/j721e_evm.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/include/configs/j721e_evm.h

Re: [PATCH v2 00/10] ARM: clearfog: add run-time board detect

2020-01-21 Thread Stefan Roese
On 20.01.20 13:20, Baruch Siach wrote: Newer revisions of SolidRun Clearfog Base/Pro carriers and Armada 388 SOM add EEPROM storage for board detection. This patch series adds support for reading EEPROM stored board information, and using it to set RAM training parameters, serdes configuration,

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > Add MAIN domain R5FSS0 remoteproc support from spl. This enables > loading the elf firmware in SPL and starting the remotecore. > > In order to start the core, there should be a file with path > "/lib/firmware/j7-main-r5f0_0-fw" under filesystem > of

Aw: [U-boot,0/4] Add ethernet support for MT7622

2020-01-21 Thread Frank Wunderlich
Hi Mark, does it depend on another patch(set)? i got unsupported switch, because in eth-driver [1] there is a check only for mt7530 (else print this error) and in dts [2], mediatek,switch is set to mt7531 (which is right, but trigger the error). i found no patch adding check for mt7531 (or

Re: [PATCH v3 01/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-21 Thread Andrew F. Davis
On 1/21/20 6:07 AM, Keerthy wrote: > Move the generic elf loading/validating functions to lib/ > so that they can be re-used and accessed by code existing > outside cmd. > > Signed-off-by: Keerthy > Suggested-by: Simon Goldschmidt > Reviewed-by: Simon Goldschmidt > --- > diff --git

Re: [RFC] Vocore2 MMC needs clock patches

2020-01-21 Thread Stefan Roese
Hi Mauro, On 21.01.20 12:27, Mauro Condarelli wrote: Thanks Weijie, I made the changes You suggested. I have also seen You sent a new version of Your patches. Since mine are based on yours I *think* I should suspend sending my VoCore2 patches till Yours are fixed and integrated into master.

Re: [PATCH RESEND] ARM: imx: mx6ull: Add iMX6ULL VisionSOM SoM and EVK

2020-01-21 Thread Marek Vasut
On 1/21/20 9:12 AM, Stefano Babic wrote: > Hi Marek, Hi, > On 20/01/20 23:18, Marek Vasut wrote: >> From: Arkadiusz Karas >> >> Add iMX6ULL VisionSOM SoM and VisionCB-RT-STD evaluation board support. >> The SoM has an iMX6ULL, 512 MiB of DRAM and microSD slot. The carrier >> board has Ethernet,

[U-boot,4/4] configs: mediatek: enable mt7622 ethernet support

2020-01-21 Thread MarkLee
This patch enable mt7622 ethernet support in its defconfig Signed-off-by: MarkLee --- configs/mt7622_rfb_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/mt7622_rfb_defconfig b/configs/mt7622_rfb_defconfig index e1917e70e7..806087a3d6 100644 ---

[U-boot,2/4] eth: mtk-eth: add mt7622 support in mediatek eth driver

2020-01-21 Thread MarkLee
This patch add mt7622 support in mediatek eth driver Signed-off-by: MarkLee --- drivers/net/mtk_eth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c index 7721ffb46c..85bbc2a3c5 100644 --- a/drivers/net/mtk_eth.c +++

[U-boot, 1/4] eth: mtk-eth: add sgmii mode support in mediatek eth driver

2020-01-21 Thread MarkLee
This patch add sgmii init part for the mediatek SoC that support sgmii mode. It is a must for mt7622. Signed-off-by: MarkLee --- drivers/net/mtk_eth.c | 44 +++ drivers/net/mtk_eth.h | 15 +++ 2 files changed, 59 insertions(+) diff --git

[U-boot,0/4] Add ethernet support for MT7622

2020-01-21 Thread MarkLee
This patch series adds and enable ethernet support for MT7622, including 1. add sgmii mode support in mediatek eth driver 2. add mt7622 support in mediatek eth driver 3. add ethernet and sgmii dts node for mt7622 4. enable mt7622 ethernet support in defconfig

[U-boot, 3/4] arm: dts: mediatek: add ethernet and sgmii dts node for mt7622

2020-01-21 Thread MarkLee
This patch add eth and sgmii dts node for mt7622 to support ethernet Signed-off-by: MarkLee --- arch/arm/dts/mt7622-rfb.dts | 13 +++ arch/arm/dts/mt7622.dtsi| 45 + 2 files changed, 58 insertions(+) diff --git a/arch/arm/dts/mt7622-rfb.dts

Re: [RFC] Vocore2 MMC needs clock patches

2020-01-21 Thread Mauro Condarelli
Thanks Weijie, I made the changes You suggested. I have also seen You sent a new version of Your patches. Since mine are based on yours I *think* I should suspend sending my VoCore2 patches till Yours are fixed and integrated into master. @Stefan Roese: is this the right course of action? I am

Re: [PATCH 1/1] tools: imx8m_image: fix warning message

2020-01-21 Thread Schrempf Frieder
On 21.01.20 11:58, Sébastien Szymanski wrote: > When a firmware file is missing the warning message doesn't indicate the > firmware file name because '$tmp' var doesn't exist. > Fix the warning message and while at it reduce the if/else statement. > > Signed-off-by: Sébastien Szymanski Thanks

[PATCH v3 10/10] env: nowhere: set default enviroment

2020-01-21 Thread Keerthy
set default enviroment so that set_env calls succeed when ENV_IS_NOWHERE is alone set. Signed-off-by: Keerthy --- env/nowhere.c | 1 + 1 file changed, 1 insertion(+) diff --git a/env/nowhere.c b/env/nowhere.c index f5b0a17652..70c3b3e011 100644 --- a/env/nowhere.c +++ b/env/nowhere.c @@ -23,6

[PATCH v3 09/10] configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC

2020-01-21 Thread Keerthy
Remove saving ENV in eMMC in r5 as the power domains are not setup. Environment in eMMC cannot be read if we do not boot from eMMC. Signed-off-by: Keerthy --- configs/j721e_evm_r5_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/j721e_evm_r5_defconfig

[PATCH v3 06/10] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-01-21 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts

[PATCH v3 08/10] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-21 Thread Keerthy
Enable r5f remoteproc support in r5 defconfig so that r5s can be started in spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_evm_r5_defconfig b/configs/j721e_evm_r5_defconfig index

[PATCH v3 05/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-21 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v3 07/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-21 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index eaed520e6b..265239e32a 100644 ---

[PATCH v3 04/10] armv7R: K3: Add support for jumping to firmware

2020-01-21 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla

[PATCH v3 03/10] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-01-21 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH v3 00/10] Add support for loading main_r5fss0_core0

2020-01-21 Thread Keerthy
This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. Changes in v3: * Removed saving env in MMC and fixed env saving in SPL when nowhere option is set. Changes in v2: * Factored out all the generic elf handling functions

[PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-21 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keerthy

[PATCH v3 01/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-21 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt Reviewed-by: Simon Goldschmidt --- cmd/Kconfig | 1 + cmd/elf.c | 229

Re: [PATCH v3 2/4] arm: sunxi: add a config option to fixup a Bluetooth address

2020-01-21 Thread Ondřej Jirman
On Tue, Jan 21, 2020 at 01:12:47PM +0530, Jagan Teki wrote: > On Tue, Dec 3, 2019 at 2:15 PM Andre Heider wrote: > > > > Some Bluetooth controllers, like the BCM4345C5 of the Orange Pi 3, > > ship with the controller default address. > > > > Add a config option to fix it up so it can function

[PATCH 1/1] tools: imx8m_image: fix warning message

2020-01-21 Thread Sébastien Szymanski
When a firmware file is missing the warning message doesn't indicate the firmware file name because '$tmp' var doesn't exist. Fix the warning message and while at it reduce the if/else statement. Signed-off-by: Sébastien Szymanski --- tools/imx8m_image.sh | 6 ++ 1 file changed, 2

Re: [U-Boot] [PATCH V3 2/2] core: device: use dev_power_domain_on

2020-01-21 Thread Oliver Graute
On 16/12/19, Igor Opaniuk wrote: > Hi Oliver, Fabio, Peng, > > On Thu, Dec 12, 2019 at 9:20 AM Oliver Graute > wrote: > > > > On 11/12/19, Fabio Estevam wrote: > > > Hi Oliver, > > > > > > On Tue, Dec 10, 2019 at 11:50 PM Peng Fan wrote: > > > > > > > Update your scfw/atf and they try again. >

Re: [PATCH] ARM: dts: sunxi: Sync R40 dts(i) from v5.4

2020-01-21 Thread Andre Przywara
On Tue, 21 Jan 2020 14:05:12 +0530 Jagan Teki wrote: Hi Jagan, thanks for taking care of this. > Sync R40 dts(i) files from linux-next v5.4 tag. Why this tag? Shouldn't it be just the v5.4 release tag? But honestly we should take the latest from Maxime's sunxi/for-next branch. This isn't

[PATCH] dtc: add ability to make nodes conditional on them being referenced

2020-01-21 Thread Andre Przywara
From: Maxime Ripard This is needed when importing mainline DTs into U-Boot, as some started using this /omit-if-no-ref/ tag, so won't compile with U-Boot's current dtc copy. This is just a cherry-pick of the patch introducing this feature. Original commit message from Maxime: --

  1   2   >