Re: [PATCH v3 19/19] doc: board: ti: Update documentation for binman flow

2023-04-24 Thread Heinrich Schuchardt
On 4/24/23 22:49, Tom Rini wrote: On Mon, Apr 24, 2023 at 01:42:17PM -0600, Simon Glass wrote: Hi Neha, On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: Earlier documentation specified builds for generating bootloader images using an external TI repository k3-image-gen and

Re: [PATCH] rk3399: r4s: Derive local MAC address if EEPROM is missing

2023-04-24 Thread Kever Yang
Hi Christian,     Sorry for reply late for this patch, could you pls send again with sign-off-by. for the code change looks OK for me. Reviewed-by: Kever Yang Thanks, - Kever On 2022/9/27 23:05, Christian Kohlschütter wrote: Some RK3399 boards, such as newer revisions of NanoPi R4S, do

Re: [PATCH 29/31] doc: Show how to build sandbox for MSYS2

2023-04-24 Thread Heinrich Schuchardt
Am 25. April 2023 05:01:30 MESZ schrieb Bin Meng : >On Tue, Apr 25, 2023 at 10:54 AM Heinrich Schuchardt >wrote: >> >> >> >> Am 25. April 2023 01:08:34 MESZ schrieb Simon Glass : >> >Add instructions for building u-boot.exe to run on Windows. >> > >> >Signed-off-by: Simon Glass >> >--- >> >

Re: [PATCH 29/31] doc: Show how to build sandbox for MSYS2

2023-04-24 Thread Bin Meng
On Tue, Apr 25, 2023 at 10:54 AM Heinrich Schuchardt wrote: > > > > Am 25. April 2023 01:08:34 MESZ schrieb Simon Glass : > >Add instructions for building u-boot.exe to run on Windows. > > > >Signed-off-by: Simon Glass > >--- > > > > doc/build/gcc.rst | 35 +++ > >

Re: [PATCH 29/31] doc: Show how to build sandbox for MSYS2

2023-04-24 Thread Heinrich Schuchardt
Am 25. April 2023 01:08:34 MESZ schrieb Simon Glass : >Add instructions for building u-boot.exe to run on Windows. > >Signed-off-by: Simon Glass >--- > > doc/build/gcc.rst | 35 +++ > 1 file changed, 35 insertions(+) > >diff --git a/doc/build/gcc.rst

Re: [PATCH 17/31] sandbox: Allow weak symbols to be dropped

2023-04-24 Thread Bin Meng
Hi Simon, On Tue, Apr 25, 2023 at 7:09 AM Simon Glass wrote: > > The sandbox build makes use of a small number of weak symbols. Allow these > to be dropped when building for the PE format, since its support for weak > symbols is poor. > > Signed-off-by: Simon Glass > --- > > cmd/bootefi.c

Re: [PATCH 17/31] sandbox: Allow weak symbols to be dropped

2023-04-24 Thread Heinrich Schuchardt
Am 25. April 2023 01:08:22 MESZ schrieb Simon Glass : >The sandbox build makes use of a small number of weak symbols. Allow these >to be dropped when building for the PE format, since its support for weak >symbols is poor. This comment does not explain the necessity of the change. Why is it

Re: [PATCH 21/31] test: Avoid strange symbols in the assembler file

2023-04-24 Thread Heinrich Schuchardt
Am 25. April 2023 01:08:26 MESZ schrieb Simon Glass : >This works correctly on Linux with ELF but not on Windows with PE, since >it creates assembly symbols with invalid names. > >Use the lowest/highest valid characters instead. This should still work >correctly, since we have no tests starting

Re: [PATCH 29/31] doc: Show how to build sandbox for MSYS2

2023-04-24 Thread Heinrich Schuchardt
Am 25. April 2023 01:08:34 MESZ schrieb Simon Glass : >Add instructions for building u-boot.exe to run on Windows. > >Signed-off-by: Simon Glass >--- > > doc/build/gcc.rst | 35 +++ > 1 file changed, 35 insertions(+) > >diff --git a/doc/build/gcc.rst

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-24 Thread Tom Rini
On Mon, Apr 24, 2023 at 07:06:08PM -0700, Tony Dinh wrote: > Hi Simon, > > On Mon, Apr 24, 2023 at 12:43 PM Simon Glass wrote: > > > > Hi Tony, > > > > On Wed, 19 Apr 2023 at 21:55, Tony Dinh wrote: > > > > > > On Wed, Apr 19, 2023 at 6:22 PM Tony Dinh wrote: > > > > > > > > HI Simon, > > > >

Re: Unable to implement board fdt-fixup for imx8m CPU

2023-04-24 Thread Hugo Villeneuve
On Mon, 24 Apr 2023 20:09:53 -0500 Adam Ford wrote: > On Mon, Apr 24, 2023 at 4:57 PM Hugo Villeneuve wrote: > > > > On Mon, 24 Apr 2023 15:01:35 -0600 > > Simon Glass wrote: > > > > > Hi Hugo, > > > > > > On Mon, 24 Apr 2023 at 14:53, Hugo Villeneuve wrote: > > > > > > > > Hi, > > > >

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-24 Thread Tony Dinh
Hi Simon, On Mon, Apr 24, 2023 at 12:43 PM Simon Glass wrote: > > Hi Tony, > > On Wed, 19 Apr 2023 at 21:55, Tony Dinh wrote: > > > > On Wed, Apr 19, 2023 at 6:22 PM Tony Dinh wrote: > > > > > > HI Simon, > > > > > > On Tue, Apr 18, 2023 at 6:46 PM Simon Glass wrote: > > > > > > > > Hi Tony,

Re: [PATCH 14/31] sandbox: Drop signal handling for MSYS2

2023-04-24 Thread Heinrich Schuchardt
Am 25. April 2023 01:08:19 MESZ schrieb Simon Glass : >The Linux register format is not used in Windows, so disable this feature. > >Signed-off-by: Simon Glass >--- > > arch/sandbox/cpu/os.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/arch/sandbox/cpu/os.c

Re: Unable to implement board fdt-fixup for imx8m CPU

2023-04-24 Thread Adam Ford
On Mon, Apr 24, 2023 at 4:57 PM Hugo Villeneuve wrote: > > On Mon, 24 Apr 2023 15:01:35 -0600 > Simon Glass wrote: > > > Hi Hugo, > > > > On Mon, 24 Apr 2023 at 14:53, Hugo Villeneuve wrote: > > > > > > Hi, > > > according to this document: > > > > > > doc/develop/driver-model/fdt-fixup.rst

[PATCH 00/31] Allow building sandbox with MSYS2

2023-04-24 Thread Simon Glass
This expands the existing work to allow sandbox to build and run on Windows using MSYS2. It also fixes a few issues so that binman can be used. There are various limitations and some features do not work fully yet. In particular, weak functions are not well supported on Windows so these are

Re: [PATCH v8 00/24] Fixes for Rockchip NFC driver part 1

2023-04-24 Thread Simon Glass
Hi Johan, On Sun, 23 Apr 2023 at 03:24, Johan Jonker wrote: > > > > On 4/23/23 03:51, Kever Yang wrote: > > Hi Johan, > > > > On 2023/4/21 23:34, Johan Jonker wrote: > >> > >> On 4/21/23 05:15, Kever Yang wrote: > >>> Hi Johan, > >>> > >>> I got below error report from CI test, I think it

Re: Unable to implement board fdt-fixup for imx8m CPU

2023-04-24 Thread Simon Glass
Hi Hugo, On Mon, 24 Apr 2023 at 15:57, Hugo Villeneuve wrote: > > On Mon, 24 Apr 2023 15:01:35 -0600 > Simon Glass wrote: > > > Hi Hugo, > > > > On Mon, 24 Apr 2023 at 14:53, Hugo Villeneuve wrote: > > > > > > Hi, > > > according to this document: > > > > > >

[PATCH 21/31] test: Avoid strange symbols in the assembler file

2023-04-24 Thread Simon Glass
This works correctly on Linux with ELF but not on Windows with PE, since it creates assembly symbols with invalid names. Use the lowest/highest valid characters instead. This should still work correctly, since we have no tests starting with $ and none starting with 'z' at present. Signed-off-by:

[PATCH 29/31] doc: Show how to build sandbox for MSYS2

2023-04-24 Thread Simon Glass
Add instructions for building u-boot.exe to run on Windows. Signed-off-by: Simon Glass --- doc/build/gcc.rst | 35 +++ 1 file changed, 35 insertions(+) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index a0650a51db4b..40d0bde52413 100644 ---

[PATCH 27/31] Makefile: Disable LTO when building with MSYS2

2023-04-24 Thread Simon Glass
This creates a lot of errors of the form: `__stack_chk_fail' referenced in section `.text' of ...ltrans.o: defined in discarded section `.text' of common/stackprot.o (symbol from plugin) Drop LTO for now. Signed-off-by: Simon Glass --- Makefile | 2 ++ 1 file changed, 2 insertions(+)

[PATCH 25/31] Makefile: Disable unsupported compiler options with PE

2023-04-24 Thread Simon Glass
The MSYS2 compiler does not support some of these options. Drop them to avoid build errors. Signed-off-by: Simon Glass --- Makefile | 2 ++ scripts/Makefile.lib | 5 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index

[PATCH 26/31] Makefile: Correct the ans1_compiler rule for MSYS2

2023-04-24 Thread Simon Glass
Add the required extension to the Makefile rule. Signed-off-by: Simon Glass --- Makefile | 1 + scripts/Makefile.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 773260b81d5d..08eab87d0a11 100644 --- a/Makefile +++ b/Makefile

[PATCH 20/31] sandbox: Drop inclusion of os.h in sscanf.c

2023-04-24 Thread Simon Glass
There is no need for this file and it should not be included unless sandbox is being used. Drop it. Signed-off-by: Simon Glass --- lib/sscanf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/sscanf.c b/lib/sscanf.c index 4c35c035fe10..b79f6d79255c 100644 --- a/lib/sscanf.c +++

[PATCH 30/31] Makefile: Drop unwind tables

2023-04-24 Thread Simon Glass
These give lots of warnings for the form: lib/efi_loader/helloworld.o:helloworld.c:(.pdata+0x0): relocation truncated to fit: IMAGE_REL_AMD64_ADDR32NB against `.text' The tables are not needed except when debugging, so disable them for now. Signed-off-by: Simon Glass ---

[PATCH 31/31] CI: Enable sandbox build for Windows

2023-04-24 Thread Simon Glass
Add a new rule to build sandbox for Windows. For now, no tests are run in this configuration. Signed-off-by: Simon Glass --- .azure-pipelines.yml | 27 +++ 1 file changed, 27 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index

[PATCH 28/31] doc: Update the MSYS2 packages and versions

2023-04-24 Thread Simon Glass
These are now quite out-of-date. Update to 2023 versions and bring in those are are needed for the newer tool features. Signed-off-by: Simon Glass --- doc/build/tools.rst | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/doc/build/tools.rst

[PATCH 18/31] sections: Drop use of linux/types.h

2023-04-24 Thread Simon Glass
Use 'unsigned long' instead of 'ulong' so this file does not need to include the linux/types.h header file. This allows it to be built with MSYS2. Signed-off-by: Simon Glass --- include/asm-generic/sections.h | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

[PATCH 17/31] sandbox: Allow weak symbols to be dropped

2023-04-24 Thread Simon Glass
The sandbox build makes use of a small number of weak symbols. Allow these to be dropped when building for the PE format, since its support for weak symbols is poor. Signed-off-by: Simon Glass --- cmd/bootefi.c | 3 ++- cmd/bootz.c | 3 +++

[PATCH 24/31] build: Disable weak symbols for MSYS2

2023-04-24 Thread Simon Glass
Weak symbols are not well supported by the PE format, so disable them. We need to manually ensure that only one function is present in the source code. Add a Kconfig option to control this and enable it when building for Windows. Signed-off-by: Simon Glass --- Kconfig

[PATCH 22/31] sandbox: Fix up setting of monitor_len on MSYS2

2023-04-24 Thread Simon Glass
The required linker symbols are not present. For now just return 0 in this case. Signed-off-by: Simon Glass --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 1688e27071fc..4f380d7c82c8 100644 ---

[PATCH 23/31] ctype: Avoid using a symlink

2023-04-24 Thread Simon Glass
Windows doesn't really support symlinks so fails to build this file. Use a single-line #include instead. Signed-off-by: Simon Glass --- include/ctype.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) mode change 12 => 100644 include/ctype.h diff --git a/include/ctype.h

[PATCH 19/31] sandbox: Drop incorrect inclusion of linux/types.h

2023-04-24 Thread Simon Glass
This header file should only be included in U-Boot standalone files, not those built in the Linux environment. When not building for Linux, the header file does not exist, except in the U-Boot tree. In any case, it should not be used. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 1 -

[PATCH 16/31] sandbox: Include errno.h in the test header

2023-04-24 Thread Simon Glass
Add this so that the header file can used without first including the errno.h header. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/test.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h index

[PATCH 14/31] sandbox: Drop signal handling for MSYS2

2023-04-24 Thread Simon Glass
The Linux register format is not used in Windows, so disable this feature. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 5e66304e2b9d..c8b83f923ddb 100644 ---

[PATCH 13/31] sandbox: Disable raw Ethernet on MSYS2

2023-04-24 Thread Simon Glass
This relies on Linux features so cannot be built for Windows. Drop it. Signed-off-by: Simon Glass --- arch/sandbox/cpu/Makefile | 2 ++ drivers/net/Makefile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/sandbox/cpu/Makefile b/arch/sandbox/cpu/Makefile index

[PATCH 15/31] sandbox: Correct SDL.h header inclusion

2023-04-24 Thread Simon Glass
We rely on sdl-config to provide the include directory for this header file, so should not add the include directory in the C file. Drop it so that this works as expected on Windows. Signed-off-by: Simon Glass --- arch/sandbox/cpu/sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 10/31] sandbox: Provide a linker script for MSYS2

2023-04-24 Thread Simon Glass
Add a script to allow the U-Boot sandbox executable to be built for Windows. Add a note as to why this seems to be necessary for now. Signed-off-by: Simon Glass --- Makefile | 11 +- arch/sandbox/config.mk | 4 + arch/sandbox/cpu/u-boot-pe.lds | 447

[PATCH 12/31] sandbox: Drop dead code from Makefile

2023-04-24 Thread Simon Glass
This is not used, since the same code appears in cpu/Makefile Drop it. Signed-off-by: Simon Glass --- arch/sandbox/Makefile | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index a335f8acfde6..f6cf859f249c 100644 ---

[PATCH 11/31] sandbox: Provide an EFI link script for PE

2023-04-24 Thread Simon Glass
Add another case for sandbox, when it is built on Windows. Signed-off-by: Simon Glass --- arch/sandbox/config.mk | 4 +- arch/x86/lib/crt0_x86_64_efi.S | 2 + arch/x86/lib/pe_x86_64_efi.lds | 83 ++ 3 files changed, 88 insertions(+), 1 deletion(-)

[PATCH 09/31] Kbuild: Detect including an MSYS2 path

2023-04-24 Thread Simon Glass
The source-tree directory is prepended to relative include paths, but this does not work on Windows, where a path may have a drive letter like C: at the start of it. This breaks SDL which includes an absolute path to the header directory to the C flags, e.g. -IC:/msys64/mingw64/include/SDL2 Add

[PATCH 08/31] mkimage: Correct checking of configuration node

2023-04-24 Thread Simon Glass
This returns a negative value on error. Update the logic to detect this and avoid a segfault when the node is not found. Signed-off-by: Simon Glass --- tools/image-host.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/image-host.c b/tools/image-host.c index

[PATCH 07/31] Fix Makefile warning about parallel targets

2023-04-24 Thread Simon Glass
These targets are not really parallel; they are handled one at a time when invoked by other rules. Some recent versions of make (e.g. on MSYS2) give a warning about this. Split out the rules to avoid the warning. Signed-off-by: Simon Glass --- tools/Makefile | 14 +- 1 file

[PATCH 06/31] pylibfdt: Allow building on Windows

2023-04-24 Thread Simon Glass
Handle the different shared-object extension with MSYS2 by creating a new SOEXT variable. Signed-off-by: Simon Glass --- Makefile | 11 +++ scripts/dtc/pylibfdt/Makefile | 16 +--- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/Makefile

[PATCH 05/31] binman: Don't require a HOME directory

2023-04-24 Thread Simon Glass
This doesn't exist on Windows, so use os.expanduser() instead. Signed-off-by: Simon Glass --- tools/binman/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/cmdline.py b/tools/binman/cmdline.py index 4b875a9dcda3..fafccab06012 100644 ---

[PATCH 04/31] binman: Avoid using a symlink

2023-04-24 Thread Simon Glass
Use a small Python script instead of a symlink to avoid problems with Windows. Signed-off-by: Simon Glass --- tools/binman/binman | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) mode change 12 => 100755 tools/binman/binman diff --git a/tools/binman/binman

[PATCH 03/31] u_boot_pylib: Make pty optional

2023-04-24 Thread Simon Glass
This library is not available on Windows. Detect this and work around it by using a normal pipe. Signed-off-by: Simon Glass --- scripts/make_pip.sh | 9 +++-- tools/u_boot_pylib/cros_subprocess.py | 28 ++- 2 files changed, 30 insertions(+), 7

[PATCH 02/31] u_boot_pylib: Correct name of readme

2023-04-24 Thread Simon Glass
This has an rst prefix rather than md. Fix it. Signed-off-by: Simon Glass --- tools/u_boot_pylib/README.rst | 2 +- tools/u_boot_pylib/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/u_boot_pylib/README.rst b/tools/u_boot_pylib/README.rst index

[PATCH 01/31] patman: Declare the future Series memory

2023-04-24 Thread Simon Glass
This member is used in series.MakeCcFile() so should be declared in the Series class. Add a declaration to silence the warning. Signed-off-by: Simon Glass --- tools/patman/commit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/patman/commit.py b/tools/patman/commit.py index

Re: [PATCH] include: configs: j721e_evm: Fix name_fdt for J7200

2023-04-24 Thread Tom Rini
On Fri, Apr 14, 2023 at 04:33:52PM +0530, Neha Malcom Francis wrote: > Currently, name_fdt is not set for J7200, fix this so right DTB is > picked during boot. > > Signed-off-by: Neha Malcom Francis Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 01/10] arm: dts: k3-j721s2-r5: add a72 cluster power domain node

2023-04-24 Thread Tom Rini
On Fri, Apr 14, 2023 at 09:47:52AM +0530, Manorit Chawdhry wrote: > adds a72 cluster to control from the rproc driver > > Signed-off-by: Manorit Chawdhry For the series, applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 01/17] arm: dts: am3x: Update devicetree header comments to sync with v6.3-rc6

2023-04-24 Thread Tom Rini
On Tue, Apr 11, 2023 at 01:24:54PM -0500, Andrew Davis wrote: > Signed-off-by: Andrew Davis For the series, applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 01/12] arm: mach-k3: Move MSMC fixup to SoC level

2023-04-24 Thread Tom Rini
On Thu, Apr 06, 2023 at 11:38:10AM -0500, Andrew Davis wrote: > The MSMC fixup is something we do based on SoC, not based on the board. > So this fixup does not belong in the board files. Move this to the > mach-k3 common file so that it does not have to be done in each board > that uses these

Re: [PATCH] arm: mach-k3: am642: move do_dt_magic() after sysfw loading

2023-04-24 Thread Tom Rini
On Tue, Mar 28, 2023 at 04:13:14PM +0200, Christian Gmeiner wrote: > Makes it possible to use e.g mcu_spi0 for custom board detection. > > Signed-off-by: Christian Gmeiner > Reviewed-by: Bryan Brattlof Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: Unable to implement board fdt-fixup for imx8m CPU

2023-04-24 Thread Hugo Villeneuve
On Mon, 24 Apr 2023 15:01:35 -0600 Simon Glass wrote: > Hi Hugo, > > On Mon, 24 Apr 2023 at 14:53, Hugo Villeneuve wrote: > > > > Hi, > > according to this document: > > > > doc/develop/driver-model/fdt-fixup.rst > > > > it is suggested that boards implement the board_fix_fdt() function to

Re: distro_boot vs. env-based bootmenu

2023-04-24 Thread Frank Wunderlich
Am 24. April 2023 21:44:25 MESZ schrieb Simon Glass : >Hi Frank, > >On Fri, 21 Apr 2023 at 10:03, Frank Wunderlich wrote: >> >> Maybe you have an idea because your patch removes distro-boot >> >>

Re: Unable to implement board fdt-fixup for imx8m CPU

2023-04-24 Thread Simon Glass
Hi Hugo, On Mon, 24 Apr 2023 at 14:53, Hugo Villeneuve wrote: > > Hi, > according to this document: > > doc/develop/driver-model/fdt-fixup.rst > > it is suggested that boards implement the board_fix_fdt() function to tweak > the device tree. I am trying to do just that, but unfortunately I

Re: [PATCH] boot/Kconfig: fix comments syntax error

2023-04-24 Thread Simon Glass
On Mon, 24 Apr 2023 at 14:53, Hugo Villeneuve wrote: > > From: Hugo Villeneuve > > Fix comments syntax error in SPL_LOAD_FIT_APPLY_OVERLAY description. > > Signed-off-by: Hugo Villeneuve > --- > boot/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH] fdt_support: fix comments syntax error

2023-04-24 Thread Simon Glass
On Mon, 24 Apr 2023 at 14:51, Hugo Villeneuve wrote: > > From: Hugo Villeneuve > > Fix comments syntax error in fdt_node_offset_by_compat_reg() > description: > compatiable -> compatible > > Signed-off-by: Hugo Villeneuve > --- > common/fdt_support.c | 4 ++-- > 1 file changed, 2

[RFC PATCH v1 5/5] board: amlogic: add support for AD401 board

2023-04-24 Thread Igor Prusov
The AD401 board is the Amlogic A1 SoC reference board Signed-off-by: Igor Prusov --- MAINTAINERS | 1 + arch/arm/mach-meson/Kconfig | 1 + board/amlogic/ad401/Makefile | 4 +++ board/amlogic/ad401/ad401.c | 15 ++ configs/ad401_defconfig | 54

[RFC PATCH v1 4/5] pinctrl: meson: add pinctrl driver for Amlogic A1

2023-04-24 Thread Igor Prusov
Based on Linux kernel commit: dabad1ff85611 (pinctrl: meson: add pinctrl driver support for Meson-A1 SoC) Signed-off-by: Igor Prusov --- drivers/pinctrl/meson/Kconfig| 4 + drivers/pinctrl/meson/Makefile | 1 + drivers/pinctrl/meson/pinctrl-meson-a1.c | 867

[RFC PATCH v1 1/5] ARM: dts: Add Amlogic Meson A1 DT from Linux 6.3-rc7

2023-04-24 Thread Igor Prusov
Import Linux 6.3-rc7 Device tree and necessary bindings for Amlogic A1 board from 6a8f57ae2eb0 ("Linux 6.3-rc7"). Signed-off-by: Igor Prusov --- arch/arm/dts/meson-a1.dtsi | 161 +++ include/dt-bindings/gpio/meson-a1-gpio.h | 73 ++ 2 files changed,

[RFC PATCH v1 3/5] ARM: meson: add A1 support

2023-04-24 Thread Igor Prusov
Add support for Amlogic A1 SoC family. Signed-off-by: Igor Prusov Signed-off-by: Evgeny Bachinin --- arch/arm/include/asm/arch-meson/a1.h | 20 ++ arch/arm/mach-meson/Kconfig | 6 +++ arch/arm/mach-meson/Makefile | 1 + arch/arm/mach-meson/board-a1.c | 59

[RFC PATCH v1 2/5] ARM: dts: sync meson-a1-ad401 from Linux 6.3-rc7

2023-04-24 Thread Igor Prusov
Add meson-a1-ad401.dts file from Linux 6.3-rc7 Signed-off-by: Igor Prusov --- arch/arm/dts/Makefile | 1 + arch/arm/dts/meson-a1-ad401.dts | 30 ++ 2 files changed, 31 insertions(+) create mode 100644 arch/arm/dts/meson-a1-ad401.dts diff --git

[RFC PATCH v1 0/5] Amlogic A1 SoC Family Support

2023-04-24 Thread Igor Prusov
This patch series adds basic support for Amlogic AD401 development board based on Amlogic A1 SoC family Igor Prusov (5): ARM: dts: Add Amlogic Meson A1 DT from Linux 6.3-rc7 ARM: dts: sync meson-a1-ad401 from Linux 6.3-rc7 ARM: meson: add A1 support pinctrl: meson: add pinctrl driver for

[PATCH] fdt_support: fix comments syntax error

2023-04-24 Thread Hugo Villeneuve
From: Hugo Villeneuve Fix comments syntax error in fdt_node_offset_by_compat_reg() description: compatiable -> compatible Signed-off-by: Hugo Villeneuve --- common/fdt_support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/fdt_support.c

[PATCH] boot/Kconfig: fix comments syntax error

2023-04-24 Thread Hugo Villeneuve
From: Hugo Villeneuve Fix comments syntax error in SPL_LOAD_FIT_APPLY_OVERLAY description. Signed-off-by: Hugo Villeneuve --- boot/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/Kconfig b/boot/Kconfig index ad035695a4..9cb7a14628 100644 --- a/boot/Kconfig +++

Unable to implement board fdt-fixup for imx8m CPU

2023-04-24 Thread Hugo Villeneuve
Hi, according to this document: doc/develop/driver-model/fdt-fixup.rst it is suggested that boards implement the board_fix_fdt() function to tweak the device tree. I am trying to do just that, but unfortunately I cannot because the following source file already has an implementation of

Re: [PATCH v3 19/19] doc: board: ti: Update documentation for binman flow

2023-04-24 Thread Tom Rini
On Mon, Apr 24, 2023 at 01:42:17PM -0600, Simon Glass wrote: > Hi Neha, > > On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > > > Earlier documentation specified builds for generating bootloader images > > using an external TI repository k3-image-gen and core-secdev-k3. Modify > >

Re: distro_boot vs. env-based bootmenu

2023-04-24 Thread Simon Glass
Hi Frank, On Fri, 21 Apr 2023 at 10:03, Frank Wunderlich wrote: > > Maybe you have an idea because your patch removes distro-boot > > https://patchwork.ozlabs.org/project/uboot/patch/20230409084454.v9.8.I4cf7708a1ba953b9abd81375d93af34665c7b251@changeid/ > > For missing linebreak for autoboot

Re: [BUG] issues with new bootflow, uefi and virtio

2023-04-24 Thread Simon Glass
Hi Vincent, On Tue, 11 Apr 2023 at 06:00, Vincent Stehlé wrote: > > On Fri, Apr 07, 2023 at 05:31:06PM +1200, Simon Glass wrote: > .. > > > When combined with the patch from Mathew[1], it does indeed repair the > > > case of > > > efi boot with two virtio disks, specifically when the first

Re: [PATCH] Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"

2023-04-24 Thread Simon Glass
Hi Rasmus, On Tue, 18 Apr 2023 at 23:30, Rasmus Villemoes wrote: > > On 19/04/2023 03.49, Simon Glass wrote: > > Hi Rasmus, > > > > Returning to this old thread... > > > >> > >> There's no problematic device tree, having two nodes with the same > >> (base)name is perfectly fine and in fact

Re: [PATCH v3 18/19] k3: tools: config.mk: Update makefile and remove scripts

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > Since binman is used to package bootloader images for all K3 devices, we > do not have to rely on the earlier methods to package them. > > config.mk has been edited to only have binman required make commands. > > Scripts that

Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE

2023-04-24 Thread Simon Glass
Hi Heinrich, On Thu, 20 Apr 2023 at 01:34, Heinrich Schuchardt wrote: > > On 4/20/23 09:12, AKASHI Takahiro wrote: > > On Thu, Apr 20, 2023 at 09:30:24AM +0300, Ilias Apalodimas wrote: > >> Hi Simon, > >> > >> On Thu, 20 Apr 2023 at 01:41, Simon Glass wrote: > >>> > >>> Hi Ilias, > >>> > >>> On

Re: [PATCH v3 2/3] test: Add tests for the extcon

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 01:05, Svyatoslav Ryhel wrote: > > Provide tests to the simple extcon device. > > Signed-off-by: Svyatoslav Ryhel > --- > arch/sandbox/dts/test.dts | 4 > drivers/extcon/Kconfig | 7 +++ > drivers/extcon/Makefile | 1 + >

Re: [PATCH 1/4] cmd: bdinfo: Map fdt_blob and new_fdt to sysmem

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 07:01, Marek Vasut wrote: > > Map fdt_blob and new_fdt to sysmem, otherwise $fdtcontroladdr > and bdinfo output do not match and the bdinfo output address > is not a valid address accessible via sandbox memory accessors. > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu

Re: [PATCH v5 4/4] test/py: efi_capsule: test for FMP versioning

2023-04-24 Thread Simon Glass
Hi Masahisa, On Wed, 19 Apr 2023 at 23:17, Masahisa Kojima wrote: > > Hi Simon, > > On Wed, 19 Apr 2023 at 10:47, Simon Glass wrote: > > > > Hi Masahisa, > > > > On Mon, 10 Apr 2023 at 03:07, Masahisa Kojima > > wrote: > > > > > > This test covers FMP versioning for both raw and FIT image, > >

Re: [PATCH v3 02/19] binman: ti-secure: Add support for TI signing

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > The ti-secure entry contains certificate for binaries that will be > loaded or booted by system firmware whereas the ti-secure-rom entry > contains certificate for binaries that will be booted by ROM. Support > for both these types of

Re: [PATCH v3 01/19] binman: ti-board-config: Add support for TI board config binaries

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > The ti-board-config entry loads and validates a given YAML config file > against a given schema, and generates the board config binary. K3 > devices require these binaries to be packed into the final system > firmware images.

Re: [PATCH v3 05/19] j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > By providing entries in the binman node of the device tree, binman will > be able to find and package board config artifacts generated by > TIBoardConfig with sysfw.bin and generate the final image sysfw.itb. > It will also pick out the

Re: [PATCH v3 1/3] dm: extcom: add an uclass for extcon

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 01:05, Svyatoslav Ryhel wrote: > > Add a new simple uclass for extcon. Currently all setup is done > in the probe. Uclass struct and ops are empty for now. > > Signed-off-by: Svyatoslav Ryhel > --- > drivers/Kconfig| 2 ++ > drivers/Makefile

Re: [PATCH v3 15/19] am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for AM62 > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned,

Re: [PATCH 2/4] cmd: bdinfo: Wrap network information printing into print_eth()

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 07:01, Marek Vasut wrote: > > Move all the network information printing into print_eth(), > no functional change. > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu > Cc: Michal Simek > Cc: Ovidiu Panait > Cc: Simon Glass > --- > cmd/bdinfo.c | 8 > 1 file

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-24 Thread Simon Glass
Hi Tony, On Wed, 19 Apr 2023 at 21:55, Tony Dinh wrote: > > On Wed, Apr 19, 2023 at 6:22 PM Tony Dinh wrote: > > > > HI Simon, > > > > On Tue, Apr 18, 2023 at 6:46 PM Simon Glass wrote: > > > > > > Hi Tony, > > > > > > On Mon, 3 Apr 2023 at 15:42, Tony Dinh wrote: > > > > > > > > Use

Re: [PATCH v3 11/19] am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for AM64x. > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned,

Re: [PATCH v3 03/19] ti: sysfw: tiboot3: Add support for packaging sysfw.itb and tiboot3.bin

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Board config binary artifacts must be populated in the R5 output > directory to be used by binman to package sysfw.itb and tiboot3.bin. > > For devices that follow combined flow, these board configuration > binaries must again

Re: [PATCH v3 08/25] menu: Make use of CLI character processing

2023-04-24 Thread Simon Glass
Hi, On Sun, 23 Apr 2023 at 19:49, Tom Rini wrote: > > On Tue, Apr 18, 2023 at 07:49:34PM -0600, Simon Glass wrote: > > Hi Daniel, > > > > On Tue, 11 Apr 2023 at 14:19, Daniel Golle wrote: > > > > > > On Fri, Jan 06, 2023 at 08:52:26AM -0600, Simon Glass wrote: > > > > Avoid duplicating some of

Re: [PATCH 3/4] cmd: bdinfo: Print ethaddr of current MAC

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 07:01, Marek Vasut wrote: > > Instead of always printing ethaddr of MAC 0, print eth%daddr of the current > MAC. > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu > Cc: Michal Simek > Cc: Ovidiu Panait > Cc: Simon Glass > --- > cmd/bdinfo.c | 20

Re: [PATCH v3 17/19] am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for AM62ax. > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned and

Re: [PATCH v9] core: fdtaddr: use map_sysmem() as cast for the return

2023-04-24 Thread Simon Glass
On Sun, 23 Apr 2023 at 03:19, Johan Jonker wrote: > > For the devfdt_get_addr_index_ptr() and devfdt_get_addr_size_index_ptr() > function use map_sysmem() function as cast for the return for use in > sandbox. Also fix sandbox test. > > Signed-off-by: Johan Jonker > --- > > Apply after: > [PATCH

Re: [PATCH v3 07/19] j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for J7200. > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned and

Re: [PATCH v3 13/19] j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for J721S2. > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned,

Re: [PATCH v3 09/19] am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for AM65x. > > tiboot3.bin, sysfw.itb, tispl.bin and u-boot.img: For HS devices > tiboot3.bin_unsigned, sysfw.itb, tispl.bin_unsigned, > u-boot.img_unsigned: For GP devices > > Note

Re: [PATCH v3 19/19] doc: board: ti: Update documentation for binman flow

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > Earlier documentation specified builds for generating bootloader images > using an external TI repository k3-image-gen and core-secdev-k3. Modify > this to using the binman flow so that user understands how to build the >

Re: [PATCH v3 3/3] extcon: add MAX14526 MUIC support

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 01:05, Svyatoslav Ryhel wrote: > > MAX14526 is a powerful extcon chip which allows detection of various > plugs like usb, mhl, uart, headset etc. This version of driver > implements support of AP-usb and CP-usb/uart paths. > > Tested-by: Andreas Westman Dorcsak # LG P880

Re: [PATCH 4/4] test: bdinfo: Add test for command bdinfo

2023-04-24 Thread Simon Glass
Hi Marek, On Sat, 22 Apr 2023 at 07:01, Marek Vasut wrote: > > Add test for command bdinfo . > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu > Cc: Michal Simek > Cc: Ovidiu Panait > Cc: Simon Glass > --- > include/test/suites.h | 1 + > test/cmd/Makefile | 1 + >

Re: [PATCH] tools: Fall back to importlib_resources on Python 3.6

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 08:42, Jan Kiszka wrote: > > From: Jan Kiszka > > importlib.resources became part of 3.7 only. Allow using distros with > 3.6 and the importlib_resources backport. > > Signed-off-by: Jan Kiszka > --- > > Tested on OpenSUSE 15.4 with importlib_resources 1.1.0. > >

Re: [PATCH] test: fdt: Fix copyright message

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 07:00, Marek Vasut wrote: > > Drop the map_to_sysmem() copy paste error. No functional change. > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu > Cc: Michal Simek > Cc: Ovidiu Panait > Cc: Simon Glass > --- > test/cmd/fdt.c | 2 +- > 1 file changed, 1

[PATCH] imx: fix get_boot_device() for imx8

2023-04-24 Thread Tim Harvey
commit 787f04bb6a0a ("imx: add USB2_BOOT type") broke get_boot_device() for IMX8 which affects booting from SDP due to boot_instance being non-zero. Fix this by only using boot_instance for imx8ulp and imx9. Fixes: 787f04bb6a0a ("imx: add USB2_BOOT type") Signed-off-by: Tim Harvey ---

Re: [PATCH v3 01/13] smegw01: Enable setting additional boot params

2023-04-24 Thread Tom Rini
On Mon, Apr 24, 2023 at 08:11:54AM -0300, Fabio Estevam wrote: > From: Eduard Strehlau > > Introduce EXTRA_BOOTPARAMS to allow passing additional parameters > to kernel command line. This is useful for debugging purposes. > > Signed-off-by: Eduard Strehlau > Signed-off-by: Fabio Estevam > ---

[PATCH v2 2/2] ARM: dts: stm32mp: alignment with v6.3

2023-04-24 Thread Patrick Delaunay
Device tree alignment with Linux kernel v6.3: - f5a058023239 - ARM: dts: stm32: add i2c nodes into stm32mp131.dtsi - 8539ebb435a5 - ARM: dts: stm32: enable i2c1 and i2c5 on stm32mp135f-dk.dts - 8539ebb435a5 - ARM: dts: stm32: add spi nodes into stm32mp131.dtsi - 15f72e0da4da - ARM: dts: stm32:

  1   2   >