Re: [PATCH 1/1] efi_loader: use EFI_EXIT in efi_riscv_get_boot_hartid

2023-01-11 Thread Ilias Apalodimas
On Wed, Jan 11, 2023 at 07:13:01PM +0100, Heinrich Schuchardt wrote: > After calling EFI_ENTRY we have to call EFI_EXIT before returning. > > Add a missing EFI_EXIT(). > > Fixes: 1ccf87165e38 ("efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support") > Reported-by: Dave Jones > Signed-off-by:

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2023-01-11 Thread Heiko Schocher
Hello Pali, On 11.01.23 19:13, Pali Rohár wrote: > On Wednesday 11 January 2023 19:02:38 Pali Rohár wrote: >> On Wednesday 11 January 2023 18:55:40 Pali Rohár wrote: >>> On Wednesday 11 January 2023 09:01:37 Tom Rini wrote: On Wed, Jan 11, 2023 at 01:52:24PM +0100, Heiko Schocher wrote:

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2023-01-11 Thread Heiko Schocher
Hello Tom, On 11.01.23 15:01, Tom Rini wrote: > On Wed, Jan 11, 2023 at 01:52:24PM +0100, Heiko Schocher wrote: >> Hello Pali, Tom, >> >> I just tried azure build with my socrates board updates based on >> v2023.01 and the 2 patches from Pali: >> >>

Re: [PATCH 2/3] power: regulator: Add a driver for AXP PMIC regulators

2023-01-11 Thread Samuel Holland
Hi Andre, On 1/11/23 17:08, Andre Przywara wrote: > On Mon, 28 Nov 2022 00:47:55 -0600 > Samuel Holland wrote: > > Hi Samuel, > >> This driver handles most voltage regulators found in X-Powers AXP PMICs. >> It is based on, and intended to replace, the regulator driver in TF-A. > > Many thanks

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-11 Thread Rob Herring
On Mon, Dec 19, 2022 at 1:21 PM Simon Glass wrote: > > Hi Abdellatif, > > On Mon, 19 Dec 2022 at 04:12, Abdellatif El Khlifi > wrote: > > > > On Mon, Dec 05, 2022 at 09:49:30AM -0600, Rob Herring wrote: > > > On Sun, Dec 4, 2022 at 1:22 PM Simon Glass wrote: > > > > > > > > Hi Rob, > > > > > >

Re: Applying DTB Overlays from ATF on RZ/G2

2023-01-11 Thread Marek Vasut
On 1/12/23 00:06, Adam Ford wrote: On Tue, Jan 10, 2023 at 7:40 AM Marek Vasut wrote: On 1/10/23 14:19, Adam Ford wrote: On Tue, Jan 10, 2023 at 7:02 AM Marek Vasut wrote: On 1/7/23 13:01, Adam Ford wrote: On Wed, Jan 4, 2023 at 5:55 PM Marek Vasut wrote: On 1/5/23 00:48, Heinrich

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Tom Rini
On Thu, Jan 12, 2023 at 12:35:15AM +0100, Heinrich Schuchardt wrote: > > > On 1/11/23 23:59, Mark Kettenis wrote: > > > From: Simon Glass > > > Date: Wed, 11 Jan 2023 14:08:27 -0700 > > > > Hi Simon, > > > > > Hi Heinrich, > > > > > > On Wed, 11 Jan 2023 at 11:03, Heinrich Schuchardt > > >

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Tom Rini
On Thu, Jan 12, 2023 at 01:16:43AM +0100, Heinrich Schuchardt wrote: > On 1/12/23 01:04, Tom Rini wrote: > > On Thu, Jan 12, 2023 at 01:01:55AM +0100, Heinrich Schuchardt wrote: > > > On 1/12/23 00:59, Tom Rini wrote: > > > > On Thu, Jan 12, 2023 at 12:40:05AM +0100, Heinrich Schuchardt wrote: > >

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Heinrich Schuchardt
On 1/12/23 01:04, Tom Rini wrote: On Thu, Jan 12, 2023 at 01:01:55AM +0100, Heinrich Schuchardt wrote: On 1/12/23 00:59, Tom Rini wrote: On Thu, Jan 12, 2023 at 12:40:05AM +0100, Heinrich Schuchardt wrote: On 1/12/23 00:29, Simon Glass wrote: () Hi Heinrich, On Wed, 11 Jan 2023 at 16:22,

Re: kernel doesn't start on Odroid U2 unless setting initrd_high

2023-01-11 Thread Tom Rini
On Wed, Jan 11, 2023 at 10:08:59PM +0100, Joost van Zwieten wrote: > > > On Wed, Jan 11, 2023 at 15:38, Tom Rini wrote: > > On Wed, Jan 11, 2023 at 09:28:42PM +0100, Joost van Zwieten wrote: > > > > > > > > > On Tue, Jan 10, 2023 at 18:29, Tom Rini wrote: > > > > On Wed, Jan 11, 2023 at

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Tom Rini
On Thu, Jan 12, 2023 at 01:01:55AM +0100, Heinrich Schuchardt wrote: > On 1/12/23 00:59, Tom Rini wrote: > > On Thu, Jan 12, 2023 at 12:40:05AM +0100, Heinrich Schuchardt wrote: > > > On 1/12/23 00:29, Simon Glass wrote: > > > > () Hi Heinrich, > > > > > > > > On Wed, 11 Jan 2023 at 16:22,

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Heinrich Schuchardt
On 1/12/23 00:42, Simon Glass wrote: Hi Heinrich, Thanks Karsten for reporting the issue. Bisection points to Simon's patch: a56f663f0707371 vbe: Add info about the VBE device to the fwupd node In bootmeth_vbe_simple_ft_fixup() probing device vbe_simple fails because all fwupd related

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Heinrich Schuchardt
On 1/12/23 00:59, Tom Rini wrote: On Thu, Jan 12, 2023 at 12:40:05AM +0100, Heinrich Schuchardt wrote: On 1/12/23 00:29, Simon Glass wrote: () Hi Heinrich, On Wed, 11 Jan 2023 at 16:22, Heinrich Schuchardt wrote: On 1/11/23 20:08, Karsten Merker wrote: Hello, it looks like U-Boot

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Tom Rini
On Thu, Jan 12, 2023 at 12:40:05AM +0100, Heinrich Schuchardt wrote: > On 1/12/23 00:29, Simon Glass wrote: > > () Hi Heinrich, > > > > On Wed, 11 Jan 2023 at 16:22, Heinrich Schuchardt > > wrote: > > > > > > On 1/11/23 20:08, Karsten Merker wrote: > > > > Hello, > > > > > > > > it looks like

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Simon Glass
Hi Heinrich, On Wed, 11 Jan 2023 at 16:40, Heinrich Schuchardt wrote: > > On 1/12/23 00:29, Simon Glass wrote: > > () Hi Heinrich, > > > > On Wed, 11 Jan 2023 at 16:22, Heinrich Schuchardt > > wrote: > >> > >> On 1/11/23 20:08, Karsten Merker wrote: > >>> Hello, > >>> > >>> it looks like

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Heinrich Schuchardt
On 1/12/23 00:29, Simon Glass wrote: () Hi Heinrich, On Wed, 11 Jan 2023 at 16:22, Heinrich Schuchardt wrote: On 1/11/23 20:08, Karsten Merker wrote: Hello, it looks like U-Boot v2023.01 is currently broken for the riscv64 architecture on the qemu "virt" platform; the boot process of a

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Simon Glass
Hi Mark, On Wed, 11 Jan 2023 at 15:59, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Wed, 11 Jan 2023 14:08:27 -0700 > > Hi Simon, > > > Hi Heinrich, > > > > On Wed, 11 Jan 2023 at 11:03, Heinrich Schuchardt > > wrote: > > > > > > > > > > > > On 1/11/23 18:55, Simon Glass wrote: > > >

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Heinrich Schuchardt
On 1/11/23 23:59, Mark Kettenis wrote: From: Simon Glass Date: Wed, 11 Jan 2023 14:08:27 -0700 Hi Simon, Hi Heinrich, On Wed, 11 Jan 2023 at 11:03, Heinrich Schuchardt wrote: On 1/11/23 18:55, Simon Glass wrote: Hi Heinrich, On Wed, 11 Jan 2023 at 09:59, Heinrich Schuchardt

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Simon Glass
() Hi Heinrich, On Wed, 11 Jan 2023 at 16:22, Heinrich Schuchardt wrote: > > On 1/11/23 20:08, Karsten Merker wrote: > > Hello, > > > > it looks like U-Boot v2023.01 is currently broken for the riscv64 > > architecture on the qemu "virt" platform; the boot process of a > > riscv64 VM fails

Re: U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Heinrich Schuchardt
On 1/11/23 20:08, Karsten Merker wrote: Hello, it looks like U-Boot v2023.01 is currently broken for the riscv64 architecture on the qemu "virt" platform; the boot process of a riscv64 VM fails during FDT fixup: -8<--8<--8<--8<--8<--8<- OpenSBI

Re: [PATCH 2/3] power: regulator: Add a driver for AXP PMIC regulators

2023-01-11 Thread Andre Przywara
On Mon, 28 Nov 2022 00:47:55 -0600 Samuel Holland wrote: Hi Samuel, > This driver handles most voltage regulators found in X-Powers AXP PMICs. > It is based on, and intended to replace, the regulator driver in TF-A. Many thanks for putting this together! That's much appreciated. > AXP PMIC

[PATCH 8/8] binman: Support positioning an entry by and ELF symbol

2023-01-11 Thread Simon Glass
In some cases it is useful to position an entry over the top of a symbol in an ELF file. For example, if the symbol holds a version string then it allows the string to be accessed from the fdtmap. Add support for this. Suggested-by: Pali Rohár Suggested-by: Keith Short Signed-off-by: Simon

[PATCH 6/8] binman: Provide general support for updating ELF symbols

2023-01-11 Thread Simon Glass
The current support for updating variables in a binary is hard-coded to work with U-Boot: - It assumes the image starts at __image_copy_start - It uses the existing U-Boot-specific entry types It is useful for other projects to use these feature. Add properties to enable writing symbols for any

[PATCH 5/8] binman: Support overlapping entries

2023-01-11 Thread Simon Glass
In some cases it is useful to have an entry overlap with another in a section, either to update the contents within a blob, or to add an entry to the fdtmap that covers only part of the blob. Add support for this. Signed-off-by: Simon Glass --- tools/binman/binman.rst | 9

[PATCH 7/8] dtoc: Add a way to read a phandle with params

2023-01-11 Thread Simon Glass
Add a function to read a phandle and associated name and offset. This is useful for binman. Signed-off-by: Simon Glass --- tools/dtoc/fdt_util.py| 28 +++ tools/dtoc/test/dtoc_test_phandle.dts | 1 + tools/dtoc/test_fdt.py| 11

[PATCH 4/8] binman: Add a function to check for special section nodes

2023-01-11 Thread Simon Glass
This appears in two places in the code. Use a shared function instead. Signed-off-by: Simon Glass --- tools/binman/etype/fit.py | 3 +-- tools/binman/etype/section.py | 13 - 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/tools/binman/etype/fit.py

[PATCH 3/8] binman: Add a null entry

2023-01-11 Thread Simon Glass
It is sometimes useful to define an entry which does not have its own contents but does appear in the image. The contents are set by the section which contains it, even though it appears as an entry in the fdtmap. Add support for this. Signed-off-by: Simon Glass --- tools/binman/entries.rst

[PATCH 2/8] binman: Clarify use of False when obtaining data

2023-01-11 Thread Simon Glass
This means that the data is not yet available. Update some comments to make this clearer. Signed-off-by: Simon Glass --- tools/binman/entry.py | 3 ++- tools/binman/etype/section.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/binman/entry.py

Re: [PATCH 1/3] power: pmic: axp: Provide a variant ID in the driver data

2023-01-11 Thread Andre Przywara
On Mon, 28 Nov 2022 00:47:54 -0600 Samuel Holland wrote: > Subordinate regulator drivers can use this enumerated ID instead of > matching the compatible string again. > > Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Cheers, Andre > --- > > drivers/power/pmic/axp.c | 18

[PATCH 1/8] binman: Add a test for an inner section with a size

2023-01-11 Thread Simon Glass
This is a slightly different scenario from the existing testSections tests. Add a new test for it. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 6 ++ tools/binman/test/267_section_inner.dts | 16 2 files changed, 22 insertions(+) create mode

[PATCH 0/8] binman: Enhancements for symbol handling

2023-01-11 Thread Simon Glass
A recent U-Boot discussion[1] yielded a suggestion to allow an entry to be positioned by an ELF symbol. A similar need has come up in ChromiumOS' use of Zephyr[2], this time with an additional offset added in. This series adds support for this along with a few other things: - Generic support

Re: Applying DTB Overlays from ATF on RZ/G2

2023-01-11 Thread Adam Ford
On Tue, Jan 10, 2023 at 7:40 AM Marek Vasut wrote: > > On 1/10/23 14:19, Adam Ford wrote: > > On Tue, Jan 10, 2023 at 7:02 AM Marek Vasut wrote: > >> > >> On 1/7/23 13:01, Adam Ford wrote: > >>> On Wed, Jan 4, 2023 at 5:55 PM Marek Vasut wrote: > > On 1/5/23 00:48, Heinrich Schuchardt

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Mark Kettenis
> From: Simon Glass > Date: Wed, 11 Jan 2023 14:08:27 -0700 Hi Simon, > Hi Heinrich, > > On Wed, 11 Jan 2023 at 11:03, Heinrich Schuchardt > wrote: > > > > > > > > On 1/11/23 18:55, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Wed, 11 Jan 2023 at 09:59, Heinrich Schuchardt > > >

Re: [PATCH v5] schemas: Add schema for U-Boot driver model 'phase tags'

2023-01-11 Thread Rob Herring
On Thu, Nov 10, 2022 at 10:59 AM Simon Glass wrote: > > U-Boot has some particular challenges with device tree and devices: > > - U-Boot has multiple build phases, such as a Secondary Program Loader > (SPL) phase which typically runs in a pre-SDRAM environment where code > and data space are

Re: kernel doesn't start on Odroid U2 unless setting initrd_high

2023-01-11 Thread Joost van Zwieten
On Wed, Jan 11, 2023 at 15:38, Tom Rini wrote: On Wed, Jan 11, 2023 at 09:28:42PM +0100, Joost van Zwieten wrote: On Tue, Jan 10, 2023 at 18:29, Tom Rini wrote: > On Wed, Jan 11, 2023 at 12:10:42AM +0100, Joost van Zwieten wrote: > > > > > > On Tue, Jan 10, 2023 at 18:08, Tom Rini

Re: [PATCH 4/5] video console: add 16x32 ter font from linux

2023-01-11 Thread Simon Glass
Hi Dzmitry, On Wed, 11 Jan 2023 at 09:59, Dzmitry Sankouski wrote: > > I tested on qemu q35 with RUFSCRIPT, CANTORAONE font, it uses > RUFSCRIPT, and works fine. > Not sure how to switch it on runtime, though. It is nice to use automated tests where we can. You could add a way to select the

Re: [PATCH 3/3] dm: input: add button_kbd driver

2023-01-11 Thread Simon Glass
Hi Dzmitry, On Wed, 11 Jan 2023 at 03:19, Dzmitry Sankouski wrote: > > Bootmenu requires an input device with arrows and enter key. > A common smartphone luckily has power, volume up/down buttons, > which may be used for controlling bootmenu. > To use driver, add 'button-kbd' to stdin. > >

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Simon Glass
Hi Heinrich, On Wed, 11 Jan 2023 at 11:03, Heinrich Schuchardt wrote: > > > > On 1/11/23 18:55, Simon Glass wrote: > > Hi Heinrich, > > > > On Wed, 11 Jan 2023 at 09:59, Heinrich Schuchardt > > wrote: > >> > >> > >> > >> On 1/11/23 17:48, Simon Glass wrote: > >>> Hi, > >>> > >>> On Wed, 11 Jan

Re: [PATCH 1/1] i2c:aspeed:support ast2600 i2c new register mode driver

2023-01-11 Thread Simon Glass
Hi Ryan, On Tue, 10 Jan 2023 at 23:48, ryan_chen wrote: > > Add i2c new register mode driver to support AST2600 i2c > new register mode. AST2600 i2c controller have legacy and > new register mode. The new register mode have global register > support 4 base clock for scl clock selection, and new

Re: kwboot: UART booting with bin_hdr u-boot (Marvell Armada 385)

2023-01-11 Thread Pali Rohár
On Wednesday 11 January 2023 12:44:45 Tony Dinh wrote: > Hi Pali, > > On Wed, Jan 11, 2023 at 12:04 AM Pali Rohár wrote: > > > > On Tuesday 10 January 2023 21:07:45 Tony Dinh wrote: > > > Hi Pali, > > > > > > I got burned for being lazy :) it turned out that the mix of #ifdef > > > and #if

Re: [PATCH] Revert "time: add weak annotation to timer_read_counter declaration"

2023-01-11 Thread Rob Herring
On Wed, Jan 4, 2023 at 6:09 PM Harald Seiler wrote: > > This reverts commit 65ba7add0d609bbd035b8d42fafdaf428ac24751. > > A weak extern is a nasty sight to behold: If the symbol is never > defined, on ARM, the linker will replace the function call with a NOP. > This behavior isn't well documented

Re: kwboot: UART booting with bin_hdr u-boot (Marvell Armada 385)

2023-01-11 Thread Tony Dinh
Hi Pali, On Wed, Jan 11, 2023 at 12:04 AM Pali Rohár wrote: > > On Tuesday 10 January 2023 21:07:45 Tony Dinh wrote: > > Hi Pali, > > > > On Mon, Jan 9, 2023 at 5:44 PM Tony Dinh wrote: > > > > > > On Mon, Jan 9, 2023 at 5:38 PM Pali Rohár wrote: > > > > > > > > On Monday 09 January 2023

Re: kernel doesn't start on Odroid U2 unless setting initrd_high

2023-01-11 Thread Tom Rini
On Wed, Jan 11, 2023 at 09:28:42PM +0100, Joost van Zwieten wrote: > > > On Tue, Jan 10, 2023 at 18:29, Tom Rini wrote: > > On Wed, Jan 11, 2023 at 12:10:42AM +0100, Joost van Zwieten wrote: > > > > > > > > > On Tue, Jan 10, 2023 at 18:08, Tom Rini wrote: > > > > On Wed, Jan 11, 2023 at

Re: kernel doesn't start on Odroid U2 unless setting initrd_high

2023-01-11 Thread Joost van Zwieten
On Tue, Jan 10, 2023 at 18:29, Tom Rini wrote: On Wed, Jan 11, 2023 at 12:10:42AM +0100, Joost van Zwieten wrote: On Tue, Jan 10, 2023 at 18:08, Tom Rini wrote: > On Wed, Jan 11, 2023 at 12:01:46AM +0100, Joost van Zwieten wrote: > > > > > > On Tue, Jan 10, 2023 at 13:41, Tom Rini

Re: [PATCH] doc: ti: Add switch setting for boot modes on AM62 SK

2023-01-11 Thread Bryan Brattlof
Hi Judith Wild... I'm not seeing this on the list? did you get a bounce? On January 10, 2023 thus sayeth Andrew Davis: > On 1/10/23 3:25 PM, Judith Mendez wrote: > > List some common boot modes and their corresponding switch > > settings for AM62 SK. > > > > Signed-off-by: Judith Mendez > >

U-Boot v2023.01 broken on riscv64 qemu virt platform: "fdt fixup event failed"

2023-01-11 Thread Karsten Merker
Hello, it looks like U-Boot v2023.01 is currently broken for the riscv64 architecture on the qemu "virt" platform; the boot process of a riscv64 VM fails during FDT fixup: -8<--8<--8<--8<--8<--8<- OpenSBI v1.1 _

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2023-01-11 Thread Pali Rohár
On Wednesday 11 January 2023 19:02:38 Pali Rohár wrote: > On Wednesday 11 January 2023 18:55:40 Pali Rohár wrote: > > On Wednesday 11 January 2023 09:01:37 Tom Rini wrote: > > > On Wed, Jan 11, 2023 at 01:52:24PM +0100, Heiko Schocher wrote: > > > > Hello Pali, Tom, > > > > > > > > I just tried

[PATCH 1/1] efi_loader: use EFI_EXIT in efi_riscv_get_boot_hartid

2023-01-11 Thread Heinrich Schuchardt
After calling EFI_ENTRY we have to call EFI_EXIT before returning. Add a missing EFI_EXIT(). Fixes: 1ccf87165e38 ("efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support") Reported-by: Dave Jones Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_riscv.c | 2 +- 1 file changed, 1

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Heinrich Schuchardt
On 1/11/23 18:55, Simon Glass wrote: Hi Heinrich, On Wed, 11 Jan 2023 at 09:59, Heinrich Schuchardt wrote: On 1/11/23 17:48, Simon Glass wrote: Hi, On Wed, 11 Jan 2023 at 06:59, Tom Rini wrote: On Wed, Jan 11, 2023 at 08:43:37AM +0100, Heinrich Schuchardt wrote: On 1/11/23

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2023-01-11 Thread Pali Rohár
On Wednesday 11 January 2023 18:55:40 Pali Rohár wrote: > On Wednesday 11 January 2023 09:01:37 Tom Rini wrote: > > On Wed, Jan 11, 2023 at 01:52:24PM +0100, Heiko Schocher wrote: > > > Hello Pali, Tom, > > > > > > I just tried azure build with my socrates board updates based on > > > v2023.01

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2023-01-11 Thread Pali Rohár
On Wednesday 11 January 2023 09:01:37 Tom Rini wrote: > On Wed, Jan 11, 2023 at 01:52:24PM +0100, Heiko Schocher wrote: > > Hello Pali, Tom, > > > > I just tried azure build with my socrates board updates based on > > v2023.01 and the 2 patches from Pali: > > > >

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Simon Glass
Hi Heinrich, On Wed, 11 Jan 2023 at 09:59, Heinrich Schuchardt wrote: > > > > On 1/11/23 17:48, Simon Glass wrote: > > Hi, > > > > On Wed, 11 Jan 2023 at 06:59, Tom Rini wrote: > >> > >> On Wed, Jan 11, 2023 at 08:43:37AM +0100, Heinrich Schuchardt wrote: > >>> > >>> > >>> On 1/11/23 01:15,

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Heinrich Schuchardt
On 1/11/23 18:40, Mark Kettenis wrote: Date: Wed, 11 Jan 2023 17:59:27 +0100 From: Heinrich Schuchardt On 1/11/23 17:48, Simon Glass wrote: Hi, On Wed, 11 Jan 2023 at 06:59, Tom Rini wrote: On Wed, Jan 11, 2023 at 08:43:37AM +0100, Heinrich Schuchardt wrote: On 1/11/23 01:15, Simon

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Mark Kettenis
> Date: Wed, 11 Jan 2023 17:59:27 +0100 > From: Heinrich Schuchardt > > On 1/11/23 17:48, Simon Glass wrote: > > Hi, > > > > On Wed, 11 Jan 2023 at 06:59, Tom Rini wrote: > >> > >> On Wed, Jan 11, 2023 at 08:43:37AM +0100, Heinrich Schuchardt wrote: > >>> > >>> > >>> On 1/11/23 01:15, Simon

Re: [PATCH 1/5] video console: unite normal and rotated files

2023-01-11 Thread Dzmitry Sankouski
I'll reword the commit description. Files contain similar logic, and common code may be extracted after putting it together. пт, 30 дек. 2022 г. в 01:41, Simon Glass : > > Hi Dzmitry, > > On Mon, 26 Dec 2022 at 13:49, Dzmitry Sankouski wrote: > > > > Put video console driver code in one file. >

Re: [PATCH 5/5] video console: remove unused 4x6 font

2023-01-11 Thread Dzmitry Sankouski
ok пт, 30 дек. 2022 г. в 01:40, Simon Glass : > > Hi Dzmitry, > > On Mon, 26 Dec 2022 at 13:50, Dzmitry Sankouski wrote: > > > > Remove video_font_4x6.h file because it's unused. > > > > Signed-off-by: Dzmitry Sankouski > > --- > > drivers/video/Kconfig|6 - > > include/video_font.h

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Heinrich Schuchardt
On 1/11/23 17:48, Simon Glass wrote: Hi, On Wed, 11 Jan 2023 at 06:59, Tom Rini wrote: On Wed, Jan 11, 2023 at 08:43:37AM +0100, Heinrich Schuchardt wrote: On 1/11/23 01:15, Simon Glass wrote: Hi Heinrich, On Mon, 9 Jan 2023 at 13:53, Heinrich Schuchardt wrote: On 1/9/23 21:31,

Re: [PATCH 4/5] video console: add 16x32 ter font from linux

2023-01-11 Thread Dzmitry Sankouski
I tested on qemu q35 with RUFSCRIPT, CANTORAONE font, it uses RUFSCRIPT, and works fine. Not sure how to switch it on runtime, though. пт, 30 дек. 2022 г. в 01:41, Simon Glass : > > Hi Dzmitry, > > On Tue, 27 Dec 2022 at 07:44, Dzmitry Sankouski wrote: > > > > Modern mobile phones typically

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Simon Glass
Hi, On Wed, 11 Jan 2023 at 06:59, Tom Rini wrote: > > On Wed, Jan 11, 2023 at 08:43:37AM +0100, Heinrich Schuchardt wrote: > > > > > > On 1/11/23 01:15, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Mon, 9 Jan 2023 at 13:53, Heinrich Schuchardt > > > wrote: > > > > > > > > > > > > > > >

Re: [PATCH 2/3] dm: button: add support for linux_code in button-gpio.c driver

2023-01-11 Thread Quentin Schulz
Hi Dzmitry, On 1/11/23 11:19, Dzmitry Sankouski wrote: Linux event code may be used in input devices, using buttons. Signed-off-by: Dzmitry Sankouski --- drivers/button/button-gpio.c | 20 drivers/button/button-uclass.c | 10 ++ include/button.h

RE: [PATCH] net: zynq_gem: Add a 10ms delay in zynq_gem_init()

2023-01-11 Thread Katakam, Harini
+ Hi Stefan, > -Original Message- > From: U-Boot On Behalf Of Stefan Roese > Sent: Wednesday, January 11, 2023 1:01 PM > To: u-boot@lists.denx.de > Cc: Michal Simek ; Ramon Fried > ; Sean Anderson > Subject: [PATCH] net: zynq_gem: Add a 10ms delay in zynq_gem_init() > > In our system

Re: [PATCH v2] configs: Increase malloc size after relocation

2023-01-11 Thread Andrew Davis
On 1/11/23 6:41 AM, Neha Malcom Francis wrote: Current default size of 0x10 is not capable of getting the FIT buffer during boot when transitioning to using binman generated boot images for certain K3 devices, so increase it to 0x40. Since A72 SPL is coming after relocation to DDR this

Re: [PATCH v2] doc: fix references to distro documentation

2023-01-11 Thread Patrick DELAUNAY
Hi, On 1/9/23 12:52, Dario Binacchi wrote: Commit 37c5195dfcd157 ("doc: Move distro boot doc to rST") renamed doc/README.distro to doc/develop/distro.rst. Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard --- Changes in v2: - Change 'distro.rst' to 'doc/develop/distro.rst' also for

Re: [PATCH] board: presidio-asic: Remove CONFIG_TARGET_VENUS

2023-01-11 Thread Michal Simek
On 12/19/22 16:26, Michal Simek wrote: Symbol is not defined anywhere that's why remove it. Signed-off-by: Michal Simek --- board/cortina/presidio-asic/lowlevel_init.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/cortina/presidio-asic/lowlevel_init.S

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

2023-01-11 Thread Michal Simek
On 12/21/22 08:54, Neal Frager wrote: 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

Re: [PATCH v2 5/5] test: Add sandbox TPM boot measurement

2023-01-11 Thread Eddie James
On 1/10/23 16:37, Heinrich Schuchardt wrote: On 1/10/23 23:32, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: Use the sandbox TPM driver to measure some boot images in a unit test case. $ ./u-boot -T -c "ut measurement" Running 1 measurement tests Test: measure:

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2023-01-11 Thread Tom Rini
On Wed, Jan 11, 2023 at 01:52:24PM +0100, Heiko Schocher wrote: > Hello Pali, Tom, > > I just tried azure build with my socrates board updates based on > v2023.01 and the 2 patches from Pali: > > http://patchwork.ozlabs.org/project/uboot/patch/20221228200437.30971-1-p...@kernel.org/ >

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-11 Thread Tom Rini
On Wed, Jan 11, 2023 at 08:43:37AM +0100, Heinrich Schuchardt wrote: > > > On 1/11/23 01:15, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 9 Jan 2023 at 13:53, Heinrich Schuchardt > > wrote: > > > > > > > > > > > > On 1/9/23 21:31, Simon Glass wrote: > > > > Hi Mark, > > > > > > > >

Re: [PATCH v5 1/3] efi_loader: Add SPI I/O protocol support

2023-01-11 Thread Paul Barker
On 24/12/2022 14:09, Heinrich Schuchardt wrote: > On 12/24/22 13:25, Paul Barker wrote: >> On 13/12/2022 07:15, Ilias Apalodimas wrote: >>> Hi Paul, >>> >>> Apologies for the delayed reply. >>> >>> [...] >>> +static efi_status_t +export_spi_peripheral(struct efi_spi_bus *bus, struct

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2023-01-11 Thread Heiko Schocher
Hello Pali, Tom, I just tried azure build with my socrates board updates based on v2023.01 and the 2 patches from Pali: http://patchwork.ozlabs.org/project/uboot/patch/20221228200437.30971-1-p...@kernel.org/ http://patchwork.ozlabs.org/project/uboot/patch/20221228200437.30971-2-p...@kernel.org/

[PATCH v2] configs: Increase malloc size after relocation

2023-01-11 Thread Neha Malcom Francis
Current default size of 0x10 is not capable of getting the FIT buffer during boot when transitioning to using binman generated boot images for certain K3 devices, so increase it to 0x40. Since A72 SPL is coming after relocation to DDR this should not be an issue for any K3 device, so make

Re: [PATCH 0/5] vidconsole: refactoring and support for wider fonts

2023-01-11 Thread Dzmitry Sankouski
This patchset adds wider fonts only for normal console. пт, 30 дек. 2022 г. в 02:02, Mark Kettenis : > > > From: Dzmitry Sankouski > > Date: Mon, 26 Dec 2022 22:49:24 +0300 > > > > Modern mobile phones typically have high pixel density. > > Bootmenu is hardly readable on those with 8x16 font. >

[PATCH] pico-imx7d: Add support for the 2GB variant

2023-01-11 Thread Fabio Estevam
Add the board detection mechanism to be able to support the 2GB variant. Based on the code from TechNexion U-Boot downstream tree. Signed-off-by: Fabio Estevam --- board/technexion/pico-imx7d/spl.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff

Re: [PATCH v5 3/3] arm: dts: am335x-sancloud-bbe-lite: UEFI SPI export

2023-01-11 Thread Paul Barker
On 03/01/2023 19:27, Rob Herring wrote: > On Sat, Dec 24, 2022 at 6:04 AM Paul Barker wrote: >> The EFI_SPI_PART structure has "Vendor" and "PartNumber" fields. We need >> something to put in those fields and the device tree is the best place >> to store the data. These properties are in the

Re: [PATCH] SoC: sdm845: find and save KASLR to env variables

2023-01-11 Thread Dzmitry Sankouski
Right. ср, 11 янв. 2023 г. в 05:36, Peter Robinson : > > On Tue, Dec 27, 2022 at 7:47 PM Dzmitry Sankouski > wrote: > > > > KASLR address is needed to boot fully functional Android. > > KASLR is set by primary bootloader, and since u-boot is used > > as a secondary bootloader(replacing kernel)

Re: [PATCH] net: zynq_gem: Add a 10ms delay in zynq_gem_init()

2023-01-11 Thread Stefan Roese
Hi Harini, On 1/11/23 12:20, Katakam, Harini wrote: + Hi Stefan, -Original Message- From: U-Boot On Behalf Of Stefan Roese Sent: Wednesday, January 11, 2023 1:01 PM To: u-boot@lists.denx.de Cc: Michal Simek ; Ramon Fried ; Sean Anderson Subject: [PATCH] net: zynq_gem: Add a 10ms

Re: [PATCH 2/2] env: add failing trace in env_erase

2023-01-11 Thread Heiko Schocher
Hello Patrick, On 14.12.22 16:51, Patrick Delaunay wrote: > Add trace in env save to indicate any errors to end user and avoid > silent output when the command 'env erase' is not executed as it is > done in env_save with commit 8968288cb477 ("env: add failing trace in > env_save") > >

Re: [PATCH 1/2] env: ubi: add support of command env erase

2023-01-11 Thread Heiko Schocher
Hello Patrick, On 14.12.22 16:51, Patrick Delaunay wrote: > Add support of opts erase for ubi env backend, this opts is used by > command 'env erase'. > > This command only zero-fill the env UBI volume CONFIG_ENV_UBI_VOLUME > and CONFIG_ENV_UBI_VOLUME_REDUND, so the saved environment becomes >

[PATCH 3/3] dm: input: add button_kbd driver

2023-01-11 Thread Dzmitry Sankouski
Bootmenu requires an input device with arrows and enter key. A common smartphone luckily has power, volume up/down buttons, which may be used for controlling bootmenu. To use driver, add 'button-kbd' to stdin. Signed-off-by: Dzmitry Sankouski --- drivers/input/Kconfig | 9 +++

[PATCH 2/3] dm: button: add support for linux_code in button-gpio.c driver

2023-01-11 Thread Dzmitry Sankouski
Linux event code may be used in input devices, using buttons. Signed-off-by: Dzmitry Sankouski --- drivers/button/button-gpio.c | 20 drivers/button/button-uclass.c | 10 ++ include/button.h | 16 3 files changed, 46 insertions(+)

[PATCH 1/3] gpio: qcom: add direction functions for pwrkey

2023-01-11 Thread Dzmitry Sankouski
GPIO button driver requires direction functions to probe button gpio. Those functions are blank, since pwrkey gpio configured earlier not by u-boot. Signed-off-by: Dzmitry Sankouski --- drivers/gpio/qcom_pmic_gpio.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH 0/3] dm: input: driver for buttons with linux, code declaration

2023-01-11 Thread Dzmitry Sankouski
Bootmenu requires an input device with arrows and enter key. A common smartphone luckily has power, volume up/down buttons, which may be used for controlling bootmenu. Button keyboard driver relies on button driver - iterates over all button with linux,code, checks state and sends events. Add

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2023-01-11 Thread Heiko Schocher
Hello Pali, On 11.01.23 01:12, Pali Rohár wrote: > On Friday 06 January 2023 17:13:41 Simon Glass wrote: >> Hi Pali, >> >> On Tue, 3 Jan 2023 at 10:05, Pali Rohár wrote: >>> >>> On Tuesday 03 January 2023 11:02:17 Simon Glass wrote: 3. Add a common binman image for u-boot.bin (used by

Re: [PATCH v2] arm64: zynqmp: remove Avnet UltraZed-EV Starter Kit

2023-01-11 Thread Michal Simek
On 1/11/23 09:25, Luca Ceresoli wrote: Nobody seems interested and able to keep this board supported, and xilinx_zynqmp_virt_defconfig is supposed to be enough for any zynqmp board. See the discussion at:

Re: [PATCH] configs: Increase malloc size after relocation

2023-01-11 Thread Neha Malcom Francis
Hi Vignesh, On 11/01/23 14:55, Vignesh Raghavendra wrote: On 11/01/23 11:34, Neha Malcom Francis wrote: Current default size of 0x10 is not capable of getting the FIT buffer during boot when transitioning to using binman generated boot images for certain K3 devices, so increase it to

Re: [PATCH] configs: Increase malloc size after relocation

2023-01-11 Thread Vignesh Raghavendra
On 11/01/23 11:34, Neha Malcom Francis wrote: > Current default size of 0x10 is not capable of getting the FIT > buffer during boot when transitioning to using binman generated boot > images for certain K3 devices, so increase it to 0x40. Since A72 SPL > is coming after relocation to

Re: [RFC PATCH] disk: Don't loop over MAX_SEARCH_PARTITIONS in part_create_block_devices()

2023-01-11 Thread AKASHI Takahiro
On Wed, Jan 11, 2023 at 09:05:05AM +0100, Stefan Roese wrote: > On 1/11/23 02:32, AKASHI Takahiro wrote: > > Hi, > > > > Thank you for catching this issue. > > > > On Tue, Jan 10, 2023 at 09:00:38AM +0100, Stefan Roese wrote: > > > I've noticed that the first ext4 file loading from a MMC

[PATCH v2] arm64: zynqmp: remove Avnet UltraZed-EV Starter Kit

2023-01-11 Thread Luca Ceresoli
Nobody seems interested and able to keep this board supported, and xilinx_zynqmp_virt_defconfig is supposed to be enough for any zynqmp board. See the discussion at:

[PATCH v3] usb: gadget: dwc2_udc_otg: implement pullup()

2023-01-11 Thread Mattijs Korpershoek
Pullup is used by the usb framework in order to do software-controlled usb_gadget_connect() and usb_gadget_disconnect(). Implement pullup() for dwc2 using the SOFT_DISCONNECT bit in the dctl register: * when pullup is on, clear SOFT_DISCONNECT * when pullup is off, set SOFT_DISCONNECT This is

Re: [PATCH 10/19] fpga: Migrate CONFIG_MAX_FPGA_DEVICES to Kconfig

2023-01-11 Thread Michal Simek
On 1/10/23 17:19, Tom Rini wrote: This is always defined to 5, so use that as the default. Cc: Michal Simek Signed-off-by: Tom Rini --- drivers/fpga/Kconfig | 5 + drivers/fpga/fpga.c | 5 - include/fpga.h | 4 3 files changed, 5 insertions(+), 9 deletions(-) diff

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-11 Thread Loic Poulain
On Wed, 11 Jan 2023 at 09:08, Pali Rohár wrote: > > On Wednesday 11 January 2023 08:53:30 Loic Poulain wrote: > > On Wed, 11 Jan 2023 at 00:53, Pali Rohár wrote: > > > > > > On Tuesday 10 January 2023 20:24:06 Loic Poulain wrote: > > > > The u-boot console may show some corrupted characters when

Re: [PATCH v2] usb: gadget: dwc2_udc_otg: implement pullup()

2023-01-11 Thread Mattijs Korpershoek
On Tue, Jan 10, 2023 at 18:23, Marek Vasut wrote: > On 1/10/23 17:29, Mattijs Korpershoek wrote: > > [...] > >> diff --git a/drivers/usb/gadget/dwc2_udc_otg.c >> b/drivers/usb/gadget/dwc2_udc_otg.c >> index 77988f78ab30..d0a9be49ad9c 100644 >> --- a/drivers/usb/gadget/dwc2_udc_otg.c >> +++

Re: [PATCH v3 2/2] serial: mxc: Speed-up character transmission

2023-01-11 Thread Pali Rohár
On Wednesday 11 January 2023 08:54:49 Loic Poulain wrote: > On Wed, 11 Jan 2023 at 00:55, Pali Rohár wrote: > > > > On Tuesday 10 January 2023 20:24:07 Loic Poulain wrote: > > > Instead of waiting for empty FIFO condition before writing a > > > character, wait for non-full FIFO condition. > > > >

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-11 Thread Pali Rohár
On Wednesday 11 January 2023 08:53:30 Loic Poulain wrote: > On Wed, 11 Jan 2023 at 00:53, Pali Rohár wrote: > > > > On Tuesday 10 January 2023 20:24:06 Loic Poulain wrote: > > > The u-boot console may show some corrupted characters when > > > printing in board_init() due to reset of the UART

Re: [PATCH v2 2/2] serial: mxc: Wait for TX completion before reset

2023-01-11 Thread Loic Poulain
On Wed, 11 Jan 2023 at 01:15, Simon Glass wrote: > > Hi, > > On Tue, 10 Jan 2023 at 05:42, Loic Poulain wrote: > > > > The u-boot console may show some corrupted characters when > > printing in board_init() due to reset of the UART (probe) > > before the TX FIFO has been completely drained. > >

Re: [RFC PATCH] disk: Don't loop over MAX_SEARCH_PARTITIONS in part_create_block_devices()

2023-01-11 Thread Stefan Roese
On 1/11/23 02:32, AKASHI Takahiro wrote: Hi, Thank you for catching this issue. On Tue, Jan 10, 2023 at 09:00:38AM +0100, Stefan Roese wrote: I've noticed that the first ext4 file loading from a MMC partition for ZynqMP takes quite some time (~ 1 second). Debugging showed, that the MMC driver

Re: kwboot: UART booting with bin_hdr u-boot (Marvell Armada 385)

2023-01-11 Thread Pali Rohár
On Tuesday 10 January 2023 21:07:45 Tony Dinh wrote: > Hi Pali, > > On Mon, Jan 9, 2023 at 5:44 PM Tony Dinh wrote: > > > > On Mon, Jan 9, 2023 at 5:38 PM Pali Rohár wrote: > > > > > > On Monday 09 January 2023 17:35:24 Tony Dinh wrote: > > > > Hi Pali, > > > > > > > > On Mon, Jan 9, 2023 at