[PATCH 2/2] configs/*imxrt10*: remove [SPL_]CLK_COMPOSITE_CCF

2022-01-29 Thread Heiko Thiery
This option is selected implicitly when [SPL_]CLK_IMXRT10{20|50} is selected. Signed-off-by: Heiko Thiery --- configs/imxrt1020-evk_defconfig | 2 -- configs/imxrt1050-evk_defconfig | 2 -- 2 files changed, 4 deletions(-) diff --git a/configs/imxrt1020-evk_defconfig

[PATCH 1/2] clk: imx: select [SPL_]CLK_COMPOSITE_CCF for imxrt10{20|50}

2022-01-29 Thread Heiko Thiery
The clock composite is required when using the clock framework. So select it automatically. Signed-off-by: Heiko Thiery --- drivers/clk/imx/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index a2cd0347c3..cdd348020b 100644 ---

[PATCH 2/2] configs/*imx8mn*: remove [SPL_]CLK_COMPOSITE_CCF

2022-01-29 Thread Heiko Thiery
This option is selected implicitly when [SPL_]CLK_IMX8MN is selected. Signed-off-by: Heiko Thiery --- configs/imx8mn_beacon_2g_defconfig | 2 -- configs/imx8mn_beacon_defconfig| 2 -- configs/imx8mn_ddr4_evk_defconfig | 2 -- configs/imx8mn_evk_defconfig | 2 -- 4 files changed, 8

[PATCH 1/2] clk: imx: select [SPL_]CLK_COMPOSITE_CCF for imx8mn

2022-01-29 Thread Heiko Thiery
The clock composite is required when using the clock framework. So select it automatically. Signed-off-by: Heiko Thiery --- drivers/clk/imx/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 96721bcbf3..a2cd0347c3 100644 ---

[PATCH] [v2] add kaslr-seed generation to extlinux.conf

2022-01-29 Thread Zhang Ning
add kaslrseed key word to extlinux.conf, which means generate kaslr-seed for linux with this patch exlinux.conf boot item looks like label l0 menu testing linux /boot/vmlinuz-5.15.16-arm initrd /boot/initramfs-5.15.16-arm.img fdtdir /boot/dtbs/5.15.16-arm/

Re: [PATCH 3/4] gpio: sunxi: Implement .set_flags

2022-01-29 Thread Andre Przywara
On Fri, 5 Nov 2021 16:46:07 -0500 Samuel Holland wrote: > On 11/5/21 9:43 AM, Heinrich Schuchardt wrote: > > On 10/21/21 06:52, Samuel Holland wrote: > >> This, along with gpio_flags_xlate(), allows the GPIO driver to handle > >> pull-up/down flags provided by consumer drivers or in the device

Re: [PATCH 2/4] sunxi: gpio: Add per-bank drive and pull setters

2022-01-29 Thread Andre Przywara
On Fri, 5 Nov 2021 15:12:16 +0100 Heinrich Schuchardt wrote: > On 10/21/21 06:52, Samuel Holland wrote: > > The GPIO and pinctrl drivers need these setters for pin configuration. > > Since they are DM drivers, they should not be using hardcoded base > > addresses. Factor out variants of the

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

2022-01-29 Thread Ilias Apalodimas
Really late to the party but... On Fri, 21 Jan 2022 at 17:31, Tom Rini wrote: > > On Fri, Jan 21, 2022 at 08:20:17AM -0700, Simon Glass wrote: > > Hi, > > > > On Fri, 21 Jan 2022 at 08:08, Tom Rini wrote: > > > > > > On Wed, Jan 19, 2022 at 12:39:03PM +0100, Heinrich Schuchardt wrote: > > > >

Re: [PATCH v3 10/10] configs: sunxi: Add support for Lichee Pi Nano

2022-01-29 Thread Andre Przywara
On Sat, 29 Jan 2022 10:23:09 -0500 Jesse Taube wrote: > From: Icenowy Zheng > > The Lichee Pi Nano is a board based on the F1C100s. > Add defconfigs for it. Looks very nice now, many thanks! > > Signed-off-by: Icenowy Zheng > Signed-off-by: Jesse Taube Reviewed-by: Andre Przywara

Re: [PATCH v3 09/10] ARM: dts: suniv: Add device tree files and bindings for F1C100s

2022-01-29 Thread Andre Przywara
On Sat, 29 Jan 2022 10:23:08 -0500 Jesse Taube wrote: > From: Icenowy Zheng > > Add device tree files for suniv and > Lichee Pi Nano it is a board based on F1C100s. > dt-bindings/dts are synced with 5.16.0 Many thanks, that looks correct now. Confirmed that the files match exactly the Linux

Re: [PATCH v3 08/10] mach-sunxi: Add support for SUNIV architecture

2022-01-29 Thread Andre Przywara
On Sat, 29 Jan 2022 10:23:07 -0500 Jesse Taube wrote: > From: Icenowy Zheng > > Add support for the suniv architecture, which is newer ARM9 SoCs by > Allwinner. The design of it seems to be a mixture of sun3i, sun4i and > sun6i. Hey, many thanks for getting rid of those #ifdef's! There is one

Re: [PATCH v3 02/10] mach-sunxi: Move timer code to mach folder

2022-01-29 Thread Andre Przywara
On Sat, 29 Jan 2022 10:23:01 -0500 Jesse Taube wrote: > Both armv7 and arm926ejs use this timer code so move it to mach-sunxi. > > Signed-off-by: Jesse Taube Reviewed-by: Andre Przywara Thanks, Andre > --- > V1->V2: > * New commit > V2->V3: > * Remove timer.o from armv7 Makefile > --- >

Re: [PATCH v4 1/4] checkpatch: Support wide strings

2022-01-29 Thread Simon Glass
Hi Joe, On Mon, 24 Jan 2022 at 18:04, Joe Perches wrote: > > On Sun, 2022-01-23 at 13:12 -0700, Simon Glass wrote: > > Hi Joe, > > > > On Sun, 23 Jan 2022 at 09:27, Joe Perches wrote: > > > > > > On Sun, 2022-01-23 at 11:19 -0500, Tom Rini wrote: > > > > On Sun, Jan 23, 2022 at 08:10:37AM

Re: [PATCH 3/3] efi: Drop unnecessary calls to blk_find_device()

2022-01-29 Thread Simon Glass
Hi Heinrich, On Mon, 24 Jan 2022 at 21:21, Heinrich Schuchardt wrote: > > On 1/22/22 02:16, Simon Glass wrote: > > When we have the block descriptor we can simply access the device. Drop > > the unnecessary function call. > > > > Signed-off-by: Simon Glass > > --- > > > >

Re: [PATCH 1/3] efi: Add debugging to efi_set_bootdev()

2022-01-29 Thread Simon Glass
Hi Heinrich, On Mon, 24 Jan 2022 at 20:54, Heinrich Schuchardt wrote: > > On 1/22/22 02:16, Simon Glass wrote: > > The operation of this function can be confusing. Add some debugging so > > we can see what it is doing and when it is called. > > > > Also drop the preprocessor usage. > > > >

[PATCH v2 3/3] efi: Drop unnecessary calls to blk_find_device()

2022-01-29 Thread Simon Glass
When we have the block descriptor we can simply access the device. Drop the unnecessary function call. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_loader/efi_device_path.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git

[PATCH v2 2/3] efi: Use device_get_uclass_id() where appropriate

2022-01-29 Thread Simon Glass
Use this function rather than following the pointers, since it is there for this purpose. Add the uclass name to the debug call at the end of dp_fill() since it is quite useful. Signed-off-by: Simon Glass --- Changes in v2: - Drop the uclass id lib/efi_loader/efi_device_path.c | 10

[PATCH v2 1/3] efi: Add debugging to efi_set_bootdev()

2022-01-29 Thread Simon Glass
The operation of this function can be confusing. Add some debugging so we can see what it is doing and when it is called. Also drop the preprocessor usage. Signed-off-by: Simon Glass --- Changes in v2: - Update one of the debug messages cmd/bootefi.c | 32 +--- 1

Re: [PATCH 1/1] lib: allow printing RISC-V EFI Boot Protocol GUID

2022-01-29 Thread Heinrich Schuchardt
On 1/29/22 22:09, Simon Glass wrote: Hi Heinrich, On Fri, 28 Jan 2022 at 11:42, Heinrich Schuchardt wrote: On RISC-V a new UEFI protocol has been introduced. Support printing its GUID using %pUs. Cc: Sunil V L Signed-off-by: Heinrich Schuchardt --- cf. [RFC PATCH V2 1/2] efi_loader:

[PATCH] acpi: Move acpi_write_tables() to a generic header

2022-01-29 Thread Simon Glass
This function is used by both x86 and sandbox. Put it in a common header file. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/acpi_table.h | 2 +- arch/x86/include/asm/acpi_table.h | 2 -- include/acpi/acpi_table.h | 10 ++ 3 files changed, 11 insertions(+),

[BUG] efi_loader: ESRT table not correctly built

2022-01-29 Thread Heinrich Schuchardt
Function efi_esrt_populate() is used to populate the ESRT table. If one of the FMP protocols malfunctions when calling GetImageInfo(), e.g because the dfu environment variables are not set, we should still add all other FMP protocols to the ESRT table, e.g the one added in the ESRT unit test.

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
On 1/29/22 16:21, Giulio Benetti wrote: On 29/01/22 22:19, Jesse Taube wrote: On 1/29/22 16:05, Jesse Taube wrote: On 1/29/22 15:59, Samuel Holland wrote: On 1/29/22 5:51 AM, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Giulio Benetti
On 29/01/22 22:19, Jesse Taube wrote: On 1/29/22 16:05, Jesse Taube wrote: On 1/29/22 15:59, Samuel Holland wrote: On 1/29/22 5:51 AM, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Giulio Benetti
Hi Jesse, Andre, All, > Il giorno 29 gen 2022, alle ore 20:24, Jesse Taube > ha scritto: > >  > >> On 1/29/22 06:51, Andre Przywara wrote: >>> On Fri, 28 Jan 2022 22:21:28 -0500 >>> Jesse Taube wrote: >>> On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
On 1/29/22 16:05, Jesse Taube wrote: On 1/29/22 15:59, Samuel Holland wrote: On 1/29/22 5:51 AM, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:06 -0500

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Giulio Benetti
Hi Jesse, Andre, On 29/01/22 22:05, Jesse Taube wrote: On 1/29/22 15:59, Samuel Holland wrote: On 1/29/22 5:51 AM, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022

[PATCH 15/17] patman: Convert camel case in terminal.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/buildman/builder.py | 68 ++--- tools/buildman/control.py | 4 +-- tools/buildman/func_test.py | 10 +++--- tools/buildman/test.py | 8 ++---

[PATCH 14/17] patman: Rename Color() method to build()

2022-01-29 Thread Simon Glass
This method has the same name as its class which is confusing. It is also annoying when searching the code. It builds a string with a colour, so rename it to build(). Signed-off-by: Simon Glass --- tools/binman/bintool.py | 8 tools/buildman/builder.py | 24

[PATCH 17/17] RFC: tools: Add a camel-case conversion script

2022-01-29 Thread Simon Glass
This is only for posterity, since once the conversion is done, the script is of no use. Signed-off-by: Simon Glass --- scripts/style.py | 180 +++ 1 file changed, 180 insertions(+) create mode 100755 scripts/style.py diff --git a/scripts/style.py

[PATCH 16/17] patman: Update with new pylint scores

2022-01-29 Thread Simon Glass
Update the new baseline since various scores have improved. Signed-off-by: Simon Glass --- scripts/pylint.base | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/pylint.base b/scripts/pylint.base index 8c650f25729..3fc1a1148ce 100644 ---

[PATCH 12/17] patman: Convert camel case in tout.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/binman/bintool.py | 10 ++--- tools/binman/control.py | 44 +- tools/binman/elf.py | 6 +--

[PATCH 13/17] patman: Rename Print() to Tprint()

2022-01-29 Thread Simon Glass
Rename this function so that when we convert it to snake case it will not conflict with the built-in print() function. Signed-off-by: Simon Glass --- tools/buildman/builder.py | 56 +++ tools/buildman/control.py | 4 +-- tools/patman/main.py | 2 +-

[PATCH 08/17] patman: Convert camel case in gitutil.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/buildman/builder.py | 12 ++-- tools/buildman/builderthread.py | 2 +- tools/buildman/control.py | 10 +-- tools/buildman/func_test.py | 4 +-

[PATCH 11/17] patman: Convert camel case in test_util.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/binman/main.py | 6 +++--- tools/dtoc/main.py| 6 +++--- tools/dtoc/test_fdt.py| 2 +- tools/patman/main.py | 2 +- tools/patman/test_util.py | 6 +++--- 5 files

[PATCH 10/17] patman: Convert camel case in test_checkpatch.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/test_checkpatch.py | 68 - 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/tools/patman/test_checkpatch.py

[PATCH 06/17] patman: Convert camel case in func_test.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/func_test.py | 50 +++ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index

[PATCH 07/17] patman: Convert camel case in get_maintainer.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/get_maintainer.py | 6 +++--- tools/patman/series.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/patman/get_maintainer.py

[PATCH 05/17] patman: Convert camel case in cros_subprocess.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/command.py | 2 +- tools/patman/cros_subprocess.py | 59 + 2 files changed, 31 insertions(+), 30 deletions(-) diff --git

[PATCH 09/17] patman: Convert camel case in project.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/main.py| 2 +- tools/patman/project.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/patman/main.py b/tools/patman/main.py index

[PATCH 03/17] patman: Convert camel case in checkpatch.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/checkpatch.py | 22 +++--- tools/patman/control.py | 2 +- tools/patman/test_checkpatch.py | 12 ++-- 3 files changed, 18 insertions(+), 18

[PATCH 04/17] patman: Convert camel case in commit.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/patman/commit.py | 10 +- tools/patman/patchstream.py | 8 tools/patman/series.py | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git

[PATCH 02/17] patman: Convert camel case in command.py

2022-01-29 Thread Simon Glass
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- tools/binman/bintool.py | 2 +- tools/binman/elf.py | 2 +- tools/binman/elf_test.py| 2 +- tools/binman/ftest.py | 2 +- tools/buildman/builder.py

[PATCH 00/17] patman: Convert camel case

2022-01-29 Thread Simon Glass
Much of the Python code in U-Boot was written using the Chromium OS Python style. This series converts the patman class methods and functions from camel case to snake case. This fits with PEP8 and is one step along the way to making the code more compliant with that. Simon Glass (17): patman:

Re: [PATCH] moveconfig: Fix code relying on now-stripped newline characters

2022-01-29 Thread Simon Glass
Hi Alper, On Sat, 29 Jan 2022 at 08:22, Alper Nebi Yasak wrote: > > Commit 37f815cad07d ("moveconfig: Use a function to read files") adds a > helper function that can read a file as lines, but strips the newline > characters. This change broke parts of moveconfig code that relied on > their

Re: [PATCH 1/1] lib: allow printing RISC-V EFI Boot Protocol GUID

2022-01-29 Thread Simon Glass
Hi Heinrich, On Fri, 28 Jan 2022 at 11:42, Heinrich Schuchardt wrote: > > On RISC-V a new UEFI protocol has been introduced. Support printing > its GUID using %pUs. > > Cc: Sunil V L > Signed-off-by: Heinrich Schuchardt > --- > cf. > [RFC PATCH V2 1/2] efi_loader: Enable

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
On 1/29/22 15:59, Samuel Holland wrote: On 1/29/22 5:51 AM, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:06 -0500 Jesse Taube wrote: u32

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Samuel Holland
On 1/29/22 5:51 AM, Andre Przywara wrote: > On Fri, 28 Jan 2022 22:21:28 -0500 > Jesse Taube wrote: >> On 1/26/22 09:38, Jesse Taube wrote: >>> On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:06 -0500 Jesse Taube wrote: >u32 spl_boot_device(void)

[PATCH 1/1] cmd: add serial console support for the cls command

2022-01-29 Thread Heinrich Schuchardt
Currently the cls command does not support the serial console The screen can be cleared in the video uclass, the colored frame buffer console, and the serial console by sending the same escape sequence. The cls command only needs a single printf() statement in most cases. This patch drops

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
On 1/29/22 06:51, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:06 -0500 Jesse Taube wrote: Hi Jesse, I was checking some bits and pieces here, so

[PATCH] dm: Use parenthesis for the device_get_ops macro argument

2022-01-29 Thread Sughosh Ganu
Use parenthesis for the device_get_ops macro argument. This prevents errors when using an expression for the parameter. Signed-off-by: Sughosh Ganu --- include/dm/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/device.h b/include/dm/device.h index

Re: [PATCH] imx: imx8mn_beacon: Fix USB booting

2022-01-29 Thread Fabio Estevam
On Wed, Jan 26, 2022 at 3:25 PM Adam Ford wrote: > > The i.MX8M Nano can boot over USB using the boot ROM instead of > adding extra code to SPL to support USB drivers, etc. However, > when booting from USB, the environment doesnt' know where to load > and causes a hang. Fix this hang by

Re: [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit

2022-01-29 Thread Fabio Estevam
Hi Angus, On Fri, Jan 28, 2022 at 1:21 PM Angus Ainslie wrote: > > SION (Software Input On Field) - force the select mode input path > > Signed-off-by: Angus Ainslie > --- > arch/arm/dts/imx8mq-pinfunc.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/dts/imx8mq-pinfunc.h

Re: [PATCH 1/1] bootcount: fix printf() code

2022-01-29 Thread Tom Rini
On Wed, Jan 19, 2022 at 01:33:43AM +0100, Heinrich Schuchardt wrote: > For printing phys_addr_t we should use %pa to avoid warning like: > > drivers/bootcount/bootcount_syscon.c:110:17: note: in expansion of macro > ‘dev_err’ > 110 | dev_err(dev, "%s: Unsupported register

Re: [PATCH] dfu: mtd: skip empty pages when writing page for UBI partition

2022-01-29 Thread Tom Rini
On Tue, Jan 18, 2022 at 10:26:21AM +0100, Patrick Delaunay wrote: > Align the DFU MTD backend for the UBI partitions with the mtd command write > behavior when the option .dontskipff is not used: don't write the empty > pages (full of 0xFF); it is not required for UBI, see [1] for details. > >

Re: [PATCH v4 1/1] rsa: adds rsa3072 algorithm

2022-01-29 Thread Tom Rini
On Wed, Jan 19, 2022 at 04:23:21PM +0800, Jamin Lin wrote: > Add to support rsa 3072 bits algorithm in tools > for image sign at host side and adds rsa 3072 bits > verification in the image binary. > > Add test case in vboot for sha384 with rsa3072 algorithm testing. > > Signed-off-by: Jamin

Re: [PATCH 1/1] dm: serial: Add a migration deadline for serial

2022-01-29 Thread Tom Rini
On Sat, Jan 22, 2022 at 05:03:50AM -0700, Simon Glass wrote: > This probably should have been done a while back since it is a core > system. Very few boards remain to be migrated. > > Addd a migration deadline for a year out. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks!

Re: [PATCH v4] gitlab/azure: x86: Add a coreboot test

2022-01-29 Thread Tom Rini
On Fri, Jan 21, 2022 at 10:23:01AM -0700, Simon Glass wrote: > Coreboot supports U-Boot as a payload and this recently got a bit of a > facelist. Add a test for this. > > For now this uses a binary build of coreboot (v4.15). Future work could > potentially build it from source, but we need to

Re: [PATCH 4/4] configs: am64x_evm_r5/a53_defconfig: Enable configs required for Ethboot

2022-01-29 Thread Tom Rini
On Fri, Jan 21, 2022 at 12:47:54PM +0530, Vignesh Raghavendra wrote: > Enable config options needed to support Ethernet boot on AM64x SK. > > Signed-off-by: Vignesh Raghavendra Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/4] configs: am64xx_evm: Increase BSS max size to 16K

2022-01-29 Thread Tom Rini
On Fri, Jan 21, 2022 at 12:47:53PM +0530, Vignesh Raghavendra wrote: > With Ethboot support in SPL, network stack requires more BSS area, so > increase BSS max size to 16K > > Signed-off-by: Vignesh Raghavendra Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 2/4] ARM: dts: k3-am642-sk: Disable cpsw_port1 in SPL

2022-01-29 Thread Tom Rini
On Fri, Jan 21, 2022 at 12:47:52PM +0530, Vignesh Raghavendra wrote: > ROM supports cpsw_port2 for Ethernet boot and SPL stages continue to > download images on the same port, therefore there is no need to enable > cpsw_port1. Disable the same. > > Signed-off-by: Vignesh Raghavendra Applied to

Re: [PATCH 1/4] net: ti: am65-cpsw-nuss: Fix err msg for port bind failures

2022-01-29 Thread Tom Rini
On Fri, Jan 21, 2022 at 12:47:51PM +0530, Vignesh Raghavendra wrote: > Replace error case print with meaning full message. > > Signed-off-by: Vignesh Raghavendra Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 4/4] pci: Extend 'pci' command with bus option '*'

2022-01-29 Thread Tom Rini
On Mon, Jan 17, 2022 at 04:38:40PM +0100, Pali Rohár wrote: > Allow to call 'pci' and 'pci regions' commands with bus option '*' which > cause pci to process all buses. > > PCIe is point-to-point HW and so on each bus is maximally one physical > device. Therefore for PCIe it is common to have

Re: [PATCH 3/4] pci: Add checks for valid cmdline arguments

2022-01-29 Thread Tom Rini
On Mon, Jan 17, 2022 at 04:38:39PM +0100, Pali Rohár wrote: > Currently pci command ignores invalid cmdline arguments and do something. > Add checks that all passed arguments were processed. > > Signed-off-by: Pali Rohár > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 2/4] pci: Extend 'pci regions' command with bus number

2022-01-29 Thread Tom Rini
On Mon, Jan 17, 2022 at 04:38:38PM +0100, Pali Rohár wrote: > 'pci regions' currently prints only region information from bus 0 which > belongs to controller 0. Parser for 'pci regions' cmdline currently ignores > any additional arguments and so U-Boot always uses bus 0. > > Regions are stored

Re: [PATCH 1/4] pci: Fix setting controller's last_busno

2022-01-29 Thread Tom Rini
On Mon, Jan 17, 2022 at 04:38:37PM +0100, Pali Rohár wrote: > Initially it is set to dev_seq but update to the last bus number is > missing. Fix it. > > Signed-off-by: Pali Rohár > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3] spl: add support for custom boot method names

2022-01-29 Thread Tom Rini
On Mon, Jan 17, 2022 at 04:25:41PM +0100, Heiko Thiery wrote: > Currently the names MMC1, MMC2 and MMC2_2 are output in the SPL. To > achieve more userbility here the name of the boot source can be returned. > E.g. for "MMC1" -> "eMMC" or "MMC2" -> "SD card". > > Signed-off-by: Heiko Thiery >

[PATCH 1/1] efi_loader: fix device path to text protocol

2022-01-29 Thread Heinrich Schuchardt
File device path nodes may contain non-ASCII characters. Correctly truncate the text if it does not fit into the buffer. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path_to_text.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH 0/2] lib: fix snprintf() for UTF-16 strings

2022-01-29 Thread Heinrich Schuchardt
Up to now printing UTF-16 strings with snprintf() resulted in correct truncation of printed strings. But the returned required buffer length was incorrect. * fix function string16() * provide a unit test Heinrich Schuchardt (2): lib: fix snprintf() for UTF-16 strings test: test UTF-16

[PATCH 2/2] test: test UTF-16 truncation in sprintf()

2022-01-29 Thread Heinrich Schuchardt
Check that snprintf() returns the correct required buffer length and prints the correct string for UTF-16 strings. Signed-off-by: Heinrich Schuchardt --- test/unicode_ut.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/test/unicode_ut.c b/test/unicode_ut.c

[PATCH 1/2] lib: fix snprintf() for UTF-16 strings

2022-01-29 Thread Heinrich Schuchardt
snprintf() must return the required buffer length. Signed-off-by: Heinrich Schuchardt --- lib/vsprintf.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 2c84649fa8..779efc30bc 100644 --- a/lib/vsprintf.c +++

[PATCH] Convert CONFIG_REMAKE_ELF to Kconfig

2022-01-29 Thread Alper Nebi Yasak
This converts the following to Kconfig: CONFIG_REMAKE_ELF Signed-off-by: Alper Nebi Yasak --- Added the Kconfig fragment and just ran `moveconfig.py --commit --yes` at commit 6146cd62aedc ("Merge branch '2022-01-24-assorted-updates'"), before the recent changes. Also ran it with my moveconfig

[PATCH 2/2] sunxi: Fix H616 DRAM read calibration for dual rank

2022-01-29 Thread Jernej Skrabec
Although it isn't known what bit 0 in PHY reg 8 does, it's obvious that it has to be set before read calibration and cleared afterwards. This is already done for first rank, but not for second (copy & paste error.) Fix it. Fixes: f4317dbd06b6 ("sunxi: Add H616 DRAM support") Signed-off-by:

[PATCH 1/2] sunxi: fix H616 DRAM ODT support

2022-01-29 Thread Jernej Skrabec
Kconfig symbol is missing CONFIG_ prefix, so compiler will always skip ODT configuration. Fix symbol name. Fixes: f4317dbd06b6 ("sunxi: Add H616 DRAM support") Signed-off-by: Jernej Skrabec --- arch/arm/mach-sunxi/dram_sun50i_h616.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 0/2] sunxi: Fix two H616 DRAM bugs

2022-01-29 Thread Jernej Skrabec
At closer inspection of H616 DRAM code I found two issues: 1. ODT is never configured due to missing CONFIG_ prefix in check 2. Dual rank read calibration never exits calibration mode Only first issue is important to fix for currently supported boards. Fixing second one is future proofing.

Re: [PATCH] add kaslr-seed generation to extlinux.conf

2022-01-29 Thread ning
On Sat, Jan 29, 2022 at 03:04:48PM +0200, Ilias Apalodimas wrote: > Hi Zhang, > > On Sat, Jan 29, 2022 at 10:06:53AM +0800, Zhang Ning wrote: > > add kaslrseed key word to extlinux.conf, > > which means generate kaslr-seed for linux > > > > with this patch exlinux.conf boot item looks like > >

[PATCH 1/1] test: test field truncation in snprint()

2022-01-29 Thread Heinrich Schuchardt
The output size for snprint() should not only be respected for whole fields but also with fields. Add more tests. Signed-off-by: Heinrich Schuchardt --- test/print_ut.c | 12 1 file changed, 12 insertions(+) diff --git a/test/print_ut.c b/test/print_ut.c index

[PATCH] rockchip: Set default LNX_KRNL_IMG_TEXT_OFFSET_BASE to SYS_TEXT_BASE

2022-01-29 Thread Alper Nebi Yasak
U-Boot can be chainloaded from vendor firmware on ARM64 chromebooks from a GPT partition (roughly the same as in doc/chromium/chainload.rst), but an appropriate image header must be built-in to the U-Boot binary by enabling LINUX_KERNEL_IMAGE_HEADER. This header has a field for an image load

[PATCH] armv8: spl: Fix build with LINUX_KERNEL_IMAGE_HEADER

2022-01-29 Thread Alper Nebi Yasak
Setting LINUX_KERNEL_IMAGE_HEADER=y attempts to include an ARM64 Linux kernel image header at the start of both U-Boot proper and SPL binaries. However, some definitions that the image header uses are not included by the SPL linker script, resulting in a build error. Include them the way they are

[PATCH v3 10/10] configs: sunxi: Add support for Lichee Pi Nano

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng The Lichee Pi Nano is a board based on the F1C100s. Add defconfigs for it. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Add SKIP_LOWLEVEL_INIT_ONLY * Remove spi defconfig V2->V3: * Move SYS_MALLOC_F_LEN to kconf and format it * Move SYS_LOAD_ADDR

[PATCH v3 09/10] ARM: dts: suniv: Add device tree files and bindings for F1C100s

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Add device tree files for suniv and Lichee Pi Nano it is a board based on F1C100s. dt-bindings/dts are synced with 5.16.0 Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Sync with Linux * Re-add MMC node V2->V3: * Add ifndef for mmc in

[PATCH v3 08/10] mach-sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Add support for the suniv architecture, which is newer ARM9 SoCs by Allwinner. The design of it seems to be a mixture of sun3i, sun4i and sun6i. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Remove change in s_init (sunxi: remove lowlevel_init)

[PATCH v3 07/10] configs: sunxi: Add common SUNIV header

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Adds support for SUNIV and the F1C100s. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Combine ifdefs * Fix indentation * Fix negative logic * Fix rebase artifacts * Remove CONFIG_SYS_LOAD_ADDR * Remove

[PATCH v3 05/10] sunxi: Add F1C100s DRAM initial support

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Add support for F1C100s internal dram controller. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Nothing done V2->V3: * Nothing done --- arch/arm/include/asm/arch-sunxi/dram.h | 2 + arch/arm/include/asm/arch-sunxi/dram_suniv.h | 46 ++

[PATCH v3 06/10] sunxi: board: Add support for SUNIV

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Generic Timer Extension is not available on SUNIV. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Nothing done V2->V3: * Nothing done --- board/sunxi/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH v3 04/10] ARM: sunxi: Add clock and uart to sunxi headers

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng This patch aims to add header files for the suniv. The header files included add support for uart, and clocks. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Change commit description and topic * Change PLL6_CFG_DEFAULT *

[PATCH v3 03/10] arm: arm926ej-s: Add sunxi code

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Some Allwinner SoCs use ARM926EJ-S core. Add Allwinner/sunXi specific code to ARM926EJ-S CPU dircetory. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Fix Copyright notice * Remove lowlevel_init * Remove replaced timer.c

[PATCH v3 01/10] arm: arm926ej-s: start.S: port save_boot_params support from armv7 code

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng The ARMv7 start code has support for saving some boot params at the entry point, which is used by some SoCs to return to BROM. Port this to ARM926EJ-S start code. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Nothing

[PATCH v3 02/10] mach-sunxi: Move timer code to mach folder

2022-01-29 Thread Jesse Taube
Both armv7 and arm926ejs use this timer code so move it to mach-sunxi. Signed-off-by: Jesse Taube --- V1->V2: * New commit V2->V3: * Remove timer.o from armv7 Makefile --- arch/arm/cpu/armv7/sunxi/Makefile| 1 - arch/arm/mach-sunxi/Makefile | 3 +++

[PATCH v3 00/10] Add support for SUNIV and F1C100s.

2022-01-29 Thread Jesse Taube
This patch set aims to add support for the SUNIV and F1C100s. Support has been in linux for a while now, but not in u-boot. This patchset contains: - CPU specific initialization code - SUNIV dram driver - SUNIV clock driver adaption - SUNIV gpio driver adaption - SUNIV uart driver adaption -

[PATCH] moveconfig: Fix code relying on now-stripped newline characters

2022-01-29 Thread Alper Nebi Yasak
Commit 37f815cad07d ("moveconfig: Use a function to read files") adds a helper function that can read a file as lines, but strips the newline characters. This change broke parts of moveconfig code that relied on their existence, resulting in a few issues: Configs that are defined as empty aren't

Re: [PATCH v2 1/1] sandbox: fix build failure with musl and SDL

2022-01-29 Thread Heinrich Schuchardt
On 1/28/22 10:08, Heinrich Schuchardt wrote: sdl.c is compiled against the SDL library. Trying to redefine wchar_t with -fshort-wchar is not necessary and leads to build failures when compiling against musl. Cc: Milan P. Stanić Signed-off-by: Heinrich Schuchardt --- v2: fix a

[PATCH V4] phy: nop-phy: Enable reset-gpios support

2022-01-29 Thread Adam Ford
Some usb-nop-xceiv devices use a gpio take them out of reset. Add a reset function to put them into that state. This is similar to how Linux handles the usb-nop-xceiv driver. Signed-off-by: Adam Ford --- V4: Fix build errors on k2e_evm V3: Encapsulate the nop_phy_ops reference to

Re: [PATCH] add kaslr-seed generation to extlinux.conf

2022-01-29 Thread Ilias Apalodimas
Hi Zhang, On Sat, Jan 29, 2022 at 10:06:53AM +0800, Zhang Ning wrote: > add kaslrseed key word to extlinux.conf, > which means generate kaslr-seed for linux > > with this patch exlinux.conf boot item looks like I am not too familiar with the extlinux stuff in U-Boot. Does that boot with efi or

Re: [PATCH V3] phy: nop-phy: Enable reset-gpios support

2022-01-29 Thread Tom Rini
On Sat, Jan 22, 2022 at 12:02:02PM -0600, Adam Ford wrote: > Some usb-nop-xceiv devices use a gpio to put them in and > out of reset. Add a reset function to put them into that > state. This is similar to how Linux handles the > usb-nop-xceiv driver. > > Signed-off-by: Adam Ford > --- > V3:

Re: [PATCH] squashfs: show an error message if the inode_table can't be, allocated

2022-01-29 Thread Tom Rini
On Thu, Jan 13, 2022 at 02:28:45PM +0100, Lars Weber wrote: > Signed-off-by: Lars Weber > --- >  fs/squashfs/sqfs.c | 5 + >  1 file changed, 5 insertions(+) > >     } > > diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c > index e2d91c654c..9a81e79622 100644 > ---

Re: [PATCH] pylint: Adjust how the output is produced

2022-01-29 Thread Tom Rini
On Fri, Jan 28, 2022 at 09:31:07PM -0700, Simon Glass wrote: > The current Makefile rule requires there to be a 'Module' line in the > pylint output, like this: > >* Module binman.fip_util > > This line only appears if pylint has some comments about the module. We > cannot rely

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Andre Przywara
On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: > On 1/26/22 09:38, Jesse Taube wrote: > > > > > > On 1/26/22 09:13, Andre Przywara wrote: > >> On Tue, 4 Jan 2022 19:35:06 -0500 > >> Jesse Taube wrote: > >> > >> Hi Jesse, > >> > >> I was checking some bits and pieces here, so sorry

Re: [PATCH v2 11/12] ARM: dts: suniv: Add device tree files for F1C100s

2022-01-29 Thread Andre Przywara
On Fri, 28 Jan 2022 22:01:29 -0500 Jesse Taube wrote: > On 1/28/22 21:37, Andre Przywara wrote: > > On Fri, 28 Jan 2022 21:31:28 -0500 > > Jesse Taube wrote: > > > >> On 1/28/22 21:25, Andre Przywara wrote: > >>> On Wed, 26 Jan 2022 08:53:28 -0500 > >>> Jesse Taube wrote: > >>> >

Re: [PATCH v2 03/12] arm: arm926ej-s: Add sunxi code

2022-01-29 Thread Andre Przywara
On Fri, 28 Jan 2022 21:42:44 -0500 Jesse Taube wrote: Hi Jesse, > On 1/28/22 21:05, Andre Przywara wrote: > > On Wed, 26 Jan 2022 08:53:20 -0500 > > Jesse Taube wrote: > > > >> From: Icenowy Zheng > >> > >> Some Allwinner SoCs use ARM926EJ-S core. > >> > >> Add Allwinner/sunXi specific

Re:Re: [PATCH v1 1/1] env: fat: Allow overriding interface, device and partition

2022-01-29 Thread 何勇
Hi: Override the env_fat_get_dev_part function in the board file, you can load env from sdcard or emmc without modifying any configuration of u-boot, it is very useful for building wic firmware by yocto. it has been done under env/ext4.c At 2022-01-27 23:05:57, "Simon Glass"

  1   2   >