RE: [PATCH] Revert "mmc: fsl_esdhc_imx: add wait_dat0() support"

2022-02-06 Thread Bough Chen
> -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: 2022年1月29日 1:37 > To: Jaehoon Chung ; u-boot@lists.denx.de > Cc: sba...@denx.de; Bough Chen ; Igor Opaniuk > ; Peng Fan > Subject: Re: [PATCH] Revert "mmc: fsl_esdhc_imx: add wait_dat0() support" > > On 1/28/22 08:30

Re: [PATCH v3] board: toradex: add verdin imx8m plus support

2022-02-06 Thread Marcel Ziswiler
On Fri, 2022-02-04 at 23:25 -0300, Fabio Estevam wrote: > Hi Marcel, > > On Fri, Feb 4, 2022 at 7:17 PM Marcel Ziswiler wrote: > > > +#if 0 > > +int board_phys_sdram_size(phys_size_t *bank1_size, phys_size_t *bank2_size) > > Please remove this unused function. Yes, this is left for after basic

Re: [PATCH] tools/mrvl_uart.sh: Remove script

2022-02-06 Thread Marcel Ziswiler
On Sun, 2022-02-06 at 10:03 +0100, Stefan Roese wrote: > On 2/5/22 01:54, Pali Rohár wrote: > > On Saturday 05 February 2022 01:40:23 Marcel Ziswiler wrote: > > > On Sat, 2022-02-05 at 01:25 +0100, Pali Rohár wrote: > > > > On Saturday 05 February 2022 01:01:28 Marcel Ziswiler wrote: > > > > > Adde

Re: [PATCH] tools/mrvl_uart.sh: Remove script

2022-02-06 Thread Marcel Ziswiler
On Sat, 2022-02-05 at 15:54 +0100, Pali Rohár wrote: > On Saturday 05 February 2022 03:07:00 Marcel Ziswiler wrote: > > On Sat, 2022-02-05 at 01:54 +0100, Pali Rohár wrote: > > > On Saturday 05 February 2022 01:40:23 Marcel Ziswiler wrote: > > > > On Sat, 2022-02-05 at 01:25 +0100, Pali Rohár wrote

RE: [EXT] Re: [PATCH v8 01/15] crypto/fsl: Add support for CAAM Job ring driver model

2022-02-06 Thread Gaurav Jain
Hello Marek > -Original Message- > From: Stefano Babic > Sent: Saturday, February 5, 2022 7:46 PM > To: Gaurav Jain ; u-boot@lists.denx.de > Cc: Stefano Babic ; Fabio Estevam ; > Peng Fan ; Simon Glass ; Priyanka > Jain ; Ye Li ; Horia Geanta > ; Ji Luo ; Franck Lenormand > ; Silvano Di N

Re: [PATCH v1 1/1] timer: npcm: Add driver for Nuvoton NPCM SoCs

2022-02-06 Thread Jesse Taube
On 2/7/22 01:02, Stanley Chu wrote: This driver enables a periodic timer on NPCM SoCs and implements the get_count timer ops. Signed-off-by: Stanley Chu --- drivers/timer/Kconfig | 6 ++ drivers/timer/Makefile | 1 + drivers/timer/npcm-timer.c | 111 +

Re: [PATCH v2 0/4] QEMU spike machine support for U-Boot

2022-02-06 Thread Rick Chen
HI Anup, > From: Anup Patel > Sent: Sunday, February 06, 2022 4:41 PM > To: Rick Jian-Zhi Chen(陳建志) > Cc: Bin Meng ; Atish Patra ; > Alistair Francis ; Anup Patel > ; U-Boot Mailing List > Subject: Re: [PATCH v2 0/4] QEMU spike machine support for U-Boot > > Hi Rick, > > On Thu, Jan 27, 2022

[PATCH v1 1/1] timer: npcm: Add driver for Nuvoton NPCM SoCs

2022-02-06 Thread Stanley Chu
This driver enables a periodic timer on NPCM SoCs and implements the get_count timer ops. Signed-off-by: Stanley Chu --- drivers/timer/Kconfig | 6 ++ drivers/timer/Makefile | 1 + drivers/timer/npcm-timer.c | 111 + 3 files changed, 118 insertion

Re: [PATCH v10 4/9] doc: update UEFI document for usage of mkeficapsule

2022-02-06 Thread AKASHI Takahiro
On Sat, Feb 05, 2022 at 10:14:06AM +0100, Heinrich Schuchardt wrote: > On 2/1/22 02:27, AKASHI Takahiro wrote: > > Now we can use mkeficapsule command instead of EDK-II's script > > to create a signed capsule file. So update the instruction for > > capsule authentication. > > > > Signed-off-by: AK

[PATCH v1 14/15] arm: dts: rockchip: sync rk3288-veyron DT from Linux

2022-02-06 Thread Johan Jonker
Sync rk3288-veyron DT from Linux version 5.17. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-veyron-analog-audio.dtsi | 99 +++ .../dts/rk3288-veyron-broadcom-bluetooth.dtsi | 22 + arch/arm/dts/rk3288-veyron-chromebook.dtsi| 115 ++-- arch/arm/dts/rk3288-veyron-edp.dtsi |

[PATCH v1 15/15] arm: dts: rockchip: rk3288-evb: fix memory reg value

2022-02-06 Thread Johan Jonker
rk3288.dtsi is updated and changed it's reg size, so fix memory reg value. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-evb.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3288-evb.dtsi b/arch/arm/dts/rk3288-evb.dtsi index 72da8847..7e9a6f45 10

[PATCH v1 10/15] arm: dts: rockchip: sync rk3288 DT boards from Linux

2022-02-06 Thread Johan Jonker
Sync rk3288 DT boards that have support both in Linux 5.17 as in U-boot. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-firefly.dts | 17 +- arch/arm/dts/rk3288-firefly.dtsi | 163 ++-- arch/arm/dts/rk3288-miqi.dts | 431 - arch/arm/dts/rk3288-phyco

[PATCH v1 11/15] arm: dts: rockchip: rename mipi_dsi label in rk3288-evb.dtsi

2022-02-06 Thread Johan Jonker
The rk3288 mipi_dsi node in sync with Linux rk3288.dtsi has a different label then in use by rk3288-evb.dtsi, so fix compile and rename label. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-evb.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3288-evb.

[PATCH v1 13/15] arm: dts: rockchip: move all rk3288-veyron u-boot related properties

2022-02-06 Thread Johan Jonker
In order to sync rk3288-veyron related DT files all u-boot properties have to move to rk3288-veyron-u-boot.dtsi Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-veyron-u-boot.dtsi | 42 ++ arch/arm/dts/rk3288-veyron.dtsi| 19 2 files changed, 42 in

[PATCH v1 07/15] arm: dts: rockchip: sync rk3288.dtsi from Linux

2022-02-06 Thread Johan Jonker
Sync rk3288.dtsi from Linux version 5.17 and move U-boot specific stuff to rk3288-u-boot.dtsi Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-thermal.dtsi | 87 -- arch/arm/dts/rk3288-u-boot.dtsi | 79 +- arch/arm/dts/rk3288.dtsi | 1521 +++--- 3 files ch

[PATCH v1 12/15] arm: dts: rockchip: remove hdmi_audio node from rk3288-veyron.dtsi

2022-02-06 Thread Johan Jonker
The hdmi_audio node doesn't exists in rk3288.dtsi in sync with Linux. Fix compile by removal of the hdmi_audio node. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-veyron.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/rk3288-veyron.dtsi b/arch/arm/dts/rk3288-veyron

[PATCH v1 08/15] arm: dts: rockchip: move all rk3288 u-boot specific properties in separate dtsi files

2022-02-06 Thread Johan Jonker
In order to sync rk3288.dtsi from Linux it needed to move all u-boot specific properties in separate dtsi files. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-evb-u-boot.dtsi | 11 + arch/arm/dts/rk3288-evb.dts | 11 - arch/arm/dts/rk3288-firefly-u-boot.

[PATCH v1 09/15] rockchip: fix boot_devices constants

2022-02-06 Thread Johan Jonker
The DT node name pattern in mmc-controller.yaml for mmc is "^mmc(@.*)?$". The Rockchip mmc nodes have been synced with Linux, so update the boot_devices constants as well. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/rk3188/rk3188.c | 4 ++-- arch/arm/mach-rockchip/rk322x/rk322x.c | 4

[PATCH v1 03/15] arm: dts: rockchip: sync rk322x.dtsi from Linux

2022-02-06 Thread Johan Jonker
Sync rk322x.dtsi from Linux version 5.17 and add a rk322x-u-boot.dtsi file for U-boot specific stuff. Signed-off-by: Johan Jonker --- arch/arm/dts/rk322x-u-boot.dtsi | 54 ++ arch/arm/dts/rk322x.dtsi| 879 +--- 2 files changed, 746 insertions(+), 187 deletion

[PATCH v1 06/15] rockchip: rk3288-cru: sync the clock dt-binding header from Linux

2022-02-06 Thread Johan Jonker
In order to update the DT for rk3288 sync the clock dt-binding header. This is the state as of v5.17 in Linux. Keep SCLK_MAC_PLL in use for rk3288 clock driver. Signed-off-by: Johan Jonker --- include/dt-bindings/clock/rk3288-cru.h | 13 - 1 file changed, 12 insertions(+), 1 deletion

[PATCH v1 05/15] rockchip: rk3288-power: sync power domain dt-binding header from Linux

2022-02-06 Thread Johan Jonker
In order to update the DT for rk3288 sync the power domain dt-binding header. This is the state as of v5.17 in Linux. Change location to be more in line with other SoCs. Signed-off-by: Johan Jonker --- include/dt-bindings/power-domain/rk3288.h | 11 include/dt-bindings/power/rk3288-powe

[PATCH v1 04/15] arm: dts: rockchip: sync rk3229-evb.dts from Linux

2022-02-06 Thread Johan Jonker
Sync rk3229-evb.dts from Linux version 5.17 and add a rk3229-evb-u-boot.dtsi file for U-boot specific stuff. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3229-evb-u-boot.dtsi | 28 arch/arm/dts/rk3229-evb.dts | 223 arch/arm/dts/rk3229.dtsi

[PATCH v1 02/15] rockchip: rk3228-cru: sync the clock dt-binding header from Linux

2022-02-06 Thread Johan Jonker
In order to update the DT for rk3228 sync the clock dt-binding header. This is the state as of v5.17 in Linux. Signed-off-by: Johan Jonker --- include/dt-bindings/clock/rk3228-cru.h | 54 +- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/include/dt-binding

[PATCH v1 01/15] rockchip: rk3228-power: sync power domain dt-binding header from Linux

2022-02-06 Thread Johan Jonker
In order to update the DT for rk3228 sync the power domain dt-binding header. This is the state as of v5.17 in Linux. Signed-off-by: Johan Jonker --- include/dt-bindings/power/rk3228-power.h | 21 + 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/powe

Re: [PATCH v10 6/9] tools: mkeficapsule: allow for specifying GUID explicitly

2022-02-06 Thread AKASHI Takahiro
On Sat, Feb 05, 2022 at 08:32:37PM +0100, Heinrich Schuchardt wrote: > On 2/1/22 02:27, AKASHI Takahiro wrote: > > The existing options, "--fit" and "--raw," are only used to put a proper > > GUID in a capsule header, where GUID identifies a particular FMP (Firmware > > Management Protocol) driver

RE: [PATCH] image: Control FIT signature verification at runtime

2022-02-06 Thread ChiaWei Wang
Hi Andrew, I am curious about the usage scenario. Is the runtime control required for production release? As this control acts like a backdoor to bypass the chain-of-trust. If it is for debugging/development purposes, should we encourage the use of unsigned images under RD environments? Beyond th

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-06 Thread Adam Ford
On Sun, Feb 6, 2022 at 3:59 PM Marek Vasut wrote: > > On 2/3/22 22:20, Adam Ford wrote: > > The imx8mm and imx8mn appear compatible with imx7d-usb > > flags in the OTG driver. If the dr_mode is defined as > > host or peripheral, the device appears to operate correctly, > > however the auto host/p

[PATCH 1/1] arm: apple: Switch to fully dynamic mem layout

2022-02-06 Thread Janne Grunau
Support for Apple M1 Pro and Max will allow using a single binary for all M1 SoCs. The M1 Pro/Max have a different memory layout. The RAM start address is 0x100__ instead of 0x8__. Replace the hardcoded memory layout with dynamic initialized environment variables in board_late_init(

Re: [PATCH 2/2] mkeficapsule: Support "--flags reset" option

2022-02-06 Thread Masami Hiramatsu
Hi Heinrich, Thanks for reviewing. BTW, I actually don't need this feature anymore. I and Takahiro had misunderstood what the initiate-reset flag meant. But maybe this flag support itself will be good to have. 2022年2月5日(土) 15:47 Heinrich Schuchardt : > > On 1/25/22 12:31, Masami Hiramatsu wrote:

Marvell Avanta UART booting

2022-02-06 Thread Tony Dinh
Hi Pali, I've also tried the latest kwboot with the Marvell Avanta SoC. AFAICT, it works fine. Board: ActionTec MI424WR-I SoC: 88F6560 A0 Thanks, Tony

Re: [PATCH 1/1] arm: apple: Switch to fully dynamic mem layout

2022-02-06 Thread Tom Rini
On Sun, Feb 06, 2022 at 10:07:04PM +0100, Janne Grunau wrote: > Support for Apple M1 Pro and Max will allow using a single binary for > all M1 SoCs. The M1 Pro/Max have a different memory layout. The RAM > start address is 0x100__ instead of 0x8__. > Replace the hardcoded memory la

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-06 Thread Marek Vasut
On 2/3/22 22:20, Adam Ford wrote: The imx8mm and imx8mn appear compatible with imx7d-usb flags in the OTG driver. If the dr_mode is defined as host or peripheral, the device appears to operate correctly, however the auto host/peripheral detection results in an error. The solution isn't just add

[PATCH 5/5] binman: Update image positions of FIT subentries

2022-02-06 Thread Alper Nebi Yasak
Binman keeps track of positions of each entry in the final image, but currently this data is wrong for things included in FIT entries, especially since a previous patch makes FIT a subclass of Section and inherit its implementation. There are three ways to put data into a FIT image. It can be dire

[PATCH 4/5] binman: Convert FIT entry type to a subclass of Section entry type

2022-02-06 Thread Alper Nebi Yasak
The binman FIT entry type shares some code with the Section entry type. This shared code is bound to grow, since FIT entries are conceptually a variation of Section entries. Make FIT entry type a subclass of Section entry type, simplifying it a bit and providing us the features that Section implem

[PATCH 3/5] binman: Check missing bintools of Section subclasses

2022-02-06 Thread Alper Nebi Yasak
Binman can check for missing binary tools and prints warnings if anything required for an image is missing. The implementation of this for the Section entry only checks the subentries, presumably because Section does not use any binary tools itself. However, this means the check is also skipped for

[PATCH 2/5] binman: Register and check bintools from FIT subentries

2022-02-06 Thread Alper Nebi Yasak
Binman keeps track of binary tools each entry wants to use. The implementation of this for the FIT entry only adds "mkimage", but not the tools that would be used by its subentries. Register the binary tools that FIT subentries will use in addition to the one FIT itself uses, and check their exist

[PATCH 1/5] binman: Fix subentry expansion for FIT entry type

2022-02-06 Thread Alper Nebi Yasak
Binman tries to expand some entries into parts that make it up, e.g. 'u-boot' into a 'u-boot-expanded' section that contains 'u-boot-nodtb' and 'u-boot-dtb'. Entries with child entries must call ExpandEntries() on them to build a correct image, as it's possible that unexpanded child entries have no

[PATCH 0/5] binman: Improvements to FIT entry type

2022-02-06 Thread Alper Nebi Yasak
I've managed to build images like in doc/chromium/chainload.rst wtih binman, but ran into an issue with entry expansion in FIT and worked on it a bit. I also added SetImagePos() because that documentation asks for precise placement of u-boot.bin inside the FIT and I felt like doing it as an easier

Re: [RFC PATCH v2 19/21] test: hush: Fix if tests for hush 2021

2022-02-06 Thread Marek Behún
On Sun, 6 Feb 2022 19:37:15 +0100 Francis Laniel wrote: > 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 > Reviewed-by: Simon Glass > --- > test/hush/if.c | 4

Re: [RFC PATCH v2 21/21] test: hush: Fix loop tests for hush 2021

2022-02-06 Thread Marek Behún
On Sun, 6 Feb 2022 19:37:17 +0100 Francis Laniel wrote: > Modifies return code got from while loop as hush 2021 always returns 0 from > while loop. > > Signed-off-by: Francis Laniel > Reviewed-by: Simon Glass > --- > test/hush/loop.c | 20 > 1 file changed, 20 insertions

Re: [RFC PATCH v2 00/21] Modernize U-Boot shell

2022-02-06 Thread Heinrich Schuchardt
On 2/6/22 19:36, Francis Laniel wrote: 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 shel

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

2022-02-06 Thread Francis Laniel
Modifies return code got from while loop as hush 2021 always returns 0 from while loop. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/loop.c | 20 1 file changed, 20 insertions(+) diff --git a/test/hush/loop.c b/test/hush/loop.c index 519c78ef7e..56a

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

2022-02-06 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 b/co

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

2022-02-06 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 Reviewed-by: Simon Glass --- test/hush/if.c | 43 +++ 1 file changed, 43 inserti

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

2022-02-06 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 b/

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

2022-02-06 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 v2 16/21] test: hush: Fix variable expansion tests for hush 2021

2022-02-06 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 Reviewed-by: Simon Glass --- test/hush/dollar.c | 51 +

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

2022-02-06 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 Reviewed-by: Simon Glass --- test/hush/list.c | 48 +++

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

2022-02-06 Thread Francis Laniel
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 Reviewed-by: Simon Glass --- common/cli.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --gi

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

2022-02-06 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 v2 12/21] cli: hush_2021: Enable variables expansion for hush 2021

2022-02-06 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 v2 11/21] cli: Enables using hush 2021 parser as command line parser

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

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

2022-02-06 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 Reviewed-by: Simon Glass --- cmd/Kconfig | 8 common/Makefil

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

2022-02-06 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 mom

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

2022-02-06 Thread Francis Laniel
For the moment, the choice 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 Reviewed-by: Simon Glass --- cmd/Kconfig | 14 ++ comm

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

2022-02-06 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 test/hush/

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

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

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

2022-02-06 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 di

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

2022-02-06 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 v2 03/21] test/py: hush_if_test: Remove the test file

2022-02-06 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 mod

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

2022-02-06 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 --- include

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

2022-02-06 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: [RFC PATCH v1 17/21] cli: hush_2021: Enable using \< and \> as string compare operators.

2022-02-06 Thread Francis Laniel
Le mercredi 12 janvier 2022, 21:03:40 CET Simon Glass a écrit : > Hi Francis, > > On Fri, 31 Dec 2021 at 09:14, Francis Laniel > > wrote: > > 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-Bo

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

2022-02-06 Thread Francis Laniel
Le mercredi 12 janvier 2022, 21:03:37 CET Simon Glass a écrit : > Hi Francis, > > On Fri, 31 Dec 2021 at 09:14, Francis Laniel > > wrote: > > 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

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

2022-02-06 Thread Francis Laniel
Hi. First, sorry for the delayed answer and thank you a lot for all your reviews! Le samedi 8 janvier 2022, 15:53:49 CET Simon Glass a écrit : > Hi Francis, > > On Fri, 31 Dec 2021 at 09:14, Francis Laniel > > wrote: > > This commit ensures shell variables are replaced by their values. > > >

Re: [PATCH 2/7] imx8m: Add FlexSPI Configuration Block

2022-02-06 Thread Adam Ford
On Sat, Feb 5, 2022 at 10:23 AM Adam Ford wrote: > > The FlexSPI Configuration Block is a binary blob which contains > parameters for specific flash devices. This is the blob from > the stock NXP Yocto Distribution, but individual users could > place their own blob in their respective board direc

Re: Pull request for efi-2022-04-rc2-2

2022-02-06 Thread Tom Rini
On Sat, Feb 05, 2022 at 10:06:36PM +0100, Heinrich Schuchardt wrote: > Dear Tom, > > I removed the problematic mkeficapsule series now and added a patch to > get rid of the malloc.h usage. > > The following changes since commit 3aaabfe9ff4bbcd11096513b1b28d1fb0a40800f: > > Merge branch 'maste

Re: [PATCH] apple: Fix debug uart clock rate

2022-02-06 Thread Mark Kettenis
> From: Sean Anderson > Date: Sat, 5 Feb 2022 23:04:07 -0500 > > On 2/5/22 6:14 PM, Mark Kettenis wrote: > > The clock rate for the serial console on Apple M1 systems is 24 MHz > > instead of 240 Hz. > > nit: kHz? Ah yes. Brain slightly misfired when writing that commit message. Thanks! I've

[PATCH v2] apple: Fix debug uart clock rate

2022-02-06 Thread Mark Kettenis
The clock rate for the serial console on Apple M1 systems is 24 MHz instead of 240 kHz. Signed-off-by: Mark Kettenis --- ChangeLog: v2: - Fix typo in comment configs/apple_m1_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/apple_m1_defconfig b/configs/ap

Re: [PATCH v2 3/4] riscv: qemu: Implement is_flash_available() for MTD NOR

2022-02-06 Thread Heinrich Schuchardt
On 1/27/22 07:11, Anup Patel wrote: Currently, if MTD NOR is enabled then U-Boot tries to issue flash commands even when CFI flash DT node is not present. This causes access fault on RISC-V emulators or ISS which do not emulate CFI flash. To handle this issue, we implement is_flash_available() fo

Re: [PATCH] tools/mrvl_uart.sh: Remove script

2022-02-06 Thread Stefan Roese
On 2/5/22 01:54, Pali Rohár wrote: On Saturday 05 February 2022 01:40:23 Marcel Ziswiler wrote: On Sat, 2022-02-05 at 01:25 +0100, Pali Rohár wrote: On Saturday 05 February 2022 01:01:28 Marcel Ziswiler wrote: Addendum. On Sat, 2022-02-05 at 00:43 +0100, Marcel Ziswiler wrote: [snip] Ko

Re: [PATCH v2 0/4] QEMU spike machine support for U-Boot

2022-02-06 Thread Anup Patel
Hi Rick, On Thu, Jan 27, 2022 at 11:41 AM Anup Patel wrote: > > We can use same U-Boot binary compiled using qemu-riscv64_smode_defconfig > on QEMU virt machine and QEMU spike machine. To achieve this, we need HTIF > console support for U-Boot QEMU RISC-V board hence this series. > > To test this