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

2022-01-19 Thread Michal Simek
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 setting up bootm_size to avoid overlapping reserved memory regions

[PATCH v2] power: zynqmp: Add power domain driver for ZynqMP

2022-01-19 Thread Michal Simek
Driver should be enabled by CONFIG_POWER_DOMAIN=y and CONFIG_ZYNQMP_POWER_DOMAIN=y. Power domain driver doesn't have own DT node but it uses zynqmp firmware DT node that's why there is a need to bind driver when firmware node is found. Driver itself is simple. It is sending pmufw config object ove

Pull request doc-2022-04-rc1

2022-01-19 Thread Heinrich Schuchardt
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 preparation otherwise rebasing will be an endless story. Gitlab CI showed no issu

[PATCH] configs: stm32mp15: Enable OF_BOARD flag

2022-01-19 Thread Patrice Chotard
Since commit 985503439762 ("fdt: Don't call board_fdt_blob_setup() without OF_BOARD") board_fdt_blob_setup() is no more called on STM32MP platforms in trusted boot which hangs during boot process. Enable OF_BOARD flag to fix this issue. Signed-off-by: Patrice Chotard --- arch/arm/mach-stm32mp

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

2022-01-19 Thread Masami Hiramatsu
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 > +++ b/lib/fwu_updates/Kconfig > @@ -0,0 +1,31 @@ > +config FWU_MULTI_BANK_UPDATE > + bool "Enable FWU Mul

Re: [RFC PATCH v3 1/9] FWU: Add FWU metadata structure and functions for accessing metadata

2022-01-19 Thread Masami Hiramatsu
Hi Sughosh, I have another comment on this patch. 2022年1月20日(木) 3:56 Sughosh Ganu : > +/** > + * fwu_update_active_index() - Update active_index from the FWU metadata > + * @active_idx: active_index value to be updated > + * > + * Update the active_index field in the FWU metadata > + * > + * Ret

Re: [PATCH] MAINTAINERS: Update e-mail in Xen maintainership

2022-01-19 Thread Oleksandr Andrushchenko
Hi, Anastasiia On 19.01.22 22:49, Anastasiia Lukianenko wrote: > Changing e-mail because of leaving EPAM. > > Signed-off-by: Anastasiia Lukianenko Reviewed-by: Oleksandr Andrushchenko > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/MAINTAINERS b/MA

Re: [PATCH v9 01/11] tools: mkeficapsule: output messages to stderr instead of stdout

2022-01-19 Thread AKASHI Takahiro
On Wed, Jan 19, 2022 at 04:41:15PM +0100, Heinrich Schuchardt wrote: > On 1/18/22 05:39, AKASHI Takahiro wrote: > > All the error messages should be printed out to stderr. > > > > Signed-off-by: AKASHI Takahiro > > --- > > tools/mkeficapsule.c | 35 ++- > > 1 fi

Re: [RFC PATCH v3 1/9] FWU: Add FWU metadata structure and functions for accessing metadata

2022-01-19 Thread Masami Hiramatsu
Hello Sughosh, 2022年1月20日(木) 3:56 Sughosh Ganu : > > In the FWU Multi Bank Update feature, the information about the > updatable images is stored as part of the metadata, which is stored on > a dedicated partition. Add the metadata structure, and functions to > access the metadata. These are gener

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

2022-01-19 Thread AKASHI Takahiro
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 been implemented. > > The FWU multi bank update feature is used for supporting mult

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

2022-01-19 Thread AKASHI Takahiro
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 the ImageTypeId GUID value. Add support in the > GetImageInfo function of the F

Re: [PATCH v3 04/31] lib: Add a way to find the postiion of a trailing number

2022-01-19 Thread AKASHI Takahiro
On Wed, Jan 19, 2022 at 12:27:09PM +0100, Heinrich Schuchardt wrote: > On 1/19/22 02:42, Simon Glass wrote: > > At present it is not possible to find out which part of the string is the > > number part and which is before it. Add a new variant which provides this > > feature, so we can separate the

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

2022-01-19 Thread AKASHI Takahiro
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? > firmware accept and revert capsules. These are empty capsules which > are used for

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

2022-01-19 Thread AKASHI Takahiro
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 tools-only_defconfig is used. > > > > Signed-off-by: AKASHI Takahiro > > Reviewed-by: Simo

Re: [PATCH 14/27] sunxi: implement clock driver for suniv f1c100s

2022-01-19 Thread Sean Anderson
On 7/25/21 7:16 PM, Yifan Gu wrote: From: George Hilliard The f1c100s has a simple clock tree similar to those of other sunxi parts. Add support for it. Signed-off-by: George Hilliard Signed-off-by: Yifan Gu --- drivers/clk/sunxi/Kconfig | 7 drivers/clk/sunxi/Makefile |

Re: [PATCH v8 03/15] rockchip: rk3066: add clock driver for rk3066 soc

2022-01-19 Thread Sean Anderson
On 1/17/22 7:36 PM, Johan Jonker wrote: From: Paweł Jarosz Add the clock driver for the rk3066 platform. Derived from the rk3288 and rk3188 driver it supports only a bare minimum to bring up the system to reduce the TPL size for: SDRAM clock configuration. The boot devices NAND, EMMC, SD

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

2022-01-19 Thread Tony Dinh
Add board include header and defconfig files for Pogoplug V4 Signed-off-by: Tony Dinh --- Changes in v3: - Migrate config symbols from board include header to defconfig - Remove obsolete config symbols from header file - Don't use ifdefs for unselectable config symbols in header file Changes in

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

2022-01-19 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 rewritten

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

2022-01-19 Thread Tony Dinh
Add Kconfig files for Pogoplug V4 board Signed-off-by: Tony Dinh --- 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 insertions(+) create mode 10

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

2022-01-19 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 file

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

2022-01-19 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 v3: - Migrate symbols from board include header to Kconfig - Squash board file sma

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

2022-01-19 Thread Marek Behún
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(); off = fdt_node_offset_by_compatible(fdt, off,

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

2022-01-19 Thread Simon Glass
()Hi Mark, On Wed, 19 Jan 2022 at 09:38, Mark Kettenis wrote: > > > Date: Wed, 19 Jan 2022 11:21:17 -0500 > > From: Tom Rini > > > > On Wed, Jan 19, 2022 at 09:09:51AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 19 Jan 2022 at 08:01, Tom Rini wrote: > > > > > > > > On Wed, Jan 1

Re: [PATCH v3 4/4] arm: kirkwood: Pogoplug-V4 : Add board implementation files

2022-01-19 Thread Tony Dinh
fHi Stefan, On Wed, Jan 19, 2022 at 6:37 AM Stefan Roese wrote: > > Hi Tony, > > On 1/19/22 02:31, Tony Dinh wrote: > > > > >>> +#if defined(CONFIG_RESET_PHY_R) > >>> +/* Configure and initialize PHY */ > >>> +void reset_phy(void) > >>> +{ > >>> + u16 reg; > >>> + int phyaddr; > >>> +

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

2022-01-19 Thread Simon Glass
Hi Tom, On Wed, 19 Jan 2022 at 09:21, Tom Rini wrote: > > On Wed, Jan 19, 2022 at 09:09:51AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 19 Jan 2022 at 08:01, Tom Rini wrote: > > > > > > On Wed, Jan 19, 2022 at 07:37:36AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed

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

2022-01-19 Thread Mark Kettenis
> From: Alistair Delva > Date: Wed, 19 Jan 2022 14:48:21 -0800 > > 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 PCI-E ecam driv

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

2022-01-19 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: Commit 4f2e2280862a ("RFC: arm: pci: Add PCI cam support to PCI-E ecam driver")

2022-01-19 Thread Alistair Delva
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 PCI-E ecam driver"). It adds some "PCI cam support" > with generic DT binding "pci-host-cam-generic".

[PATCH] MAINTAINERS: Update e-mail in Xen maintainership

2022-01-19 Thread Anastasiia Lukianenko
Changing e-mail because of leaving EPAM. Signed-off-by: Anastasiia Lukianenko --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 64648c2921..9c2d6fe063 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1307,7 +1307,7 @@ F:arch

Re: [GIT PULL] xilinx patches for v2022.04-rc1

2022-01-19 Thread Tom Rini
On Wed, Jan 19, 2022 at 05:30:02PM +0100, Michal Simek wrote: > Hi Tom, > > please pull these changes to your tree. I will have another queue when > patches are reviewed but in general we will be extending zynqmp driver with > adding more new features to support new Xilinx SOMs. > > Thanks, > Mi

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

2022-01-19 Thread Sughosh Ganu
The Dependable Boot specification describes the structure of the firmware accept and revert capsules. These are empty capsules which are used for signalling the acceptance or rejection of the updated firmware by the OS. Add support for generating these empty capsules. Signed-off-by: Sughosh Ganu

[RFC PATCH v3 8/9] FWU: cmd: Add a command to read FWU metadata

2022-01-19 Thread Sughosh Ganu
Add a command to read the metadata as specified in the FWU specification and print the fields of the metadata. Signed-off-by: Sughosh Ganu --- Changes since V2: * Include the log.h and stdio.h header files cmd/Kconfig | 7 ++ cmd/Makefile| 1 + cmd/fwu_mdata.c | 67 ++

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

2022-01-19 Thread Sughosh Ganu
The FWU Multi Bank Update feature supports updation of firmware images to one of multiple sets(also called banks) of images. The firmware images are clubbed together in banks, with the system booting images from the active bank. Information on the images such as which bank they belong to is stored

[RFC PATCH v3 6/9] FWU: Add boot time checks as highlighted by the FWU specification

2022-01-19 Thread Sughosh Ganu
The FWU Multi Bank Update specification requires the Update Agent to carry out certain checks at the time of platform boot. The Update Agent is the component which is responsible for updating the firmware components and maintaining and keeping the metadata in sync. The spec requires that the Updat

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

2022-01-19 Thread Sughosh Ganu
The FWU Multi Banks Update feature allows updating different types of updatable firmware images on the platform. These image types are identified using the ImageTypeId GUID value. Add support in the GetImageInfo function of the FMP protocol to get the GUID values for the individual images and popul

[RFC PATCH v3 4/9] FWU: STM32MP1: Add support to read boot index from backup register

2022-01-19 Thread Sughosh Ganu
The FWU Multi Bank Update feature allows the platform to boot the firmware images from one of the partitions(banks). The first stage bootloader(fsbl) passes the value of the boot index, i.e. the bank from which the firmware images were booted from to U-Boot. On the STM32MP157C-DK2 board, this value

[RFC PATCH v3 3/9] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2022-01-19 Thread Sughosh Ganu
Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. These functions have been added for the STM32MP157C-DK2 board which has the updatable images on the uSD card, formatted as GPT partitions. Signed-off-by: Sughosh Ganu --- Changes since

[RFC PATCH v3 2/9] FWU: Add FWU metadata access functions for GPT partitioned block devices

2022-01-19 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add functions for reading from and writing to the metadata when the updatable images and the metadata are stored on a block device which is formated with GPT

[RFC PATCH v3 1/9] FWU: Add FWU metadata structure and functions for accessing metadata

2022-01-19 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, which is stored on a dedicated partition. Add the metadata structure, and functions to access the metadata. These are generic API's, and implementations can be added based on paramete

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

2022-01-19 Thread Sughosh Ganu
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 FWU multi bank update feature is used for supporting multiple sets(also called banks) of firmware image(s), allowing the platform to boot fr

Re: [PATCH v3 05/20] arm: K3: Add basic support for J721S2 SoC definition

2022-01-19 Thread Suman Anna
Hi Aswath, On 1/18/22 1:27 AM, Aswath Govindraju wrote: > From: David Huang > > Add basic support for J721S2 SoC definition > > Signed-off-by: David Huang > Signed-off-by: Aswath Govindraju > Signed-off-by: Dave Gerlach > Signed-off-by: Nishanth Menon > Signed-off-by: Hari Nagalla > --- >

Re: FIT image: load secure FPGA

2022-01-19 Thread Oleksandr Suvorov
Hi Adrian, On Wed, Jan 19, 2022 at 7:23 PM Jorge Ramirez-Ortiz, Foundries wrote: > > On 19/01/22, Jorge Ramirez-Ortiz, Foundries wrote: > > On 19/01/22, Jorge Ramirez-Ortiz, Foundries wrote: > > > On 19/01/22, Adrian Fiergolski wrote: > > > > Hi Jorge, > > > > > > hi Adrian, > > > > > > > > > > >

Re: [PATCH v3 04/31] lib: Add a way to find the postiion of a trailing number

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 16:11, Tom Rini wrote: On Wed, Jan 19, 2022 at 07:37:23AM -0700, Simon Glass wrote: Hi Heinrich, On Wed, 19 Jan 2022 at 04:33, Heinrich Schuchardt wrote: On 1/19/22 02:42, Simon Glass wrote: At present it is not possible to find out which part of the string is the number part and

Re: FIT image: load secure FPGA

2022-01-19 Thread Jorge Ramirez-Ortiz, Foundries
On 19/01/22, Jorge Ramirez-Ortiz, Foundries wrote: > On 19/01/22, Jorge Ramirez-Ortiz, Foundries wrote: > > On 19/01/22, Adrian Fiergolski wrote: > > > Hi Jorge, > > > > hi Adrian, > > > > > > > > Have you succeeded to enable secure boot on ZynqMP with SPL (not Xilinx's > > > FSBL)? Is it docume

Re: FIT image: load secure FPGA

2022-01-19 Thread Jorge Ramirez-Ortiz, Foundries
On 19/01/22, Jorge Ramirez-Ortiz, Foundries wrote: > On 19/01/22, Adrian Fiergolski wrote: > > Hi Jorge, > > hi Adrian, > > > > > Have you succeeded to enable secure boot on ZynqMP with SPL (not Xilinx's > > FSBL)? Is it documented somewhere? Any configuration files/yocto recipes? > > somewhere

Re: FIT image: load secure FPGA

2022-01-19 Thread Jorge Ramirez-Ortiz, Foundries
On 19/01/22, Adrian Fiergolski wrote: > Hi Jorge, hi Adrian, > > Have you succeeded to enable secure boot on ZynqMP with SPL (not Xilinx's > FSBL)? Is it documented somewhere? Any configuration files/yocto recipes? somewhere there: https://github.com/foundriesio/meta-lmp > Have you managed to

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

2022-01-19 Thread Mark Kettenis
> Date: Wed, 19 Jan 2022 11:21:17 -0500 > From: Tom Rini > > On Wed, Jan 19, 2022 at 09:09:51AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 19 Jan 2022 at 08:01, Tom Rini wrote: > > > > > > On Wed, Jan 19, 2022 at 07:37:36AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

[GIT PULL] xilinx patches for v2022.04-rc1

2022-01-19 Thread Michal Simek
Hi Tom, please pull these changes to your tree. I will have another queue when patches are reviewed but in general we will be extending zynqmp driver with adding more new features to support new Xilinx SOMs. Thanks, Michal The following changes since commit ade37460a944aed36ae6ee634c4d4a9a22

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

2022-01-19 Thread Tom Rini
On Wed, Jan 19, 2022 at 09:09:51AM -0700, Simon Glass wrote: > Hi Tom, > > On Wed, 19 Jan 2022 at 08:01, Tom Rini wrote: > > > > On Wed, Jan 19, 2022 at 07:37:36AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 19 Jan 2022 at 07:04, Tom Rini wrote: > > > > > > > > On Tue, Jan 18, 20

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

2022-01-19 Thread Simon Glass
Hi Tom, On Wed, 19 Jan 2022 at 08:01, Tom Rini wrote: > > On Wed, Jan 19, 2022 at 07:37:36AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 19 Jan 2022 at 07:04, Tom Rini wrote: > > > > > > On Tue, Jan 18, 2022 at 06:43:15PM -0700, Simon Glass wrote: > > > > > > > Switch this over, for te

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

2022-01-19 Thread Heinrich Schuchardt
On 1/18/22 05:39, AKASHI Takahiro wrote: Add CONFIG_TOOLS_MKEFICAPSULE. Then we want to always build mkeficapsule if tools-only_defconfig is used. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass --- configs/tools-only_defconfig | 1 + tools/Kconfig| 8 tool

Re: FIT image: load secure FPGA

2022-01-19 Thread Adrian Fiergolski
Hi Jorge, Have you succeeded to enable secure boot on ZynqMP with SPL (not Xilinx's FSBL)? Is it documented somewhere? Any configuration files/yocto recipes? Have you managed to resolve problem of the bitstream loaded in such a case by SPL? I need to use an encrypted bitstream. However, it r

Re: [PATCH v9 01/11] tools: mkeficapsule: output messages to stderr instead of stdout

2022-01-19 Thread Heinrich Schuchardt
On 1/18/22 05:39, AKASHI Takahiro wrote: All the error messages should be printed out to stderr. Signed-off-by: AKASHI Takahiro --- tools/mkeficapsule.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/tools/mkeficapsule.c b/tools/mkef

Re: Pull request: u-boot-samsung master

2022-01-19 Thread Tom Rini
On Wed, Jan 19, 2022 at 07:27:28PM +0900, Minkyu Kang wrote: > Dear Tom, > > The following changes since commit fe04d885fb540b614a2f989e16e808b300ccb52e: > > Merge branch 'next' (2022-01-10 14:01:57 -0500) > > are available in the git repository at: > > g...@source.denx.de:u-boot/custodian

Re: [PATCH v3 04/31] lib: Add a way to find the postiion of a trailing number

2022-01-19 Thread Tom Rini
On Wed, Jan 19, 2022 at 07:37:23AM -0700, Simon Glass wrote: > Hi Heinrich, > > On Wed, 19 Jan 2022 at 04:33, Heinrich Schuchardt wrote: > > > > On 1/19/22 02:42, Simon Glass wrote: > > > At present it is not possible to find out which part of the string is the > > > number part and which is befo

Re: [PATCH 2/2 v2] efi_loader: Ignore sha1 on signature verification

2022-01-19 Thread Ilias Apalodimas
Heinrich Replying to myself here but... On Wed, 19 Jan 2022 at 13:54, Ilias Apalodimas wrote: > > Since SHA1 has know collisions disable it on EFI verification for > variables and executables > > Signed-off-by: Ilias Apalodimas > --- > lib/efi_loader/efi_signature.c | 5 + > 1 file change

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

2022-01-19 Thread Tom Rini
On Wed, Jan 19, 2022 at 07:37:36AM -0700, Simon Glass wrote: > Hi Tom, > > On Wed, 19 Jan 2022 at 07:04, Tom Rini wrote: > > > > On Tue, Jan 18, 2022 at 06:43:15PM -0700, Simon Glass wrote: > > > > > Switch this over, for testing purposes. > > > > > > Signed-off-by: Simon Glass > > > --- > > > >

Re: [PATCH v4 01/13] imx: Don't define __ASSEMBLY__ in C files

2022-01-19 Thread Simon Glass
Hi Tom, On Mon, 17 Jan 2022 at 06:54, Tom Rini wrote: > > On Sun, Jan 16, 2022 at 01:19:25PM -0700, Simon Glass wrote: > > > This is supposed to be a build-system flag. Move it there so we can > > define it before linux/kconfig.h is included. > > > > Signed-off-by: Simon Glass > > These aren't "

RE: [PATCH v2] arm: dts: Aspeed: add Bletchley dts

2022-01-19 Thread 賴柏廷
Hi Tom, Thank you for the reply. It looks like some of changes are only appeared in openbmc u-boot repo. Hi Joel, Could you advise how to send the patch to openbmc u-boot repo? Thank you. BRs, Potin -Original Message- From: Tom Rini Sent: Wednesday, January 19, 2022 1:48 AM To: Potin L

[v2] board: ls1088a: update ifc node name to be memory-controller

2022-01-19 Thread Jianpeng Bu
IFC-NOR and QSPI are muxed on SoC. So disable IFC node in dts if QSPI is enabled or disable QSPI node in dts in case QSPI is not enabled. "ifc/nor" will be changed to "memory-controller/nor" in linux. So need to modify "ifc/nor" to "memory-controller/nor" in fdt_path_offset(). Signed-off-by: Jian

Re: [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c

2022-01-19 Thread Chris Morgan
On Mon, Jan 17, 2022 at 01:34:55AM +, Andre Przywara wrote: > On Fri, 7 Jan 2022 11:52:54 -0600 > Chris Morgan wrote: > > Hi Chris, > > > From: Chris Morgan > > > > This adds a compatible string for the Allwinner Sun4i-A10 I2C > > controller. Without this, boards based on the R8 and A13 (

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

2022-01-19 Thread Simon Glass
Hi Michael, 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 without custom scripting and other customisation. > > This is called 'standard boot' since it provides a standard way for > >

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-19 Thread Ilias Apalodimas
Hi Heinrich, On Wed, Jan 19, 2022 at 03:22:53PM +0100, Heinrich Schuchardt wrote: > On 1/18/22 19:12, Ilias Apalodimas wrote: > > Hi Heinrich, > > > > On Tue, 18 Jan 2022 at 18:22, Heinrich Schuchardt > > wrote: > > > > > > On 1/18/22 15:03, Ilias Apalodimas wrote: > > > > Hi Heinrich, > > >

Re: [PATCH] board: amlogic: vim3: configure serial# from ethaddr

2022-01-19 Thread Neil Armstrong
Hi, On Wed, 19 Jan 2022 15:24:00 +0100, Mattijs Korpershoek wrote: > The Khadas VIM3 and VIM3L boards, which are supported in Android via > Yukawa [1] need a serial number for usb/fastboot enumeration. > > Whenever the environment does not provide a serial#, use the eth mac > address as serial#.

Re: [PATCH] board: amlogic: vim3: configure serial# from ethaddr

2022-01-19 Thread Neil Armstrong
On 19/01/2022 15:24, Mattijs Korpershoek wrote: > The Khadas VIM3 and VIM3L boards, which are supported in Android via > Yukawa [1] need a serial number for usb/fastboot enumeration. > > Whenever the environment does not provide a serial#, use the eth mac > address as serial#. > > [1] https://sou

Re: [PATCH v3 4/4] arm: kirkwood: Pogoplug-V4 : Add board implementation files

2022-01-19 Thread Stefan Roese
Hi Tony, On 1/19/22 02:31, Tony Dinh wrote: +#if defined(CONFIG_RESET_PHY_R) +/* Configure and initialize PHY */ +void reset_phy(void) +{ + u16 reg; + int phyaddr; + char *name = "ethernet-controller@72000"; + char *eth0_path = "/ocp@f100/ethernet-controller@72000"; + +

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

2022-01-19 Thread Simon Glass
Hi Tom, On Wed, 19 Jan 2022 at 07:04, Tom Rini wrote: > > On Tue, Jan 18, 2022 at 06:43:15PM -0700, Simon Glass wrote: > > > Switch this over, for testing purposes. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > > > > boot/Kconfig | 3 ++- > > include/confi

Re: [PATCH v3 04/31] lib: Add a way to find the postiion of a trailing number

2022-01-19 Thread Simon Glass
Hi Heinrich, On Wed, 19 Jan 2022 at 04:33, Heinrich Schuchardt wrote: > > On 1/19/22 02:42, Simon Glass wrote: > > At present it is not possible to find out which part of the string is the > > number part and which is before it. Add a new variant which provides this > > feature, so we can separat

Re: [PATCH 1/1] doc: printf() codes

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 04:09, AKASHI Takahiro wrote: Heinrich, Thank you for additional work. On Wed, Jan 19, 2022 at 01:23:00AM +0100, Heinrich Schuchardt wrote: Document the format specifier codes used by U-Boot's printf() implementation. Signed-off-by: Heinrich Schuchardt --- doc/develop/index.rst

[PATCH] board: amlogic: vim3: configure serial# from ethaddr

2022-01-19 Thread Mattijs Korpershoek
The Khadas VIM3 and VIM3L boards, which are supported in Android via Yukawa [1] need a serial number for usb/fastboot enumeration. Whenever the environment does not provide a serial#, use the eth mac address as serial#. [1] https://source.android.com/setup/build/devices#vim3_and_vim3l_boards Sign

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-19 Thread Heinrich Schuchardt
On 1/18/22 19:12, Ilias Apalodimas wrote: Hi Heinrich, On Tue, 18 Jan 2022 at 18:22, Heinrich Schuchardt wrote: On 1/18/22 15:03, Ilias Apalodimas wrote: Hi Heinrich, - info.checksum = image_get_checksum_algo("sha256,rsa2048"); [...] - info.name = "sha256,rsa2048"; - }

[PATCH 2/2] scsi: ceva: Enable PHY and reset support

2022-01-19 Thread Michal Simek
Add phy and reset support for ceva sata IP. Phy and reset are optional properties that's why detect if description is available. If not just continue with operation. This code was tested on Xilinx Kria SOM kv260-revA with sata connector populated. Signed-off-by: Michal Simek --- drivers/ata/sat

[PATCH 1/2] phy: zynqmp: Add support for sata and DP phy initialization

2022-01-19 Thread Michal Simek
DP is untested but just c&p from Linux driver. Sata is tested on kv260-revA board which has SATA connector populated. Signed-off-by: Michal Simek --- drivers/phy/phy-zynqmp.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/phy/phy-zynqm

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

2022-01-19 Thread Tom Rini
On Tue, Jan 18, 2022 at 06:43:15PM -0700, Simon Glass wrote: > Switch this over, for testing purposes. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > boot/Kconfig | 3 ++- > include/configs/rpi.h | 39 ++- > 2 files changed, 4

Re: [PATCH] power: zynqmp: Add power domain driver for ZynqMP

2022-01-19 Thread Jerry Van Baren
Trivial English correction. On Wed, Jan 19, 2022 at 6:04 AM Michal Simek wrote: > Driver should be enabled by CONFIG_POWER_DOMAIN=y and > CONFIG_ZYNQMP_POWER_DOMAIN=y. Power domain driver doesn't have own DT node > but it uses zynqmp firmware DT node that's why there is a need to bind > driver w

Re: [PATCH] socfpga: enable EFI partition support for de0-nano-soc

2022-01-19 Thread Matthias Brugger
Hi Simon, On 28/10/2021 08:52, Matthias Brugger wrote: On 22/10/2021 19:59, Frank Kunz wrote: This fixes boot problems with distributions that use EFI boot like opensuse. Signed-off-by: Frank Kunz Reviewed-by: Matthias Brugger I can see that this patched got delegated to you in patchw

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-19 Thread Ilias Apalodimas
\> > > > No that's not doable. Things like EFI_TCG2 protocol needs that since > > we use a sha1 in the tcg eventlog. > > I simply wonder why you can trust SHA1 in PCR/event log while you don't > trust it in secure boot. You don't trust the PCRs in the eventlog. The eventlog is a human readable f

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-19 Thread AKASHI Takahiro
On Wed, Jan 19, 2022 at 09:07:04AM +0200, Ilias Apalodimas wrote: > Hi Akashi-san, > > > On Wed, 19 Jan 2022 at 06:47, AKASHI Takahiro > wrote: > > > > On Tue, Jan 18, 2022 at 08:12:22PM +0200, Ilias Apalodimas wrote: > > > Hi Heinrich, > > > > > > On Tue, 18 Jan 2022 at 18:22, Heinrich Schuchar

[PATCH 2/2 v2] efi_loader: Ignore sha1 on signature verification

2022-01-19 Thread Ilias Apalodimas
Since SHA1 has know collisions disable it on EFI verification for variables and executables Signed-off-by: Ilias Apalodimas --- lib/efi_loader/efi_signature.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/efi_loader/efi_signature.c b/lib/efi_loader/efi_signature.c index 6e3ee3c0c0

[PATCH 1/2 v2] lib/crypto: Enable more algorithms in cert verification

2022-01-19 Thread Ilias Apalodimas
Right now the code explicitly limits us to sha1,256 hashes with RSA2048 encryption. But the limitation is artificial since U-Boot supports a wider range of algorithms. The internal image_get_[checksum|crypto]_algo() functions expect an argument in the format of ,. So let's remove the size checki

Re: [PATCH v3 24/31] bootstd: Add an implementation of EFI bootmgr

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 02:43, Simon Glass wrote: Add a bootmeth driver which handles EFI boot manager, using EFI_LOADER. In effect, this provides the same functionality as the 'bootefi bootmgr' command and shares the same code. But the interface into it is via a bootmeth, so it does not require any special

Re: [PATCH v3 22/31] bootstd: Add an implementation of EFI boot

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 02:43, Simon Glass wrote: Add a bootmeth driver which handles EFI boot, using EFI_LOADER. In effect, this provides the same functionality as the 'bootefi' command and shares the same code. But the interface into it is via a bootmeth, so it does not require any special scripts, etc. F

Re: [PATCH v3 30/31] bootstd: doc: Add documentation

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 02:43, Simon Glass wrote: Add documentation for this feature, including the commands and full devicetree bindings. Signed-off-by: Simon Glass --- Changes in v3: - Update docs for "bootmeths" and "boot_targets" env vars MAINTAINERS | 4 + doc/develop/b

Re: [PATCH v3 09/31] dm: blk: Add a function to return the device type

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 02:42, Simon Glass wrote: Use the uclass name to get the device type for a block device. Signed-off-by: Simon Glass --- (no changes since v1) drivers/block/blk-uclass.c | 8 include/blk.h | 8 2 files changed, 16 insertions(+) diff --git a/driver

Re: [PATCH v3 06/31] dm: core: Allow finding a uclass device by partial name

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 02:42, Simon Glass wrote: In some cases two devices are related and the only way to tell is to check that the names partially patch. Add a way to check this without needing to create a new string for the comparison. Fix the comment for device_find_child_by_namelen() while we are here.

Re: [PATCH v3 05/31] dm: core: Rename uclass_get_by_name_len()

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 02:42, Simon Glass wrote: It seems that namelen is more common in U-Boot. Rename this function to fit in better. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to rename uclass_get_by_name_len() drivers/core/uclass.c | 7 --- include/dm/uclass.h | 8

Re: [PATCH v3 04/31] lib: Add a way to find the postiion of a trailing number

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 02:42, Simon Glass wrote: At present it is not possible to find out which part of the string is the number part and which is before it. Add a new variant which provides this feature, so we can separate the two in the caller. Signed-off-by: Simon Glass --- Changes in v3: - Change the

Re: [PATCH v3 02/31] test: Add tests for trailing_strtol()

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 02:42, Simon Glass wrote: This function currently has no tests. Add some. Signed-off-by: Simon Glass --- (no changes since v1) include/vsprintf.h | 4 ++-- test/str_ut.c | 19 +++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/include/vspr

Re: [PATCH v3 01/31] str: Move string tests to the string module

2022-01-19 Thread Heinrich Schuchardt
On 1/19/22 02:42, Simon Glass wrote: A few string tests were added to the print module by mistake. Move them. Signed-off-by: Simon Glass --- (no changes since v1) test/print_ut.c | 40 test/str_ut.c | 40

[PATCH] power: zynqmp: Add power domain driver for ZynqMP

2022-01-19 Thread Michal Simek
Driver should be enabled by CONFIG_POWER_DOMAIN=y and CONFIG_ZYNQMP_POWER_DOMAIN=y. Power domain driver doesn't have own DT node but it uses zynqmp firmware DT node that's why there is a need to bind driver when firmware node is found. Driver itself is simple. It is sending pmufw config object ove

[PATCH v2] zynqmp: Use the same style for macro definitions

2022-01-19 Thread Michal Simek
Use the same coding style for all macros. #defineNAMEVALUE Signed-off-by: Michal Simek --- Changes in v2: - Change base include/zynqmp_firmware.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/zynqmp_firmware.h b/include/zynqmp_firmware.h index 2db0

[PATCH] arm64: zynqmp: Remove SOM *u-boot.dtsi

2022-01-19 Thread Michal Simek
Disable mmc from u-boot.dtsi file because it was there only for kv260 board. With kr260 this is not needed because we will switch to full DT per board with SD/EMMC there too. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sm-k26-revA-u-boot.dtsi | 21 arch/arm/dts/zyn

Re: [PATCH] zynqmp: Use the same style for macro definitions

2022-01-19 Thread Michal Simek
pá 14. 1. 2022 v 13:20 odesílatel Michal Simek napsal: > > Use the same coding style for all macros. > #defineNAMEVALUE > > Signed-off-by: Michal Simek > --- > > include/zynqmp_firmware.h | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/include/zyn

Re: [PATCH 0/4] zynqmp: Add support for sending pmufw config object overlay

2022-01-19 Thread Michal Simek
pá 14. 1. 2022 v 13:25 odesílatel Michal Simek napsal: > > Hi, > > this small series is extending firmware interface for sending > pmufw configuration overlay with asking for access to certain > device. This infrastructure can be used via command or via power domain > driver. > > Thanks, > Michal

Re: [PATCH] arm64: zynqmp: Change firmware dependency

2022-01-19 Thread Michal Simek
pá 14. 1. 2022 v 13:08 odesílatel Michal Simek napsal: > > In case of mini U-Boot configurations there is no need to enable firmware > driver which just consume space for nothing. That's why add an option to > disable it. > > Signed-off-by: Michal Simek > --- > > arch/arm/Kconfig | 4 ++-- > 1 f

Pull request: u-boot-samsung master

2022-01-19 Thread Minkyu Kang
Dear Tom, The following changes since commit fe04d885fb540b614a2f989e16e808b300ccb52e: Merge branch 'next' (2022-01-10 14:01:57 -0500) are available in the git repository at: g...@source.denx.de:u-boot/custodians/u-boot-samsung.git master for you to fetch changes up to e93158beb35b7522ef99

Re: [PATCH] arm64: xilinx: dts: Add dma properties to fix dtbs_check warnings

2022-01-19 Thread Michal Simek
pá 14. 1. 2022 v 12:44 odesílatel Michal Simek napsal: > > From: Shravya Kumbham > > Update dma name and add #dma-cells properties to fix dtbs_check > warnings. > > Signed-off-by: Shravya Kumbham > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynqmp.dtsi | 48 ++--

Re: [PATCH] arm64: zynqmp: Update USB node handle from dwc3 to usb

2022-01-19 Thread Michal Simek
pá 14. 1. 2022 v 12:43 odesílatel Michal Simek napsal: > > From: Manish Narani > > The DWC3 bindings require all USB node handles to be '^usb@[0-9a-f]+$'. > Update the same in ZynqMP device tree. > > Signed-off-by: Manish Narani > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynqmp.dtsi

Re: [PATCH] arm64: zynqmp: Change compatible strings for cadence uart

2022-01-19 Thread Michal Simek
pá 14. 1. 2022 v 12:43 odesílatel Michal Simek napsal: > > Based on Linux kernel DT binding there should be different compatible > strings used that's why align zynqmp.dtsi with it. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynqmp.dtsi | 4 ++-- > 1 file changed, 2 insertions(+), 2

[PATCH v2 1/1] doc: printf() codes

2022-01-19 Thread Heinrich Schuchardt
Document the format specifier codes used by U-Boot's printf() implementation. Signed-off-by: Heinrich Schuchardt --- v2: describe flags (' ', '#', '-', '+') mention %o --- doc/develop/index.rst | 1 + doc/develop/printf.rst | 199 + 2 fi

  1   2   >