Re: [PATCH 0/9] Nokia RX-51: Small cleanups and UBI boot test case

2022-09-19 Thread Pali Rohár
On Monday 19 September 2022 13:12:41 Alexander Dahl wrote: > Hello Pali, > > Am Sun, Sep 04, 2022 at 03:28:57AM +0200 schrieb Pali Rohár: > > Do various small fixup/cleanups and extend test script to boot kernel > > image from UBI volume. This test verifies that U-Boot UBI implementation > > is

Re: [PATCH] rpi: Set FDT for RPi CM4 to the IO Board one

2022-09-19 Thread Matthias Brugger
Hi Ariel, On 16/09/2022 17:13, Ariel D'Alessandro wrote: For the RPi CM4 (Compute Module 4), we currently try to load the dtb file bcm2711-rpi-cm4.dtb, which is not built by the upstream kernel. Instead, the only CM4 dtb file provided by linux upstream is the bcm2711-rpi-cm4-io.dtb, so let's

[PATCH v2 5/9] firmware: zynqmp: Add Versal NET compatible string

2022-09-19 Thread Michal Simek
From: Jay Buddhabhatti Add compatible string for Versal NET. Signed-off-by: Jay Buddhabhatti Signed-off-by: Michal Simek --- (no changes since v1) drivers/firmware/firmware-zynqmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/firmware-zynqmp.c

[PATCH v2 8/9] arm64: versal-net: Add defconfig for Versal NET

2022-09-19 Thread Michal Simek
Use one defconfig for supporting multiple different platforms. DTB reselection is enabled to choose DT based on SOC detection. Signed-off-by: Michal Simek --- Changes in v2: - Move symbols from .h to defconfig, enable i2c mux, dm_eth_phy, squashfs and grepenv

[PATCH v2 9/9] arm64: versal-net: Add support for mini configuration

2022-09-19 Thread Michal Simek
Versal NET mini configuration is designed for running memory test. Current output is on DCC but changing serial0 alias to pl011 will move console to serial port. Signed-off-by: Michal Simek --- Changes in v2: - Remove CONFIG_SYS_CBSIZE, CONFIG_BOOTP_BOOTFILESIZE, CONFIG_BOOTP_MAY_FAIL from .h

[PATCH v2 6/9] mailbox: zynqmp: Enable ipi mailbox driver for Versal NET

2022-09-19 Thread Michal Simek
From: Jay Buddhabhatti Enable mailbox configs for Versal NET. Signed-off-by: Jay Buddhabhatti Signed-off-by: Michal Simek --- (no changes since v1) drivers/mailbox/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig

[PATCH v2 7/9] reset: zynqmp: Enable reset driver for Versal NET

2022-09-19 Thread Michal Simek
From: Jay Buddhabhatti Enable zynqmp reset driver for Versal NET. Signed-off-by: Jay Buddhabhatti Signed-off-by: Michal Simek --- (no changes since v1) drivers/reset/reset-zynqmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/reset/reset-zynqmp.c

Pull request: u-boot-imx u-boot-imx-20220919

2022-09-19 Thread Stefano Babic
/custodians/u-boot-imx.git tags/u-boot-imx-20220919 for you to fetch changes up to cc74cab86a5f32db93a9f0dc7bc46fa5e83f4f3e: bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards (2022-09-18 22:56:18 +0200) u-boot-imx-20220919

Re: [PATCH] imx8m*_venice_defconfig: fix default bootcmd

2022-09-19 Thread Tom Rini
On Tue, Sep 13, 2022 at 10:32:19AM -0700, Tim Harvey wrote: > On Thu, Sep 8, 2022 at 9:11 AM Tim Harvey wrote: > > > > commit 970bf8603b87 ("Convert CONFIG_USE_BOOTCOMMAND et al to Kconfig") > > had an unintended side effect of resulting in a bootcmd env var change > > for boards like venice that

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Patrice CHOTARD
Hi Waldemar On 9/19/22 13:48, Waldemar Brodkorb wrote: > Hi again, > > Waldemar Brodkorb wrote, > >> Hi, >> >> I am trying to run u-boot on a STM32F746G-DISCO device. >> I am configuring u-boot with stm32f746-disco_spl_defconfig. >> >> But nothing happens on the LCD nor on the serial console.

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Patrice CHOTARD
I forgot to mention that information can be directly found in doc/board/st/stm32_MCU.rst Patrice On 9/19/22 13:48, Waldemar Brodkorb wrote: > Hi again, > > Waldemar Brodkorb wrote, > >> Hi, >> >> I am trying to run u-boot on a STM32F746G-DISCO device. >> I am configuring u-boot with

[PATCH v4] tee: optee: rework TA bus scanning code

2022-09-19 Thread Patrick DELAUNAY
Hi Simon, On 9/12/22 20:31, Simon Glass wrote: Hi Ilias, On Wed, 7 Sept 2022 at 15:32, Ilias Apalodimas wrote: Hi Simon, On Thu, 8 Sept 2022 at 00:11, Simon Glass wrote: Hi Ilias, On Tue, 6 Sept 2022 at 15:23, Ilias Apalodimas wrote: Hi Simon, On Tue, Sep 06, 2022 at 03:18:28PM

[PATCH v3 1/3] lib: Add common semihosting library

2022-09-19 Thread Kautuk Consul
We factor out the arch-independent parts of the ARM semihosting implementation as a common library so that it can be shared with RISC-V. Signed-off-by: Kautuk Consul --- arch/arm/Kconfig | 46 - arch/arm/lib/semihosting.c | 181 +---

[PATCH v3 0/3] Add riscv semihosting support in u-boot

2022-09-19 Thread Kautuk Consul
Semihosting is a mechanism that enables code running on a target to communicate and use the Input/Output facilities on a host computer that is running a debugger. This patchset adds support for semihosting in u-boot for RISCV64 targets. CHANGES since v2: - Move the arch/arm/Kconfig common

[PATCH v3 2/3] arch/riscv: add semihosting support for RISC-V

2022-09-19 Thread Kautuk Consul
We add RISC-V semihosting based serial console for JTAG based early debugging. The RISC-V semihosting specification is available at: https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc Signed-off-by: Anup Patel Signed-off-by: Kautuk Consul ---

[PATCH v3 3/3] board: qemu-riscv: enable semihosting

2022-09-19 Thread Kautuk Consul
To enable semihosting we also need to enable the following configs in defconfigs: CONFIG_SEMIHOSTING CONFIG_SPL_SEMIHOSTING CONFIG_SEMIHOSTING_SERIAL CONFIG_SERIAL_PROBE_ALL CONFIG_SPL_FS_EXT4 CONFIG_SPL_FS_FAT Signed-off-by: Kautuk Consul --- configs/qemu-riscv32_defconfig | 4

[PATCH v4 3/3] board: qemu-riscv: enable semihosting

2022-09-19 Thread Kautuk Consul
To enable semihosting we also need to enable the following configs in defconfigs: CONFIG_SEMIHOSTING CONFIG_SPL_SEMIHOSTING CONFIG_SEMIHOSTING_SERIAL CONFIG_SERIAL_PROBE_ALL CONFIG_SPL_FS_EXT4 CONFIG_SPL_FS_FAT Signed-off-by: Kautuk Consul --- configs/qemu-riscv32_defconfig | 4

Re: [PATCH V5] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards

2022-09-19 Thread Michael Nazzareno Trimarchi
Hi Stefano On Mon, Sep 19, 2022 at 2:16 PM Stefano Babic wrote: > > On 18.09.22 17:48, Fabio Estevam wrote: > > On Sun, Sep 18, 2022 at 12:09 PM Michael Trimarchi > > wrote: > >> > >> Introduce BSH SystemMaster (SMM) M2 board family, which consists of: > >> imx6ulz SMM M2 and imx6ulz SMM M2 PRO

Re: [PATCH v3 3/3] i2c: stm32: do not set the STOP condition on error

2022-09-19 Thread Patrick DELAUNAY
Hi Jorge, On 9/12/22 10:35, Jorge Ramirez-Ortiz, Foundries wrote: On 12/09/22, Patrick DELAUNAY wrote: Hi Alain, On 9/9/22 18:06, Alain Volmat wrote: Current function stm32_i2c_message_xfer is sending a STOP whatever the result of the transaction is. This can cause issues such as making the

Re: [PATCH 0/9] Nokia RX-51: Small cleanups and UBI boot test case

2022-09-19 Thread Alexander Dahl
Hello Pali, Am Sun, Sep 04, 2022 at 03:28:57AM +0200 schrieb Pali Rohár: > Do various small fixup/cleanups and extend test script to boot kernel > image from UBI volume. This test verifies that U-Boot UBI implementation > is working and U-Boot can read volume with bootable kernel code >

[PATCH v4 1/3] lib: Add common semihosting library

2022-09-19 Thread Kautuk Consul
We factor out the arch-independent parts of the ARM semihosting implementation as a common library so that it can be shared with RISC-V. Signed-off-by: Kautuk Consul --- arch/arm/Kconfig | 46 - arch/arm/lib/semihosting.c | 181 +---

[PATCH v4 0/3] Add riscv semihosting support in u-boot

2022-09-19 Thread Kautuk Consul
Semihosting is a mechanism that enables code running on a target to communicate and use the Input/Output facilities on a host computer that is running a debugger. This patchset adds support for semihosting in u-boot for RISCV64 targets. CHANGES since v2 and v3: - v2: Move the

[PATCH v4 2/3] arch/riscv: add semihosting support for RISC-V

2022-09-19 Thread Kautuk Consul
We add RISC-V semihosting based serial console for JTAG based early debugging. The RISC-V semihosting specification is available at: https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc Signed-off-by: Anup Patel Signed-off-by: Kautuk Consul ---

Re: [PATCH V5] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards

2022-09-19 Thread Stefano Babic
On 18.09.22 17:48, Fabio Estevam wrote: On Sun, Sep 18, 2022 at 12:09 PM Michael Trimarchi wrote: Introduce BSH SystemMaster (SMM) M2 board family, which consists of: imx6ulz SMM M2 and imx6ulz SMM M2 PRO boards. Add support for imx6ulz BSH SMM M2 board: - 128 MiB DDR3 RAM - 256MiB Nand -

[PATCH 0/2] splash: add more options/support

2022-09-19 Thread Julien Masson
This patch series add several options/support for splashscreen feature: - support raw image from MMC - get devpart from environment variable With these changes the user has now more options and can change default configurations through environment variables. Example: image located in

Re: [PATCH] configs: stm32mp*: reset via CONFIG_RESET_SCMI

2022-09-19 Thread Patrick DELAUNAY
Hi, On 9/5/22 19:01, Oleksandr Suvorov wrote: Jorge, I think, renaming the patch to "fix" and adding a field "Fixes:" should help accept it faster. On Mon, Sep 5, 2022 at 7:32 PM Jorge Ramirez-Ortiz, Foundries wrote: On 30/08/22, Jorge Ramirez-Ortiz wrote: Enabling CONFIG_SYSRESET_PSCI

[PATCH 0/7] Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Hei hei, while working on FPGA support for a new device I discovered logging in some FPGA drivers is still done as in the old days. Bring that to what I thougt would be the currently preferred approach? Notes: Adding those Kconfig symbols in patch 3 is just to be able to build those two

[PATCH 5/7] fpga: spartan2: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/spartan2.c | 34 +++--- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/drivers/fpga/spartan2.c

Re: [PATCH v3 2/3] arch/riscv: add semihosting support for RISC-V

2022-09-19 Thread Kautuk Consul
Ugh.. made a mistake in one of the config options. Please ignore this patchset too. Will send out a v4 now. :-( On Mon, Sep 19, 2022 at 4:53 PM Kautuk Consul wrote: > > We add RISC-V semihosting based serial console for JTAG based early > debugging. > > The RISC-V semihosting specification is

Re: [PATCH] powerpc: mpc85xx: Fix incorrect application of patch

2022-09-19 Thread Tom Rini
On Mon, Sep 19, 2022 at 11:32:08AM +0200, Marek Behún wrote: > I messed up application of patch 5a428e751044 ("mmc: fsl_esdhc_spl: Add > support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS"). I took it from > a work-in-progress branch where I changed usage of > CONFIG_SDCARD to CONFIG_SD_BOOT

[PATCH] tools: env: Fix missing closedir in ubi_get_volnum_by_name

2022-09-19 Thread Miaoqian Lin
The function calls opendir() but missing the corresponding closedir() before exit the function. Add missing closedir() to fix it. Signed-off-by: Miaoqian Lin --- tools/env/fw_env.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c

[PATCH v2 1/9] arm64: versal-net: Add support for Versal NET platform

2022-09-19 Thread Michal Simek
Versal NET platform is based on Versal chip which is reusing a lot of IPs. For more information about new IPs please take a look at DT which describe currently supported devices. The patch is adding architecture and board support with soc detection algorithm. Generic setting should be very similar

[PATCH v2 2/9] spi: cadence_qspi: Add support for Versal NET platform

2022-09-19 Thread Michal Simek
Trivial changes to support cadence ospi driver for Versal NET platform. Also avoid ospi flash reset for now. Signed-off-by: Michal Simek --- (no changes since v1) arch/arm/mach-versal-net/include/mach/hardware.h | 4 drivers/spi/Kconfig | 2 +-

[PATCH v2 3/9] spi: zynqmp_gqspi: Add support for Versal NET

2022-09-19 Thread Michal Simek
Add support for Versal NET platform. Signed-off-by: Michal Simek --- (no changes since v1) drivers/spi/zynqmp_gqspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index 4e718c545c64..d3cc8554b8fb 100644 ---

[PATCH v2 4/9] clk: versal: Enable clock driver for Versal NET

2022-09-19 Thread Michal Simek
From: Jay Buddhabhatti Add support for Versal NET compatible string in clock driver. Signed-off-by: Jay Buddhabhatti Signed-off-by: Michal Simek --- (no changes since v1) drivers/clk/Kconfig | 2 +- drivers/clk/clk_versal.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v2 0/9] xilinx: versal-net: Add support for new Versal NET SoC

2022-09-19 Thread Michal Simek
Hi, I am sending support for new Xilinx/AMD SoC called Versal NET. Versal NET is very similar to origin Versal SOC. There is different register layout, some IPs have been upgraded like i3c and some other changes in different location. Thanks, Michal Changes in v2: - Move symbols from .h to

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Patrice CHOTARD
Hi Waldemar On 9/19/22 13:48, Waldemar Brodkorb wrote: > Hi again, > > Waldemar Brodkorb wrote, > >> Hi, >> >> I am trying to run u-boot on a STM32F746G-DISCO device. >> I am configuring u-boot with stm32f746-disco_spl_defconfig. >> >> But nothing happens on the LCD nor on the serial console.

[PATCH v1 1/6] configs: stm32f746-disco: Fix SPL boot

2022-09-19 Thread Patrice Chotard
Commit 'b4b9a00ed593 ("Convert CONFIG_SYS_SPL_ARGS_ADDR to Kconfig")' replaces CONFIG_SYS_FDT_BASE by CONFIG_SYS_SPL_ARGS_ADDR. As CONFIG_SYS_SPL_ARGS_ADDR enables additional code when enable, it increases SPL size over the initial 0x8000 limit. Increase the SPL size to 0x9000 to fix SPL boot. Set

[PATCH v1 2/6] configs: stm32f769-disco: Fix SPL boot

2022-09-19 Thread Patrice Chotard
Commit 'b4b9a00ed593 ("Convert CONFIG_SYS_SPL_ARGS_ADDR to Kconfig")' replaces CONFIG_SYS_FDT_BASE by CONFIG_SYS_SPL_ARGS_ADDR. As CONFIG_SYS_SPL_ARGS_ADDR enables additional code when enable, it increases SPL size over the initial 0x8000 limit. Increase the SPL size to 0x9000 to fix SPL boot. Set

[PATCH v1 0/6] SPL fixes for STM32F7 MCUs

2022-09-19 Thread Patrice Chotard
This series is fixing issues in SPL boot mode: - SPL binary size over 0x8000 bytes for STM32F746-disco, STM32F769-DISCO and STM32746G-EVAL boards - fix embedded flash size for STM32F769-DISCO - fix CONFIG_SYS_SPL_ARGS_ADDR for STM32F746-DISCO and STM32746G-EVAL Patrice Chotard (6):

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Patrice CHOTARD
Waldemar, You can applied the following series on current U-Boot master branch (a0759684e015bd7252be3af508c0fcfdbb8ec5dc): https://patchwork.ozlabs.org/project/uboot/list/?series=318991 Thanks Patrice On 9/19/22 16:36, Patrice CHOTARD wrote: > Hi Waldemar > > On 9/19/22 13:48, Waldemar

[PATCH 3/7] fpga: Add missing Kconfig symbols for old FPGA drivers

2022-09-19 Thread Alexander Dahl
Those drivers could not be built anymore without those options present. Signed-off-by: Alexander Dahl --- drivers/fpga/Kconfig | 12 1 file changed, 12 insertions(+) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index e07a9cf80e..4d55f60ba9 100644 ---

[PATCH 1/7] fpga: altera: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/altera.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/fpga/altera.c b/drivers/fpga/altera.c index

[PATCH 6/7] fpga: spartan3: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/spartan3.c | 34 +++--- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/drivers/fpga/spartan3.c

[PATCH 4/7] fpga: ACEX1K: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/ACEX1K.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/fpga/ACEX1K.c b/drivers/fpga/ACEX1K.c index

[PATCH 7/7] fpga: virtex2: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/virtex2.c | 37 +++-- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/drivers/fpga/virtex2.c

[PATCH 2/7] fpga: cyclon2: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/cyclon2.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/drivers/fpga/cyclon2.c b/drivers/fpga/cyclon2.c

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Waldemar Brodkorb
Hi again, Waldemar Brodkorb wrote, > Hi, > > I am trying to run u-boot on a STM32F746G-DISCO device. > I am configuring u-boot with stm32f746-disco_spl_defconfig. > > But nothing happens on the LCD nor on the serial console. > I use screen /dev/ttyACM0 115200 under Linux to connect. It seems

[PATCH 1/2] splash: support raw image from MMC

2022-09-19 Thread Julien Masson
The user has now the choice to specify the splash location in the MMC as a raw storage. Signed-off-by: Julien Masson --- common/splash.c| 6 ++ common/splash_source.c | 29 + 2 files changed, 35 insertions(+) diff --git a/common/splash.c

[PATCH 0/2] splash: add more options/support

2022-09-19 Thread Julien Masson
This patch series add several options/support for splashscreen feature: - support raw image from MMC - get devpart from environment variable With these changes the user has now more options and can change default configurations through environment variables. Example: image located in

[PATCH v1 5/6] configs: stm32746g-eval: Fix CONFIG_SYS_SPL_ARGS_ADDR

2022-09-19 Thread Patrice Chotard
STM32F746 embeds 1 MB of internal flash [0x0800-0x080f], fix CONFIG_SYS_SPL_ARGS_ADDR accordingly It solves hard fault when jumping from SPL to U-Boot. Signed-off-by: Patrice Chotard --- configs/stm32746g-eval_spl_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v1 3/6] configs: stm32746g-eval: Fix SPL boot

2022-09-19 Thread Patrice Chotard
Commit 'b4b9a00ed593 ("Convert CONFIG_SYS_SPL_ARGS_ADDR to Kconfig")' replaces CONFIG_SYS_FDT_BASE by CONFIG_SYS_SPL_ARGS_ADDR. As CONFIG_SYS_SPL_ARGS_ADDR enables additional code when enable, it increases SPL size over the initial 0x8000 limit. Increase the SPL size to 0x9000 to fix SPL boot. Set

[PATCH v1 4/6] configs: stm32f746-disco: Fix CONFIG_SYS_SPL_ARGS_ADDR

2022-09-19 Thread Patrice Chotard
STM32F746 embeds 1 MB of internal flash [0x0800-0x080f], fix CONFIG_SYS_SPL_ARGS_ADDR accordingly It solves hard fault when jumping from SPL to U-Boot. Signed-off-by: Patrice Chotard --- configs/stm32f746-disco_spl_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v1 6/6] config: stm32f769-disco: Fix internal flash size

2022-09-19 Thread Patrice Chotard
arch-stm32f7/stm32.h file is shared between STM32F746 and STM32F769 MCUs. But STM32F769 embeds 2MB of internal flash instead of 1MB for STM32F746. The flash layout is quite similar between the 2 SoCs : STM32F746 STM32F769 4 * 32KB sectors 4 *

Re: U-Boot support for IMX8MP dual-role

2022-09-19 Thread Alexander Stein
Hello Tim, Am Freitag, 16. September 2022, 20:43:54 CEST schrieb Tim Harvey: > Greetings, > > I'm wondering if anyone has done any work to get dual-role USB working > for the IMX8MP (or any other dwc3 host based board) and how they went > about it if so. > > The imx8mp-venice-gw74xx has

u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Waldemar Brodkorb
Hi, I am trying to run u-boot on a STM32F746G-DISCO device. I am configuring u-boot with stm32f746-disco_spl_defconfig. I use following openocd command to flash the output of the build: openocd \ -f interface/stlink.cfg -f board/stm32f7discovery.cfg \ -c "init" \ -c

Re: [PATCH v10 02/15] FWU: Add FWU metadata structure and driver for accessing metadata

2022-09-19 Thread Sughosh Ganu
On Mon, 19 Sept 2022 at 06:03, Jassi Brar wrote: > > On Thu, 15 Sept 2022 at 03:15, Sughosh Ganu wrote: > > > +/** > > + * fwu_get_active_index() - Get active_index from the FWU metadata > > + * @active_idxp: active_index value to be read > > + * > > + * Read the active_index field from the

Re: [PATCH v2 4/5] verdin-imx8mm: various config additions and improvements

2022-09-19 Thread Stefano Babic
On 18.09.22 22:41, sba...@denx.de wrote: From: Marcel Ziswiler - integrate bootcount using SNVS_LP general purpose register LPGPR0 - enable link-time optimisation - explicitly set a boot delay of one second - enable CRC32 and MD5 - enable command for low-level access to data in a partition -

Re: [PATCH v8] board: purism: add the Purism Librem5 phone

2022-09-19 Thread Angus Ainslie
On 2022-09-18 13:41, sba...@denx.de wrote: Initial commit of Librem5 u-boot and SPL Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off-by: Sebastian Krzyszkowiak Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Thanks Stefano ! Cheers

Re: [PATCH] imx8m*_venice_defconfig: fix default bootcmd

2022-09-19 Thread Tom Rini
On Thu, Sep 08, 2022 at 09:11:13AM -0700, Tim Harvey wrote: > commit 970bf8603b87 ("Convert CONFIG_USE_BOOTCOMMAND et al to Kconfig") > had an unintended side effect of resulting in a bootcmd env var change > for boards like venice that did not have CONFIG_USE_BOOTCOMMAND defined > and relied on

Re: Pull request: u-boot-imx u-boot-imx-20220919

2022-09-19 Thread Tom Rini
9-18 > 08:27:23 -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20220919 > > for you to fetch changes up to cc74cab86a5f32db93a9f0dc7bc46fa5e83f4f3e: > > bsh: imx6ulz_smm_m2: Add imx

Re: [PATCH v2 1/3] lib: Add common semihosting library

2022-09-19 Thread Kautuk Consul
Thanks for spotting that. There was a config option selection that I was trying to avoid. Will send out a v3 patch with your suggestions. On Sat, Sep 17, 2022 at 11:10 PM Sean Anderson wrote: > > On 9/16/22 04:12, Kautuk Consul wrote: > > We factor out the arch-independent parts of the ARM

Re: [PATCH] ARM: imx: Deduplicate i.MX8M SNVS LPGPR unlock

2022-09-19 Thread Stefano Babic
On 23.08.22 19:26, Fabio Estevam wrote: On 23/08/2022 14:05, Marek Vasut wrote: Pull this LPGPR unlock into common code, since it is used in multiple systems already. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx Reviewed-by: Fabio

Re: [PATCH] rpi: Set FDT for RPi CM4 to the IO Board one

2022-09-19 Thread Ariel D'Alessandro
Hi Matthias, On 9/19/22 08:37, Matthias Brugger wrote: > Hi Ariel, > > On 16/09/2022 17:13, Ariel D'Alessandro wrote: >> For the RPi CM4 (Compute Module 4), we currently try to load the dtb >> file bcm2711-rpi-cm4.dtb, which is not built by the upstream kernel. >> >> Instead, the only CM4 dtb

[PATCH 2/2] splash: get devpart from environment variable

2022-09-19 Thread Julien Masson
By default several types of splash locations are supported and the user can select one of them through environment var (splashsource). However the devpart is still hardcoded and we cannot change it from the environment. This patch add the support of "splashdevpart" which allow the user to set

Re: [PATCH 2/2] mtd: parsers: add Broadcom's U-Boot parser

2022-09-19 Thread Miquel Raynal
On Mon, 2022-07-11 at 15:30:41 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote: > From: Rafał Miłecki > > Broadcom stores environment variables blocks inside U-Boot partition > itself. This driver finds & registers them. > > Signed-off-by: Rafał Miłecki Applied to

[PULL] u-boot-usb/master

2022-09-19 Thread Marek Vasut
Typo fix and unused driver removal. The following changes since commit 59f6141362cc28e6c0638f16ef6cdb024231e13f: imx8m*_venice_defconfig: fix default bootcmd (2022-09-19 08:53:50 -0400) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch

Re: [PATCH] cmd: fdt: Add support for reading stringlist property values

2022-09-19 Thread Marek Vasut
On 7/17/22 10:12, Simon Glass wrote: Hi Marek, Hi, [...] Applied to u-boot-dm, thanks! This patch is still not in u-boot/master ?

[PATCH] cmd: pxe: add alias devicetree-overlay for fdtoverlays

2022-09-19 Thread Edoardo Tomelleri
This adds keyword devicetree-overlay as an alias for fdtoverlays in extlinux (sysboot) and pxe to better follow the Boot Loader Specification, improves documentation around them by adding an example for both fdtoverlays and devicetree-overlay and the environment variable required for this feature.

[PATCH v2] ARM: imx: Deduplicate i.MX8M SNVS LPGPR unlock

2022-09-19 Thread Marek Vasut
Pull this LPGPR unlock into common code, since it is used in multiple systems already. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: Reinstate empty board_init() in DM eDM SBC board to fix build error ---

Re: [PATCH] board_f: show_dram_config: Print also real DRAM size

2022-09-19 Thread Simon Glass
Hi Pali, On Sun, 18 Sept 2022 at 13:30, Pali Rohár wrote: > > On Monday 12 September 2022 17:58:09 Sean Anderson wrote: > > You can use TEST_STATIC from test/export.h this case. > > Now I sent new patch version where I extended comment. > > I have still issue with test framework. Could you help

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Simon Glass
Hi Waldemar, On Mon, 19 Sept 2022 at 13:48, Waldemar Brodkorb wrote: > > Hi again, > > Waldemar Brodkorb wrote, > > > Hi, > > > > I am trying to run u-boot on a STM32F746G-DISCO device. > > I am configuring u-boot with stm32f746-disco_spl_defconfig. > > > > But nothing happens on the LCD nor on

[PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-19 Thread Marek Vasut
The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback of each GPIO hog driver instance after .bind() and thus configure the hogged GPIO accordingly. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Waldemar Brodkorb
Hi Patrice, Patrice CHOTARD wrote, > Waldemar, > > You can applied the following series on current U-Boot master > branch (a0759684e015bd7252be3af508c0fcfdbb8ec5dc): > > https://patchwork.ozlabs.org/project/uboot/list/?series=318991 > I applied the patches on top of u-boot master and the

Re: [PATCH 1/2] dt-bindings: mtd: partitions: add binding for U-Boot bootloader

2022-09-19 Thread Miquel Raynal
On Mon, 2022-07-11 at 15:30:40 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote: > From: Rafał Miłecki > > Right now there is no (known) real reason for a custom binding for > standard U-Boot partitions. Broadcom's U-Boot however requires extra > handling - looking for environment variables

[ANN] U-Boot v2022.10-rc5 released

2022-09-19 Thread Tom Rini
Hey all, It's release day and so here's v2022.10-rc5. Probably a bit bigger of a set of updates than I really would have preferred, but they're all contained within specific SoCs / arches and tested by their respective custodians. I really do hope for fairly wide testing of this rc as well as

[PATCH] usb: Add missing guard around env_get() in usb_hub

2022-09-19 Thread Marek Vasut
The env_get() might be undefined in case ENV_SUPPORT is disabled, which may happen e.g. in SPL. Add missing ifdef guard around the env_get() to prevent build failure. Signed-off-by: Marek Vasut --- Cc: Simon Glass Cc: Tom Rini --- common/usb_hub.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH] ARM: dts: imx8mm: Swap i.MX8M Mini Menlo board UARTs back

2022-09-19 Thread Marek Vasut
The first production revision of the MX8M Mini Menlo board implements a hardware change which swaps console UART and another UART connector. Implement the swap, which maps the console UART back to the way Verdin console is mapped. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Marcel

[PATCH 1/4] ARM: imx8m: Deduplicate CAAM init with arch_misc_init() call

2022-09-19 Thread Marek Vasut
Instead of duplicating code implemented by i.MX8M version of arch_misc_init() in every board, enable CONFIG_ARCH_MISC_INIT and call arch_misc_init() from spl_board_init(). This removes the duplication. No functional change. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Frieder Schrempf

[PATCH 4/4] ARM: dts: imx8m: imx8mm-mx8menlo: Enable SPL SDP support

2022-09-19 Thread Marek Vasut
Enable DM USB, DM PHY and USB gadget support in imx8mm-mx8menlo SPL to let the board continue SDP loading of second stage after the first stage was loaded by BootROM SDP implementation. It is not possible to jump back into BootROM v1 and let the BootROM implementation continue the SDP loading, all

[PATCH 2/4] ARM: imx8m: phycore_imx8mm: Drop bogus spl_board_init()

2022-09-19 Thread Marek Vasut
The current implementation of spl_board_init() is not correct, the MX8MM BootROM v1 does not support SDP load when re-entered from U-Boot SPL, it is up to U-Boot to perform the next stage load using its own internal CI gadget driver and SDP protocol implementation. Drop the spl_board_init() to let

[PATCH 3/4] ARM: imx8m: verdin-imx8mm: Drop bogus content from spl_board_init()

2022-09-19 Thread Marek Vasut
The current implementation of spl_board_init() USB boot handling is not correct, the MX8MM BootROM v1 does not support SDP load when re-entered from U-Boot SPL, it is up to U-Boot to perform the next stage load using its own internal CI gadget driver and SDP protocol implementation. Drop the

Re: [PATCH v10 15/15] FWU: doc: Add documentation for the FWU feature

2022-09-19 Thread Jassi Brar
On Thu, 15 Sept 2022 at 03:16, Sughosh Ganu wrote: > diff --git a/doc/develop/uefi/fwu_updates.rst > b/doc/develop/uefi/fwu_updates.rst > new file mode 100644 > index 00..fad3fbb3a8 > --- /dev/null > +++ b/doc/develop/uefi/fwu_updates.rst > @@ -0,0 +1,165 @@ > +..

Re: [PULL] u-boot-usb/master

2022-09-19 Thread Tom Rini
On Mon, Sep 19, 2022 at 08:18:35PM +0200, Marek Vasut wrote: > Typo fix and unused driver removal. > > The following changes since commit 59f6141362cc28e6c0638f16ef6cdb024231e13f: > > imx8m*_venice_defconfig: fix default bootcmd (2022-09-19 08:53:50 -0400) > > are available in the Git

[RFC][PATCH] spl: Turn spl_board_init() into weak symbol

2022-09-19 Thread Marek Vasut
Make spl_board_init() a weak symbol and get rid of Kconfig symbols and ifdeffery guarding this function. Since the spl_board_init() is now a weak symbol, boards can either use the default implementation which is empty and gets inlined with zero text increase, or override the implementation with

Re: [PATCH 4/4] ARM: dts: imx8m: imx8mm-mx8menlo: Enable SPL SDP support

2022-09-19 Thread Fabio Estevam
Hi Marek, On 19/09/2022 16:41, Marek Vasut wrote: Enable DM USB, DM PHY and USB gadget support in imx8mm-mx8menlo SPL to let the board continue SDP loading of second stage after the first stage was loaded by BootROM SDP implementation. It is not possible to jump back into BootROM v1 and let the

Re: [PATCH 2/2] imx8mm_evk: Add Serial Download Protocol support

2022-09-19 Thread Michael Nazzareno Trimarchi
Hi On Tue, Sep 20, 2022 at 2:21 AM Fabio Estevam wrote: > > Add Serial Download Protocol support as it is a useful method to > load flash.bin to RAM and run it via 'uuu'. > > With this patch, it is possible to start both U-Boot SPL and U-Boot > proper using the following 'uuu'command: > > $ uuu

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Waldemar Brodkorb
Hi Simon, Simon Glass wrote, > Hi Waldemar, > > On Mon, 19 Sept 2022 at 13:48, Waldemar Brodkorb wrote: > > > > Hi again, > > > > Waldemar Brodkorb wrote, > > > > > Hi, > > > > > > I am trying to run u-boot on a STM32F746G-DISCO device. > > > I am configuring u-boot with

Re: [PATCH] usb: Add missing guard around env_get() in usb_hub

2022-09-19 Thread Fabio Estevam
Hi Marek, On Mon, Sep 19, 2022 at 4:19 PM Marek Vasut wrote: > > The env_get() might be undefined in case ENV_SUPPORT is disabled, > which may happen e.g. in SPL. Add missing ifdef guard around the > env_get() to prevent build failure. Yes, this fixes a build failure when adding imx8mm-evk SDP

[PATCH 1/2] imx8mm_evk: Add an entry for USB boot

2022-09-19 Thread Fabio Estevam
Add an entry for USB boot so that U-Boot could be loaded via the Serial Download Protocol. Signed-off-by: Fabio Estevam --- board/freescale/imx8mm_evk/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c index

[PATCH 2/2] imx8mm_evk: Add Serial Download Protocol support

2022-09-19 Thread Fabio Estevam
Add Serial Download Protocol support as it is a useful method to load flash.bin to RAM and run it via 'uuu'. With this patch, it is possible to start both U-Boot SPL and U-Boot proper using the following 'uuu'command: $ uuu -brun spl flash.bin Based on a patch from Marek Vasut for the

Re: [PATCH v3 1/1] blk: Rename if_type to uclass_id

2022-09-19 Thread AKASHI Takahiro
On Sat, Sep 17, 2022 at 11:27:09AM -0600, Simon Glass wrote: > Hi Takahiro, > > On Sat, 17 Sept 2022 at 04:52, AKASHI Takahiro > wrote: > > > > On Sat, Sep 17, 2022 at 02:25:50AM -0600, Simon Glass wrote: > > > Use the word 'uclass' instead of 'if_type' to complete the conversion. > > > > NAK. >

Re: [PATCH 1/4] arm: stm32mp: add defines for BSEC_LOCK status in stm32key command

2022-09-19 Thread Patrice CHOTARD
Hi Patrick On 9/15/22 18:11, Patrick Delaunay wrote: > Add defines for value used in stm32key for BSEC permanent lock status > and error. > > This patch is a preliminary step to support more lock status in BSEC > driver. > > Signed-off-by: Patrick Delaunay > --- > >

Re: [PATCH 2/4] arm: stm32mp: introduced read_close_status function in stm32key command

2022-09-19 Thread Patrice CHOTARD
Hi Patrick On 9/15/22 18:11, Patrick Delaunay wrote: > Split the read_hash_otp function and introduce the helper function > read_close_status to read the close status in OTP separately of the PKH. > > This patch is a preliminary step for STM32MP13 support. > > Signed-off-by: Patrick Delaunay >

Re: [PATCH] arm: mvebu: turris_omnia: Add CONFIG_BOARD_SIZE_LIMIT

2022-09-19 Thread Stefan Roese
On 14.09.22 15:06, Pali Rohár wrote: Maximal size of u-boot kwb image binary is $CONFIG_ENV_OFFSET which is 0xF = 983040 bytes. So add missing CONFIG_BOARD_SIZE_LIMIT definition to ensure that u-boot binary does not overflow to the u-boot env storage. Signed-off-by: Pali Rohár

Re: [PATCH] pci: Remove duplicate PCI_REGION_IO / "io" line

2022-09-19 Thread Stefan Roese
On 15.09.22 15:54, Pali Rohár wrote: Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- cmd/pci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/pci.c b/cmd/pci.c index 6258699fec81..58a74755c8b2 100644 --- a/cmd/pci.c +++ b/cmd/pci.c @@ -450,11 +450,10 @@

Re: [PATCH] armv8: cache_v8: Fix pgtables setup when MMU is already enabled

2022-09-19 Thread Stefan Roese
On 14.09.22 13:37, Pali Rohár wrote: When MMU is already enabled then dcache_enable() does not call mmu_setup() and so setup_all_pgtables() is also never called. In this situation when some driver calls mmu_set_region_dcache_behaviour() function then U-Boot crashes with error message:

Re: [PATCH] Makefile: Add missing CONFIG_BOARD_SIZE_LIMIT check for u-boot-spl.kwb

2022-09-19 Thread Stefan Roese
On 14.09.22 15:06, Pali Rohár wrote: Currently CONFIG_BOARD_SIZE_LIMIT check is ignored for u-boot-spl.kwb target. Fix it by adding missing $(BOARD_SIZE_CHECK) macro. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- Makefile | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH] arm: mvebu: Add default SPL_SIZE_LIMIT for 32-bit SoCs

2022-09-19 Thread Stefan Roese
On 14.09.22 18:48, Pali Rohár wrote: 32-bit Marvell Armada BootROMs limit maximal size of SPL image to 192 kB. So define 192 kB (= 0x3) limit as default value for SPL_SIZE_LIMIT. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- common/spl/Kconfig | 1 + 1

Re: [PATCH] configs: stm32mp1: cleanup config file

2022-09-19 Thread Patrice CHOTARD
Hi PAtrick On 9/16/22 16:52, Patrick Delaunay wrote: > Remove the unnecessary comment after the CONFIG_SYS_BOOTM_LEN > migration to Kconfig. > > Fixes: c45568cc4e51 ("Convert CONFIG_SYS_BOOTM_LEN to Kconfig") > Signed-off-by: Patrick Delaunay > --- > > include/configs/stm32mp13_common.h | 2

  1   2   >