Re: [PATCH] stm32prog: add partition name in treat_partition_list error messages

2022-01-20 Thread Patrice CHOTARD
HI Patrick On 1/18/22 10:33 AM, Patrick Delaunay wrote: > Add the partition name and remove the line number in error messages > of treat_partition_list() to provide correct information to user of > STM32CubeProgrammer. > > The "line number" value was confusing because it is incorrect here; > the

[PATCH 4/4] configs: am64x_evm_r5/a53_defconfig: Enable configs required for Ethboot

2022-01-20 Thread Vignesh Raghavendra
Enable config options needed to support Ethernet boot on AM64x SK. Signed-off-by: Vignesh Raghavendra --- configs/am64x_evm_a53_defconfig | 4 configs/am64x_evm_r5_defconfig | 12 2 files changed, 16 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig

[PATCH 3/4] configs: am64xx_evm: Increase BSS max size to 16K

2022-01-20 Thread Vignesh Raghavendra
With Ethboot support in SPL, network stack requires more BSS area, so increase BSS max size to 16K Signed-off-by: Vignesh Raghavendra --- include/configs/am64x_evm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/am64x_evm.h b/include/configs/am64x_evm.h

[PATCH 2/4] ARM: dts: k3-am642-sk: Disable cpsw_port1 in SPL

2022-01-20 Thread Vignesh Raghavendra
ROM supports cpsw_port2 for Ethernet boot and SPL stages continue to download images on the same port, therefore there is no need to enable cpsw_port1. Disable the same. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am642-r5-sk.dts | 11 ---

[PATCH 1/4] net: ti: am65-cpsw-nuss: Fix err msg for port bind failures

2022-01-20 Thread Vignesh Raghavendra
Replace error case print with meaning full message. Signed-off-by: Vignesh Raghavendra --- drivers/net/ti/am65-cpsw-nuss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index 6ae69b51c7..454986ff15 100644

[PATCH 0/4] ARM: ti: AM64x: Clean up Ethernet boot support on AM64x SK

2022-01-20 Thread Vignesh Raghavendra
This series is follow up to [1] First patch cleans up err msg in CPSW-NUSS driver Second patch disable cpsw_port1 at SPL stage Third patch increases SPL BSS size in anticipation of enabling network stack Last patch enables all configs needed to support ethboot [1]

Re: [RFC PATCH v3 7/9] FWU: Add support for FWU Multi Bank Update feature

2022-01-20 Thread Sughosh Ganu
hi Masami, On Thu, 20 Jan 2022 at 11:37, Masami Hiramatsu wrote: > > Hello Sughosh, > > 2022年1月20日(木) 3:57 Sughosh Ganu : > > > diff --git a/lib/fwu_updates/Kconfig b/lib/fwu_updates/Kconfig > > new file mode 100644 > > index 00..6de28e0c9c > > --- /dev/null > > +++

Re: [RFC PATCH v3 0/9] FWU: Add support for FWU Multi Bank Update feature

2022-01-20 Thread Sughosh Ganu
hi Heinrich, On Thu, 20 Jan 2022 at 15:39, Heinrich Schuchardt wrote: > > On 1/19/22 19:55, Sughosh Ganu wrote: > > The patchset adds support for the FWU Multi Bank Update[1] > > feature. Certain aspects of the Dependable Boot[2] specification have > > also been implemented. > > The document

Re: [PATCH 6/8] configs: am64x_evm: set eth1 as boot interface

2022-01-20 Thread Vignesh Raghavendra
On 17/01/22 8:16 pm, Tom Rini wrote: > On Fri, Dec 24, 2021 at 12:55:34PM +0530, Vignesh Raghavendra wrote: > >> ROM supports boot from CPSW second port, therefore set eth1 boot >> interface >> >> Signed-off-by: Vignesh Raghavendra >> --- >> include/configs/am64x_evm.h | 5 - >> 1 file

Re: [RFC PATCH v3 0/9] FWU: Add support for FWU Multi Bank Update feature

2022-01-20 Thread Sughosh Ganu
hi Takahiro, On Thu, 20 Jan 2022 at 11:01, AKASHI Takahiro wrote: > > Sughosh, > > On Thu, Jan 20, 2022 at 12:25:39AM +0530, Sughosh Ganu wrote: > > > > The patchset adds support for the FWU Multi Bank Update[1] > > feature. Certain aspects of the Dependable Boot[2] specification have > > also

Re: [RFC PATCH 10/14] FWU: Reboot soon after successfully install the new firmware

2022-01-20 Thread AKASHI Takahiro
On Fri, Jan 21, 2022 at 03:54:12PM +0900, Masami Hiramatsu wrote: > Hi, > > 2022年1月21日(金) 13:35 Masami Hiramatsu : > > > > Hi Takahiro, > > > > 2022年1月21日(金) 10:46 AKASHI Takahiro : > > > > > > On Fri, Jan 21, 2022 at 12:31:00AM +0900, Masami Hiramatsu wrote: > > > > Reboot to the trial state

Re: [RFC PATCH v3 5/9] EFI: FMP: Add provision to update image's ImageTypeId in image descriptor

2022-01-20 Thread Sughosh Ganu
hi Takahiro, On Thu, 20 Jan 2022 at 10:54, AKASHI Takahiro wrote: > > On Thu, Jan 20, 2022 at 12:25:44AM +0530, Sughosh Ganu wrote: > > The FWU Multi Banks Update feature allows updating different types of > > updatable firmware images on the platform. These image types are > > identified using

Re: [RFC PATCH 10/14] FWU: Reboot soon after successfully install the new firmware

2022-01-20 Thread Masami Hiramatsu
Hi, 2022年1月21日(金) 13:35 Masami Hiramatsu : > > Hi Takahiro, > > 2022年1月21日(金) 10:46 AKASHI Takahiro : > > > > On Fri, Jan 21, 2022 at 12:31:00AM +0900, Masami Hiramatsu wrote: > > > Reboot to the trial state soon after successfully installing > > > the new firmware to the next bank and updating

Re: [RFC PATCH v3 9/9] mkeficapsule: Add support for generating empty capsules

2022-01-20 Thread Sughosh Ganu
hi Takahiro, On Thu, 20 Jan 2022 at 07:43, AKASHI Takahiro wrote: > > Hi Sughosh, > > From user's point of view, > > On Thu, Jan 20, 2022 at 12:25:48AM +0530, Sughosh Ganu wrote: > > The Dependable Boot specification describes the structure of the > > May we have a pointer or reference to it?

Re: [RFC PATCH 11/14] FWU: Add FWU Multi Bank Update on SPI Flash

2022-01-20 Thread Masami Hiramatsu
2022年1月21日(金) 11:20 AKASHI Takahiro : > > On Fri, Jan 21, 2022 at 12:31:10AM +0900, Masami Hiramatsu wrote: > > Signed-off-by: Masami Hiramatsu > > --- > > include/fwu.h | 13 ++ > > lib/fwu_updates/Kconfig| 34 ++ > > lib/fwu_updates/Makefile |5 - > >

Re: [RFC PATCH 12/14] FWU: synquacer: Add FWU Multi bank update support for DeveloperBox

2022-01-20 Thread Masami Hiramatsu
2022年1月21日(金) 11:22 AKASHI Takahiro : > > On Fri, Jan 21, 2022 at 12:31:20AM +0900, Masami Hiramatsu wrote: > > The DeveloperBox platform can support the FWU Multi bank > > update. SCP firmware will switch the boot mode by DSW3-4 > > and load the Multi bank update supported TF-A BL2 from > >

Re: [RFC PATCH 10/14] FWU: Reboot soon after successfully install the new firmware

2022-01-20 Thread Masami Hiramatsu
Hi Takahiro, 2022年1月21日(金) 10:46 AKASHI Takahiro : > > On Fri, Jan 21, 2022 at 12:31:00AM +0900, Masami Hiramatsu wrote: > > Reboot to the trial state soon after successfully installing > > the new firmware to the next bank and updating the active_index. > > This is enabled by

Re: [PATCH 2/8] net: ti: am65-cpsw: Add support for multi port independent MAC mode

2022-01-20 Thread Vignesh Raghavendra
On 21/01/22 4:49 am, Tom Rini wrote: > On Fri, Jan 21, 2022 at 01:13:54AM +0200, Ramon Fried wrote: >> On Mon, Jan 17, 2022 at 8:37 PM Tom Rini wrote: >>> >>> On Fri, Dec 24, 2021 at 12:55:30PM +0530, Vignesh Raghavendra wrote: >>> On certain TI SoC, like AM64x there is a CPSW3G which

Re: [PATCH 8/8] configs: am64x_evm_r5/a53_defconfig: Enable configs required for Ethboot

2022-01-20 Thread Vignesh Raghavendra
On 17/01/22 8:47 am, Tom Rini wrote: > On Fri, Dec 24, 2021 at 12:55:36PM +0530, Vignesh Raghavendra wrote: > >> Enable config options needed to support Ethernet boot on AM64x SK. >> >> Signed-off-by: Vignesh Raghavendra > > This leads to size overflow on r5. > Hmm, I don't see size

Re: [PATCH 2/8] net: ti: am65-cpsw: Add support for multi port independent MAC mode

2022-01-20 Thread Vignesh Raghavendra
On 30/12/21 1:01 am, Ramon Fried wrote: > On Fri, Dec 24, 2021 at 9:25 AM Vignesh Raghavendra wrote: >> >> On certain TI SoC, like AM64x there is a CPSW3G which supports 2 >> external independent MAC ports for single CPSW instance. >> It is not possible for Ethernet driver to register more

[PATCH v3] gitlab: x86: Add a coreboot test

2022-01-20 Thread Simon Glass
Coreboot supports U-Boot as a payload and this recently got a bit of a facelist. Add a test for this. For now this uses a binary build of coreboot (v4.15). Future work could potentially build it from source, but we need to figure out the toolchain problems first, since coreboot uses its own

Re: [PATCH v3 0/4] rockchip: sdhci: Fix reinit and add HS400 Enhanced Strobe support

2022-01-20 Thread Simon Glass
Hi Alper, On Sun, 16 Jan 2022 at 13:18, Alper Nebi Yasak wrote: > > My rk3399-gru-kevin has some problems with the eMMC. The board can boot > to U-Boot proper with the eMMC working at a low speed, but trying to > reinitialize it with "mmc dev 0" or "mmc rescan" makes it unusable. If > the HS400

Re: [PATCH 02/11] arm: arm926ej-s: add sunxi code

2022-01-20 Thread Jesse Taube
On 1/20/22 21:25, Andre Przywara wrote: On Tue, 4 Jan 2022 19:34:59 -0500 Jesse Taube wrote: Hi, From: Icenowy Zheng Some Allwinner SoCs use ARM926EJ-S core. Add Allwinner/sunXi specific code to ARM926EJ-S CPU dircetory. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube ---

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Simon Glass
Hi Tom, On Thu, 20 Jan 2022 at 18:08, Tom Rini wrote: > > On Thu, Jan 20, 2022 at 05:59:53PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 20 Jan 2022 at 16:23, Tom Rini wrote: > > > > > > On Thu, Jan 20, 2022 at 01:47:41PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH 02/11] arm: arm926ej-s: add sunxi code

2022-01-20 Thread Andre Przywara
On Tue, 4 Jan 2022 19:34:59 -0500 Jesse Taube wrote: Hi, > From: Icenowy Zheng > > Some Allwinner SoCs use ARM926EJ-S core. > > Add Allwinner/sunXi specific code to ARM926EJ-S CPU dircetory. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Jesse Taube > --- >

Re: [RFC PATCH 12/14] FWU: synquacer: Add FWU Multi bank update support for DeveloperBox

2022-01-20 Thread AKASHI Takahiro
On Fri, Jan 21, 2022 at 12:31:20AM +0900, Masami Hiramatsu wrote: > The DeveloperBox platform can support the FWU Multi bank > update. SCP firmware will switch the boot mode by DSW3-4 > and load the Multi bank update supported TF-A BL2 from > 0x60 offset on the SPI flash. Thus it can co-exist

Re: [RFC PATCH 11/14] FWU: Add FWU Multi Bank Update on SPI Flash

2022-01-20 Thread AKASHI Takahiro
On Fri, Jan 21, 2022 at 12:31:10AM +0900, Masami Hiramatsu wrote: > Signed-off-by: Masami Hiramatsu > --- > include/fwu.h | 13 ++ > lib/fwu_updates/Kconfig| 34 ++ > lib/fwu_updates/Makefile |5 - > lib/fwu_updates/fwu_mdata_sf.c | 241 >

Re: [PATCH 10/11] ARM: dts: suniv: Add device tree files for F1C100s

2022-01-20 Thread Jesse Taube
On 1/20/22 20:59, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:07 -0500 Jesse Taube wrote: Hi, From: Icenowy Zheng Add device tree files for suniv and Lichee Pi Nano it is a board based on F1C100s. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube Those files differ

Re: [PATCH v2 00/38] binman: Add support for bintools and missing tools

2022-01-20 Thread Simon Glass
Hi custodians, On Sun, 9 Jan 2022 at 20:14, Simon Glass wrote: > > > At present binman uses binary tools (like cbfstool, futiltiy, lz4) in an > ad-hoc manner. Various parts of binman use tools.Run() to run tools as > needed. If a tool is missing, an error is produced and binman stops. > >

Re: [PATCH 10/11] ARM: dts: suniv: Add device tree files for F1C100s

2022-01-20 Thread Andre Przywara
On Tue, 4 Jan 2022 19:35:07 -0500 Jesse Taube wrote: Hi, > From: Icenowy Zheng > > Add device tree files for suniv and > Lichee Pi Nano it is a board based on F1C100s. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Jesse Taube Those files differ significantly from the kernel. It looks

Re: [PATCH 07/11] sunxi: board: Add support for SUNIV

2022-01-20 Thread Andre Przywara
On Tue, 4 Jan 2022 19:35:04 -0500 Jesse Taube wrote: Hi, > From: Icenowy Zheng > > Generic Timer Extension is not available on SUNIV. Well, that, plus there are no ID registers with which we could query this. But that has the same effect, so: > Signed-off-by: Icenowy Zheng >

Re: [PATCH 04/11] dt-bindings: reset: Add initial suniv headers

2022-01-20 Thread Andre Przywara
On Tue, 4 Jan 2022 19:35:01 -0500 Jesse Taube wrote: > From: Icenowy Zheng > > This commit introduces suniv dt-bindings headers > needed for device tree files. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Jesse Taube This seems to be some old copy, it doesn't match with what's in the

Re: [PATCH 03/11] dt-bindings: clock: Add initial suniv headers

2022-01-20 Thread Andre Przywara
On Tue, 4 Jan 2022 19:35:00 -0500 Jesse Taube wrote: > From: Icenowy Zheng > > This commit introduces suniv dt-bindings headers needed for > device tree files. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Jesse Taube This seems to be some old copy, it doesn't match with what's in the

Re: [PATCH 01/11] arm: arm926ej-s: start.S: port save_boot_params support from armv7 code

2022-01-20 Thread Andre Przywara
On Tue, 4 Jan 2022 19:34:58 -0500 Jesse Taube wrote: Hi, > From: Icenowy Zheng > > The ARMv7 start code has support for saving some boot params at the > entry point, which is used by some SoCs to return to BROM. > > Port this to ARM926EJ-S start code. > > Signed-off-by: Icenowy Zheng >

[PATCH v4 4/4] arm: kirkwood: Pogoplug V4 : Add board include header and defconfig files

2022-01-20 Thread Tony Dinh
Add board include header and defconfig files for Pogoplug V4 Signed-off-by: Tony Dinh --- Changes in v4: - Remove CONFIG_FEATURE_COMMAND_EDITING and ifdefs for CMD_NET in include header Changes in v3: - Migrate config symbols from board include header to defconfig - Remove obsolete config

[PATCH v4 3/4] arm: kirkwood: Pogoplug-V4 : Add board implementation files

2022-01-20 Thread Tony Dinh
Note: currently the fdt_get_phy_addr function in this file is duplicate in this board and many other Kirkwood boards (eg. Sheevaplug, GoFlex Home, etc.). This function is being factored out into common area by another patch. And because it was written for flattree only, the patch is being

[PATCH v4 2/4] arm: kirkwood: Pogoplug-V4 : Add Kconfig files

2022-01-20 Thread Tony Dinh
Add Kconfig files for Pogoplug V4 board Signed-off-by: Tony Dinh --- (no changes since v3) Changes in v3: - Migrate symbols from board include header to Kconfig arch/arm/mach-kirkwood/Kconfig | 6 ++ board/cloudengines/pogo_v4/Kconfig | 16 2 files changed, 22

[PATCH v4 1/4] arm: kirkwood: Pogoplug-V4 : Add DTS files

2022-01-20 Thread Tony Dinh
Add DTS files for Pogoplug V4 board Reviewed-by: Stefan Roese Signed-off-by: Tony Dinh --- (no changes since v2) Changes in v2: - Use mainline Linux DTS version arch/arm/dts/Makefile | 1 + arch/arm/dts/kirkwood-pogoplug-series-4.dts | 180 2

[PATCH v4 0/4] arm: kirkwood: Add support for Pogoplug V4

2022-01-20 Thread Tony Dinh
Pogoplug V4 specifications: Kirkwood 88F6192 SoC 800 MHz CPU 1Gbs Ethernet 128 MB RAM 128 MB NAND 1x USB 2.0 2x USB 3.0 (on PCIe bus) 1 SDHC slot 1x External SATA port (USM enclosure form factor slot) Changes in v4: - Remove CONFIG_FEATURE_COMMAND_EDITING and ifdefs for CMD_NET in include

Re: [RFC PATCH 10/14] FWU: Reboot soon after successfully install the new firmware

2022-01-20 Thread AKASHI Takahiro
On Fri, Jan 21, 2022 at 12:31:00AM +0900, Masami Hiramatsu wrote: > Reboot to the trial state soon after successfully installing > the new firmware to the next bank and updating the active_index. > This is enabled by CONFIG_FWU_REBOOT_AFTER_UPDATE and is a > recommended option.

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Tom Rini
On Thu, Jan 20, 2022 at 05:59:53PM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 20 Jan 2022 at 16:23, Tom Rini wrote: > > > > On Thu, Jan 20, 2022 at 01:47:41PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 20 Jan 2022 at 13:08, Tom Rini wrote: > > > > > > > > On Thu, Jan 20,

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Simon Glass
Hi Tom, On Thu, 20 Jan 2022 at 16:23, Tom Rini wrote: > > On Thu, Jan 20, 2022 at 01:47:41PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 20 Jan 2022 at 13:08, Tom Rini wrote: > > > > > > On Thu, Jan 20, 2022 at 12:56:55PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Tom Rini
On Thu, Jan 20, 2022 at 01:47:41PM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 20 Jan 2022 at 13:08, Tom Rini wrote: > > > > On Thu, Jan 20, 2022 at 12:56:55PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 20 Jan 2022 at 11:30, Tom Rini wrote: > > > > > > > > On Thu, Jan 20,

Re: [PATCH 2/8] net: ti: am65-cpsw: Add support for multi port independent MAC mode

2022-01-20 Thread Tom Rini
On Fri, Jan 21, 2022 at 01:13:54AM +0200, Ramon Fried wrote: > On Mon, Jan 17, 2022 at 8:37 PM Tom Rini wrote: > > > > On Fri, Dec 24, 2021 at 12:55:30PM +0530, Vignesh Raghavendra wrote: > > > > > On certain TI SoC, like AM64x there is a CPSW3G which supports 2 > > > external independent MAC

[PATCH] net: xilinx: fix the wrong dma base address issue

2022-01-20 Thread Andy Chiu
From: Greentime Hu If we just use fdtdec_get_addr_size_fixed to get "reg" it will use 64bit address cell to get the base address. soc { #address-cells = <1>; #size-cells = <1>; compatible ="SiFive,FU500-soc", "fu500-soc", "sifive-soc", "simple-bus"; ranges; L28: axidma@3001 {

[PATCH 3/3] net: xilinx: Force a probe failure if it cannot setup phy

2022-01-20 Thread Andy Chiu
Or we may get load access faults afterward. The `phydev` field on axi-ethernet’s private struct is not set on a failed phy_connect(): axi_emac_probe() => axiemac_phy_init() => priv->phydev = phy_connect() <--- may fail However, all of the following calls on `axi_emac_ops` assume a valid

[PATCH 2/3] net: xilinx: Move setup of 1G MAC to a function

2022-01-20 Thread Andy Chiu
Separate the flow out so that it would be easiler to implement error handling logic. Signed-off-by: Andy Chiu --- drivers/net/xilinx_axi_emac.c | 50 +-- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/drivers/net/xilinx_axi_emac.c

[PATCH 1/3] net: xilinx: fix load access fault

2022-01-20 Thread Andy Chiu
From: Greentime Hu phy_connect() may fail by returning a NULL pointer. Thus, axiemac_phy_init() should handle the case or we may get an access fault when it tries to dereference it. Signed-off-by: Greentime Hu Reviewed-by: Andy Chiu Signed-off-by: Andy Chiu ---

Re: [PATCH 2/8] net: ti: am65-cpsw: Add support for multi port independent MAC mode

2022-01-20 Thread Ramon Fried
On Mon, Jan 17, 2022 at 8:37 PM Tom Rini wrote: > > On Fri, Dec 24, 2021 at 12:55:30PM +0530, Vignesh Raghavendra wrote: > > > On certain TI SoC, like AM64x there is a CPSW3G which supports 2 > > external independent MAC ports for single CPSW instance. > > It is not possible for Ethernet driver

Re: [PATCH v3] drivers: spi-nor: Add JEDEC id for W25Q16JV

2022-01-20 Thread Dhananjay Phadke
On 1/20/2022 7:46 AM, tudor.amba...@microchip.com wrote: FWIW, "w25q15jvm" would be the "correct" name in linux. Although for this particular flash the name in linux is "w25q16jv-im/jm".. would you fix it? :D Anyhow, see [1] for a lengthy discussion on that name. That being said, I still

Re: [RESEND PATCH v3 4/4] arm: kirkwood: Pogoplug V4 : Add board include header and defconfig files

2022-01-20 Thread Tony Dinh
Hi Stefan, On Thu, Jan 20, 2022 at 3:55 AM Stefan Roese wrote: > > Hi Tony, > > On 1/20/22 01:28, Tony Dinh wrote: > > Add board include header and defconfig files for Pogoplug V4 > > > > Signed-off-by: Tony Dinh > > --- > > > > Changes in v3: > > - Migrate config symbols from board include

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Simon Glass
Hi Tom, On Thu, 20 Jan 2022 at 13:08, Tom Rini wrote: > > On Thu, Jan 20, 2022 at 12:56:55PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 20 Jan 2022 at 11:30, Tom Rini wrote: > > > > > > On Thu, Jan 20, 2022 at 11:16:35AM -0700, Simon Glass wrote: > > > > Hi Mark, > > > > > > > > On

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Tom Rini
On Thu, Jan 20, 2022 at 12:56:55PM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 20 Jan 2022 at 11:30, Tom Rini wrote: > > > > On Thu, Jan 20, 2022 at 11:16:35AM -0700, Simon Glass wrote: > > > Hi Mark, > > > > > > On Thu, 20 Jan 2022 at 03:29, Mark Kettenis > > > wrote: > > > > > > > > >

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Simon Glass
Hi Tom, On Thu, 20 Jan 2022 at 11:30, Tom Rini wrote: > > On Thu, Jan 20, 2022 at 11:16:35AM -0700, Simon Glass wrote: > > Hi Mark, > > > > On Thu, 20 Jan 2022 at 03:29, Mark Kettenis wrote: > > > > > > > From: Michael Walle > > > > Date: Thu, 20 Jan 2022 09:35:44 +0100 > > > > > > > > > The

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Simon Glass
Hi Mark, On Thu, 20 Jan 2022 at 11:56, Mark Kettenis wrote: > > > Date: Thu, 20 Jan 2022 13:30:47 -0500 > > From: Tom Rini > > > > On Thu, Jan 20, 2022 at 11:16:35AM -0700, Simon Glass wrote: > > > Hi Mark, > > > > > > On Thu, 20 Jan 2022 at 03:29, Mark Kettenis > > > wrote: > > > > > > > > >

[PATCH v2] xilinx: common: change bootm_size to not go beyond ram_top

2022-01-20 Thread Ricardo Salveti
The available ram can be limited by ram_top as that depends on the reserved memory nodes provided by the device-tree (via board_get_usable_ram_top), so make sure to respect ram_top when setting up bootm_size to avoid overlapping reserved memory regions (e.g. memory used by OP-TEE). The same logic

Re: [PATCH v9 04/11] tools: mkeficapsule: add firmware image signing

2022-01-20 Thread Heinrich Schuchardt
On 1/18/22 05:39, 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: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Mark Kettenis
> Date: Thu, 20 Jan 2022 13:30:47 -0500 > From: Tom Rini > > On Thu, Jan 20, 2022 at 11:16:35AM -0700, Simon Glass wrote: > > Hi Mark, > > > > On Thu, 20 Jan 2022 at 03:29, Mark Kettenis wrote: > > > > > > > From: Michael Walle > > > > Date: Thu, 20 Jan 2022 09:35:44 +0100 > > > > > > > > >

[PATCH 1/1] efi_loader: correct function comment style

2022-01-20 Thread Heinrich Schuchardt
Replace @return and @param. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_file.c | 2 +- lib/efi_loader/efi_freestanding.c | 8 lib/efi_loader/efi_gop.c | 2 +- lib/efi_loader/helloworld.c

Re: Please pull u-boot-marvell/master

2022-01-20 Thread Tom Rini
On Thu, Jan 20, 2022 at 05:31:09PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the next batch of mostly Marvell MVEBU related patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 00/11] Add support for SUNIV and F1C100s.

2022-01-20 Thread Jesse Taube
On 1/20/22 13:12, Chris Morgan wrote: On Sat, Jan 15, 2022 at 04:02:05PM -0500, Jesse Taube wrote: On 1/10/22 00:13, Tnze Jdao wrote: I tested this patch and tried to run it on my LicheePi Nano. It works, but I found there is WARNINGs when compile the code: ---

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Tom Rini
On Thu, Jan 20, 2022 at 11:16:35AM -0700, Simon Glass wrote: > Hi Mark, > > On Thu, 20 Jan 2022 at 03:29, Mark Kettenis wrote: > > > > > From: Michael Walle > > > Date: Thu, 20 Jan 2022 09:35:44 +0100 > > > > > > > The bootdevs have a natural priority, based on the assumed speed of > > > > the

Re: [PATCH v3 00/31] Initial implementation of standard boot

2022-01-20 Thread Simon Glass
Hi Michael, On Thu, 20 Jan 2022 at 01:38, Michael Walle wrote: > > Hi, > > Am 2022-01-19 15:56, schrieb Simon Glass: > > On Wed, 19 Jan 2022 at 01:09, Michael Walle wrote: > >> > >> > >> > The bootflow feature provide a built-in way for U-Boot to automatically > >> > boot an Operating System

Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-20 Thread Simon Glass
Hi Mark, On Thu, 20 Jan 2022 at 03:29, Mark Kettenis wrote: > > > From: Michael Walle > > Date: Thu, 20 Jan 2022 09:35:44 +0100 > > > > > The bootdevs have a natural priority, based on the assumed speed of > > > the device, so the board would only need to intervene (with an env var > > > or a

Re: [PATCH 00/11] Add support for SUNIV and F1C100s.

2022-01-20 Thread Chris Morgan
On Sat, Jan 15, 2022 at 04:02:05PM -0500, Jesse Taube wrote: > > > On 1/10/22 00:13, Tnze Jdao wrote: > > I tested this patch and tried to run it on my LicheePi Nano. It works, but > > I found there is WARNINGs when compile the code: > > --- > > include/configs/sunxi-common.h:128:0:

Re: [PULL u-boot] Please pull u-boot-amlogic-20220120

2022-01-20 Thread Tom Rini
; Merge tag 'xilinx-for-v2022.04-rc1' of > https://source.denx.de/u-boot/custodians/u-boot-microblaze (2022-01-19 > 11:43:44 -0500) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-amlogic.git > tags/u-boot-amlogic-20220120 >

Re: Pull request doc-2022-04-rc1

2022-01-20 Thread Tom Rini
On Thu, Jan 20, 2022 at 08:23:24AM +0100, Heinrich Schuchardt wrote: > Dear Tom, > > I put the patch to replace @return by Return: in code comments into a > separate pull request at it is touching so many files. As we have a lot of > churn in U-Boot we have to put in the patch close after

Please pull u-boot-marvell/master

2022-01-20 Thread Stefan Roese
Hi Tom, please pull the next batch of mostly Marvell MVEBU related patches: - fdt_support: Add fdt_for_each_node_by_compatible() helper macro (Marek) - turris_omnia: Fixup SATA or PCIe nodes at runtime in DT blob (Pali) -

Re: [PATCH] arm: a37xx: Disable CONFIG_DEBUG_UART_ANNOUNCE

2022-01-20 Thread Stefan Roese
On 1/18/22 10:43, Pali Rohár wrote: After next branch was merged to v2022.01 release, U-Boot on A3720 started printing "" line on UART during booting. There is no need to print this debug line by default, so disable it via config option CONFIG_DEBUG_UART_ANNOUNCE in all config files for Armada

Re: [PATCH 0/2] arm: mvebu: Remove comphy_update_map()

2022-01-20 Thread Stefan Roese
On 1/18/22 10:33, Pali Rohár wrote: Convert Turris MOX's comphy_update_map() to board_fix_fdt() and then remove it. Pali Rohár (2): arm: mvebu: turris_mox: Convert comphy_update_map() to board_fix_fdt() phy: marvell: Remove unused function comphy_update_map()

Re: [PATCH 1/1] drivers: octeon: get rid of Unicode in code

2022-01-20 Thread Stefan Roese
On 1/16/22 23:11, Heinrich Schuchardt wrote: Placing Unicode control codes in the middle of a comment does not make much sense. Let's get rid of all Unicode in drivers/ram/octeon/octeon3_lmc.c. Signed-off-by: Heinrich Schuchardt Applied to u-boot-marvell/master Thanks, Stefan ---

Re: [PATCH u-boot-marvell v4 0/9] More verifications for kwbimage in SPL

2022-01-20 Thread Stefan Roese
On 1/14/22 14:31, Pali Rohár wrote: Hello Stefan, this is v4 of series that adds more checks for kwbimage validity and consistency to SPL, mainly checking image data checksum. Patches now passed Github CI testing: https://github.com/u-boot/u-boot/pull/106 Changes since v3: - fix compile erros

Re: [PATCH] xilinx: common: change bootm_size to not go beyond ram_top

2022-01-20 Thread Ricardo Salveti
On Thu, Jan 20, 2022 at 4:33 AM Michal Simek wrote: > On 1/19/22 23:52, Ricardo Salveti wrote: > > The available ram can be limited by ram_top as that depends on the > > reserved memory nodes provided by the device-tree (via > > board_get_usable_ram_top), so make sure to respect ram_top when

Re: [PATCH] pci: pci_mvebu: Add support for Kirkwood PCIe controllers

2022-01-20 Thread Stefan Roese
On 1/13/22 14:28, Pali Rohár wrote: Kirkwood uses macros KW_DEFADR_PCI_MEM and KW_DEFADR_PCI_IO for base address of PCIe mappings. Size of PCIe windows is not defined in any macro yet, so export them in new KW_DEFADR_PCI_MEM_SIZE and KW_DEFADR_PCI_IO_SIZE macros. Kirkwood arch code already maps

Re: [PATCH u-boot-marvell v2] arm: mvebu: turris_omnia: Fixup SATA or PCIe nodes at runtime in DT blob

2022-01-20 Thread Stefan Roese
On 1/10/22 11:47, Marek Behún wrote: From: Pali Rohár On of the MiniPCIe ports on Turris Omnia is also a mSATA port. Whether it works in SATA or PCIe mode is determined by a strapping pin, which value is read from the MCU. We already determine which type of card is connected when configuring

Re: [PATCH u-boot-dm v4] fdt_support: Add fdt_for_each_node_by_compatible() helper macro

2022-01-20 Thread Stefan Roese
On 1/20/22 01:04, Marek Behún wrote: From: Marek Behún Add macro fdt_for_each_node_by_compatible() to allow iterating over fdt nodes by compatible string. Convert various usages of off = fdt_node_offset_by_compatible(fdt, start, compat); while (off > 0) { code();

[RFC PATCH 14/14] configs: synquacer: Add FWU support for DeveloperBox

2022-01-20 Thread Masami Hiramatsu
Enable FWU Multi-Bank support for DeveloperBox SynQuacer platform. This also enables fwu_metadata_read command and "reboot soon after update" option. Signed-off-by: Masami Hiramatsu --- configs/synquacer_developerbox_defconfig |7 +++ 1 file changed, 7 insertions(+) diff --git

[RFC PATCH 13/14] FWU: synquacer: Initialize broken metadata

2022-01-20 Thread Masami Hiramatsu
Since the FWU metadata is not initialized at the installation, if it is broken, it should be initialized. Usually, the FWU metadata is not covered by capsule update, so it is safe to initialize the metadata portion if it seems broken. But for the production device, usually firmware will be

[RFC PATCH 12/14] FWU: synquacer: Add FWU Multi bank update support for DeveloperBox

2022-01-20 Thread Masami Hiramatsu
The DeveloperBox platform can support the FWU Multi bank update. SCP firmware will switch the boot mode by DSW3-4 and load the Multi bank update supported TF-A BL2 from 0x60 offset on the SPI flash. Thus it can co-exist with the legacy boot mode (legacy U-Boot or EDK2). Signed-off-by: Masami

[RFC PATCH 11/14] FWU: Add FWU Multi Bank Update on SPI Flash

2022-01-20 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- include/fwu.h | 13 ++ lib/fwu_updates/Kconfig| 34 ++ lib/fwu_updates/Makefile |5 - lib/fwu_updates/fwu_mdata_sf.c | 241 4 files changed, 288 insertions(+), 5 deletions(-)

[RFC PATCH 10/14] FWU: Reboot soon after successfully install the new firmware

2022-01-20 Thread Masami Hiramatsu
Reboot to the trial state soon after successfully installing the new firmware to the next bank and updating the active_index. This is enabled by CONFIG_FWU_REBOOT_AFTER_UPDATE and is a recommended option. Signed-off-by: Masami Hiramatsu --- lib/efi_loader/efi_capsule.c | 10 --

[RFC PATCH 09/14] synquacer: Update for TBBR based new FIP layout

2022-01-20 Thread Masami Hiramatsu
This changes SPI NOR flash partition layout for TBBR and also make the U-Boot as position independent executable again because BL33 is loaded on the memory. With enabling TBBR, TF-A BL2 loads all BL3x images from FIP image, and the U-Boot image is added to the FIP image as BL33, and loaded to

[RFC PATCH 08/14] FWU: Move FWU metadata operation code in fwu_mdata.c

2022-01-20 Thread Masami Hiramatsu
Remove some FWU metadata operations which only access or modify the metadata itself from fwu_mdata_ops and move it in fwu_mdata.c. Signed-off-by: Masami Hiramatsu --- include/fwu.h |9 --- lib/fwu_updates/fwu_mdata.c | 105 ---

[RFC PATCH 07/14] FWU: Free metadata copy if gpt_get_mdata() failed

2022-01-20 Thread Masami Hiramatsu
It is better if a function which returns an error then release all allocated memory resources. This simplifies the mind model and less chance to forgot to free memory and double free. Signed-off-by: Masami Hiramatsu --- lib/fwu_updates/fwu_mdata_gpt_blk.c | 11 --- 1 file changed, 8

[RFC PATCH 06/14] FWU: Calculate CRC32 in gpt_update_mdata()

2022-01-20 Thread Masami Hiramatsu
To avoid calculating crc32 in several places, do it in gpt_update_mdata(). This also ensures the mdata crc32 is always sane. Signed-off-by: Masami Hiramatsu --- lib/fwu_updates/fwu_mdata.c | 18 -- lib/fwu_updates/fwu_mdata_gpt_blk.c | 13 - 2 files

[RFC PATCH 05/14] cmd/dfu: Enable 'dfu list' command without DFU_OVER_USB

2022-01-20 Thread Masami Hiramatsu
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 current dfu_alt_info setting is parsed. Signed-off-by: Masami Hiramatsu ---

[RFC PATCH 04/14] doc: usage: DFU: Fix dfu_alt_info document

2022-01-20 Thread Masami Hiramatsu
Fix some typo and wrong information about dfu_alt_info. Signed-off-by: Masami Hiramatsu --- doc/usage/dfu.rst | 45 + 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/doc/usage/dfu.rst b/doc/usage/dfu.rst index 11c88072b8..25517637ae

[RFC PATCH 03/14] DFU: Check the number of arguments and argument string strictly

2022-01-20 Thread Masami Hiramatsu
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 make a typo or mis- understanding about the syntax. Since the dfu_alt_info is

[RFC PATCH 02/14] DFU: Accept redundant spaces and tabs in dfu_alt_info

2022-01-20 Thread Masami Hiramatsu
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 address is '0' and the size '0x10'. This is because the repeated space is

[RFC PATCH 01/14] DFU: Do not copy the entity name over the buffer size

2022-01-20 Thread Masami Hiramatsu
Use strlcpy() instead of strcpy() to prevent copying the entity name over the name buffer size. Signed-off-by: Masami Hiramatsu --- drivers/dfu/dfu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index af3975925a..66c41b5e76 100644

[RFC PATCH 00/14] FWU: Add FWU Multi Bank Update for DeveloerBox

2022-01-20 Thread Masami Hiramatsu
Hi, Here is an RFC series of patches for the FWU Multi Bank Update support for the DeveloperBox platform. This series depends on Sughosh's Multi Bank Update v3 [1]. Thus if that is updated, this must be rebased and updated too. [1] https://patchwork.ozlabs.org/project/uboot/list/?series=281875

Re: [PATCH v9 03/11] tools: build mkeficapsule with tools-only_defconfig

2022-01-20 Thread Tom Rini
On Thu, Jan 20, 2022 at 10:39:03AM +0900, AKASHI Takahiro wrote: > Heinrich, > > On Wed, Jan 19, 2022 at 05:08:14PM +0100, Heinrich Schuchardt wrote: > > On 1/18/22 05:39, AKASHI Takahiro wrote: > > > Add CONFIG_TOOLS_MKEFICAPSULE. Then we want to always build mkeficapsule > > > if

Re: [PATCH v3] drivers: spi-nor: Add JEDEC id for W25Q16JV

2022-01-20 Thread Jagan Teki
On Thu, Jan 20, 2022 at 7:53 PM wrote: > > On 1/20/22 3:20 PM, Michael Walle wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > >>> + { > >>> + INFO("w25q16jvm", 0xef7015, 0, 64 * 1024, 32, > >> > >> Can this name

Re: [PATCH 7/7] sunxi: H6: Enable SPI0 in DT when no eMMC is used

2022-01-20 Thread Jagan Teki
On Thu, Jan 20, 2022 at 7:36 PM Andre Przywara wrote: > > On Thu, 20 Jan 2022 19:08:57 +0530 > Jagan Teki wrote: > > Hi, > > > On Tue, Jan 11, 2022 at 6:16 PM Andre Przywara > > wrote: > > > > > > On the Allwinner H6 SoC both the SPI0 and the eMMC device share one pin, > > > so cannot be used

Re: [PATCH 7/7] sunxi: H6: Enable SPI0 in DT when no eMMC is used

2022-01-20 Thread Andre Przywara
On Thu, 20 Jan 2022 19:08:57 +0530 Jagan Teki wrote: Hi, > On Tue, Jan 11, 2022 at 6:16 PM Andre Przywara wrote: > > > > On the Allwinner H6 SoC both the SPI0 and the eMMC device share one pin, > > so cannot be used simultaneously. On Linux this is a showstopper, since > > only one of them

Re: [PATCH v3] drivers: spi-nor: Add JEDEC id for W25Q16JV

2022-01-20 Thread Angus Ainslie
Hi Jagan, On 2022-01-20 04:55, Jagan Teki wrote: On Mon, Jan 17, 2022 at 7:27 PM Angus Ainslie wrote: Add a JEDEC id for the Winbond W25Q16JV 16M-BIT serial flash memory with DUAL/QUAD SPI Changes since v2: Chagned the name to follow "DTR" parts Changes since v1: Updated the name for

Re: [PATCH] mxc_gpio: on imx8m read the DR instead of the PSR

2022-01-20 Thread Fabio Estevam
Hi Angus, On Thu, Jan 20, 2022 at 10:56 AM Angus Ainslie wrote: > I decided to bypass the devicetree to test it on the imx8mq > > static const iomux_v3_cfg_t configure_pads[] = { >IMX8MQ_PAD_GPIO1_IO03__GPIO1_IO3 | MUX_PAD_CTRL(PAD_CTL_DSE6) > | MUX_MODE_SION, >

Re: [PATCH] mxc_gpio: on imx8m read the DR instead of the PSR

2022-01-20 Thread Angus Ainslie
Hi Fabio, On 2022-01-18 08:59, Fabio Estevam wrote: Hi Angus, On Sun, Nov 28, 2021 at 12:42 PM Angus Ainslie wrote: [1] diff --git a/arch/arm/dts/imx8mq-librem5.dts b/arch/arm/dts/imx8mq-librem5.dts index b28420654f..b60a8538af 100644 --- a/arch/arm/dts/imx8mq-librem5.dts +++

Re: Commit 4f2e2280862a ("RFC: arm: pci: Add PCI cam support to PCI-E ecam driver")

2022-01-20 Thread Pali Rohár
Hello Mark! On Thursday 20 January 2022 00:23:02 Mark Kettenis wrote: > CAM is just a version of ECAM that only gives you access to the > classic PCI config space (register offsets < 256). This has very > little to do with the classic "mode 1" and "mode 2" config space > access methods of the

Re: Commit 4f2e2280862a ("RFC: arm: pci: Add PCI cam support to PCI-E ecam driver")

2022-01-20 Thread Pali Rohár
Hello Alistair! On Wednesday 19 January 2022 14:48:21 Alistair Delva wrote: > Hi Pali, > > Sorry for the late reply.. > > On Thu, Jan 13, 2022 at 4:34 AM Pali Rohár wrote: > > > > Hello! > > > > Now I see that you have merged commit 4f2e2280862a ("RFC: arm: pci: Add > > PCI cam support to

  1   2   >