Re: Please pull u-boot-video/next

2021-12-31 Thread Tom Rini
On Tue, Dec 28, 2021 at 03:25:45PM +0100, Anatolij Gustschin wrote: > Hi Tom, > > please pull video patches for next. > > CI: https://source.denx.de/u-boot/custodians/u-boot-video/-/pipelines/10395 > > Thanks, > Anatolij > > The following changes since commit bc0abd80b3c2d395a0245d4e1ce4f8f445

[RFC] nvme: Split out PCI support

2021-12-31 Thread Mark Kettenis
Apple SoCs have an integrated NVMe controller that isn't connected over a PCIe bus. In preparation for adding support for this NVMe controller, split out the PCI support into its own file. This file is selected through a new CONFIG_NVME_PCI Kconfig option, so do a wholesale replacement of CONFIG_NV

Re: Boot Linux FIT image from SPL

2021-12-31 Thread Fabio Estevam
Hi Sven, On Fri, Dec 31, 2021 at 11:38 AM Sven Schwermer wrote: > I have one more question about this: Is it save to just enable D/I > caches (enable_caches) in SPL for all of mach-imx or will this have > unforeseen side effects? In that case, I can just make enable_ca7_smp > non-static and call

[RFC PATCH v1 15/21] test: hush: Fix instructions list tests for hush 2021.

2021-12-31 Thread Francis Laniel
This commit 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 | 48 +

[RFC PATCH v1 06/21] test: hush: Test hush loops.

2021-12-31 Thread Francis Laniel
The added tests ensure correct behavior of for, while and until loops. Signed-off-by: Francis Laniel --- test/hush/Makefile | 1 + test/hush/loop.c | 64 ++ 2 files changed, 65 insertions(+) create mode 100644 test/hush/loop.c diff --git a/test/hu

[RFC PATCH v1 03/21] test/py: hush_if_test: Remove the test file.

2021-12-31 Thread Francis Laniel
Commit 9087ab2cc4 ("test/py: hush_if_test: Remove the test file.") translated this test to a C test, so this python file is no more needed. Signed-off-by: Francis Laniel --- test/py/tests/test_hush_if_test.py | 184 - 1 file changed, 184 deletions(-) delete mode 1006

[RFC PATCH v1 21/21] test: hush: Fix loop tests for hush 2021.

2021-12-31 Thread Francis Laniel
This commit 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 | 20 1 file changed, 20 insertions(+) diff --git a/test/hush/loop.c b/test/hush/loop.c index 519c78ef7e..56aae719dc 100644

[RFC PATCH v1 20/21] cli: hush_2021: Enable loops.

2021-12-31 Thread Francis Laniel
This commit enables the use of for, while and until loops for command line as well as with run_command(). Signed-off-by: Francis Laniel --- common/cli_hush_2021_upstream.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/common/cli_hush_2021_upstream.c b/common

[RFC PATCH v1 18/21] cli: hush_2021: Enable if keyword.

2021-12-31 Thread Francis Laniel
This commit adds support for "if then else" construct both for command line interface and through run_command(). Signed-off-by: Francis Laniel --- common/cli_hush_2021_upstream.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/common/cli_hush_2021_upstream.c b/comm

[RFC PATCH v1 19/21] test: hush: Fix if tests for hush 2021.

2021-12-31 Thread Francis Laniel
This commit modifies the command run for hush 2021 when using string comparison operator. Indeed, '<' and '>' must be escaped to be used as string comparison operator. Signed-off-by: Francis Laniel --- test/hush/if.c | 43 +++ 1 file changed, 43 insertions

[RFC PATCH v1 11/21] cli: Enables using hush 2021 parser as command line parser.

2021-12-31 Thread Francis Laniel
If one defines HUSH_2021_PARSER, cli_loop() will jump on hush 2021 parser code. Signed-off-by: Francis Laniel --- common/cli.c | 14 +++--- include/cli_hush.h | 8 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/common/cli.c b/common/cli.c index d86046a728

[RFC PATCH v1 17/21] cli: hush_2021: Enable using \< and \> as string compare operators.

2021-12-31 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 us

[RFC PATCH v1 16/21] test: hush: Fix variable expansion tests for hush 2021.

2021-12-31 Thread Francis Laniel
This commit 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 | 51 +++

[RFC PATCH v1 14/21] cli: Modify run_command() to add hush 2021 as parser.

2021-12-31 Thread Francis Laniel
This commit then enables using, in code, run_command() while using hush 2021 as parser. It also enables the command run to be used by CLI user of hush 2021. Signed-off-by: Francis Laniel --- common/cli.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/commo

[RFC PATCH v1 13/21] cli: hush_2021: Add functions to be called from run_command().

2021-12-31 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 --- common/cli_hush_2021_upstream.c | 66 +++-- 1 file change

[RFC PATCH v1 12/21] cli: hush_2021: Enable variables expansion for hush 2021.

2021-12-31 Thread Francis Laniel
The following commit 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 --- common/cli_hush_2021.c

[RFC PATCH v1 08/21] cli: Port Busybox 2021 hush to U-Boot.

2021-12-31 Thread Francis Laniel
This commit 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.

[RFC PATCH v1 10/21] cli: Add HUSH_2021_PARSER to hush parser choice .

2021-12-31 Thread Francis Laniel
To use hush 2021 as U-Boot shell, one should tick "Use hush 2021 parser" under "Hush flavor to use" choice. Since this is a choice, you cannot use at the same time old and new flavor of hush. Signed-off-by: Francis Laniel --- cmd/Kconfig | 8 common/Makefile | 1 + 2 files changed,

[RFC PATCH v1 09/21] cli: Add choice for hush parser.

2021-12-31 Thread Francis Laniel
For the moment, the choice contains only entry: HUSH_OLD_PARSER which is the default. The goal of this commit is to prepare the field to add a new hush parser and it does not change anything to actual behavior. Signed-off-by: Francis Laniel --- cmd/Kconfig | 14 ++ common/Makefil

[RFC PATCH v1 05/21] test: hush: Test hush commands list.

2021-12-31 Thread Francis Laniel
This commit ensures behavior of commands separated by ';', '&&' and '||'. Signed-off-by: Francis Laniel --- test/hush/Makefile | 1 + test/hush/list.c | 79 ++ 2 files changed, 80 insertions(+) create mode 100644 test/hush/list.c diff --git a/test

[RFC PATCH v1 04/21] test: hush: Test hush variable expansion.

2021-12-31 Thread Francis Laniel
This commit ensures shell variables are replaced by their values. Signed-off-by: Francis Laniel --- test/hush/Makefile | 1 + test/hush/dollar.c | 191 + 2 files changed, 192 insertions(+) create mode 100644 test/hush/dollar.c diff --git a/test/hus

[RFC PATCH v1 02/21] test: hush: Test hush if/else.

2021-12-31 Thread Francis Laniel
As asked in commit 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 --- test/hush/Makefile | 1 + test/hush/if.c | 308 + 2 files c

[RFC PATCH v1 01/21] test: Add framework to test hush behavior.

2021-12-31 Thread Francis Laniel
This commit introduces 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 --- include/test/hush.h

[RFC PATCH v1 00/21] Modernize U-Boot shell

2021-12-31 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 old

Re: Boot Linux FIT image from SPL

2021-12-31 Thread Sven Schwermer
Hi Fabio, You could try performing the setting of ACTLR.SMP bit inside SPL. Currently, it is done only inside U-Boot proper. I have one more question about this: Is it save to just enable D/I caches (enable_caches) in SPL for all of mach-imx or will this have unforeseen side effects? In that

RE: [PATCH 2/3] efi: ECPT add EBBRv2.0 conformance profile

2021-12-31 Thread Jose Marinho
Hi Heinrich, > -Original Message- > From: Heinrich Schuchardt > Sent: 23 December 2021 18:32 > To: Jose Marinho ; u-boot@lists.denx.de > Cc: ilias.apalodi...@linaro.org; sughosh.g...@linaro.org; > takahiro.aka...@linaro.org; ag...@csgraf.de; nd > Subject: Re: [PATCH 2/3] efi: ECPT add EB

[PATCH 1/2] cmd: source: Use script from default config

2021-12-31 Thread Sven Schwermer
When sourcing FIT images, source the script node from the "bootscr" property within the default configuration. If board_fit_config_name_match is overridden, this will determine the selected configuration rather than the default one. The old behaviour is inconsistent with the FIT image specificatio

[PATCH 2/2] f_sdp: Retry sourcing default FIT script

2021-12-31 Thread Sven Schwermer
"script@1" is not a valid node name if the "reg" property is missing. The yocto build system embeds the boot script as an image that's pointed to by the "bootscr" property within the default configuration. That is what we use here as the fallback when sourcing the "script@1" fails. This implementat

Re: Boot Linux FIT image from SPL

2021-12-31 Thread Sven Schwermer
Hi Fabio, Glad you got it to work. It would be nice if you could submit a patch adding a document adapted for i.MX6ULL. I'll need to sort my notes and go through my changes. I'll try to submit relevant patches. You could try performing the setting of ACTLR.SMP bit inside SPL. Currently, it

Re: [PATCH 2/2] ARM: dts: imx: Synchronize iMX6QDL DHCOM PDK2 DTs with Linux 5.15.12

2021-12-31 Thread Fabio Estevam
On Thu, Dec 30, 2021 at 8:58 PM Marek Vasut wrote: > > Synchronize DH DHCOM DTs with Linux commit 25960cafa06e ("Linux 5.15.12"). > There is no functional change to the resulting DTs. The > imx6qdl-dhcom-pdk2.dtsi > had to be adjusted with additional headers, gpio.h, pwm.h, input.h, else > the DT

Re: [PATCH 1/2] ARM: dts: imx: Add labels to remaining anatop regulators

2021-12-31 Thread Fabio Estevam
On Thu, Dec 30, 2021 at 8:58 PM Marek Vasut wrote: > > Add labels to remaining anatop regulators, so their supplies can be > assigned in board DTs. This is similar to Linux kernel commit > 93385546ba369 ("ARM: dts: imx6qdl-sabresd: Assign corresponding power supply > for LDOs") > except it does n