Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 07:09:45PM -0600, Adam Ford wrote: > On Fri, Feb 11, 2022 at 11:13 AM Tom Rini wrote: > > > > On Fri, Feb 11, 2022 at 11:10:43AM -0600, Adam Ford wrote: > > > On Fri, Feb 11, 2022 at 10:44 AM Tom Rini wrote: > > > > > > > > On Fri, Feb 11, 2022 at 10:39:30AM -0600, Adam

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Adam Ford
On Fri, Feb 11, 2022 at 11:13 AM Tom Rini wrote: > > On Fri, Feb 11, 2022 at 11:10:43AM -0600, Adam Ford wrote: > > On Fri, Feb 11, 2022 at 10:44 AM Tom Rini wrote: > > > > > > On Fri, Feb 11, 2022 at 10:39:30AM -0600, Adam Ford wrote: > > > > On Fri, Feb 11, 2022 at 10:12 AM Tom Rini wrote: >

Re: [PATCH v2 1/3] mach-sunxi: Add boot device detection for SUNIV/F1C100s

2022-02-11 Thread Jesse Taube
On 2/11/22 19:32, Jesse Taube wrote: In contrast to other Allwinner SoCs the F1C100s BROM does not store a boot source indicator in the eGON header in SRAM. This leaves the SPL guessing where we were exactly booted from, and for instance trying the SD card first, even though we booted from

[PATCH v2 3/3] mach-sunxi: Enable SPI boot for SUNIV and licheepi nano

2022-02-11 Thread Jesse Taube
Enable SPI boot in SPL on SUNIV architecture and use it in the licheepi nano that uses the F1C100s. Signed-off-by: Jesse Taube Reviewed-by: Andre Przywara --- V1 -> V2: * Change commit description --- arch/arm/mach-sunxi/Kconfig | 2 +- configs/licheepi_nano_defconfig | 1 + 2 files

[PATCH v2 2/3] mach-sunxi: Add SPL SPI boot for SUNIV

2022-02-11 Thread Jesse Taube
The SUNIV SoCs come with a sun6i-style SPI controller at the base address of sun4i SPI controller. The module clock of the SPI controller is missing which leaves us running directly from the AHB clock, which is set to 200MHz. Signed-off-by: Icenowy Zheng [Icenowy: Original implementation]

[PATCH v2 1/3] mach-sunxi: Add boot device detection for SUNIV/F1C100s

2022-02-11 Thread Jesse Taube
In contrast to other Allwinner SoCs the F1C100s BROM does not store a boot source indicator in the eGON header in SRAM. This leaves the SPL guessing where we were exactly booted from, and for instance trying the SD card first, even though we booted from SPI flash. By inspecting the BROM code and

[PATCH v2 0/3] Add SPI boot to SPL on SUNIV/F1C100s

2022-02-11 Thread Jesse Taube
This patch adds the ability to detect the BROM's boot source, as well as the ability to boot from SPI. Jesse Taube (3): mach-sunxi: Add boot device detection for SUNIV/F1C100s mach-sunxi: Add SPL SPI boot for SUNIV mach-sunxi: Enable SPI boot for SUNIV and licheepi nano

Re: [PATCH] arm: apple: Disable debug UART

2022-02-11 Thread Heinrich Schuchardt
On 2/11/22 22:01, Simon Glass wrote: Hi Mark, On Fri, 11 Feb 2022 at 13:50, Mark Kettenis wrote: From: Simon Glass Date: Fri, 11 Feb 2022 13:29:15 -0700 Hi Mark, On Fri, 11 Feb 2022 at 13:00, Mark Kettenis wrote: The address of the debug UART varies differs between the M1 and the M1

Re: [PATCH] arm: apple: Disable debug UART

2022-02-11 Thread Simon Glass
Hi Mark, On Fri, 11 Feb 2022 at 13:50, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 11 Feb 2022 13:29:15 -0700 > > > > Hi Mark, > > > > On Fri, 11 Feb 2022 at 13:00, Mark Kettenis wrote: > > > > > > The address of the debug UART varies differs between the M1 and > > > the M1

Re: [PATCH] arm: apple: Disable debug UART

2022-02-11 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 11 Feb 2022 13:29:15 -0700 > > Hi Mark, > > On Fri, 11 Feb 2022 at 13:00, Mark Kettenis wrote: > > > > The address of the debug UART varies differs between the M1 and > > the M1 Pro/Max SoCs. So we have to disable it to make a single > > U-Boot binary that

Re: [PATCH] arm: apple: Disable debug UART

2022-02-11 Thread Simon Glass
Hi Mark, On Fri, 11 Feb 2022 at 13:00, Mark Kettenis wrote: > > The address of the debug UART varies differs between the M1 and > the M1 Pro/Max SoCs. So we have to disable it to make a single > U-Boot binary that works on all SoC generations. Leave the > settings for the base address and

Re: [PATCH v2 1/1] cmd: add serial console support for the cls command

2022-02-11 Thread Simon Glass
On Fri, 11 Feb 2022 at 10:11, Heinrich Schuchardt wrote: > > Currently the cls command does not support the serial console > > The screen can be cleared in the video uclass, the colored frame buffer > console, and the serial console by sending the same escape sequence. > This reduces the cls

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2022-02-11 Thread Simon Glass
()Hi Thomas, On Thu, 10 Feb 2022 at 18:43, Thomas Watson wrote: > > > On Feb 10, 2022, at 5:04 PM, Marek Vasut wrote: > > On 2/11/22 00:02, Simon Glass wrote: > > Hi Marek, > On Thu, 10 Feb 2022 at 14:42, Marek Vasut wrote: > > > On 2/10/22 22:13, Thomas Watson wrote: > > Using the XHCI

[PATCH 9/9] Azure/GitLab CI: Add the pylint checker

2022-02-11 Thread Simon Glass
Add a check that new Python code does not regress the pylint score for any module. Signed-off-by: Simon Glass --- .azure-pipelines.yml | 22 ++ .gitlab-ci.yml | 16 2 files changed, 38 insertions(+) diff --git a/.azure-pipelines.yml

[PATCH 6/9] test: Correct pylint errors

2022-02-11 Thread Simon Glass
Fix pylint errors in all test. This requires adding a get_spawn() method to the ConsoleBase base, so that its subclass is happy. Signed-off-by: Simon Glass --- test/py/tests/test_android/test_avb.py | 2 +- test/py/tests/test_bind.py | 8 test/py/tests/vboot_evil.py

[PATCH 4/9] binman: Correct pylint errors

2022-02-11 Thread Simon Glass
Fix pylint errors that can be fixed and mask those that seem to be incorrect. A complication with binman is that it tries to avoid importing libfdt (or anything that imports it) unless needed, so that things like help still work if it is missing. Note that two tests are duplicated in binman and

[PATCH 8/9] buildman: Update default config to build for sandbox

2022-02-11 Thread Simon Glass
At present the default .buildman file written by buildman does not specify a default toolchain. Add an 'other' line so this works correctly and sandbox builds run as expected. Signed-off-by: Simon Glass --- tools/buildman/bsettings.py | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 7/9] Makefile: Add a way to check for pylint errors

2022-02-11 Thread Simon Glass
Add a new 'pylint_err' target which only reports errors, not warnings. Signed-off-by: Simon Glass --- Makefile | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1ee7089c52..97e597ed43 100644 --- a/Makefile +++ b/Makefile @@ -521,7 +521,8

[PATCH 5/9] moveconfig: Correct pylint errors

2022-02-11 Thread Simon Glass
Fix two pylint errors in this file. Note ACTION_SPL_NOT_EXIST is not defined so the dead code can be removed. Signed-off-by: Simon Glass --- tools/moveconfig.py | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index

[PATCH 1/9] patman: Correct pylint errors

2022-02-11 Thread Simon Glass
Fix pylint errors that can be fixed and mask those that seem to be incorrect. Signed-off-by: Simon Glass --- doc/develop/python_cq.rst | 11 +++ tools/concurrencytest/__init__.py | 0 tools/patman/checkpatch.py| 4 +++- tools/patman/command.py | 8 +---

[PATCH 3/9] dtoc: Correct pylint errors

2022-02-11 Thread Simon Glass
Fix pylint errors in this directory. Signed-off-by: Simon Glass --- tools/dtoc/test_dtoc.py | 6 +++--- tools/dtoc/test_fdt.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/dtoc/test_dtoc.py b/tools/dtoc/test_dtoc.py index ea88954923..c81bcc9c32 100755 ---

[PATCH 2/9] buildman: Correct pylint errors

2022-02-11 Thread Simon Glass
Fix pylint errors that can be fixed and mask those that seem to be incorrect. Signed-off-by: Simon Glass --- tools/buildman/builder.py| 2 +- tools/buildman/cfgutil.py| 6 +++--- tools/buildman/func_test.py | 6 -- tools/buildman/kconfiglib.py | 1 + tools/buildman/main.py |

[PATCH 0/9] Enable the pylint checker in CI

2022-02-11 Thread Simon Glass
This series adds a new errors-only pylint check and adds it to the CI systems. It also fixes the current errors in the U-Boot Python code, disabling errors where it seems necessary. A small patch to buildman allows it to build sandbox without any changes to the default config file. Simon Glass

[PATCH] arm: apple: Disable debug UART

2022-02-11 Thread Mark Kettenis
The address of the debug UART varies differs between the M1 and the M1 Pro/Max SoCs. So we have to disable it to make a single U-Boot binary that works on all SoC generations. Leave the settings for the base address and clock rate of the M1 in place to make it easier to re-enable the debug UART

Pull request for efi-2022-04-rc2-4

2022-02-11 Thread Heinrich Schuchardt
Dear Tom, thanks for catching the build warnings with clang. The changes relative to Pull request for efi-2022-04-rc2-3 are described in https://lists.denx.de/pipermail/u-boot/2022-February/475051.html The following changes since commit fe203a05fb663fa9bc42a9ef9ae51a6ed01a4a90: Merge branch

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 09:47:52PM +0200, Andy Shevchenko wrote: > On Fri, Feb 11, 2022 at 12:31:46PM -0700, Simon Glass wrote: > > On Fri, 11 Feb 2022 at 12:29, Andy Shevchenko > > wrote: > > > On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: ... > > > To the topic, any suggestions on how

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 09:47:52PM +0200, Andy Shevchenko wrote: > On Fri, Feb 11, 2022 at 12:31:46PM -0700, Simon Glass wrote: > > On Fri, 11 Feb 2022 at 12:29, Andy Shevchenko > > wrote: > > > On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: > > > > On Fri, 11 Feb 2022 at 11:28, Andy

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 12:31:46PM -0700, Simon Glass wrote: > On Fri, 11 Feb 2022 at 12:29, Andy Shevchenko > wrote: > > On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: > > > On Fri, 11 Feb 2022 at 11:28, Andy Shevchenko > > > wrote: > > > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom

Re: [PATCH] board: gateworks: venice: config file cleanups

2022-02-11 Thread Fabio Estevam
On Fri, Feb 11, 2022 at 3:52 PM Tim Harvey wrote: > > Clean up config file: > - remove unnecessary IMX_FEC_BASE > - remove unnecessary comment > - remove ipaddr/serverip from env > > Signed-off-by: Tim Harvey Reviewed-by: Fabio Estevam

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Simon Glass
Hi Andy, On Fri, 11 Feb 2022 at 12:29, Andy Shevchenko wrote: > > On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: > > On Fri, 11 Feb 2022 at 11:28, Andy Shevchenko > > wrote: > > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > > ... > > > FWIW here is my tboot flash script for

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: > On Fri, 11 Feb 2022 at 11:28, Andy Shevchenko > wrote: > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: ... > FWIW here is my tboot flash script for Edison: This is rather unbriking script, DFU (luckily) works > def

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Simon Glass
Hi Andy, On Fri, 11 Feb 2022 at 11:28, Andy Shevchenko wrote: > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > > Hey all, > > > > It's release day and so here's v2022.04-rc1. While there's much in here > > that needed to come in, there's a few big things outstanding, including >

Re: [PATCH v11 5/9] test/py: efi_capsule: add image authentication test

2022-02-11 Thread Heinrich Schuchardt
On 2/9/22 11:10, AKASHI Takahiro wrote: Add a couple of test cases against capsule image authentication for capsule-on-disk, where only a signed capsule file with the verified signature will be applied to the system. Due to the difficulty of embedding a public key (esl file) in U-Boot binary

Re: [PATCH v11 2/9] tools: mkeficapsule: add firmware image signing

2022-02-11 Thread Heinrich Schuchardt
On 2/9/22 11:10, AKASHI Takahiro wrote: With this enhancement, mkeficapsule will be able to sign a capsule file when it is created. A signature added will be used later in the verification at FMP's SetImage() call. To do that, we need specify additional command parameters: -monotonic-cout :

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 8:46 PM Andy Shevchenko wrote: > > On Fri, Feb 11, 2022 at 8:31 PM Andy Shevchenko > wrote: > > > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > > > Hey all, > > > > > > It's release day and so here's v2022.04-rc1. While there's much in here > > > that

[PATCH] board: gateworks: venice: config file cleanups

2022-02-11 Thread Tim Harvey
Clean up config file: - remove unnecessary IMX_FEC_BASE - remove unnecessary comment - remove ipaddr/serverip from env Signed-off-by: Tim Harvey --- include/configs/imx8mm_venice.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/imx8mm_venice.h

[PATCH v4] board: gateworks: venice: add imx8mn-gw7902 support

2022-02-11 Thread Tim Harvey
The GW7902 is based on the i.MX 8M Mini / Nano SoC featuring: - LPDDR4 DRAM - eMMC FLASH - Gateworks System Controller - LTE CAT M1 modem - USB 2.0 HUB - M.2 Socket with USB2.0, PCIe, and dual-SIM - IMX8M FEC - PCIe based GbE - RS232/RS485/RS422 serial transceiver - GPS - CAN bus -

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 8:31 PM Andy Shevchenko wrote: > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > > Hey all, > > > > It's release day and so here's v2022.04-rc1. While there's much in here > > that needed to come in, there's a few big things outstanding, including > > but

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > Hey all, > > It's release day and so here's v2022.04-rc1. While there's much in here > that needed to come in, there's a few big things outstanding, including > but not limited to i.MX and layerscape syncs and further sunxi changes. >

[PATCH 3/5] nand: brcmnand: add bcm6753 support

2022-02-11 Thread Philippe Reynes
This adds the nand support for chipset bcm6753. Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/Kconfig | 6 + drivers/mtd/nand/raw/brcmnand/Makefile | 1 + drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c | 124 +++ 3 files changed, 131

[PATCH 4/5] watchdog: bcm6345: allow to use this driver on arm bcm6753

2022-02-11 Thread Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm6753 too. Signed-off-by: Philippe Reynes --- drivers/watchdog/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index cabac29053..1f3ca99f9a

[PATCH 2/5] gpio: bcm6345: allow to use this driver on arm bcm6753

2022-02-11 Thread Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm6753 too. Signed-off-by: Philippe Reynes --- drivers/gpio/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 8d0e47c67d..1c963c2c53 100644 ---

[PATCH 5/5] bcm96753ref: add initial support

2022-02-11 Thread Philippe Reynes
This add the initial support of the broadcom reference board bcm96753ref with a bcm6753 SoC. This board has 1 GB of RAM, 256 MB of flash (nand), 2 USB port, 1 UART, and 4 ethernet ports. Signed-off-by: Philippe Reynes --- arch/arm/Kconfig | 1 + arch/arm/dts/Makefile

[PATCH 1/5] bcm6753: add initial support

2022-02-11 Thread Philippe Reynes
This add the initial support of the broadcom bcm6753 SoC family. Signed-off-by: Philippe Reynes --- arch/arm/Kconfig | 7 ++ arch/arm/dts/bcm6753.dtsi | 201 ++ 2 files changed, 208 insertions(+) create mode 100644 arch/arm/dts/bcm6753.dtsi diff

Pull request for efi-2022-04-rc2-3

2022-02-11 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit fe203a05fb663fa9bc42a9ef9ae51a6ed01a4a90: Merge branch '2022-02-10-platform-updates' (2022-02-10 17:38:04 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-04-rc2-3 for you to

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 11:10:43AM -0600, Adam Ford wrote: > On Fri, Feb 11, 2022 at 10:44 AM Tom Rini wrote: > > > > On Fri, Feb 11, 2022 at 10:39:30AM -0600, Adam Ford wrote: > > > On Fri, Feb 11, 2022 at 10:12 AM Tom Rini wrote: > > > > > > > > On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam

[PATCH v2 1/1] cmd: add serial console support for the cls command

2022-02-11 Thread Heinrich Schuchardt
Currently the cls command does not support the serial console The screen can be cleared in the video uclass, the colored frame buffer console, and the serial console by sending the same escape sequence. This reduces the cls command to a single printf() statement on most boards. Signed-off-by:

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Adam Ford
On Fri, Feb 11, 2022 at 10:44 AM Tom Rini wrote: > > On Fri, Feb 11, 2022 at 10:39:30AM -0600, Adam Ford wrote: > > On Fri, Feb 11, 2022 at 10:12 AM Tom Rini wrote: > > > > > > On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam Ford wrote: > > > > On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > >

Re: [PATCH v2] mkimage: Improve documentation of algo-name parameter

2022-02-11 Thread Tom Rini
On Sat, Feb 05, 2022 at 01:19:36PM +0100, Jan Kiszka wrote: > From: Jan Kiszka > > Addresses the feedback provided on 5902a397d029 which raced with the > merge. > > Signed-off-by: Jan Kiszka > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [PATCH] Replace echo -n's used in environment processing with touch

2022-02-11 Thread Tom Rini
On Sat, Feb 05, 2022 at 10:25:16AM +, qthedev wrote: > echo -n does not give the intended effect when invoked in macOS through > /bin/sh, which is the shell make uses by default, see > "https://stackoverflow.com/questions/11675070/makefile-echo-n-not-working; > for a detailed explanation.

Re: [PATCH 1/1] cmd: wrong printf() code in do_test_stackprot_fail()

2022-02-11 Thread Tom Rini
On Fri, Feb 04, 2022 at 10:50:04AM +0100, Heinrich Schuchardt wrote: > strlen() returns size_t. So we should use %zu to print it. > This avoids incorrect output on 32bit systems. > > Fixes: 2fc62f299174 ("stackprot: Make our test a bit more complex") > Signed-off-by: Heinrich Schuchardt

Re: [PATCH] malloc_simple: Remove usage of unsupported %zx format string

2022-02-11 Thread Tom Rini
On Thu, Feb 03, 2022 at 07:51:37PM +0100, Pali Rohár wrote: > Replace %zx by %lx and cast size_t to ulong. > > U-Boot currently prints garbage debug output: > size=x, ptr=18, limit=18: 4002a000 > > With this change it prints correct debug data: > size=18, ptr=18, limit=2000: 4002a000 > >

Re: [PATCH] common: fdt_support: add support for "partitions" subnode to fdt_fixup_mtdparts()

2022-02-11 Thread Tom Rini
On Thu, Feb 03, 2022 at 03:14:47PM +0100, Matthias Schiffer wrote: > Listing MTD partitions directly in the flash mode has been deprecated > for a while for kernel Device Trees. Look for a node "partitions" in the > found flash nodes and use it instead of the flash node itself for the > partition

Re: [PATCH] button: adc: set state to pressed when the voltage is closest to nominal

2022-02-11 Thread Tom Rini
On Wed, Feb 02, 2022 at 01:04:04PM -0500, Peter Cai wrote: > In the Linux implementation of adc-keys > (drivers/input/keyboard/adc-keys.c), `press-threshold-microvolt` is not > really interpreted as a threshold, but rather as the "nominal voltage" > of the button. When the voltage read from the

Re: [PATCH] [v4] cmd: pxe_utils: sysboot: add kaslr-seed generation support

2022-02-11 Thread Tom Rini
On Tue, Feb 01, 2022 at 08:33:37AM +0800, Zhang Ning wrote: > this will add kaslrseed keyword to sysboot lable, > when it set, it will request to genarate random number > from hwrng as kaslr-seed. > > with this patch exlinux.conf label looks like > > label l0 > menu testing >

Re: [PATCH v2 5/5] cmd/dfu: Enable 'dfu list' command without DFU_OVER_USB

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:54AM +0900, Masami Hiramatsu wrote: > Since dfu is not only used for USB, and some platform only > supports DFU_OVER_TFTP or EFI capsule update, dfu_alt_info > is defined on such platforms too. > > For such platform, 'dfu list' command is useful to check > how the

Re: [PATCH v2 4/5] doc: usage: DFU: Fix dfu_alt_info document

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:46AM +0900, Masami Hiramatsu wrote: > Fix some typo and wrong information about dfu_alt_info. > - Add the parameter format, decimal only or hexadecimal. > - Use same parameter name for the same kind of parameters. > (e.g. dev -> dev_id) > > Signed-off-by: Masami

Re: [PATCH v2 3/5] DFU: Check the number of arguments and argument string strictly

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:37AM +0900, Masami Hiramatsu wrote: > When parsing the dfu_alt_info, check the number of arguments > and argument string strictly. If there is any garbage data > (which is not able to be parsed correctly) in dfu_alt_info, > that means something wrong and user may

Re: [PATCH v2 2/5] DFU: Accept redundant spaces and tabs in dfu_alt_info

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:29AM +0900, Masami Hiramatsu wrote: > If dfu_alt_info has repeated spaces or tab (for indentation or > readability), the dfu fails to parse it. For example, if > dfu_alt_info="mtd nor1=image raw 10 20" (double spaces > after "raw"), the image entity start

Re: [PATCH v2 1/5] DFU: Do not copy the entity name over the buffer size

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:20AM +0900, Masami Hiramatsu wrote: > Use strlcpy() instead of strcpy() to prevent copying the > entity name over the name buffer size. > > Signed-off-by: Masami Hiramatsu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] acpi: Move acpi_write_tables() to a generic header

2022-02-11 Thread Tom Rini
On Sat, Jan 29, 2022 at 02:30:52PM -0700, Simon Glass wrote: > This function is used by both x86 and sandbox. Put it in a common header > file. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] test: test field truncation in snprint()

2022-02-11 Thread Tom Rini
On Sat, Jan 29, 2022 at 04:33:16PM +0100, Heinrich Schuchardt wrote: > The output size for snprint() should not only be respected for whole fields > but also with fields. Add more tests. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH V4] phy: nop-phy: Enable reset-gpios support

2022-02-11 Thread Tom Rini
On Sat, Jan 29, 2022 at 07:27:47AM -0600, Adam Ford wrote: > Some usb-nop-xceiv devices use a gpio take them out > of reset. Add a reset function to put them into that > state. This is similar to how Linux handles the > usb-nop-xceiv driver. > > Signed-off-by: Adam Ford Applied to

Re: [PATCH V3 2/2] fw_env: simplify logic & code paths in the fw_env_open()

2022-02-11 Thread Tom Rini
On Wed, Jan 12, 2022 at 12:47:06PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > Environment variables can be stored in two formats: > 1. Single entry with header containing CRC32 > 2. Two entries with extra flags field in each entry header > > For that reason fw_env_open() has two

Re: [PATCH V3 1/2] fw_env: make flash_io() take buffer as an argument

2022-02-11 Thread Tom Rini
On Wed, Jan 12, 2022 at 12:47:05PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > It's usually easier to understand code & follow it if all arguments are > passed explicitly. Many coding styles also discourage using global > variables. > > Behaviour of flash_io() was a bit unintuitive

Re: [PATCH] test/py: Add test case for mkimage -o argument

2022-02-11 Thread Tom Rini
On Thu, Feb 03, 2022 at 09:43:50PM +0100, Jan Kiszka wrote: > From: Jan Kiszka > > Stress the '-o algo_name' argument of mkimage by expanding the vboot > test. > > Signed-off-by: Jan Kiszka > Reviewed-by: Simon Glass First, this is now applied to u-boot/master. Second, I updated

Re: [PULL] u-boot-usb/master

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 01:22:01PM +0100, Marek Vasut wrote: > The following changes since commit 2ccd2bc8c3580e00c51094c5cc2b3e2ead8d35c3: > > Merge tag 'dm-pull-8feb22-take3' of > https://gitlab.denx.de/u-boot/custodians/u-boot-dm (2022-02-10 09:19:44 > -0500) > > are available in the Git

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-11 Thread Joakim Tjernlund
On Fri, 2022-02-11 at 15:00 +0100, Joakim Tjernlund wrote: > On Fri, 2022-02-11 at 01:26 +, Andre Przywara wrote: > > On Fri, 11 Feb 2022 00:22:25 + > > Joakim Tjernlund wrote: > > > > > On Thu, 2022-02-10 at 22:43 +, Andre Przywara wrote: > > > > On Thu, 10 Feb 2022 21:58:30 + >

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 10:39:30AM -0600, Adam Ford wrote: > On Fri, Feb 11, 2022 at 10:12 AM Tom Rini wrote: > > > > On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam Ford wrote: > > > On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > > > > > > > > On Thu, Feb 10, 2022 at 07:56:52AM -0600, Adam

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Adam Ford
On Fri, Feb 11, 2022 at 10:12 AM Tom Rini wrote: > > On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam Ford wrote: > > On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > > > > > > On Thu, Feb 10, 2022 at 07:56:52AM -0600, Adam Ford wrote: > > > > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: >

Re: [PATCH 00/24] binman: rockchip: Migrate from rockchip SPL_FIT_GENERATOR script

2022-02-11 Thread Alper Nebi Yasak
Hi, On 08/02/2022 21:49, Simon Glass wrote: > At present rockchip 64-bit boards make use of a FIT-generator script > written in Python. The script supports splitting an ELF file into several > 'loadable' nodes in the FIT. Binman does not current support this feature. > > This series adds binman

RE: [EXT] RE: [PATCH v10 02/14] i.MX8M: crypto: updated device tree for supporting DM in SPL

2022-02-11 Thread ZHIZHIKIN Andrey
Hello Gaurav, Sorry, I somehow missed you last reply here. Cc: Rouven > -Original Message- > From: U-Boot On Behalf Of Gaurav Jain > Sent: Friday, February 11, 2022 10:48 AM > To: ZHIZHIKIN Andrey ; u- > b...@lists.denx.de > Cc: Stefano Babic ; Fabio Estevam ; Peng > Fan > ; Simon

Re: [PATCH v2 0/2] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-02-11 Thread Stefano Babic
On 11.02.22 16:55, Tom Rini wrote: On Fri, Feb 11, 2022 at 11:15:22AM -0300, Ariel D'Alessandro wrote: Ping :-) Can we get this merged? Stefano, are you working on a follow-up PR with more platforms? Thanks! Yes, I will apply missing patches in the WE. Regards, Stefano On 1/31/22

Re: [PATCH v3] board: gateworks: venice: add imx8mn-gw7902 support

2022-02-11 Thread Tim Harvey
On Thu, Feb 10, 2022 at 5:51 PM Fabio Estevam wrote: > > Hi Tim, > > Your patch looks good. > > On Wed, Feb 2, 2022 at 7:00 PM Tim Harvey wrote: > > > +/* Initial environment variables */ > > +#define CONFIG_EXTRA_ENV_SETTINGS \ > > + BOOTENV \ > > + MEM_LAYOUT_ENV_SETTINGS \ > > +

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam Ford wrote: > On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > > > > On Thu, Feb 10, 2022 at 07:56:52AM -0600, Adam Ford wrote: > > > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: > > > > > > > > Hi, > > > > > > > > On Wed, 9 Feb 2022 at

Re: [PATCH v2 0/2] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 11:15:22AM -0300, Ariel D'Alessandro wrote: > Ping :-) Can we get this merged? Stefano, are you working on a follow-up PR with more platforms? Thanks! > > On 1/31/22 10:39, Ariel D'Alessandro wrote: > > Hi Tom, > > > > Any reason why this is still pending? > > Please

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Adam Ford
On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > > On Thu, Feb 10, 2022 at 07:56:52AM -0600, Adam Ford wrote: > > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: > > > > > > Hi, > > > > > > On Wed, 9 Feb 2022 at 05:32, Tom Rini wrote: > > > > > > > > On Wed, Feb 09, 2022 at 05:40:03AM

Re: [PATCH] dm: core: Check flags before removing devices

2022-02-11 Thread Marek Vasut
On 2/11/22 16:05, Simon Glass wrote: Hi Marek, Hi, Calling device_chld_remove() before flags_remove() means all devices get removed no matter whether they should be removed late or not. This breaks teardown of eMMC when booting and other critical boot paths. Fixes: c51d2e704a1 ("dm: core:

Re: Re: [PATCH v1 1/1] env: fat: Allow overriding interface, device and partition

2022-02-11 Thread Simon Glass
Hi, On Sat, 29 Jan 2022 at 01:26, 何勇 wrote: > > Hi: > Override the env_fat_get_dev_part function in the board file, you can > load env from sdcard or emmc without modifying any configuration > of u-boot, it is very useful for building wic firmware by yocto. > > it has been done under env/ext4.c

Re: [PATCH v2] binman: Skip processing "hash" subnodes of FIT subsections

2022-02-11 Thread Simon Glass
On Wed, 9 Feb 2022 at 12:02, Alper Nebi Yasak wrote: > > Binman's FIT entry type can have image subentries with "hash" subnodes > intended to be processed by mkimage, but not binman. However, the Entry > class and any subclass that reuses its implementation tries to process > these

Re: [PATCH] scripts: dtc: libfdt: fdt_ro.c: always define fdt_check_full

2022-02-11 Thread Simon Glass
On Wed, 9 Feb 2022 at 10:01, Philippe Reynes wrote: > > On some configs (like stm32mp15_dhcom_basic_defconfig), if configs > SPL_LOAD_FIT_FULL and SPL_FIT_FULL_CHECK are enabled. Then the compilatio > fails with the following error: > > arm-linux-gnueabi-ld.bfd: boot/image-fit.o: in function

Re: [PATCH] rockchip: Set default LNX_KRNL_IMG_TEXT_OFFSET_BASE to SYS_TEXT_BASE

2022-02-11 Thread Simon Glass
On Sat, 29 Jan 2022 at 08:28, Alper Nebi Yasak wrote: > > U-Boot can be chainloaded from vendor firmware on ARM64 chromebooks from > a GPT partition (roughly the same as in doc/chromium/chainload.rst), but > an appropriate image header must be built-in to the U-Boot binary by > enabling

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

2022-02-11 Thread Simon Glass
Hi Stanley, On Mon, 7 Feb 2022 at 17:22, Stanley Chu wrote: > > This driver enables a periodic timer on NPCM SoCs and > implements the get_count timer ops. > > Signed-off-by: Stanley Chu > --- > Changes in v2: > calculate the prescale value, not hardcode. > --- > drivers/timer/Kconfig |

Re: [PATCH 04/14] video: nexell: Drop unused and invalid code

2022-02-11 Thread Simon Glass
Hi Stefan, On Mon, 31 Jan 2022 at 09:58, Stefan Bosch wrote: > > Hi Simon, > > please find below the patch of your patch 04/14 (diff after applying > your hole patch-series and my changes). > > OK, let's see where this all goes. Once it is applied it will be clearer. Regards, Simon

Re: [PATCH 1/1] test: test field truncation in snprint()

2022-02-11 Thread Simon Glass
On Sat, 29 Jan 2022 at 08:33, Heinrich Schuchardt wrote: > > The output size for snprint() should not only be respected for whole fields > but also with fields. Add more tests. > > Signed-off-by: Heinrich Schuchardt > --- > test/print_ut.c | 12 > 1 file changed, 12 insertions(+) >

Re: [PATCH v3] gpio: Enable hogging support in SPL

2022-02-11 Thread Simon Glass
On Mon, 7 Feb 2022 at 16:09, Eddie James wrote: > > Use the CONFIG macros to conditionally build the GPIO hogging support in > either the SPL or U-Boot, or both, depending on the configuration. Also > call the GPIO hog probe function in the common SPL board initialization > as an equivalent to

Re: [PATCH] dm: core: Check flags before removing devices

2022-02-11 Thread Simon Glass
Hi Marek, On Thu, 27 Jan 2022 at 20:41, Marek Vasut wrote: > > Calling device_chld_remove() before flags_remove() means all devices > get removed no matter whether they should be removed late or not. This > breaks teardown of eMMC when booting and other critical boot paths. > > Fixes:

Re: [PATCH 2/2] test: test UTF-16 truncation in sprintf()

2022-02-11 Thread Simon Glass
On Sat, 29 Jan 2022 at 10:40, Heinrich Schuchardt wrote: > > Check that snprintf() returns the correct required buffer length and prints > the correct string for UTF-16 strings. > > Signed-off-by: Heinrich Schuchardt > --- > test/unicode_ut.c | 31 +++ > 1 file

Re: [PATCH 1/1] cmd: add serial console support for the cls command

2022-02-11 Thread Simon Glass
Hi Heinrich, On Sat, 29 Jan 2022 at 13:32, Heinrich Schuchardt wrote: > > Currently the cls command does not support the serial console > > The screen can be cleared in the video uclass, the colored frame buffer > console, and the serial console by sending the same escape sequence. > The cls

Re: [PATCH v2 0/2] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-02-11 Thread Ariel D'Alessandro
Ping :-) Can we get this merged? On 1/31/22 10:39, Ariel D'Alessandro wrote: > Hi Tom, > > Any reason why this is still pending? > Please let me know. > > Thanks in advance, > Ariel > > On 1/26/22 08:08, Michael Nazzareno Trimarchi wrote: >> Hi Fabio >> >> On Sat, Jan 15, 2022 at 3:11 PM Fabio

Re: [PATCH 5/5] clk: scmi: register scmi clocks with CCF

2022-02-11 Thread Patrick DELAUNAY
Hi, On 2/11/22 13:07, Etienne Carriere wrote: Implements SCMI APIs to retrieve the number exposed SCMI clocks using SCMI_PROTOCOL_ATTRIBUTES messages and the names of the clocks using SCMI_CLOCK_ATTRIBUTES messages. This change updates sandbox SCMI clock test driver to manage these 2 new

STM32MP: Can't lock PHK fuses through U-Boot cmd's "stm32key" or "fuse"

2022-02-11 Thread Johann Neuhauser
Hello Patrick, Patrice and other devs, I'm trying to roll out secure boot with U-Boot v2022.01 only. The boot flow should be like: BootROM -(signed STM32 image)-> U-Boot SPL -(signed fit)-> U-Boot -(signed fit)-> Linux Everything except the first part in the chain is working as expected. I've

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-11 Thread Joakim Tjernlund
On Fri, 2022-02-11 at 01:26 +, Andre Przywara wrote: > On Fri, 11 Feb 2022 00:22:25 + > Joakim Tjernlund wrote: > > > On Thu, 2022-02-10 at 22:43 +, Andre Przywara wrote: > > > On Thu, 10 Feb 2022 21:58:30 + > > > Joakim Tjernlund wrote: > > > > > > Hi, > > > > > > > On Thu,

Re: [PATCH 4/5] firmware: scmi: fix sandbox and related tests for clock discovery

2022-02-11 Thread Patrick DELAUNAY
Hi, On 2/11/22 13:07, Etienne Carriere wrote: Updates sandbox SCMI clock driver and tests since enabling CCF will mandate clock discovery that is all exposed SCMI clocks shall be discovered at initialization. For this reason, sandbox SCMI clock driver must emulate all clocks exposed by SCMI

Re: [PATCH 3/5] scmi: change parameter dev in devm_scmi_process_msg

2022-02-11 Thread Patrick DELAUNAY
Hi On 2/11/22 13:07, Etienne Carriere wrote: Changes devm_scmi_process_msg() first argument from target parent device to current SCMI device and lookup the SCMI agent device among SCMI device parents for find the SCMI agent operator needed for communication with the firmware. This change is

Re: [PATCH 2/5] sandbox: scmi: test against a single scmi agent

2022-02-11 Thread Patrick DELAUNAY
Hi Etienne, On 2/11/22 13:07, Etienne Carriere wrote: As per DT bindings since Linux kernel v5.14, the device tree can define only 1 SCMI agent node that is named scmi [1]. As a consequence, change implementation of the SCMI driver test through sandbox architecture to reflect that. This change

Re: [PATCH 1/5] doc: binding: scmi: link to latest Linux kernel binding

2022-02-11 Thread Patrick DELAUNAY
Hi Etienne, On 2/11/22 13:07, Etienne Carriere wrote: Changes SCMI bindings documentation to relate to Linux kernel source tree that recently changed the bindings description to YAML format. Signed-off-by: Etienne Carriere --- doc/device-tree-bindings/arm/arm,scmi.txt | 236

Re: [PATCH v4 10/11] mkeficapsule: Add support for generating empty capsules

2022-02-11 Thread Sughosh Ganu
On Thu, 10 Feb 2022 at 06:57, AKASHI Takahiro wrote: > > On Wed, Feb 09, 2022 at 12:05:06PM +0900, AKASHI Takahiro wrote: > > Hi Sughosh, > > > > On Mon, Feb 07, 2022 at 11:50:00PM +0530, Sughosh Ganu wrote: > > > The Dependable Boot specification describes the structure of the > > > > What is

Re: [PATCH v4 10/11] mkeficapsule: Add support for generating empty capsules

2022-02-11 Thread Sughosh Ganu
hi Takahiro, On Wed, 9 Feb 2022 at 08:35, AKASHI Takahiro wrote: > > Hi Sughosh, > > On Mon, Feb 07, 2022 at 11:50:00PM +0530, Sughosh Ganu wrote: > > The Dependable Boot specification describes the structure of the > > What is this specification? Please specify the link to the doc. > > >

Re: [RFC] CI: enforce packages upgrade for Msys2 on Windows

2022-02-11 Thread Heinrich Schuchardt
On 2/9/22 13:28, Tom Rini wrote: On Wed, Feb 09, 2022 at 05:24:23PM +0900, AKASHI Takahiro wrote: We need to install libgnutls-devel package to build the host tool, mkeficapsule, and as of now, there seems to be a depencency conflict in the current msys2 installer; :: installing

  1   2   >