[PATCH 1/1] efi_loader: memory leak in efi_capsule_scan_dir()

2021-04-10 Thread Heinrich Schuchardt
If realloc() fails, we should free the old buffer. Fixes: c74cd8bd08d1: ("efi_loader: capsule: add capsule_on_disk support") Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_capsule.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efi_loader/efi_capsule.c

[PATCH 4/4] buildman: Use bytes for the environment

2021-04-10 Thread Simon Glass
At present we sometimes see problems in gitlab where the environment has 0x80 characters or sequences which are not valid UTF-8. Avoid this by using bytes for the environment, both internal to buildman and when writing out the 'env' file. Add a test to make sure this works as expected.

[PATCH 3/4] buildman: Handle exceptions in threads gracefully

2021-04-10 Thread Simon Glass
There have been at least a few cases where an exception has occurred in a thread and resulted in buildman hanging: running out of disk space and getting a unicode error. Handle these by collecting a list of exceptions, printing them out and reporting failure if any are found. Add a test for this.

[PATCH 2/4] buildman: Use common code to send an result

2021-04-10 Thread Simon Glass
At present the code to report a build result is duplicated. Put it in a common function to avoid this. Signed-off-by: Simon Glass --- tools/buildman/builderthread.py | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/tools/buildman/builderthread.py

[PATCH 1/4] buildman: Tidy up a few comments

2021-04-10 Thread Simon Glass
Add some function comments which are missing, or missing arguments. Signed-off-by: Simon Glass --- tools/buildman/builderthread.py | 10 +++--- tools/buildman/control.py | 2 ++ tools/buildman/func_test.py | 13 +++-- 3 files changed, 20 insertions(+), 5 deletions(-)

[PATCH 0/4] buildman: Deal with unicode errors and thread exceptions

2021-04-10 Thread Simon Glass
This series corrects the recent problems with gitlab reporting a unicode exception during a build, for example here: https://source.denx.de/u-boot/custodians/u-boot-usb/-/jobs/249514 Since exceptions in threads can cause buildman to hang, the series adds support for dealing with these more

Please pull u-boot-video

2021-04-10 Thread Anatolij Gustschin
Hi Tom, please pull video patches for v2021.07-rc1. gitlab CI: https://source.denx.de/u-boot/custodians/u-boot-video/-/pipelines/7124 Thanks, Anatolij The following changes since commit a1e95e3805eacca1162f6049dceb9b1d2726cbf5: Merge tag 'u-boot-imx-20210409' of

Pull request for efi-2021-07-rc1

2021-04-10 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit a1e95e3805eacca1162f6049dceb9b1d2726cbf5: Merge tag 'u-boot-imx-20210409' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2021-04-09 10:08:52 -0400) are available in the Git repository at:

Re: [PATCH 1/1] board: toradex: apalis-imx8x: fix build warning

2021-04-10 Thread Oleksandr Suvorov
Hi Heinrich, Thanks for the fix! On Sat, Apr 10, 2021 at 9:10 PM Heinrich Schuchardt wrote: > > The length of an underline must match the length of the header. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Oleksandr Suvorov > --- > doc/board/toradex/apalix-imx8x.rst | 2 +- > 1 file

[PATCH 1/1] doc: duplicate target 'youtube'

2021-04-10 Thread Heinrich Schuchardt
Two external references cannot have the same name: doc/chromium/overview.rst:5: WARNING: Duplicate explicit target name: "youtube" Signed-off-by: Heinrich Schuchardt --- doc/chromium/overview.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 1/1] board: toradex: apalis-imx8x: fix build warning

2021-04-10 Thread Heinrich Schuchardt
The length of an underline must match the length of the header. Signed-off-by: Heinrich Schuchardt --- doc/board/toradex/apalix-imx8x.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/board/toradex/apalix-imx8x.rst b/doc/board/toradex/apalix-imx8x.rst index

Re: [PATCH 01/13] arm: nanopi2: Remove unused code

2021-04-10 Thread Tom Rini
On Sat, Apr 10, 2021 at 07:14:31PM +0200, Stefan Bosch wrote: > Hi Tom, > > CONFIG_REVISION_TAG has originally been defined in s5p4418_nanopi2.h. But > this gets lost sometime in the past. Below my proposal for a patch which > uses CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG instead. > > Regards >

Re: [PATCH 01/13] arm: nanopi2: Remove unused code

2021-04-10 Thread Stefan Bosch
Hi Tom, CONFIG_REVISION_TAG has originally been defined in s5p4418_nanopi2.h. But this gets lost sometime in the past. Below my proposal for a patch which uses CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG instead. Regards Stefan Signed-off-by: Stefan Bosch --- board/friendlyarm/nanopi2/board.c

Re: [PATCH v2] efi_loader: esrt: Remove EFI_CALL invocation for efi_create_event

2021-04-10 Thread Heinrich Schuchardt
On 4/10/21 5:09 PM, Sughosh Ganu wrote: The efi_esrt_register function calls the efi_create_event function through the EFI_CALL macro. For the Arm and RiscV architecture platforms, the EFI_CALL macro, before invoking the corresponding function, modifies the global_data pointer. Before the

[PATCH v2] efi_loader: esrt: Remove EFI_CALL invocation for efi_create_event

2021-04-10 Thread Sughosh Ganu
The efi_esrt_register function calls the efi_create_event function through the EFI_CALL macro. For the Arm and RiscV architecture platforms, the EFI_CALL macro, before invoking the corresponding function, modifies the global_data pointer. Before the function calls, the gd is set to app_gd, which

Re: [PATCH] efi_loader: esrt: Remove EFI_CALL invocation in efi_esrt_register

2021-04-10 Thread Sughosh Ganu
hi Heinrich, On Sat, 10 Apr 2021 at 18:24, Heinrich Schuchardt wrote: > On 4/10/21 2:09 PM, Sughosh Ganu wrote: > > The efi_esrt_register function calls efi_create_event and > > efi_register_protocol_notify functions. These function calls are made > > through the EFI_CALL macro. > > > > For the

[PATCH v3] cmd: net: Add the "arp" command

2021-04-10 Thread lgxue
From: Joe Xue The command is to query and show mac address of a specific ipAddress. Signed-off-by: Joe Xue --- cmd/Kconfig | 6 ++ cmd/net.c | 37 + doc/usage/arp.rst | 31 +++ include/net.h | 5 +

Re: [PATCH v2] cmd: net: Add the "arp" command

2021-04-10 Thread Joe Xue
Yes or No, Yes, we can store the MAC from the ARP packet then show it when the "arp" command is called as Linux system. And we need lots of change to achieve this. No, because U-boot net system runs in passive mode, it doesn't receive any network packet without sending the packet. For the

[PATCH v2] cmd: net: Add the "arp" command

2021-04-10 Thread lgxue
From: Joe Xue The command is to query and show mac address of a specific ipAddress. Signed-off-by: Joe Xue --- cmd/Kconfig | 6 ++ cmd/net.c | 36 doc/usage/arp.rst | 31 +++ include/net.h | 5 +

[PATCH] cmd: net: Add the "arp" command

2021-04-10 Thread lgxue
From: Joe Xue The command is to query and show mac address of a specific ipAddress. Signed-off-by: Joe Xue --- cmd/Kconfig | 6 ++ cmd/net.c | 36 include/net.h | 5 + net/arp.c | 24 net/arp.h | 4

[PATCH 10/11] powerpc: dts: t1042d4rdb: add FMan v3 nodes

2021-04-10 Thread Camelia Groza
Add the FMan v3 nodes for the T1042D4RDB. The nodes are copied over with little modification from the Linux kernel source code. Signed-off-by: Camelia Groza --- arch/powerpc/dts/t1042d4rdb.dts | 55 - 1 file changed, 54 insertions(+), 1 deletion(-) diff --git

[PATCH 11/11] configs: T1042D4RDB: enable DM_ETH

2021-04-10 Thread Camelia Groza
Enable DM_ETH and DM_MDIO for the T1042D4RDB. Signed-off-by: Camelia Groza --- configs/T1042D4RDB_NAND_defconfig| 3 +++ configs/T1042D4RDB_SDCARD_defconfig | 3 +++ configs/T1042D4RDB_SECURE_BOOT_defconfig | 4 +++- configs/T1042D4RDB_SPIFLASH_defconfig| 3 +++

[PATCH 09/11] powerpc: dts: t1042: add QorIQ DPAA 1 FMan v3 nodes

2021-04-10 Thread Camelia Groza
Add the QorIQ DPAA 1 FMan v3 device tree nodes for the T1042 SoC. The device tree nodes are copied over with little modification from the Linux kernel source code. Signed-off-by: Camelia Groza --- arch/powerpc/dts/t1042si-post.dtsi | 46 ++ 1 file changed, 46

[PATCH 07/11] powerpc: dts: qoriq: update the mdio offsets under the second FMan v3

2021-04-10 Thread Camelia Groza
When two FMan's are present on a board, the MDIO nodes are found at the same offsets inside each FMan. This causes "non unique device name" errors when registering the MDIO nodes under the second FMan. Fix this by updating the offsets of the MDIO nodes to include the parent FMan's offset.

[PATCH 08/11] configs: T4240RDB: enable DM_ETH

2021-04-10 Thread Camelia Groza
Enable DM_ETH and DM_MDIO for the T4240RDB. Signed-off-by: Camelia Groza --- configs/T4240RDB_SDCARD_defconfig | 3 +++ configs/T4240RDB_defconfig| 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/T4240RDB_SDCARD_defconfig b/configs/T4240RDB_SDCARD_defconfig index

[PATCH 06/11] powerpc: dts: t4240rdb: add FMan v3 nodes

2021-04-10 Thread Camelia Groza
Add the FMan v3 nodes for the T4240RDB. The nodes are copied over with little modification from the Linux kernel source code. Signed-off-by: Camelia Groza --- arch/powerpc/dts/t4240rdb.dts | 142 +- 1 file changed, 141 insertions(+), 1 deletion(-) diff --git

[PATCH 05/11] powerpc: dts: t4240: add QorIQ DPAA 1 FMan v3 nodes

2021-04-10 Thread Camelia Groza
Add the QorIQ DPAA 1 FMan v3 device tree nodes for the T4240 SoC. The device tree nodes are copied over with little modification from the Linux kernel source code. Signed-off-by: Camelia Groza --- arch/powerpc/dts/t4240si-post.dtsi | 101 + 1 file changed, 101

[PATCH 04/11] configs: T2080RDB: enable DM_ETH

2021-04-10 Thread Camelia Groza
Enable DM_ETH and DM_MDIO for the T2080RDB. Signed-off-by: Camelia Groza --- configs/T2080RDB_NAND_defconfig | 3 +++ configs/T2080RDB_SDCARD_defconfig | 3 +++ configs/T2080RDB_SPIFLASH_defconfig | 3 +++ configs/T2080RDB_defconfig | 3 +++ 4 files changed, 12 insertions(+)

[PATCH 03/11] board: freescale: t208xrdb: fdt fixups under DM_ETH

2021-04-10 Thread Camelia Groza
Disable the FMan mEMAC 5 and 6 nodes from the fdt since they are not available under the supported RCW. Also disable the associated "fsl,dpa-ethernet" nodes that reference them. This is a simplified version of the fdt_fixup_fman_ethernet call for use under DM_ETH. Signed-off-by: Camelia Groza

[PATCH 02/11] powerpc: dts: t2080rdb: add FMan v3 nodes

2021-04-10 Thread Camelia Groza
Add the FMan v3 nodes for the T2080RDB. The nodes are copied over with little modification from the Linux kernel source code. Signed-off-by: Camelia Groza --- arch/powerpc/dts/t2080rdb.dts | 69 ++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git

[PATCH 01/11] powerpc: dts: t2080: add QorIQ DPAA 1 FMan v3 nodes

2021-04-10 Thread Camelia Groza
Add the QorIQ DPAA 1 FMan v3 device tree nodes for the T2080 SoC. The device tree nodes are copied over with little modification from the Linux kernel source code. Signed-off-by: Camelia Groza --- arch/powerpc/dts/t2080si-post.dtsi | 51 ++ 1 file changed, 51

[PATCH 00/11] Enable DM_ETH for DPAA1 PowerPC T-series boards

2021-04-10 Thread Camelia Groza
This patch series enables DM_ETH and DM_MDIO on the T2080RDB, T4240RDB and T1042D4RDB DPAA1 PowerPC boards. The necessary FMan v3 Ethernet and MDIO nodes are added to each platform's SoC and board device tree. On T2080RDB, fdt fixups are performed before booting into the OS using a simplified new

Re: Request for documenting the EFI_{ENTRY,EXIT} functions

2021-04-10 Thread Heinrich Schuchardt
On 4/10/21 2:35 PM, Sughosh Ganu wrote: hi Heinrich, For the last one day, i was debugging an issue which i encountered when I tried to print the uefi env variables. This was seen both on arm64 and arm32 platforms. I have sent a patch for this fix[1]. However, the reason i am writing to you is

Re: [PATCH] efi_loader: esrt: Remove EFI_CALL invocation in efi_esrt_register

2021-04-10 Thread Heinrich Schuchardt
On 4/10/21 2:09 PM, Sughosh Ganu wrote: The efi_esrt_register function calls efi_create_event and efi_register_protocol_notify functions. These function calls are made through the EFI_CALL macro. For the Arm and RiscV architecture platforms, the EFI_CALL macro, before invoking the corresponding

[PATCH] efi_loader: esrt: Remove EFI_CALL invocation in efi_esrt_register

2021-04-10 Thread Sughosh Ganu
The efi_esrt_register function calls efi_create_event and efi_register_protocol_notify functions. These function calls are made through the EFI_CALL macro. For the Arm and RiscV architecture platforms, the EFI_CALL macro, before invoking the corresponding function, modifies the global_data

Re: [PULL] Pull request for u-boot master / v2021.07 = u-boot-stm32-20210409

2021-04-10 Thread Tom Rini
On Fri, Apr 09, 2021 at 03:48:43PM +0200, Patrice CHOTARD wrote: > Hi Tom > > Please pull the STM32 related patches for u-boot/master, v2021.07: > u-boot-stm32-20210409 > > CI status: > https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/7103 > > Thanks, > Patrice > > The

Re: [GIT PULL] SoCFPGA changes for v2021.07-rc1

2021-04-10 Thread Tom Rini
On Fri, Apr 09, 2021 at 02:47:20AM +, Tan, Ley Foon wrote: > Hi Tom > > Please pull the SoCFPGA changes for v2021.07. > > Regards > Ley Foon > > > The following changes since commit e9c99db7787e3b5c2ef05701177c43ed1c023c27: > > Merge branch '2021-04-07-CI-improvements' (2021-04-07

Re: [PATCH v9] Add support for stack-protector

2021-04-10 Thread Tom Rini
On Sat, Apr 10, 2021 at 12:11:33PM +0200, Heinrich Schuchardt wrote: > On 4/10/21 12:27 AM, Joel Peshkin wrote: > > > > Hi Heinrich, > > > > Has there been any progress in getting the EFI erors fixed so that this > > can be committed?  There seems to be little point in my refreshing this > >

Re: [PATCH v9] Add support for stack-protector

2021-04-10 Thread Heinrich Schuchardt
On 4/10/21 12:27 AM, Joel Peshkin wrote: Hi Heinrich, Has there been any progress in getting the EFI erors fixed so that this can be committed?  There seems to be little point in my refreshing this patch until that is done. I have fixed up your patch to work with EFI and will add it to my

Re: Running u-boot 2021.04 on Raspberry Pi 4

2021-04-10 Thread Matthias Brugger
On 09/04/2021 20:06, Roman Shaposhnik wrote: > On Fri, Apr 9, 2021 at 3:15 AM Matthias Brugger wrote: > >> >> >> On 09/04/2021 10:14, Nicolas Saenz Julienne wrote: >>> [ Adding Matthias for the SMBIOS part ] >>> >>> On Fri, 2021-04-09 at 00:00 -0700, Roman Shaposhnik wrote: On Thu, Apr

[PATCH v2] power: regulator: Add support for regulator-force-boot-off

2021-04-10 Thread Stefan Roese
From: Konstantin Porotchkin Add support for regulator-force-boot-off DT property. This property can be used by the board/device drivers for turning off regulators on early init stages as pre-requisite for the other components initialization. Signed-off-by: Konstantin Porotchkin Signed-off-by: