Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-16 Thread Heinrich Schuchardt
On 6/17/22 00:50, Tom Rini wrote: On Tue, Jun 14, 2022 at 08:02:03AM +0200, Heinrich Schuchardt wrote: From: Heinrich Schuchardt If CONFIG_VIDEO_DM=n we query the display size from the serial console. Especially when using a remote console the response can be so late that it interferes

Re: [PATCH v5 23/23] sandbox: fwu: Add support for testing FWU feature on sandbox

2022-06-16 Thread Takahiro Akashi
Sughosh, On Wed, Jun 15, 2022 at 05:40:12PM +0530, Sughosh Ganu wrote: > On Wed, 15 Jun 2022 at 11:07, Takahiro Akashi > wrote: > > > > On Thu, Jun 09, 2022 at 06:00:10PM +0530, Sughosh Ganu wrote: > > > Add a python test script for testing the FWU Multi Bank Update > > > functionality on the

Re: [PATCH v5 11/23] mkeficapsule: Add support for generating empty capsules

2022-06-16 Thread Takahiro Akashi
Sughosh, On Thu, Jun 16, 2022 at 12:42:08PM +0530, Sughosh Ganu wrote: > hi Takahiro, > > On Thu, 16 Jun 2022 at 06:31, Takahiro Akashi > wrote: > > > > Sughosh, > > > > On Wed, Jun 15, 2022 at 04:19:56PM +0530, Sughosh Ganu wrote: > > > On Wed, 15 Jun 2022 at 10:41, Takahiro Akashi > > >

Re: [PATCH 0/4] mmc: add support for bcm63158

2022-06-16 Thread Jaehoon Chung
Hi Philippe, On 4/14/22 02:13, Philippe Reynes wrote: > This serie adds the support of mmc for bcm63158. > The first commit adds a driver that support sdhci > on bcm63158. The two next commits add support of > mmc in the device tree, and the last one enables > the support of mmc and gpt for the

Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-16 Thread Tom Rini
On Tue, Jun 14, 2022 at 08:02:03AM +0200, Heinrich Schuchardt wrote: > From: Heinrich Schuchardt > > If CONFIG_VIDEO_DM=n we query the display size from the serial console. > Especially when using a remote console the response can be so late that > it interferes with autoboot. > > Only query

[RFC PATCH v4 15/28] cli: hush_2021: Add functions to be called from run_command()

2022-06-16 Thread Francis Laniel
run_command() is called internally by the command run and it can also be called directly from U-Boot code, e.g. to do unit tests. This commit adds this path to go to hush 2021. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_upstream.c | 66

[RFC PATCH v4 27/28] for test purpose only: Comment out failed function which fails only in CI.

2022-06-16 Thread Francis Laniel
Signed-off-by: Francis Laniel --- test/cmd/setexpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cmd/setexpr.c b/test/cmd/setexpr.c index 0dc94f7e61..71c751d766 100644 --- a/test/cmd/setexpr.c +++ b/test/cmd/setexpr.c @@ -308,7 +308,7 @@ static int

[RFC PATCH v4 18/28] test: hush: Fix variable expansion tests for hush 2021

2022-06-16 Thread Francis Laniel
Modifies the expected result for hush 2021. Indeed, there were bugs in actual U-Boot hush which were fixed in upstream Busybox. As hush 2021 is based on upstream Busybox, these bugs no longer exist. Signed-off-by: Francis Laniel --- test/hush/dollar.c | 79

[RFC PATCH v4 21/28] test: hush: Fix if tests for hush 2021

2022-06-16 Thread Francis Laniel
Modifies the command run for hush 2021 when using string comparison operator. Indeed, '<' and '>' must be escaped to be used as these operators. Signed-off-by: Francis Laniel --- test/hush/if.c | 45 + 1 file changed, 45 insertions(+) diff --git

[RFC PATCH v4 10/28] cli: Add menu for hush parser

2022-06-16 Thread Francis Laniel
For the moment, the menu contains only entry: HUSH_OLD_PARSER which is the default. The goal is to prepare the field to add a new hush parser which guarantees actual behavior is still correct. Signed-off-by: Francis Laniel --- cmd/Kconfig | 21 + common/Makefile | 3 ++-

[RFC PATCH v4 26/28] for test purpose only: Comment out dollar tests which prints error messages.

2022-06-16 Thread Francis Laniel
Error messages like "unknown command" will make the CI fails. So, for the moment, we comment these tests. Signed-off-by: Francis Laniel --- test/hush/dollar.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/hush/dollar.c b/test/hush/dollar.c

[RFC PATCH v4 20/28] cli: hush_2021: Enable if keyword

2022-06-16 Thread Francis Laniel
Adds support for "if then else" construct both for command line interface and through run_command(). Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_upstream.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/common/cli_hush_upstream.c

[RFC PATCH v4 28/28] board: keymile: common: Use environment to store IVM_* variables.

2022-06-16 Thread Francis Laniel
These boards used set_local_var() to store some variables as local shell. They then used get_local_var() to retrieve the variables values. Instead of using local shell variables, they should use environment ones (like a majority of board). So, this patch converts using local variables to

[RFC PATCH v4 14/28] cli: hush_2021: Enable variables expansion for hush 2021

2022-06-16 Thread Francis Laniel
Enables variables expansion for hush 2021, both for local and environment variables. So the following commands: foo=bar echo $foo setenv bar foo echo $bar leads to "bar" and "foo" being printed on console output. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_2021.c

[RFC PATCH v4 25/28] cli: hush_2021: Add upstream commits up to 6th February 2022.

2022-06-16 Thread Francis Laniel
This commit adds the following hush busybox upstream commits: 21afddefd258 ("hush: fix "error: invalid preprocessing directive ##"") e53c7dbafc78 ("hush: fix set -n to act immediately, not just after run_list() ") 574b9c446da1 ("hush: fix var_LINENO3.tests failure") 49bcf9f40cff ("hush: speed up

[RFC PATCH v4 24/28] Modernize U-Boot shell

2022-06-16 Thread Francis Laniel
From: Tom Rini On Fri, Apr 01, 2022 at 01:26:53AM +0200, Francis Laniel wrote: > Hi. > > First I hope you are fine and the same for your relatives. > I would also like to apologize for the delay between v2 and v3. > > During 2021 summer, Sean Anderson wrote a contribution to add a new shell, >

[RFC PATCH v4 13/28] cli: Enables using hush 2021 parser as command line parser

2022-06-16 Thread Francis Laniel
If one defines HUSH_2021_PARSER, it is then possible to use 2021 parser with: => parser get old => parser set 2021 2021> parser get 2021 Signed-off-by: Francis Laniel --- cmd/parser.c | 14 - common/cli.c | 38

[RFC PATCH v4 23/28] test: hush: Fix loop tests for hush 2021

2022-06-16 Thread Francis Laniel
Modifies return code got from while loop as hush 2021 always returns 0 from while loop. Signed-off-by: Francis Laniel --- test/hush/loop.c | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/test/hush/loop.c b/test/hush/loop.c index

[RFC PATCH v4 22/28] cli: hush_2021: Enable loops

2022-06-16 Thread Francis Laniel
Enables the use of for, while and until loops for command line as well as with run_command(). Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_upstream.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/common/cli_hush_upstream.c

[RFC PATCH v4 11/28] global_data.h: add GD_FLG_HUSH_OLD_PARSER flag.

2022-06-16 Thread Francis Laniel
This flag is used to indicate we are using the hush parser. Signed-off-by: Francis Laniel --- common/cli.c | 2 ++ include/asm-generic/global_data.h | 4 2 files changed, 6 insertions(+) diff --git a/common/cli.c b/common/cli.c index a7e3d84b68..ef967f4f9e 100644 ---

[RFC PATCH v4 12/28] cmd: Add new parser command.

2022-06-16 Thread Francis Laniel
This command can be used to print the current parser with 'parser print'. It can also be used to set the current parser with 'parser set'. For the moment, only one value is valid for set: old. Signed-off-by: Francis Laniel --- cmd/Makefile | 2 + cmd/parser.c | 113

[RFC PATCH v4 17/28] test: hush: Fix instructions list tests for hush 2021

2022-06-16 Thread Francis Laniel
Modifies the expected result for hush 2021. Indeed, there were bugs in actual U-Boot hush which were fixed in upstream Busybox. As hush 2021 is based on upstream Busybox, these bugs no longer exist. Signed-off-by: Francis Laniel --- test/hush/list.c | 69

[RFC PATCH v4 19/28] cli: hush_2021: Enable using \< and \> as string compare operators

2022-06-16 Thread Francis Laniel
In Busybox hush, '<' and '>' are used as redirection operators. For example, cat foo > bar will write content of file foo inside file bar. In U-Boot, we do not have file system, so we can hardly redirect command output inside a file. But, in actual U-Boot hush, these operators ('<' and '>') are

[RFC PATCH v4 16/28] cli: add hush 2021 as parser for run_command*().

2022-06-16 Thread Francis Laniel
Enables using, in code, hush 2021 as parser for run_command function family. It also enables the command run to be used by CLI user of hush 2021. Signed-off-by: Francis Laniel --- common/cli.c | 60 -- common/cli_hush_upstream.c | 2 +- 2 files

[RFC PATCH v4 09/28] cli: Port Busybox 2021 hush to U-Boot

2022-06-16 Thread Francis Laniel
Adds new file cli_hush_2021.c, it is a copy of Busybox hush file as it was of time to commit 37460f5da. This commit modifies Busybox hush to not compile some part specific to Busybox and adds some code needed by U-Boot. The modifications consists mainly on adding code #if(n)def guards. For the

[RFC PATCH v4 07/28] test: hush: Test hush loops

2022-06-16 Thread Francis Laniel
The added tests verifies correct behavior of for, while and until loops. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/Makefile | 1 + test/hush/loop.c | 64 ++ 2 files changed, 65 insertions(+) create mode 100644

[RFC PATCH v4 06/28] test: hush: Test hush commands list

2022-06-16 Thread Francis Laniel
Verifies behavior of commands separated by ';', '&&' and '||'. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/Makefile | 1 + test/hush/list.c | 79 ++ 2 files changed, 80 insertions(+) create mode 100644 test/hush/list.c

[RFC PATCH v4 05/28] test: hush: Test hush variable expansion

2022-06-16 Thread Francis Laniel
Verifies shell variables are replaced by their values. Signed-off-by: Francis Laniel --- test/hush/Makefile | 1 + test/hush/dollar.c | 167 + 2 files changed, 168 insertions(+) create mode 100644 test/hush/dollar.c diff --git a/test/hush/Makefile

[RFC PATCH v4 04/28] test/py: hush_if_test: Remove the test file

2022-06-16 Thread Francis Laniel
ce40f44eb336 ("test: hush: Test hush if/else") translated this test to a C test, so this python file is no more needed. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/py/tests/test_hush_if_test.py | 184 - 1 file changed, 184 deletions(-) delete

[RFC PATCH v4 02/28] test: Add framework to test hush behavior

2022-06-16 Thread Francis Laniel
Introduce a new subcommand to ut: ut hush. For the moment, this command does nothing, future commits will add tests which will be run on command call. Note that CONFIG_HUSH_PARSER must be defined to compile this new subcommand. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass ---

[RFC PATCH v4 03/28] test: hush: Test hush if/else

2022-06-16 Thread Francis Laniel
As asked in 9c6bf1715f6a ("test/py: hush_if_test: Add tests to cover octal/hex values"), this commit translates test_hush_if_test.py to a C test. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/Makefile | 1 + test/hush/if.c | 308

[RFC PATCH v4 01/28] video: sandbox: Add dummy function for sandbox_sdl_remove_display().

2022-06-16 Thread Francis Laniel
We need to defined a dummy version of this function when compiling with NO_SDL=1. Otherwise, we would face compilation error. Fixes: 250e735c692b ("video: sandbox: Avoid duplicate display windows") Signed-off-by: Francis Laniel --- arch/sandbox/include/asm/sdl.h | 5 + 1 file changed, 5

[RFC PATCH v4 00/28] Modernize U-Boot shell

2022-06-16 Thread Francis Laniel
Hi. First I hope you are fine and the same for your relatives. During 2021 summer, Sean Anderson wrote a contribution to add a new shell, based on LIL, to U-Boot [1][2]. While one of the goals of this contribution was to address the fact actual U-Boot shell, which is based on Busybox hush, is

Re: [GIT PULL] Please pull u-boot-mmc master

2022-06-16 Thread Tom Rini
On Thu, Jun 16, 2022 at 07:57:24AM +0900, Jaehoon Chung wrote: > Dear Tom, > > Please pull u-boot-mmc master into u-boot master branch. > If there is any problem, let me know, plz. > Sorry for late. > > Best Regards, > Jaehoon Chung > > CI:

Re: Pull request: u-boot-imx u-boot-imx-20220616

2022-06-16 Thread Tom Rini
0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20220616 > > for you to fetch changes up to 1a558fafbbdff80cb6a7c8e883addec7f02fe8e5: > > spi: nxp_fspi: Fix clock imbalance (2022-06-15 1

Re: [GIT PULL] Please pull u-boot-pmic master

2022-06-16 Thread Tom Rini
On Thu, Jun 16, 2022 at 07:59:40AM +0900, Jaehoon Chung wrote: > Dear Tom, > > Please pull u-boot-pmic master into u-boot master branch. > If there is a problem, let me know, plz > > Best Regards, > Jaehoon Chung > > CI: https://source.denx.de/u-boot/custodians/u-boot-pmic/-/pipelines/12303 >

Re: [Rock Pi 4+] Mainline LPDDR4 RAM initialisation is not sufficient to boot successfully

2022-06-16 Thread Lee Jones
On Wed, 25 May 2022, Lee Jones wrote: > Good afternoon, > > > > There appear to be a number of issues with the Rockchip

[PATCH] fw_env: add fallback to Linux's NVMEM based access

2022-06-16 Thread Rafał Miłecki
From: Rafał Miłecki A new DT binding for describing environment data block has been added in Linux's commit 5db1c2dbc04c ("dt-bindings: nvmem: add U-Boot environment variables binding"). Once we get a proper Linux NVMEM driver it'll be possible to use Linux's binary interface for user-space as

[PATCH 7/8] Convert CONFIG_SYS_FSL_SEC_MON et al to Kconfig

2022-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_FSL_SEC_MON CONFIG_SYS_FSL_SEC_MON_BE CONFIG_SYS_FSL_SEC_MON_LE Signed-off-by: Tom Rini --- arch/Kconfig.nxp | 1 + arch/arm/include/asm/arch-fsl-layerscape/config.h | 15 ---

[PATCH 8/8] Convert CONFIG_SYS_FSL_SFP_BE et al to Kconfig

2022-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_KEY_REVOCATION CONFIG_SYS_FSL_SFP_BE CONFIG_SYS_FSL_SFP_LE CONFIG_SYS_FSL_SFP_VER_3_0 CONFIG_SYS_FSL_SFP_VER_3_2 CONFIG_SYS_FSL_SFP_VER_3_4 CONFIG_SYS_FSL_SRK_LE This partly means making sure to enable SYS_FSL_ERRATUM_A007186

[PATCH 6/8] Convert CONFIG_ESDHC_DETECT_QUIRK to Kconfig

2022-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ESDHC_DETECT_QUIRK Signed-off-by: Tom Rini --- board/freescale/common/qixis.h| 21 +++ board/freescale/lx2160a/lx2160a.c | 21 --- configs/ls1088aqds_defconfig | 1 +

[PATCH 5/8] Convert CONFIG_ESBC_HDR_LS et al to Kconfig

2022-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ESBC_HDR_LS CONFIG_ESBC_ADDR_64BIT Signed-off-by: Tom Rini --- arch/Kconfig.nxp | 9 + arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 5 + arch/arm/include/asm/arch-fsl-layerscape/config.h |

[PATCH 3/8] nxp: Make board/freescale/common/Kconfig safe to include once in arch/Kconfig

2022-06-16 Thread Tom Rini
The way that we use this file currently means that we have to guard it in every platform Kconfig. But it is also required in all NXP platforms, including non-reference platforms. Make all options in it have appropriate dependencies so that we can include it a single time under arch/Kconfig

[PATCH 4/8] nxp: Rename board/freescale/common/Kconfig to arch/Kconfig.nxp

2022-06-16 Thread Tom Rini
Now that board/freescale/common/Kconfig is safe to be included once, globally, rename this to arch/Kconfig.nxp to better reflect that it contains options that are valid on multiple architectures and SoC families, and not specific to NXP reference platforms either. Cc: Stefano Babic Cc: Peng Fan

[PATCH 2/8] Convert CONFIG_HETROGENOUS_CLUSTERS et al to Kconfig

2022-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_HETROGENOUS_CLUSTERS CONFIG_SYS_MAPLE CONFIG_SYS_CPRI CONFIG_PPC_CLUSTER_START CONFIG_DSP_CLUSTER_START CONFIG_SYS_CPRI_CLK CONFIG_SYS_ULB_CLK CONFIG_SYS_ETVPE_CLK Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/Kconfig

[PATCH 1/8] Convert CONFIG_EXTRA_CLOCK to Kconfig

2022-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_EXTRA_CLOCK Signed-off-by: Tom Rini --- board/sysam/stmark2/Kconfig | 3 +++ include/configs/stmark2.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/board/sysam/stmark2/Kconfig b/board/sysam/stmark2/Kconfig index

Re: [PATCH 8/8] gw_ventana: Migrate to using CONFIG_EXTRA_ENV_TEXT

2022-06-16 Thread Tom Rini
On Thu, Jun 16, 2022 at 09:51:13AM -0700, Tim Harvey wrote: > On Tue, Jun 14, 2022 at 9:58 AM Tim Harvey wrote: > > > > On Tue, Jun 14, 2022 at 9:18 AM Tom Rini wrote: > > > > > > On Tue, Jun 14, 2022 at 09:14:03AM -0700, Tim Harvey wrote: > > > > On Mon, Jun 13, 2022 at 7:57 PM Tom Rini wrote:

Re: [PATCH 8/8] gw_ventana: Migrate to using CONFIG_EXTRA_ENV_TEXT

2022-06-16 Thread Tim Harvey
On Tue, Jun 14, 2022 at 9:58 AM Tim Harvey wrote: > > On Tue, Jun 14, 2022 at 9:18 AM Tom Rini wrote: > > > > On Tue, Jun 14, 2022 at 09:14:03AM -0700, Tim Harvey wrote: > > > On Mon, Jun 13, 2022 at 7:57 PM Tom Rini wrote: > > > > > > > > Move the environment text over from being set via > > >

[PATCH] stm32mp: stm32prog: fix the last character of dfu_alt_add third parameter

2022-06-16 Thread Patrick Delaunay
The third parameter of dfu_alt_add(), the string description of alternate, is build in stm32prog_alt_add() with a unnecessary character ';' at the end of the string. This separator was required in the first implementation of dfu_alt_add() but is no more needed in the current implementation; this

Re: [PATCH v2 0/2] usb: dwc3: Add support for standalone DWC3 nodes

2022-06-16 Thread Angus Ainslie
Hi Alban, On 2022-06-16 01:47, Alban Bedel wrote: Hi all, Sometimes ago I submitted a patch to fix the support for the DWC3 controller on the imx8mq which, unlike most DWC3 implementation, doesn't use a top glue node with child DWC3 nodes. Instead it has the DWC3 node directly on the main

Re: Pull request: u-boot-imx NEXT

2022-06-16 Thread Tom Rini
On Thu, Jun 16, 2022 at 09:35:25AM +0200, Stefano Babic wrote: > Hi Tom, > > on -next there is a cleanup for next release. Please pull into your -next > branch: > > CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/12312 > > > The following changes since commit

Re: [PATCH v3 1/9] spl: Add generic spl_load function

2022-06-16 Thread Sean Anderson
Hi Xavier, On 6/16/22 5:42 AM, Xavier Drudis Ferran wrote: > [You don't often get email from xdru...@tinet.cat. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > > Hello. > > Thank you for your work, simplifying and generalizing code, > and sorry that I hadn't

Re: [PATCH 09/10] tools: zynqmp_psu_init_minimize: Add serdes_illcalib forward declaration

2022-06-16 Thread Michal Simek
On 6/8/22 18:20, Stefan Herbrechtsmeier wrote: [CAUTION: External Email] From: Stefan Herbrechtsmeier A forward declaration for the serdes_illcalib function. Signed-off-by: Stefan Herbrechtsmeier --- tools/zynqmp_psu_init_minimize.sh | 5 + 1 file changed, 5 insertions(+) diff

Re: [PATCH 10/10] xilinx: zynqmp: Support vendor specific board_init

2022-06-16 Thread Michal Simek
On 6/8/22 18:20, Stefan Herbrechtsmeier wrote: [CAUTION: External Email] From: Stefan Herbrechtsmeier Add a board_init_xilinx function to allow foreign vendors to reuse the xilinx zynqmp board code and add addition code to the board_init function. Do you plan to add support for that

Re: [PATCH v2 0/5] Add ARMv8 CE sha1/sha256 support

2022-06-16 Thread Tom Rini
On Thu, Jun 16, 2022 at 01:04:07AM +0200, Loic Poulain wrote: > Hi Folks, > > Any comments on this series? Anyone else to CC? I will likely pick this up for next soon, thanks. -- Tom signature.asc Description: PGP signature

Re: [PATCH 5/5] configs: am62x_evm_r5: Add CONFIG_NR_DRAM_BANKS as done in a53 defconfig

2022-06-16 Thread Tom Rini
On Tue, Jun 14, 2022 at 05:45:34PM +0300, Georgi Vlaev wrote: > Add CONFIG_NR_DRAM_BANKS from am62x_evm_a53_defconfig as this is > needed to calculate the size of DDR that is available. > > Signed-off-by: Georgi Vlaev Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH 4/5] board: ti: am62x: Account for DDR size fixups if ECC is enabled

2022-06-16 Thread Tom Rini
On Tue, Jun 14, 2022 at 05:45:33PM +0300, Georgi Vlaev wrote: > Call into k3-ddrss driver to fixup device tree and resize > the available amount of DDR if ECC is enabled. > > A second fixup is required from A53 SPL to take the fixup > as done from R5 SPL and apply it to DT passed to A53 U-boot,

Re: [PATCH 3/5] board: ti: am62x: Use fdt functions for ram and bank init

2022-06-16 Thread Tom Rini
On Tue, Jun 14, 2022 at 05:45:32PM +0300, Georgi Vlaev wrote: > Use the appropriate fdtdec_setup_mem_size_base() call in > dram_init() and fdtdec_setup_bank_size() in dram_bank_init() > to pull these values from DT, where they are already available, > instead of hardcoding them. > >

Re: [PATCH 2/5] arm: dts: k3-am625-*: Mark memory with u-boot,dm-spl

2022-06-16 Thread Tom Rini
On Tue, Jun 14, 2022 at 05:45:31PM +0300, Georgi Vlaev wrote: > Mark the memory node with u-boot,dm-spl so we can use it > from early SPL on both R5 and A53. > > Signed-off-by: Georgi Vlaev Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/5] arm: mach-k3: common: Use ddr_init in spl_enable_dcache

2022-06-16 Thread Tom Rini
On Tue, Jun 14, 2022 at 05:45:30PM +0300, Georgi Vlaev wrote: > The spl_enable_dcache() function calls dram_init_banksize() > to get the total memory size. Normally the dram_init_banksize() > setups the memory banks, while the total size is reported > by ddr_init(). This worked so far for K3

Re: [PATCH 02/10] firmware: firmware-zynqmp: Probe driver before use

2022-06-16 Thread Michal Simek
On 6/8/22 18:20, Stefan Herbrechtsmeier wrote: [CAUTION: External Email] From: Stefan Herbrechtsmeier Probe the driver before use to ensure that the global data are valid. It is not clear what the issue is. And this function is called in SPL or EL3 and likely multiple times. Can you

Re: [PATCH v2 14/14] doc: Add man page for dumpimage

2022-06-16 Thread Sean Anderson
On 6/16/22 7:50 AM, Heinrich Schuchardt wrote: On 6/13/22 00:14, Sean Anderson wrote: This tool seems a bit underloved. Unfortunately, it seems to be missing support for FIT images. Alas... Add a man page documenting it. The example is taken from commit a804b5ce2d ("Add dumpimage, a tool to

Re: [PATCH v2 05/14] doc: mkimage: Use subsection macro

2022-06-16 Thread Sean Anderson
On 6/16/22 6:08 AM, Heinrich Schuchardt wrote: On 6/13/22 00:14, Sean Anderson wrote: The options are divided up into several subsections. Use the appropriate macro. While we're at it, rename the headings to better reflect the contents of their sections. Signed-off-by: Sean Anderson ---

Re: [PATCH v2 04/14] doc: mkimage: Regularize option documentation

2022-06-16 Thread Sean Anderson
On 6/16/22 6:00 AM, Heinrich Schuchardt wrote: On 6/13/22 00:14, Sean Anderson wrote: Square brackets are commonly used to denote optional parts of a command. However, all option arguments are mandatory. Remove these brackets. This also removes some unnecessary quotation marks, and uses hyphens

Re: [PATCH v2 01/14] doc: mkimage: Use standard style for synopsis

2022-06-16 Thread Sean Anderson
On 6/16/22 5:45 AM, Heinrich Schuchardt wrote: On 6/13/22 00:13, Sean Anderson wrote: The synopsis section is a bit messy. As an example, "uimage file name" is printed in italics, bold, and roman (depending on the line). This cleans things up and converts the synopsis section to use standard

Re: [PATCH v5 01/23] dt/bindings: Add bindings for FWU Metadata storage device

2022-06-16 Thread Michal Simek
čt 9. 6. 2022 v 14:30 odesílatel Sughosh Ganu napsal: > > Add bindings needed for accessing the FWU metadata partitions. These > include the compatible string which point to the access method and the > actual device which stores the FWU metadata. > > The current patch adds basic bindings needed

[PATCH v3] board: freescale: p1_p2_rdb_pc: Fix parsing inverted bits from boot input data

2022-06-16 Thread Pali Rohár
On some boards upper 4 bits of i2c boot input data (register 0) are inverted. Information which bits are inverted is stored in register 2. So invert read input data back according to register 2 prior processing them. This fixes printing "rom_loc: value" line during booting. Signed-off-by: Pali

Re: [PATCH v3] crypto/fsl: fsl_hash: Fix crash in flush dcache

2022-06-16 Thread Fabio Estevam
Hi Gaurav, On Thu, Jun 16, 2022 at 7:10 AM Gaurav Jain wrote: > > wrong end address passed to flush_dcache_range. > modified the flush_dache logic for scatter list elements. > > Fixes: 1919f58a8f (crypto/fsl: fsl_hash: Fix dcache issue in caam_hash_finish) > Signed-off-by: Gaurav Jain > --- >

Re: Extend binman to generate boot headers

2022-06-16 Thread Fabio Estevam
Hi Peng, On Thu, Jun 16, 2022 at 5:45 AM Peng Fan wrote: > > Hi all, > > I am thinking to extend binman to generate i.MX container > header and IVT header, that means to replace mkimage to generate header. > > There is an NXP downstream imx-mkimage that diverge from upstream that > double

[PATCH v3] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values

2022-06-16 Thread Pali Rohár
Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE addresses are manually increased by 0x1000 due to .bootpg section. This section has size of 0x1000 bytes and is manually put by linker script before .text section (and therefore before base address) when CONFIG_SYS_MPC85XX_NO_RESETVEC is set.

Re: [PATCH v2 14/14] doc: Add man page for dumpimage

2022-06-16 Thread Heinrich Schuchardt
On 6/13/22 00:14, Sean Anderson wrote: This tool seems a bit underloved. Unfortunately, it seems to be missing support for FIT images. Alas... Add a man page documenting it. The example is taken from commit a804b5ce2d ("Add dumpimage, a tool to extract data from U-Boot images"). Signed-off-by:

[PATCH 1/1] Makefile: respect CONFIG_CC_OPTIMIZE_FOR_DEBUG for host tools

2022-06-16 Thread Heinrich Schuchardt
If CONFIG_CC_OPTIMIZE_FOR_DEBUG=y, the host tools should be built with debug symbols and with reduced optimization. Signed-off-by: Heinrich Schuchardt --- Makefile | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 2fa3a3b488..faa01eadd7 100644 --- a/Makefile

Re: [PATCH RFC v3 03/11] ti: etype: sysfw: Add entry type for sysfw

2022-06-16 Thread Neha Malcom Francis
Hi Andrew, On 15/06/22 21:07, Andrew Davis wrote: On 6/15/22 1:47 AM, Neha Malcom Francis wrote: For K3 devices that require a sysfw image, add entry for SYSFW. It can contain system firmware image that can be packaged into sysfw.itb by binman. HS devices do this very differently, even an

Re: [PATCH v2 4/5] mx6cuboxi: fixup dtb ethernet phy nodes before booting an OS

2022-06-16 Thread Stefano Babic
On 16.06.22 10:44, Josua Mayer wrote: Hi Stefano, Thank you for applying this patchset. This patch had a functional flaw that I was intending to address in v3. Instead I have now followed up with a separate patch: [PATCH] mx6cuboxi: fix board detection while patching device-tree phy nodes

Re: [PATCH RFC v3 08/11] ti: j721e: Exclude makefile tispl.bin target for J721E

2022-06-16 Thread Neha Malcom Francis
Hi Roger, On 15/06/22 19:14, Roger Quadros wrote: Hi Neha, On 15/06/2022 09:48, Neha Malcom Francis wrote: tispl.bin is to be packaged (with ATF, OPTEE, DM and A72 SPL) using binman. The tispl.bin target from the makefile is no longer needed for J721E. Signed-off-by: Neha Malcom Francis ---

[PATCH v3] crypto/fsl: fsl_hash: Fix crash in flush dcache

2022-06-16 Thread Gaurav Jain
wrong end address passed to flush_dcache_range. modified the flush_dache logic for scatter list elements. Fixes: 1919f58a8f (crypto/fsl: fsl_hash: Fix dcache issue in caam_hash_finish) Signed-off-by: Gaurav Jain --- changes in v3: - fix error: left shift count >= width of type

Re: [PATCH v2 05/14] doc: mkimage: Use subsection macro

2022-06-16 Thread Heinrich Schuchardt
On 6/13/22 00:14, Sean Anderson wrote: The options are divided up into several subsections. Use the appropriate macro. While we're at it, rename the headings to better reflect the contents of their sections. Signed-off-by: Sean Anderson --- Changes in v2: - Rename first subsection to "General

Re: [PATCH v2 04/14] doc: mkimage: Regularize option documentation

2022-06-16 Thread Heinrich Schuchardt
On 6/13/22 00:14, Sean Anderson wrote: Square brackets are commonly used to denote optional parts of a command. However, all option arguments are mandatory. Remove these brackets. This also removes some unnecessary quotation marks, and uses hyphens to connect words in option arguments.

Re: [PATCH v2 01/14] doc: mkimage: Use standard style for synopsis

2022-06-16 Thread Heinrich Schuchardt
On 6/13/22 00:13, Sean Anderson wrote: The synopsis section is a bit messy. As an example, "uimage file name" is printed in italics, bold, and roman (depending on the line). This cleans things up and converts the synopsis section to use standard style. The .SY/.YS macros set up appropriate

Re: [PATCH v3 1/9] spl: Add generic spl_load function

2022-06-16 Thread Xavier Drudis Ferran
Hello. Thank you for your work, simplifying and generalizing code, and sorry that I hadn't seen this series before. I'm new to U-Boot so I'm sorry if I waste your time with silly questions, but I can't seem to understand some details. 1- Does some info->read implementation ever want its

Re: [PATCH v2] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values

2022-06-16 Thread Pali Rohár
On Thursday 16 June 2022 16:57:42 Peng Fan (OSS) wrote: > 在 2022/4/25 20:29, Pali Rohár 写道: > > Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE addresses are > > manually increased by 0x1000 due to .bootpg section. This section has size > > of 0x1000 bytes and is manually put by linker

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Add env commands norlowerboot, norupperboot, sd2boot and defboot

2022-06-16 Thread Peng Fan (OSS)
在 2022/4/25 22:50, Pali Rohár 写道: All *boot env commands overrides default boot source location via i2c. After board reset without power off, BootROM then starts booting U-Boot from this specified location instead of the default one. Add new env command defboot which reverts boot location to

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Fix parsing inverted bits from boot input data

2022-06-16 Thread Peng Fan (OSS)
在 2022/4/25 22:12, Pali Rohár 写道: On some boards upper 4 bits of i2c boot input data (register 0) are inverted. Information which bits are inverted is stored in register 2. So invert read input data back according to register 2 prior processing them. This fixes printing "rom_loc: value" line

Re: [PATCH v2] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values

2022-06-16 Thread Peng Fan (OSS)
在 2022/4/25 20:29, Pali Rohár 写道: Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE addresses are manually increased by 0x1000 due to .bootpg section. This section has size of 0x1000 bytes and is manually put by linker script before .text section (and therefore before base address) when

Re: [PATCH] imx: spl: Default to SPD when booting from USB serial download

2022-06-16 Thread Bedel, Alban
N¬ŠÆ§Kó0K"‚w™ë,j¸ó7ß^¼÷a8ïŽEPÁëÎ4÷¢æè¢Ùb²Ûz|]zæè¢Ùb²Ûz|]x ŸzË^½©  ™¨¥r‰ŸzË^½©  ™¨¥r‰®nŠ-ŠlgƗ(šæè¢Ø¦Æ|ir‰¬m¦âqקÅ׬m¦âqקÅג¹¸ÞrÔ^<Â)±²™Cyö®–ÛhHðð… éÛ¢‹bžë¢eÇ«‰©]£ 塧Cjד†íz&éöÓm´ó7ßí4Ó@¨ž×§´¶§‚æ  yéÔH*'µéíO*^µìmþ™ZŠw!j»

[PATCH v2 0/2] usb: dwc3: Add support for standalone DWC3 nodes

2022-06-16 Thread Alban Bedel
Hi all, Sometimes ago I submitted a patch to fix the support for the DWC3 controller on the imx8mq which, unlike most DWC3 implementation, doesn't use a top glue node with child DWC3 nodes. Instead it has the DWC3 node directly on the main bus. Angus Ainslie then asked why this patch was needed

Extend binman to generate boot headers

2022-06-16 Thread Peng Fan
Hi all, I am thinking to extend binman to generate i.MX container header and IVT header, that means to replace mkimage to generate header. There is an NXP downstream imx-mkimage that diverge from upstream that double effort. There are still require quite effort to migrate downstream imx-mkimage

Re: [PATCH v2 4/5] mx6cuboxi: fixup dtb ethernet phy nodes before booting an OS

2022-06-16 Thread Josua Mayer
Hi Stefano, Thank you for applying this patchset. This patch had a functional flaw that I was intending to address in v3. Instead I have now followed up with a separate patch: [PATCH] mx6cuboxi: fix board detection while patching device-tree phy nodes Please make sure this one is added too.

[PATCH] mx6cuboxi: fix board detection while patching device-tree phy nodes

2022-06-16 Thread Josua Mayer
ft_board_setup relies on the board_type() function to optimize which phy nodes need to be enabled for Linux. Add calls to setup and release the board-detect GPIOs. Also fix the switch-case statement to only enable phy address 4 for Cubox and unknown devices. Fixes: 741ce308 ("mx6cuboxi: fixup

RE: [PATCH v3] ddr: altera: soc64: Integer fix overflow that caused DDR size mismatched

2022-06-16 Thread Chee, Tien Fong
> -Original Message- > From: Maniyam, Dinesh > Sent: Wednesday, 1 June, 2022 6:49 PM > To: u-boot@lists.denx.de > Cc: Vasut, Marek ; Simon Goldschmidt > ; Lim, Elly Siew Chin > ; Chee, Tien Fong > ; Hea, Kok Kiang ; > Gan, Yau Wai ; Kho, Sin Hui > ; Lokanathan, Raaj ; > Maniyam, Dinesh

RE: [PATCH] drivers: cache: ncore: Disable snoop filter

2022-06-16 Thread Chee, Tien Fong
> -Original Message- > From: Maniyam, Dinesh > Sent: Wednesday, 1 June, 2022 3:57 PM > To: u-boot@lists.denx.de > Cc: Vasut, Marek ; Simon Goldschmidt > ; Chee, Tien Fong > ; Hea, Kok Kiang ; > Gan, Yau Wai ; Kho, Sin Hui > ; Lokanathan, Raaj ; > Maniyam, Dinesh > Subject: [PATCH]

RE: [PATCH] arch: arm: socfpga: timer_s10: Override udelay for secure section

2022-06-16 Thread Chee, Tien Fong
> -Original Message- > From: Maniyam, Dinesh > Sent: Wednesday, 1 June, 2022 3:55 PM > To: u-boot@lists.denx.de > Cc: Vasut, Marek ; Simon Goldschmidt > ; Chee, Tien Fong > ; Hea, Kok Kiang ; > Gan, Yau Wai ; Kho, Sin Hui > ; Lokanathan, Raaj ; > Maniyam, Dinesh ; Chee Hong Ang > >

RE: [PATCH] arm: dts: socfpga: stratix10: Add freeze controller node

2022-06-16 Thread Chee, Tien Fong
> -Original Message- > From: Maniyam, Dinesh > Sent: Tuesday, 31 May, 2022 4:15 PM > To: u-boot@lists.denx.de > Cc: Chee, Tien Fong ; Hea, Kok Kiang > ; Gan, Yau Wai ; Kho, > Sin Hui ; Lokanathan, Raaj > ; Maniyam, Dinesh > > Subject: [PATCH] arm: dts: socfpga: stratix10: Add freeze

RE: [PATCH] arm: dts: socfpga: agilex: Add freeze controller node

2022-06-16 Thread Chee, Tien Fong
> -Original Message- > From: Maniyam, Dinesh > Sent: Tuesday, 31 May, 2022 4:06 PM > To: u-boot@lists.denx.de > Cc: Chee, Tien Fong ; Hea, Kok Kiang > ; Gan, Yau Wai ; Kho, > Sin Hui ; Lokanathan, Raaj > ; Maniyam, Dinesh > > Subject: [PATCH] arm: dts: socfpga: agilex: Add freeze

RE: [PATCH v2 08/11] socfpga: arria10: Replace delays with busy waiting in cm_full_cfg

2022-06-16 Thread Chee, Tien Fong
Hi Pawel, > -Original Message- > From: Paweł Anikiel > Sent: Thursday, 26 May, 2022 10:37 PM > To: Vasut, Marek ; simon.k.r.goldschm...@gmail.com; > Chee, Tien Fong ; michal.si...@xilinx.com > Cc: u-boot@lists.denx.de; s...@chromium.org; feste...@denx.de; > ja...@amarulasolutions.com;

Pull request: u-boot-imx NEXT

2022-06-16 Thread Stefano Babic
Hi Tom, on -next there is a cleanup for next release. Please pull into your -next branch: CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/12312 The following changes since commit a87a6fcd20c0e29fe55bfbb6917c4aa1f1bbce74: Merge branch

Pull request: u-boot-imx u-boot-imx-20220616

2022-06-16 Thread Stefano Babic
-imx.git tags/u-boot-imx-20220616 for you to fetch changes up to 1a558fafbbdff80cb6a7c8e883addec7f02fe8e5: spi: nxp_fspi: Fix clock imbalance (2022-06-15 11:34:38 +0200) u-boot-imx-20220616 --- Fixes for 2022.07

Re: [RFC] Create arch/Kconfig.nxp

2022-06-16 Thread Stefano Babic
On 15.06.22 20:00, Tom Rini wrote: Hey all, As I migrate assorted CONFIG options over to Kconfig, a common problem I run in to is that between m68k, PowerPC and ARM (both Layerscape and sometimes i.MX) there are options that fit under more than one architecture but also don't have a good place

Re: [PATCH v5 11/23] mkeficapsule: Add support for generating empty capsules

2022-06-16 Thread Sughosh Ganu
hi Takahiro, On Thu, 16 Jun 2022 at 06:31, Takahiro Akashi wrote: > > Sughosh, > > On Wed, Jun 15, 2022 at 04:19:56PM +0530, Sughosh Ganu wrote: > > On Wed, 15 Jun 2022 at 10:41, Takahiro Akashi > > wrote: > > > > > > On Thu, Jun 09, 2022 at 05:59:58PM +0530, Sughosh Ganu wrote: > > > > The

Re: [PATCH] stm32mp1: fix reference for STMicroelectronics

2022-06-16 Thread Patrice CHOTARD
Hi Patrick On 5/20/22 18:38, Patrick Delaunay wrote: > Replace reference to the correct name STMicroelectronics > > Signed-off-by: Patrick Delaunay > --- > > arch/arm/Kconfig | 2 +- > arch/arm/cpu/armv7/stv0991/lowlevel.S | 2 +- > arch/arm/mach-sti/Kconfig |

  1   2   >