Re: [PATCH 1/1] efi_loader: set IMAGE_FILE_LARGE_ADDRESS_AWARE

2022-12-22 Thread Ilias Apalodimas
Hi Heinrich, On Fri, 23 Dec 2022 at 03:20, Heinrich Schuchardt wrote: > > For the 64bit EFI binaries that we create set the > IMAGE_FILE_LARGE_ADDRESS_AWARE characteristic in the PE-COFF header > to indicate that they can handle addresses above 2 GiB. > Does that flag affect 64bit as well? I wa

Re: [PATCH] Makefile: add -W for BINMAN_ALLOW_MISSING

2022-12-22 Thread Nikita Shubin
Hello Tom! On Thu, 22 Dec 2022 09:14:59 -0500 Tom Rini wrote: > Yes, that's what BINMAN_ALLOW_MISSING=1 does. If top of tree master > doesn't work for you, can you please post a patch so that the rest of > us can replicate the failure and see what to do next? Thanks. > You are right - i accide

Re: [PATCH 1/1] efi_loader: set UEFI specification version to 2.10

2022-12-22 Thread Ilias Apalodimas
On Fri, 23 Dec 2022 at 03:33, Heinrich Schuchardt wrote: > > Claim to implement UEFI 2.10 setting EFI_SPECIFICATION_VERSION accordingly. > > Signed-off-by: Heinrich Schuchardt > --- > include/efi_api.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/efi_api.h b/i

Re: Converting to DM SERIAL for Kirkwood boards

2022-12-22 Thread Tony Dinh
Hi Stefan, On Thu, Dec 15, 2022 at 10:29 PM Stefan Roese wrote: > > Hi Tony, > > On 12/16/22 03:42, Tony Dinh wrote: > > Hi all, > > > > On Mon, Dec 12, 2022 at 5:18 PM Tony Dinh wrote: > >> > >> Hi Michael, > >> > >> On Mon, Dec 12, 2022 at 1:03 AM Michael Walle wrote: > >>> > > On 12/9/2

Re: [RFC PATCH v5 24/24] DO NOT MERGE: only to make CI happy

2022-12-22 Thread Marek Vasut
On 11/1/22 20:20, Francis Laniel wrote: This commit set CONFIG_HUSH_PARSER_2021 as the default to trigger the CI with this parser. Nonetheless, Some boards are not compatible with new 2021 hush parser: 1. rcar3_ulcb: When built with CONFIG_HUSH_PARSER_2021, the u-boot.img file size

Re: [PATCH v2 0/3] Data Co-processor RNG Driver

2022-12-22 Thread Fabio Estevam
Hi Heinrich, On Thu, Dec 22, 2022 at 9:52 PM Heinrich Schuchardt wrote: > > configs/mx6ull_14x14_evk_defconfig| 4 + > > configs/mx6ull_14x14_evk_plugin_defconfig | 4 + > > Do these boards lack the CAAM RNG supported by drivers/crypto/fsl/rng.c? imx6ull does not have CAAM.

[PATCH 1/1] efi_loader: set UEFI specification version to 2.10

2022-12-22 Thread Heinrich Schuchardt
Claim to implement UEFI 2.10 setting EFI_SPECIFICATION_VERSION accordingly. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/efi_api.h b/include/efi_api.h index 00c98e0984..9bd70b0f18 100644 --- a/include/efi_api

[PATCH 1/1] efi_loader: set IMAGE_FILE_LARGE_ADDRESS_AWARE

2022-12-22 Thread Heinrich Schuchardt
For the 64bit EFI binaries that we create set the IMAGE_FILE_LARGE_ADDRESS_AWARE characteristic in the PE-COFF header to indicate that they can handle addresses above 2 GiB. Signed-off-by: Heinrich Schuchardt --- arch/arm/lib/crt0_aarch64_efi.S | 1 + arch/riscv/lib/crt0_riscv_efi.S | 17 ++

Re: [PATCH v2 0/3] Data Co-processor RNG Driver

2022-12-22 Thread Heinrich Schuchardt
On 12/22/22 09:50, Kshitiz Varshney wrote: Implemented Data Co-Processor random number generation driver. usage command: rng Kshitiz Varshney (3): Uboot RNG Driver using Data Co-processor Added dcp_rng driver initialization code Added configs required for dcp_rng driver arch/arm/ma

Re: [PATCH 2/3] eficonfig: refactor change boot order implementation

2022-12-22 Thread Masahisa Kojima
On Thu, 22 Dec 2022 at 20:54, Ilias Apalodimas wrote: > > On Wed, Dec 21, 2022 at 10:50:37PM +0900, Masahisa Kojima wrote: > > This commit removes the change boot order specific > > menu implementation. The change boot order implementation > > calls eficonfig_process_common() same as other menus.

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-22 Thread Tom Rini
On Thu, Dec 22, 2022 at 10:02:42PM +0100, Pali Rohár wrote: > On Thursday 22 December 2022 13:22:50 Tom Rini wrote: > > I suspect that how we fire up QEMU means that the issue you're > > noting isn't triggered since we don't boot it from flash but instead > > pass the binary. > > Yes, this sounds

[PATCH] configs: r8a77980: Condor: Enable MMC support by default

2022-12-22 Thread Marek Vasut
From: Andrey Dolnikov This enables MMC support, which is available on Condor board, by default. Signed-off-by: Andrey Dolnikov Signed-off-by: Valentine Barshak Signed-off-by: Hai Pham --- configs/r8a77980_condor_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --gi

[PATCH] ARM: renesas: condor: switch eMMC bus to 1V8

2022-12-22 Thread Marek Vasut
From: Hai Pham The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND array and the VCCQ supplies the bus. On Condor, the VCC is connected to 3.3V rail, while the VCCQ is connected to 1.8V rail. Adjust the pinmux to match the bus, which is always operating in 1.8V mode. Based on

Rockchip RK3328 4-byte addressing problem in SPI

2022-12-22 Thread Marcin Woźniak
Hello, I would like to let you know how i've lost about 2 weeks because of lack of Rockchip BOOTROM documentation. I tried to use Mainline Uboot to Boot NanoPI R2S using soldered SPI Winbond 25Q256 chip. I had to make some patches in Uboot core files to make it work. First one adds SPI boo

Re: [PATCH] image: fit: Fix not verifying data configuration

2022-12-22 Thread Sean Anderson
On 11/18/22 15:50, Simon Glass wrote: > Hi Sean, > > On Thu, 13 Oct 2022 at 09:41, Sean Anderson wrote: >> >> >> >> On 10/13/22 3:14 AM, Rasmus Villemoes wrote: >> > On 12/10/2022 18.28, Sean Anderson wrote: >> >> On 10/12/22 08:59, Simon Glass wrote: >> >>> Hi Sean, >> >>> >> >>> On Tue, 11 Oct

Re: [PATCH v8 06/13] binman: Support new op-tee binary format

2022-12-22 Thread Jerome Forissier
On 12/22/22 21:23, Simon Glass wrote: > (dropping the two bounces from cc) > > On Thu, 22 Dec 2022 at 13:18, Simon Glass wrote: >> >> Hi Jerome, >> >> On Thu, 22 Dec 2022 at 08:36, Jerome Forissier >> wrote: >>> >>> >>> >>> On 12/22/22 00:07, Simon Glass wrote: OP-TEE has a format with a

Re: [u-boot][PATCH v2 1/8] mtd: rawnand: omap_gpmc: Fix BCH6/16 HW based correction

2022-12-22 Thread Michael Nazzareno Trimarchi
Hi On Tue, Dec 20, 2022 at 11:22 AM Roger Quadros wrote: > > The BCH detection hardware can generate ECC bytes for multiple > sectors in one go. Use that feature. > > correct() only corrects one sector at a time so we need to call it > repeatedly for each sector. > > Signed-off-by: Roger Quadros

Re: [u-boot][PATCH v2 8/8] mtd: rawnand: omap_elm: u-boot driver model support

2022-12-22 Thread Michael Nazzareno Trimarchi
Hi Roger On Wed, Dec 21, 2022 at 9:08 PM Michael Nazzareno Trimarchi wrote: > > Hi > > On Wed, Dec 21, 2022 at 8:57 PM Roger Quadros wrote: > > > > Hi Michael, > > > > On 21/12/2022 19:56, Michael Nazzareno Trimarchi wrote: > > > Hi Roger > > > > > > On Tue, Dec 20, 2022 at 11:22 AM Roger Quadro

[PATCH] ARM: dts: renesas: condor: Enable SPI NOR fast-read

2022-12-22 Thread Marek Vasut
From: Marek Vasut This board requires SPI NOR fast-read, otherwise the SPI NOR access returns corrupted data. Enable the fast-read explicitly in DT as it has been disabled in the MTD subsystem by commit d008190920 ("mtd: spi-nor: Mask out fast read if not requested in DT") Signed-off-by: Marek V

[PATCH v2 13/14] rockchip: Enable bootstage on rockpro64

2022-12-22 Thread Simon Glass
This board is useful for benchmarking overall U-Boot performance. Enable the bootstage feature so we get a report. Since this returns to the boot rom before finishing executing board_init_r() in SPL, add a few bootstage calls so that we can collect timing from TPL. For the stash region, use a por

[PATCH 6/6] ARM: renesas: Enable LTO on R-Car3 Falcon

2022-12-22 Thread Marek Vasut
From: Marek Vasut Enable LTO (link time optimization) to improve optimization and reduce code size by cca. 30 kiB. Signed-off-by: Marek Vasut --- configs/r8a779a0_falcon_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/r8a779a0_falcon_defconfig b/configs/r8a779a0_falcon_d

[PATCH 5/6] ARM: renesas: Enable LTO on R-Car3 Draak

2022-12-22 Thread Marek Vasut
From: Marek Vasut Enable LTO (link time optimization) to improve optimization and reduce code size by cca. 29 kiB. Signed-off-by: Marek Vasut --- configs/r8a77995_draak_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/r8a77995_draak_defconfig b/configs/r8a77995_draak_defco

[PATCH 4/6] ARM: renesas: Enable LTO on R-Car3 Ebisu

2022-12-22 Thread Marek Vasut
From: Marek Vasut Enable LTO (link time optimization) to improve optimization and reduce code size by cca. 34 kiB. Signed-off-by: Marek Vasut --- configs/r8a77990_ebisu_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/r8a77990_ebisu_defconfig b/configs/r8a77990_ebisu_defco

[PATCH 3/6] ARM: renesas: Enable LTO on R-Car3 Condor

2022-12-22 Thread Marek Vasut
From: Marek Vasut Enable LTO (link time optimization) to improve optimization and reduce code size by cca. 32 kiB. Signed-off-by: Marek Vasut --- configs/r8a77980_condor_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/r8a77980_condor_defconfig b/configs/r8a77980_condor_d

[PATCH 2/6] ARM: renesas: Enable LTO on R-Car3 Eagle

2022-12-22 Thread Marek Vasut
From: Marek Vasut Enable LTO (link time optimization) to improve optimization and reduce code size by cca. 32 kiB. Signed-off-by: Marek Vasut --- configs/r8a77970_eagle_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/r8a77970_eagle_defconfig b/configs/r8a77970_eagle_defco

[PATCH 1/6] ARM: renesas: Enable LTO on R-Car3 ULCB

2022-12-22 Thread Marek Vasut
From: Marek Vasut Enable LTO (link time optimization) to improve optimization and reduce code size by cca. 31 kiB. Signed-off-by: Marek Vasut --- configs/rcar3_ulcb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/rcar3_ulcb_defconfig b/configs/rcar3_ulcb_defconfig index 7

[PATCH] ARM: renesas: condor: Set CONFIG_TEXT_BASE=0x0 on R-Car Gen3 Condor

2022-12-22 Thread marek . vasut
From: Marek Vasut Since R-Car Gen3 already enables position independent build, also set CONFIG_TEXT_BASE=0x0 to finalize the switch. This is possible since 534f0fbd65 ("arm64: Fix relocation of env_addr if POSITION_INDEPENDENT=y") fixed current env_get_char() crash with CONFIG_TEXT_BASE=0x0 . Th

[PATCH] ARM: renesas: ulcb: Set CONFIG_TEXT_BASE=0x0 on R-Car Gen3 ULCB

2022-12-22 Thread marek . vasut
From: Marek Vasut Since R-Car Gen3 already enables position independent build, also set CONFIG_TEXT_BASE=0x0 to finalize the switch. This is possible since 534f0fbd65 ("arm64: Fix relocation of env_addr if POSITION_INDEPENDENT=y") fixed current env_get_char() crash with CONFIG_TEXT_BASE=0x0 . Th

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-22 Thread Pali Rohár
On Thursday 22 December 2022 13:22:50 Tom Rini wrote: > I suspect that how we fire up QEMU means that the issue you're > noting isn't triggered since we don't boot it from flash but instead > pass the binary. Yes, this sounds like that problematic part is not tested. To spot this issue some end-to

Re: [PATCH] i2c: add dm_i2c_probe_chip() to detect chip presence

2022-12-22 Thread Simon Glass
Hi Johan, On Mon, 19 Dec 2022 at 12:57, Johan Korsnes wrote: > > Add function to determine whether a chip is present. This check is > typically implemented by writing the chip address to the bus and > checking that the chip replies with an ACK. > > The already existing dm_i2c_probe() will attempt

Re: [PATCH v8 06/13] binman: Support new op-tee binary format

2022-12-22 Thread Simon Glass
(dropping the two bounces from cc) On Thu, 22 Dec 2022 at 13:18, Simon Glass wrote: > > Hi Jerome, > > On Thu, 22 Dec 2022 at 08:36, Jerome Forissier > wrote: > > > > > > > > On 12/22/22 00:07, Simon Glass wrote: > > > OP-TEE has a format with a binary header that can be used instead of the > >

Re: [PATCH v8 06/13] binman: Support new op-tee binary format

2022-12-22 Thread Simon Glass
Hi Jerome, On Thu, 22 Dec 2022 at 08:36, Jerome Forissier wrote: > > > > On 12/22/22 00:07, Simon Glass wrote: > > OP-TEE has a format with a binary header that can be used instead of the > > ELF file. With newer versions of OP-TEE this may be required on some > > platforms. > > > > Add support f

Re: [PATCH v8 13/13] treewide: Disable USE_SPL_FIT_GENERATOR by default

2022-12-22 Thread Simon Glass
Hi Tom, On Thu, 22 Dec 2022 at 10:57, Tom Rini wrote: > > On Thu, Dec 22, 2022 at 10:41:17AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 21 Dec 2022 at 16:11, Tom Rini wrote: > > > > > > On Wed, Dec 21, 2022 at 04:07:26PM -0700, Simon Glass wrote: > > > > This option is deprecated and

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-22 Thread Tom Rini
On Thu, Dec 22, 2022 at 06:56:40PM +0100, Pali Rohár wrote: > On Thursday 22 December 2022 12:33:32 Tom Rini wrote: > > I'm sorry you're frustrated here. I'm also frustrated here because the > > #ifdef games that PowerPC used, in a number of places have been very > > hard to un-wrap so that we can

Re: [PATCH v8 13/13] treewide: Disable USE_SPL_FIT_GENERATOR by default

2022-12-22 Thread Tom Rini
On Thu, Dec 22, 2022 at 10:41:17AM -0700, Simon Glass wrote: > Hi Tom, > > On Wed, 21 Dec 2022 at 16:11, Tom Rini wrote: > > > > On Wed, Dec 21, 2022 at 04:07:26PM -0700, Simon Glass wrote: > > > This option is deprecated and only used by two boards. Enable it for just > > > those two boards, so

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-22 Thread Pali Rohár
On Thursday 22 December 2022 12:33:32 Tom Rini wrote: > I'm sorry you're frustrated here. I'm also frustrated here because the > #ifdef games that PowerPC used, in a number of places have been very > hard to un-wrap so that we can have something other than a home-grown > build system. I was alread

Re: [PATCH] cmd: mmc: Expand bkops handling

2022-12-22 Thread Simon Glass
Hi Marek, On Wed, 21 Dec 2022 at 22:11, Marek Vasut wrote: > > Add more capable "bkops" command which allows enabling and disabling both > manual and automatic bkops. The existing 'mmc bkops-enable' subcommand is > poorly named to cover all the possibilities, hence the new-ish subcommand. > Note

Re: [PATCH 13/14] rockchip: Enable bootstage on rockpro64

2022-12-22 Thread Simon Glass
Hi Pali, On Wed, 21 Dec 2022 at 16:12, Pali Rohár wrote: > > On Wednesday 21 December 2022 16:08:27 Simon Glass wrote: > > This board is useful for benchmarking overall U-Boot performance. Enable > > the bootstage feature so we get a report. > > > > Since this returns to the boot rom before finis

Re: [PATCH v2 2/4] doc/README.gpt: Fix typo 'a optionnal'

2022-12-22 Thread Simon Glass
On Thu, 22 Dec 2022 at 07:25, Enric Balletbo i Serra wrote: > > Change the string 'a optionnal' to 'an optional'. among other things > > Signed-off-by: Enric Balletbo i Serra > --- > > (no changes since v1) > > doc/README.gpt | 2 +- > doc/usage/cmd/part.rst | 6 +++--- > 2 files chang

Re: [PATCH v2 1/4] doc: man-page for the part command

2022-12-22 Thread Simon Glass
On Thu, 22 Dec 2022 at 07:25, Enric Balletbo i Serra wrote: > > Provide a man-page for the part command. > > Signed-off-by: Enric Balletbo i Serra > --- > > Changes in v2: > - New patch (1) in the series to fix a trivial type > - New patch (2) in the series to introduce the documentation of the

Re: [PATCH v2 3/4] cmd: part: Add partition-related type command

2022-12-22 Thread Simon Glass
On Thu, 22 Dec 2022 at 07:26, Enric Balletbo i Serra wrote: > > This implements the following command: > > part type mmc 0:1 > -> print partition type UUID > part type mmc 0:1 uuid > -> set environment variable to partition type UUID > > "part type" can be useful when writing a

Re: [PATCH v5 00/19] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-22 Thread Marek Vasut
On 12/22/22 18:32, eugen.hris...@microchip.com wrote: On 12/22/22 18:11, Marek Vasut wrote: On 12/22/22 16:54, sergiu.m...@microchip.com wrote: On 22.12.2022 15:36, Marek Vasut wrote: On 12/22/22 11:53, Sergiu Moga wrote: This series of patches is meant to add support for USB Mass Storage on

Re: [PATCH v8 13/13] treewide: Disable USE_SPL_FIT_GENERATOR by default

2022-12-22 Thread Simon Glass
Hi Tom, On Wed, 21 Dec 2022 at 16:11, Tom Rini wrote: > > On Wed, Dec 21, 2022 at 04:07:26PM -0700, Simon Glass wrote: > > This option is deprecated and only used by two boards. Enable it for just > > those two boards, so others don't accidentally enable it. > > > > Signed-off-by: Simon Glass >

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-22 Thread Simon Glass
Hi Pali, On Thu, 22 Dec 2022 at 10:13, Pali Rohár wrote: > > On Thursday 22 December 2022 09:29:27 Tom Rini wrote: > > On Thu, Dec 22, 2022 at 08:49:47AM +0100, Pali Rohár wrote: > > > On Wednesday 21 December 2022 21:54:15 Tom Rini wrote: > > > > On Fri, Dec 16, 2022 at 10:56:39PM +0100, Pali Ro

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-22 Thread Tom Rini
On Thu, Dec 22, 2022 at 06:13:06PM +0100, Pali Rohár wrote: > On Thursday 22 December 2022 09:29:27 Tom Rini wrote: > > On Thu, Dec 22, 2022 at 08:49:47AM +0100, Pali Rohár wrote: > > > On Wednesday 21 December 2022 21:54:15 Tom Rini wrote: > > > > On Fri, Dec 16, 2022 at 10:56:39PM +0100, Pali Roh

Re: [PATCH v5 00/19] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-22 Thread Eugen.Hristev
On 12/22/22 18:11, Marek Vasut wrote: > On 12/22/22 16:54, sergiu.m...@microchip.com wrote: >> On 22.12.2022 15:36, Marek Vasut wrote: >>> On 12/22/22 11:53, Sergiu Moga wrote: This series of patches is meant to add support for USB Mass Storage on SAM9X60, SAMA7G5 and SAMA5D2 boards and r

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-22 Thread Pali Rohár
On Thursday 22 December 2022 09:29:27 Tom Rini wrote: > On Thu, Dec 22, 2022 at 08:49:47AM +0100, Pali Rohár wrote: > > On Wednesday 21 December 2022 21:54:15 Tom Rini wrote: > > > On Fri, Dec 16, 2022 at 10:56:39PM +0100, Pali Rohár wrote: > > > > On Friday 05 August 2022 16:21:24 Pali Rohár wrote

Re: [PATCH v5 00/19] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-22 Thread Marek Vasut
On 12/22/22 16:54, sergiu.m...@microchip.com wrote: On 22.12.2022 15:36, Marek Vasut wrote: On 12/22/22 11:53, Sergiu Moga wrote: This series of patches is meant to add support for USB Mass Storage on SAM9X60, SAMA7G5 and SAMA5D2 boards and register ohci-at91 driver into Driver Model. In order

Re: [PATCH v5 00/19] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-22 Thread Sergiu.Moga
On 22.12.2022 15:36, Marek Vasut wrote: > On 12/22/22 11:53, Sergiu Moga wrote: >> This series of patches is meant to add support for USB Mass Storage >> on SAM9X60, SAMA7G5 and SAMA5D2 boards and register ohci-at91 driver into >> Driver Model. In order for this to be achieved, the respective >> DT

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-22 Thread Tom Rini
On Fri, Dec 16, 2022 at 01:13:07AM +0100, Pali Rohár wrote: > On Thursday 15 December 2022 06:24:16 Simon Glass wrote: > > Hi Eugen, > > > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > > wrote: > > > > > > Newer DTC require that the DTB start address is aligned at 8 bytes. > > > In the u-boot.

Re: [PATCH v8 06/13] binman: Support new op-tee binary format

2022-12-22 Thread Jerome Forissier
On 12/22/22 00:07, Simon Glass wrote: > OP-TEE has a format with a binary header that can be used instead of the > ELF file. With newer versions of OP-TEE this may be required on some > platforms. > > Add support for this in binman. First, add a method to obtain the ELF > sections from an entry

Re: [PATCH 01/41] usb: Update USB_STORAGE dependencies

2022-12-22 Thread Tom Rini
On Fri, Dec 02, 2022 at 04:42:11PM -0500, Tom Rini wrote: > As it's no longer possible to have !DM_USB set, we can remove these > dependencies. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signa

Re: [PATCH v7 06/12] binman: Support new op-tee binary format

2022-12-22 Thread Jerome Forissier
On 12/22/22 00:38, Simon Glass wrote: > Hi Jerome, > > On Wed, 21 Dec 2022 at 07:39, Jerome Forissier > wrote: >> >> Hi Simon, >> >> On 12/17/22 22:28, Simon Glass wrote: >>> OP-TEE has a format with a binary header that can be used instead of the >>> ELF file. With newer versions of OP-TEE th

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-22 Thread Tom Rini
On Thu, Dec 22, 2022 at 08:49:47AM +0100, Pali Rohár wrote: > On Wednesday 21 December 2022 21:54:15 Tom Rini wrote: > > On Fri, Dec 16, 2022 at 10:56:39PM +0100, Pali Rohár wrote: > > > On Friday 05 August 2022 16:21:24 Pali Rohár wrote: > > > > Broken is also commit d433c74eecdce1e4952ef4e8c712a9

[PATCH v2 4/4] test/py: gpt: add test for the gpt partition type GUID identifier

2022-12-22 Thread Enric Balletbo i Serra
Add sandbox test for the gpt partition type command, the test uses the persistent data test_gpt_disk_image.bin to check that the first partition type GUID that identifies the type of the partition has the "Linux filesystem data" type ( 0FC63DAF-8483-4772-8E79-3D69D8477DE4 ). Signed-off-by: Enric B

[PATCH v2 3/4] cmd: part: Add partition-related type command

2022-12-22 Thread Enric Balletbo i Serra
This implements the following command: part type mmc 0:1 -> print partition type UUID part type mmc 0:1 uuid -> set environment variable to partition type UUID "part type" can be useful when writing a bootcmd which searches for a specific partition type to enable automatic dis

[PATCH v2 2/4] doc/README.gpt: Fix typo 'a optionnal'

2022-12-22 Thread Enric Balletbo i Serra
Change the string 'a optionnal' to 'an optional'. Signed-off-by: Enric Balletbo i Serra --- (no changes since v1) doc/README.gpt | 2 +- doc/usage/cmd/part.rst | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/README.gpt b/doc/README.gpt index 91e397d06f..c

[PATCH v2 1/4] doc: man-page for the part command

2022-12-22 Thread Enric Balletbo i Serra
Provide a man-page for the part command. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: - New patch (1) in the series to fix a trivial type - New patch (2) in the series to introduce the documentation of the part type command - Fix typo s/partittion/partition/ in commit message

[PATCH v2 0/4] cmd: part: Add partition-related type command

2022-12-22 Thread Enric Balletbo i Serra
This series are a consequence on the discussion of the patch [1]. It introduces some new patches in order to address the feedback received, adds the documentation and fixes a small typo found during the work on these patches. Best regards, Enric [1] https://patchwork.ozlabs.org/project/uboot/p

Voltage ID (VID) Programming for PMBus Devices

2022-12-22 Thread Bayer Thomas (ETAS-DAP/XPC-Fe1)
Hello, I am referring to the set_voltage_to_pmbus function for PMBus controller target voltage programming based on voltage ID values in board/freescale/common/vid.c. When looking at the schematics of the LX2160A reference design board, which applies the LTC3882 controller, then the LTC3882 is

RE: [PATCH v1 1/1] makefile: add multi_dtb_fit dep

2022-12-22 Thread Frager, Neal
Hi Simon, > > With certain gcc compilers, the u-boot.itb is built immediately after > dtb generation. If CONFIG_MULTI_DTB_FIT is used, it is possible that > the fit-dtb.blob is not finished in time. > > This patch adds a necessary dependency to guarantee that the > fit-dtb.blob is built before

Re: [PATCH] arm: mach-k3: j721e: Add platform data for main_uart2

2022-12-22 Thread Bhavya Kapoor
Hi Bryan, sure i can wait for that. Can i get the information when that gets merged. On 22/12/22 00:06, Bryan Brattlof wrote: Hi Bhavya! On December 19, 2022 thus sayeth Bhavya Kapoor: Add platform clock and powerdomain data for main_uart2 in J721e. This data is used by the driver to register

Re: [ANN] U-Boot v2023.01-rc4 released

2022-12-22 Thread Tom Rini
On Thu, Dec 22, 2022 at 02:32:23PM +0530, Jagan Teki wrote: > Hi Kever, > > On Tue, 20 Dec 2022 at 12:47, Jagan Teki wrote: > > > > Hi Kever, > > > > On Tue, 20 Dec 2022 at 12:37, Kever Yang wrote: > > > > > > Hi Jagan, > > > > > > On 2022/12/20 14:41, Jagan Teki wrote: > > > > On Mon, 19 Dec 20

Re: [PATCH v5 00/19] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-22 Thread Marek Vasut
On 12/22/22 11:53, Sergiu Moga wrote: This series of patches is meant to add support for USB Mass Storage on SAM9X60, SAMA7G5 and SAMA5D2 boards and register ohci-at91 driver into Driver Model. In order for this to be achieved, the respective DT nodes have been added, the USB clock has been regis

Re: [PATCH] Makefile: add -W for BINMAN_ALLOW_MISSING

2022-12-22 Thread Tom Rini
On Thu, Dec 22, 2022 at 10:01:16AM +0300, Nikita Shubin wrote: > Hello Tom! > > On Mon, 19 Dec 2022 08:36:30 -0500 > Tom Rini wrote: > > > On Mon, Dec 19, 2022 at 11:21:45AM +0300, Nikita Shubin wrote: > > > Hello Tom and Simon! > > > > > > On Sat, 17 Dec 2022 14:38:30 -0700 > > > Simon Glass

Re: [PATCHv2 5/4] fwu: rename fwu_get_verified_mdata to fwu_get_mdata

2022-12-22 Thread Ilias Apalodimas
On Fri, Dec 02, 2022 at 09:28:13PM -0600, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > fwu_get_mdata() sounds more appropriate than fwu_get_verified_mdata() > > Signed-off-by: Jassi Brar > --- > Forgot to send this patch previously in v2 > cmd/fwu_mdata.c | 2 +- > include/fwu.h

Re: [PATCHv2 3/4] fwu: gpt: implement read_mdata and write_mdata callbacks

2022-12-22 Thread Ilias Apalodimas
Hi Jassi, On Fri, Dec 02, 2022 at 09:17:12PM -0600, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > Moving towards using common code for meta-data management, > implement the read/write mdata hooks. > > Signed-off-by: Jassi Brar > --- > drivers/fwu-mdata/gpt_blk.c | 40 ++

[PATCH v3 5/5] doc/usage: cmd: sm: documentation efusedump cmd

2022-12-22 Thread Alexey Romanov
Signed-off-by: Alexey Romanov --- doc/usage/cmd/sm.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/usage/cmd/sm.rst b/doc/usage/cmd/sm.rst index 3a70c137ec9..beb53b3f46d 100644 --- a/doc/usage/cmd/sm.rst +++ b/doc/usage/cmd/sm.rst @@ -38,6 +38,10 @@ sm efusewrite Write into efu

[PATCH v3 4/5] cmd/arm: meson: sm: introduce efusedump command

2022-12-22 Thread Alexey Romanov
Using this command user can print efuse memory: $ sm efusedump 0 10 : ff 00 31 00 00 ff 66 00 00 00 ..1...f... Signed-off-by: Alexey Romanov Reviewed-by: Mattijs Korpershoek --- cmd/meson/sm.c | 36 +++- 1 file changed, 35 insertions(+), 1 deletio

[PATCH v3 3/5] doc/usage: cmd: documentation for meson/sm command

2022-12-22 Thread Alexey Romanov
Signed-off-by: Alexey Romanov --- doc/usage/cmd/sm.rst | 44 1 file changed, 44 insertions(+) create mode 100644 doc/usage/cmd/sm.rst diff --git a/doc/usage/cmd/sm.rst b/doc/usage/cmd/sm.rst new file mode 100644 index 000..3a70c137ec9 --- /de

[PATCH v3 2/5] arm/mach-meson: move smc commands in cmd/meson

2022-12-22 Thread Alexey Romanov
It is incorrect to keep commands in the arch/ folder. Signed-off-by: Alexey Romanov Reviewed-by: Mattijs Korpershoek --- MAINTAINERS | 1 + arch/arm/mach-meson/sm.c | 144 cmd/Kconfig | 7 ++ cmd/Makefile | 3 + cm

[PATCH v3 1/5] asm/arch-meson: add missing meson_sm_write_efuse signature

2022-12-22 Thread Alexey Romanov
This function can be used by other modules. Also add comments. Signed-off-by: Alexey Romanov --- arch/arm/include/asm/arch-meson/sm.h | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/include/asm/arch-meson/sm.h b/arch/arm/include/asm/arch-meson/sm.h ind

[PATCH v3 0/5] arch-meson: introduce efusedump command

2022-12-22 Thread Alexey Romanov
Keeping the commands code in an arch/ is not correct. This patchset moves the meson smc commands from arch/arm/mach-meson to cmd/meson folder and also adds a new 'efusedump' command with which user can print efuse memory. Alexey Romanov (5): asm/arch-meson: add missing meson_sm_write_efuse sign

Re: [PATCHv2 1/4] fwu: gpt: use cached meta-data partition numbers

2022-12-22 Thread Ilias Apalodimas
On Fri, Dec 02, 2022 at 09:16:51PM -0600, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > Use cached values and avoid parsing and scanning through partitions > everytime for meta-data partitions because they can't change after bootup. > > Acked-by: Etienne Carriere > Signed-off-by: Jassi B

Re: [PATCH 2/3] eficonfig: refactor change boot order implementation

2022-12-22 Thread Ilias Apalodimas
On Wed, Dec 21, 2022 at 10:50:37PM +0900, Masahisa Kojima wrote: > This commit removes the change boot order specific > menu implementation. The change boot order implementation > calls eficonfig_process_common() same as other menus. > > The change boot order menu requires own item_data_print > and

Re: [PATCH] board: amlogic: jethub j100: add rescue boot from microSD

2022-12-22 Thread Neil Armstrong
On 22/12/2022 10:33, Vyacheslav Bocharov via groups.io wrote: From: Viacheslav Bocharov The new JetHub D1+ has a microSD slot. Add rescue boot from microSD Signed-off-by: Viacheslav Bocharov --- include/configs/jethub.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/je

Re: [PATCH 1/2] tee: optee: don't fail probe because of optee-rng

2022-12-22 Thread Jens Wiklander
On Wed, Dec 7, 2022 at 4:30 PM Etienne Carriere wrote: > > Fixes optee-rng driver bind sequence in optee driver to print a warning > message but not report an error status when a optee-rng service driver > fails to be bound as the optee driver itself is still fully functional. > > Signed-off-by: E

Re: [PATCH 2/2] tee: optee: discover services dependent on tee-supplicant

2022-12-22 Thread Jens Wiklander
On Wed, Dec 7, 2022 at 4:30 PM Etienne Carriere wrote: > > Makes OP-TEE to enumerate also services depending on tee-supplicant > support in U-Boot. This change allows OP-TEE services like fTPM TA > to be discovered and get a TPM device registered in U-Boot. > > Signed-off-by: Etienne Carriere > -

[PATCH v5 19/19] usb: ohci-at91: Add `ohci_t` field in `ohci_at91_priv`

2022-12-22 Thread Sergiu Moga
From: Cristian Birsan The `ohci_register` function expects that the OHCI driver's priv is a struct whose first field is of type `ohci_t`. The original conversion to DM did not have it and this inconsistency revealed itself whenever U-Boot required multiple memory allocations resulting in a memory

[PATCH v5 17/19] configs: at91: sama5d2: Enable OHCI/EHCI related configs

2022-12-22 Thread Sergiu Moga
Enable the OHCI and EHCI related configs required in order to be able to use the USB command properly. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add CONFIG_RESET_AT91 to enable RSTC v3 -> v5: - No change configs/sama5d27_giantboard_defconfig | 4

[PATCH v5 18/19] configs: at91: sama7: Enable USB and RESET functionality

2022-12-22 Thread Sergiu Moga
Enable USB and RESET functionality. In order for USB to work properly on SAMA7, the driver needs to be able to have access to PHY's, which, in turn, need to have access to the RSTC driver's assert/deassert functionalities. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v5: - No cha

[PATCH v5 16/19] configs: at91: sam9x60ek: Add required configs for the USB command

2022-12-22 Thread Sergiu Moga
Add the configs required to use the USB-related functionalities within the bootloader. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add USB Mass Storage on SAM9X60 Curiosity - Add CONFIG_RESET_AT91 to enable RSTC v3 -> v5: - No change configs/sam9x60_curiosity_m

[PATCH v5 15/19] ARM: dts: at91: sama5d27_wlsom1_ek: Add pinctrl nodes for USB DT nodes

2022-12-22 Thread Sergiu Moga
Add the pinctrl nodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change arch/arm/dts/at91-sama5d27_wlsom1_ek.dts | 25 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/dts/

[PATCH v5 14/19] ARM: dts: at91: sama5d2_icp: Add pinctrl nodes for USB related DT nodes

2022-12-22 Thread Sergiu Moga
Add the pinctrl subnodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change arch/arm/dts/at91-sama5d2_icp.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/at91-sama5d2_ic

[PATCH v5 13/19] usb: ohci-at91: Add USB PHY functionality

2022-12-22 Thread Sergiu Moga
Add the ability to enable/disable whatever USB PHY's are passed to the AT91 OHCI driver through DT. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v5: - No change drivers/usb/host/ohci-at91.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/d

[PATCH v5 12/19] phy: at91: Add support for the USB 2.0 PHY's of SAMA7

2022-12-22 Thread Sergiu Moga
In order to have USB functionality, drivers for SAMA7's USB 2.0 PHY's have been added. There is one driver for UTMI clock's SFR and RESET required functionalities and one for its three possible subclocks of the phy's themselves. In order for this layout to properly work in conjunction with CCF and

[PATCH v5 11/19] reset: at91: Add reset driver for basic assert/deassert operations

2022-12-22 Thread Sergiu Moga
Add support for at91 reset controller's basic assert/deassert operations. Since this driver conflicts with the SYSRESET driver because they both bind to the same RSTC node, implement a custom bind hook that would manually bind the sysreset driver, if enabled, to the same RSTC DT node. Furthermore,

[PATCH v5 10/19] ARM: at91: add sama7 SFR definitions

2022-12-22 Thread Sergiu Moga
From: Cristian Birsan Special Function Registers(SFR) definitions for SAMA7 product family. Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga --- v1 -> v5: - No change arch/arm/mach-at91/include/mach/sama7-sfr.h | 59 + 1 file changed, 59 insertions(+) create

[PATCH v5 09/19] ARM: dts: at91: sama7: Add USB related DT nodes

2022-12-22 Thread Sergiu Moga
Add the USB related DT nodes for the sama7g5ek board. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change arch/arm/dts/at91-sama7g5ek.dts | 34 +++ arch/arm/dts/sama7g5.dtsi | 73 + 2 files changed, 107 insertions(+) diff --git a/arch/arm/

[PATCH v5 08/19] dt-bindings: clk: at91: Define additional UTMI related clocks

2022-12-22 Thread Sergiu Moga
Add definitions for an additional main UTMI clock as well as its respective subclocks. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change include/dt-bindings/clk/at91.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clk/at91.h b/include/dt-bindings/clk/at91.h

[PATCH v5 07/19] dt-bindings: reset: add sama7g5 definitions

2022-12-22 Thread Sergiu Moga
Upstream linux commit 5994f58977e0. Add reset bindings for SAMA7G5. At the moment only USB PHYs are included. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change include/dt-bindings/reset/sama7g5-reset.h | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 include/dt-bind

[PATCH v5 06/19] usb: ohci-at91: Enable OHCI functionality and register into DM

2022-12-22 Thread Sergiu Moga
Register the OHCI driver into DM by properly initializing the required clocks and pins required by the DT node of OHCI. In order for the VBUS to stay enabled, a `child_pre_probe` method has been added to overcome the DM core disabling it in `usb_scan_device`: when the generic `device_probe` method

[PATCH v5 05/19] clk: at91: sam9x60: Add initial setup of UPLL and USBCK rates

2022-12-22 Thread Sergiu Moga
In order for some of the functionalities, such as the USB clocks, to work properly we need some clocks to be properly initialised at the very beginning of booting. Signed-off-by: Sergiu Moga --- v1 -> v2: - Adapted according to the additional 04/19 PATCH, now making use of `at91_clk_setup` v

[PATCH v5 04/19] clk: at91: pmc: export clock setup to pmc

2022-12-22 Thread Sergiu Moga
From: Claudiu Beznea Clock setup was intended for setting clocks at boot time on SAMA7G5, e.g. for root clocks like PLLs, that were used to feed IPs needed alive in u-boot (e.g. Ethernet clock feed by a PLL). Export this functionality to all at91 clocks as it may be necessary on other SoCs. Sign

[PATCH v5 03/19] clk: at91: sam9x60: Register the required clocks for USB

2022-12-22 Thread Sergiu Moga
Register into DM the clocks required to properly enable USB functionality within the bootloader. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Remove the no longer required #if CONFIG_IS_ENABLED(AT91_SAM9X60_USB) v3 -> v5: - No change drivers/clk/at91/sam9x60.c | 33 +

[PATCH v5 02/19] clk: at91: Add support for sam9x60 USB clock

2022-12-22 Thread Sergiu Moga
Implement sam9x60 USB clock driver. This clock has three parents: PLLA, UPLL and MAINXTAL. The driver is aware of the three possible parents with the help of the two mux tables provied to the driver during the registration of the clock. Signed-off-by: Sergiu Moga --- v1 -> v4: - No change v4

[PATCH v5 00/19] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-22 Thread Sergiu Moga
This series of patches is meant to add support for USB Mass Storage on SAM9X60, SAMA7G5 and SAMA5D2 boards and register ohci-at91 driver into Driver Model. In order for this to be achieved, the respective DT nodes have been added, the USB clock has been registered into CCF and the required defconfi

[PATCH v5 01/19] ARM: dts: sam9x60: Add OHCI and EHCI DT nodes

2022-12-22 Thread Sergiu Moga
Add the OHCI and EHCI DT nodes for the sam9x60 boards. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add pinctrl nodes to sam9x60 curiosity v3 -> v5: - No change arch/arm/dts/at91-sam9x60_curiosity.dts | 21 + arch/arm/dts/sam9x60.dtsi

[PATCH 1/1] doc: improve wget man-page

2022-12-22 Thread Heinrich Schuchardt
* correct formatting of synopsis * improve description of TCP SACK configuration Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/wget.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/usage/cmd/wget.rst b/doc/usage/cmd/wget.rst index 4fcfa03954..27c500837a 100

Re: [PATCH 1/3] eficonfig: refactor eficonfig_process_common function

2022-12-22 Thread Masahisa Kojima
Hi Ilias, On Thu, 22 Dec 2022 at 18:59, Ilias Apalodimas wrote: > > Hi Kojima-san > > > On Wed, Dec 21, 2022 at 10:50:36PM +0900, Masahisa Kojima wrote: > > Current change boot order implementation does not call > > eficonfig_process_common() and call own menu functions > > for display_statusline

  1   2   >