Re: imx: imx8mm: imx8mm-kontron-n801x-s: does not start work

2022-01-11 Thread Frieder Schrempf
On 12.01.22 08:16, Heiko Thiery wrote: > Hi Adam, Hi Frieder, > > Am Di., 11. Jan. 2022 um 20:33 Uhr schrieb Adam Ford : >> >> On Tue, Jan 11, 2022 at 1:18 AM Heiko Thiery wrote: >>> >>> Hi all, >>> >>> I wanted to test the newly introduced kontron-sl-mx8mm_defconfig but >>> it does not work. >>>

How to use add-symbol-file in gdb after the program jumped to linux? (both when PC is physical and virtual)

2022-01-11 Thread Chan Kim
Hello experts, I'm following linux boot-loading using u-boot (using SPL falcon mode, from RAM) on a qemu virtual machine (now linux started in real board too). The code jumped to linux kernel and because I have done `add-symbol-file vmlinux 0x80081000` I can follow the kernel code step by step

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-11 Thread Stefan Roese
Hi Pali, while testing with this patchset (amongst others), I get this error while building for "theadorable_debug": $ make theadorable_debug_defconfig $ make -s -j20 Invalid LOAD_ADDRESS 0x40004030 for BINARY spl/u-boot-spl.bin with 0 args. Address must be 4-byte aligned and in range 0x4028

Re: imx: imx8mm: imx8mm-kontron-n801x-s: does not start work

2022-01-11 Thread Heiko Thiery
Hi Adam, Hi Frieder, Am Di., 11. Jan. 2022 um 20:33 Uhr schrieb Adam Ford : > > On Tue, Jan 11, 2022 at 1:18 AM Heiko Thiery wrote: > > > > Hi all, > > > > I wanted to test the newly introduced kontron-sl-mx8mm_defconfig but > > it does not work. > > > > I already found two converted config optio

Re: [RESEND PATCH v3 01/12] mmc: fsl_esdhc_imx: make BLK as hard requirement of DM_MMC

2022-01-11 Thread Minkyu Kang
Hi! On Wed, 12 Jan 2022 at 08:29, Jaehoon Chung wrote: > From: Sean Anderson > > U-boot prefers DM_MMC + BLK for MMC. Now eSDHC driver has already > support it, so let's force to use it. > > - Drop non-BLK support for DM_MMC introduced by below patch. >66fa035 mmc: fsl_esdhc: fix probe issu

[GIT PULL] Please pull u-boot-mmc master

2022-01-11 Thread Jaehoon Chung
Hi Tom, Please pull u-boot-mmc master into u-boot master branch. If there is a problem, let me know, plz. Best Regards, Jaehoon Chung CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/10571 The following changes since commit fe04d885fb540b614a2f989e16e808b300ccb52e: Merge

[PATCH 1/1] .readthedocs.yml: update the requirements

2022-01-11 Thread Heinrich Schuchardt
Fix an error: This project needs at least Sphinx v2.4.4. Signed-off-by: Heinrich Schuchardt --- .readthedocs.yml| 15 ++- doc/sphinx/requirements.txt | 6 +++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 4

Re: [PATCH 4/4] .readthedocs.yml: Set our requirements file

2022-01-11 Thread Heinrich Schuchardt
On 1/12/22 01:14, Tom Rini wrote: We provide a requirements.txt file for doc building, but had not been configuring readthedocs to know where it is. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- .readthedocs.yml | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) diff -

Re: [PATCH v2 4/4] rockchip: sdhci: Add HS400 Enhanced Strobe support for RK3568

2022-01-11 Thread 赵仪峰
Hi Alper, The Synopsys DWC MSHC for RK3568 and RK3588 need config DWCMSHC_EMMC_CONTROL.bit0 = 1 (CARD_IS_EMMC) to enable Data Strobe pin for HS400 and HS400ES. reference code: #define DWCMSHC_EMMC_CONTROL 0x52c #define DWCMSHC_CARD_IS_EMMC BIT(0) /* set CARD_IS_EMMC bit to enable Data Strobe for

Re: [PATCH 2/4] CI, Dockerfile: Update to latest "focal" tag

2022-01-11 Thread Tom Rini
On Tue, Jan 11, 2022 at 10:55:08PM -0300, Fabio Estevam wrote: > On Tue, Jan 11, 2022 at 9:14 PM Tom Rini wrote: > > > > Bring us to the focial-20220105 tag and rebuild our images on top of > > s/focial/focal Whoops, thanks. -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/4] CI, Dockerfile: Update to latest "focal" tag

2022-01-11 Thread Fabio Estevam
On Tue, Jan 11, 2022 at 9:14 PM Tom Rini wrote: > > Bring us to the focial-20220105 tag and rebuild our images on top of s/focial/focal

[PATCH 3/4] binman: Have faked binaries live in the output directory.

2022-01-11 Thread Tom Rini
In general, and for Azure specifically, we need to have files created in the output directory and cannot assume a writable source directory. Rework the faked blob support to put the faked binary in to the output directory and then stop the test from deleting the now non-existent file. Cc: Heiko Th

[PATCH 4/4] .readthedocs.yml: Set our requirements file

2022-01-11 Thread Tom Rini
We provide a requirements.txt file for doc building, but had not been configuring readthedocs to know where it is. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- .readthedocs.yml | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.ym

[PATCH 2/4] CI, Dockerfile: Update to latest "focal" tag

2022-01-11 Thread Tom Rini
Bring us to the focial-20220105 tag and rebuild our images on top of this. Signed-off-by: Tom Rini --- .azure-pipelines.yml| 2 +- .gitlab-ci.yml | 2 +- tools/docker/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipe

[PATCH 1/4] ci: azure: Update to use stages

2022-01-11 Thread Tom Rini
Follow what we do in GitLab CI where we break the jobs up in to stages such that if earlier and often quicker sanity tests fail we don't run everything else. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.azure-pipelin

Re: [PATCH] mmc: dwmmc: return a proper error code when busy

2022-01-11 Thread Jaehoon Chung
Hi John, On 1/12/22 7:12 AM, Jaehoon Chung wrote: > Hi John, > > On 1/12/22 1:15 AM, John Keeping wrote: >> When failing to send a command because the hardware is busy, return >> EBUSY to indicate the cause instead of just -1. Is this patch same? https://patchwork.ozlabs.org/project/uboot/patch

Re: IMX8MM SD UHS support

2022-01-11 Thread Adam Ford
On Mon, Jan 25, 2021 at 4:43 AM Bough Chen wrote: > > Hi Tim and Andrey, > > I find the root cause, it is because during the 1.8v voltage switch process, > SD clock do not gate off/ on according to the SD spec. > For i.MX usdhc, if want to gate off the sd card clock, need to clear the bit > 8 of

[RESEND PATCH v3 01/12] mmc: fsl_esdhc_imx: make BLK as hard requirement of DM_MMC

2022-01-11 Thread Jaehoon Chung
From: Sean Anderson U-boot prefers DM_MMC + BLK for MMC. Now eSDHC driver has already support it, so let's force to use it. - Drop non-BLK support for DM_MMC introduced by below patch. 66fa035 mmc: fsl_esdhc: fix probe issue without CONFIG_BLK enabled - Support only DM_MMC + BLK (assuming BL

Re: [PATCH v2 2/2] doc: board: avoid ambiguous names for axy17lte

2022-01-11 Thread Jaehoon Chung
On 1/12/22 3:06 AM, Henrik Grimler wrote: > Model names are SM-A{3,5,7}20, just SM-{3,5,7}20 could also refer to > SM-J{3,5,7}20 or SM-T{3,5,7}20. > > Also fix a5y17lte->a7y17lte for SM-A720. > > Fixes: 3e2095e960b4 ("board: samsung: add support for Galaxy A series > of 2017 (a5y17lte)") > Signed

Re: [PATCH v2 1/2] board: samsung: fix menu entries for a{3,7}y17lte

2022-01-11 Thread Jaehoon Chung
On 1/12/22 3:06 AM, Henrik Grimler wrote: > a7y17lte is called SM-A720F, and a3y17lte SM-A320F. a3y17lte also > should select PINCTRL_EXYNOS78x0, not the (non-existent) > PINCTRL_EXYNOS7880, and it has an Exynos 7870 SoC and not 7880. > > Fixes: 3e2095e960b4 ("board: samsung: add support for Gala

Re: [PATCH] mmc: dw_mmc: Fixes timeout issue for FIFO mode

2022-01-11 Thread Jaehoon Chung
On 1/11/22 8:05 PM, gtXfined H. wrote: > Hi, > >> Which board did you test? When you do power-on, is it reproduced every > time? > > I am using Rockchip RK3399 based board - NanoPi R4S for this test. > It doesn't appear every time, but it should be encountered once about 20 > times. > I have run

Re: [PATCH] mmc: dwmmc: return a proper error code when busy

2022-01-11 Thread Jaehoon Chung
Hi John, On 1/12/22 1:15 AM, John Keeping wrote: > When failing to send a command because the hardware is busy, return > EBUSY to indicate the cause instead of just -1. > > Signed-off-by: John Keeping Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > drivers/mmc/dw_mmc.c | 2 +-

[PATCH v7 18/19] rockchip: tools: add rk3066 support to rkcommon.c

2022-01-11 Thread Johan Jonker
Add rk3066 support to rkcommon.c Signed-off-by: Johan Jonker --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 29f2676c..860785f8 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -123,6 +123,7 @@ struct spl_info { static st

[PATCH v7 06/19] rockchip: clk: add SCLK_UART[0..3] to clk_rk3066.c

2022-01-11 Thread Johan Jonker
Add SCLK_UART[0..3] to clk_rk3066.c in use by the ns16550.c driver. Signed-off-by: Johan Jonker --- drivers/clk/rockchip/clk_rk3066.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3066.c b/drivers/clk/rockchip/clk_rk3066.c index 2fc4d5c9..804aa43b 100644 ---

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Marek Vasut
On 1/11/22 22:14, Tom Rini wrote: The issues are: - How do we handle non-kwbimage platforms? Especially since the general expectation is that mkimage will work for pretty much anything. And not all distros / distro builders (OE) use tools-only_defconfig to configure their build of mkim

[PATCH v7 19/19] doc: rockchip: add rk3066 Rikomagic MK808

2022-01-11 Thread Johan Jonker
Add rk3066 Rikomagic MK808 to the list of mainline supported Rockchip boards. Signed-off-by: Johan Jonker --- doc/board/rockchip/rockchip.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index 144cb98e..a4fca88b 100644 --

[PATCH v7 16/19] rockchip: rk3066: add Rikomagic MK808 board

2022-01-11 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/rk3066/Kconfig | 9 + board/rikomagic/mk808/Kconfig | 15 +++ boar

[PATCH v7 15/19] rockchip: rk3066: add core support

2022-01-11 Thread Johan Jonker
Add the core architecture code for the rk3066. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/Kconfig| 23 arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/rk3066/Kconfig | 30 ++ arch/arm/mach-rockchip/rk3066/Makefile

[PATCH v7 17/19] rockchip: rk3066: add mk808_defconfig

2022-01-11 Thread Johan Jonker
This commit adds the default configuration file and relevant description for a MK808 board. Signed-off-by: Johan Jonker --- configs/mk808_defconfig | 101 1 file changed, 101 insertions(+) create mode 100644 configs/mk808_defconfig diff --git a/configs/

[PATCH v7 14/19] rockchip: rk3066: add rk3066_common.h include

2022-01-11 Thread Johan Jonker
Add rk3066_common.h include. Signed-off-by: Johan Jonker --- include/configs/mk808.h | 9 ++ include/configs/rk3066_common.h | 56 + 2 files changed, 65 insertions(+) create mode 100644 include/configs/mk808.h create mode 100644 include/configs/rk30

[PATCH v7 13/19] rockchip: rk3066: add include

2022-01-11 Thread Johan Jonker
Add include for rk3066. Signed-off-by: Johan Jonker --- arch/arm/include/asm/arch-rk3066/boot0.h | 8 arch/arm/include/asm/arch-rk3066/gpio.h | 8 arch/arm/include/asm/arch-rk3066/timer.h | 6 ++ 3 files changed, 22 insertions(+) create mode 100644 arch/arm/include/asm/ar

[PATCH v7 09/19] rockchip: rk3066: add sdram driver

2022-01-11 Thread Johan Jonker
From: Paweł Jarosz Add rockchip rk3066 sdram driver Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- Changed V7: restyle rename TEST_PATTERN changed function prefix changed #if where possible restyle U_BOOT_DRIVER structure remove rk3066_dmc_of_to_plat because dmc DT d

[PATCH v7 11/19] arm: dts: rockchip: add rk3066a.dtsi

2022-01-11 Thread Johan Jonker
In the Linux DT the file rk3xxx.dtsi is shared between rk3066 and rk3188. Add rk3066a.dtsi. Move U-boot specific things in a rk3066a-u-boot.dtsi file. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3066a-u-boot.dtsi | 3 + arch/arm/dts/rk3066a.dtsi| 899 +++

[PATCH v7 12/19] arm: dts: rockchip: add rk3066a-mk808.dts

2022-01-11 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Add rk3066a-mk808.dts. Move U-boot specific things in a rk3066a-mk808-u-boot.dtsi file. Signed-off-by: Johan Jonker --- arch/arm/dts/Makefile

[PATCH v7 10/19] arm: dts: rockchip: fix rk3xxx-u-boot.dtsi

2022-01-11 Thread Johan Jonker
The file rk3xxx-u-boot.dtsi was original only for rk3188 and SPL. With rk3066 added some nodes are also needed in TPL, so change them to u-boot,dm-pre-reloc Signed-off-by: Johan Jonker --- arch/arm/dts/rk3xxx-u-boot.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH v7 07/19] rockchip: rk3066: fix assigned-clocks rk3066_clk_set_rate

2022-01-11 Thread Johan Jonker
The rk3066 cru node has a number of assigned-clocks properties that call the .set_rate() function. Add them to the list so that they return a 0 instead of -ENOENT. Signed-off-by: Johan Jonker --- drivers/clk/rockchip/clk_rk3066.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drive

[PATCH v7 08/19] rockchip: rk3066: add rk3066 pinctrl driver

2022-01-11 Thread Johan Jonker
From: Paweł Jarosz Add driver supporting pin multiplexing on rk3066 platform. Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- Changed V7: restyle changed function prefix. restyle U_BOOT_DRIVER structure use OF_REAL use EOPNOTSUPP --- drivers/pinctrl/rockchip/Makefile

[PATCH v7 04/19] rockchip: rk3066: add clock driver for rk3066 soc

2022-01-11 Thread Johan Jonker
From: Paweł Jarosz Add clock driver for rk3066 platform. Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- Changed V7: changed function prefix changed #if where possible restyle U_BOOT_DRIVER structure --- .../include/asm/arch-rockchip/cru_rk3066.h| 203 + drivers/clk

[PATCH v7 05/19] rockchip: clk: add SCLK_TIMER[0..2] to clk_rk3066.c

2022-01-11 Thread Johan Jonker
Add SCLK_TIMER[0..2] to clk_rk3066 in use by the dw-apb-timer.c driver. Signed-off-by: Johan Jonker --- drivers/clk/rockchip/clk_rk3066.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3066.c b/drivers/clk/rockchip/clk_rk3066.c index 3b7de51c..2fc4d5c9 100644

[PATCH v7 01/19] rockchip: rk3066-power: sync power domain dt-binding header from Linux

2022-01-11 Thread Johan Jonker
In order to update the DT for rk3066 sync the power domain dt-binding header. This is the state as of v5.12 in Linux. Signed-off-by: Johan Jonker --- include/dt-bindings/power/rk3066-power.h | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 include/dt-bindings/pow

[PATCH v7 03/19] rockchip: include: add GRF_GPIO3B_IOMUX to grf_rk3066.h

2022-01-11 Thread Johan Jonker
In order to use rk3066 sdmmc and SPL OF_PLATDATA the pinctrl must be set without driver. Add the register defines for it to grf_rk3066.h Signed-off-by: Johan Jonker --- .../include/asm/arch-rockchip/grf_rk3066.h| 38 +++ 1 file changed, 38 insertions(+) diff --git a/arch/arm

[PATCH v7 02/19] rockchip: rk3066: add grf header file

2022-01-11 Thread Johan Jonker
From: Paweł Jarosz grf is needed by various drivers for rk3066 soc. Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- .../include/asm/arch-rockchip/grf_rk3066.h| 211 ++ 1 file changed, 211 insertions(+) create mode 100644 arch/arm/include/asm/arch-rockchip/grf_

[PATCH v7 00/19] Add Rikomagic MK808 board

2022-01-11 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. === Boot procedure flow for a Rockchip rk3066 SoC: 1.Read 2K SDRAM initialization image code to internal SRAM 2.Run image code to do SDRAM initializat

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Tom Rini
On Tue, Jan 11, 2022 at 09:44:10PM +0100, Pali Rohár wrote: > On Tuesday 11 January 2022 14:22:43 Alex G. wrote: > > On 1/11/22 13:09, Tom Rini wrote: > > > On Tue, Jan 11, 2022 at 07:58:05PM +0100, Marek Vasut wrote: > > > > On 1/11/22 17:16, Tom Rini wrote: > > > > > On Tue, Jan 11, 2022 at 04:36

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Pali Rohár
On Tuesday 11 January 2022 14:22:43 Alex G. wrote: > On 1/11/22 13:09, Tom Rini wrote: > > On Tue, Jan 11, 2022 at 07:58:05PM +0100, Marek Vasut wrote: > > > On 1/11/22 17:16, Tom Rini wrote: > > > > On Tue, Jan 11, 2022 at 04:36:34PM +0100, Pali Rohár wrote: > > > > > On Tuesday 11 January 2022 16

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Alex G.
On 1/11/22 13:09, Tom Rini wrote: On Tue, Jan 11, 2022 at 07:58:05PM +0100, Marek Vasut wrote: On 1/11/22 17:16, Tom Rini wrote: On Tue, Jan 11, 2022 at 04:36:34PM +0100, Pali Rohár wrote: On Tuesday 11 January 2022 16:31:20 Marek Vasut wrote: The kwbimage has hard dependency on OpenSSL, d

Re: [RFC PATCH v3 1/5] imx8m: drop env_get_location for imx8mn and imx8mp

2022-01-11 Thread Tommaso Merciai
On Tue, Jan 11, 2022 at 09:35:54AM +, Teresa Remmet wrote: > Hello Tommaso, > > Am Samstag, dem 08.01.2022 um 20:08 +0100 schrieb Tommaso Merciai: > > On Tue, Jan 04, 2022 at 11:04:10AM +, Teresa Remmet wrote: > > > Hello Tommaso, > > > > > > Am Samstag, dem 25.12.2021 um 21:25 +0100 schr

Re: [PATCH] mkimage: fix segfault on MacOS arm64

2022-01-11 Thread Jessica Clarke
On 2 Dec 2021, at 22:16, Sergey V. Lobanov wrote: > > mkimage segfaults due ASLR mechasim on MacOS arm64 > > It is required to use _dyld_get_image_vmaddr_slide() > to prevent segfault on MacOS arm64 > > This patch ased on the discussion > https://github.com/u-boot/u-boot/commit/3b142045e8a7f0ab

Re: [PATCH 1/1] sandbox: compatibility of os_get_filesize()

2022-01-11 Thread Milan P . Stanić
On Tue, 2022-01-11 at 01:50, Heinrich Schuchardt wrote: > U-Boot define loff_t as long long. But the header > /usr/include/linux/types.h may not define it. > This has lead to a build error on Alpine Linux. > > So let's use long long instead of loff_t for > the size parameter of function os_get_fil

Re: imx: imx8mm: imx8mm-kontron-n801x-s: does not start work

2022-01-11 Thread Adam Ford
On Tue, Jan 11, 2022 at 1:18 AM Heiko Thiery wrote: > > Hi all, > > I wanted to test the newly introduced kontron-sl-mx8mm_defconfig but > it does not work. > > I already found two converted config options that are missing in that > defconfig: > > +CONFIG_SPL_MMC=y > +CONFIG_SPL_SERIAL=y > > With

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Tom Rini
On Tue, Jan 11, 2022 at 07:58:05PM +0100, Marek Vasut wrote: > On 1/11/22 17:16, Tom Rini wrote: > > On Tue, Jan 11, 2022 at 04:36:34PM +0100, Pali Rohár wrote: > > > On Tuesday 11 January 2022 16:31:20 Marek Vasut wrote: > > > > The kwbimage has hard dependency on OpenSSL, do not build it > > > >

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Marek Vasut
On 1/11/22 17:16, Tom Rini wrote: On Tue, Jan 11, 2022 at 04:36:34PM +0100, Pali Rohár wrote: On Tuesday 11 January 2022 16:31:20 Marek Vasut wrote: The kwbimage has hard dependency on OpenSSL, do not build it in case TOOLS_LIBCRYPTO is disabled. This patch does not work as kwbimage is requir

Re: [PATCH v2 3/3] misc: atsha204a: fix i2c address readout from DTS

2022-01-11 Thread Marek Behún
On Tue, 11 Jan 2022 19:05:31 +0100 Adrian Fiergolski wrote: > This patch replaces use fdtdec_get_addr with simpler dev_read_addr(). > fdtdec_get_addr doesn't work properly on ZynqMP-based (64bit) system. Although > not confirmed, it could be related to the fact, that quoting the > documentation,

Re: [PATCH v2 2/3] misc: atsha204a: add delay after sending the message

2022-01-11 Thread Marek Behún
On Tue, 11 Jan 2022 19:05:30 +0100 Adrian Fiergolski wrote: > Once request is sent, and before receiving a response, the delay is required. > This patch fixes missing delay for before first response try. > > Signed-off-by: Adrian Fiergolski Reviewed-by: Marek Behún

Re: [PATCH v2 1/3] misc: atsha204a: return timeout from wakeup function

2022-01-11 Thread Marek Behún
On Tue, 11 Jan 2022 19:05:29 +0100 Adrian Fiergolski wrote: > If the maximum number of wake-up attempts is exceeded, return -ETIMEDOUT. > > Signed-off-by: Adrian Fiergolski Reviewed-by: Marek Behún

[PATCH v3] net: fsl: Fix busy flag polling register

2022-01-11 Thread Markus Koch
NXP's mEMAC reference manual, Chapter 6.5.5 "MDIO Ethernet Management Interface usage", specifies to poll the BSY (0) bit in the CFG/STAT register to wait until a transaction has finished, not bit 31 in the data register. In the Linux kernel, this has already been fixed in commit 26eee0210ad7 ("ne

Re: [PATCH 1/1] sandbox: compatibility of os_get_filesize()

2022-01-11 Thread Simon Glass
On Mon, 10 Jan 2022 at 17:50, Heinrich Schuchardt wrote: > > U-Boot define loff_t as long long. But the header > /usr/include/linux/types.h may not define it. > This has lead to a build error on Alpine Linux. > > So let's use long long instead of loff_t for > the size parameter of function os_get_

[PATCH v2 2/2] doc: board: avoid ambiguous names for axy17lte

2022-01-11 Thread Henrik Grimler
Model names are SM-A{3,5,7}20, just SM-{3,5,7}20 could also refer to SM-J{3,5,7}20 or SM-T{3,5,7}20. Also fix a5y17lte->a7y17lte for SM-A720. Fixes: 3e2095e960b4 ("board: samsung: add support for Galaxy A series of 2017 (a5y17lte)") Signed-off-by: Henrik Grimler Reviewed-by: Dzmitry Sankouski -

[PATCH v2 1/2] board: samsung: fix menu entries for a{3,7}y17lte

2022-01-11 Thread Henrik Grimler
a7y17lte is called SM-A720F, and a3y17lte SM-A320F. a3y17lte also should select PINCTRL_EXYNOS78x0, not the (non-existent) PINCTRL_EXYNOS7880, and it has an Exynos 7870 SoC and not 7880. Fixes: 3e2095e960b4 ("board: samsung: add support for Galaxy A series of 2017 (a5y17lte)") Signed-off-by: Henr

[PATCH v2 3/3] misc: atsha204a: fix i2c address readout from DTS

2022-01-11 Thread Adrian Fiergolski
This patch replaces use fdtdec_get_addr with simpler dev_read_addr(). fdtdec_get_addr doesn't work properly on ZynqMP-based (64bit) system. Although not confirmed, it could be related to the fact, that quoting the documentation, "This variant hard-codes the number of cells used to represent the add

[PATCH v2 2/3] misc: atsha204a: add delay after sending the message

2022-01-11 Thread Adrian Fiergolski
Once request is sent, and before receiving a response, the delay is required. This patch fixes missing delay for before first response try. Signed-off-by: Adrian Fiergolski --- drivers/misc/atsha204a-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/atsha204a

[PATCH v2 1/3] misc: atsha204a: return timeout from wakeup function

2022-01-11 Thread Adrian Fiergolski
If the maximum number of wake-up attempts is exceeded, return -ETIMEDOUT. Signed-off-by: Adrian Fiergolski --- drivers/misc/atsha204a-i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index 715dabb279..9d069f

[PATCH v2 0/3] misc: atsha204a: bug fixes

2022-01-11 Thread Adrian Fiergolski
Series of patches fixing atsha204a driver. Partially inspired by Enclustra's repo [1]. [1] https://github.com/enclustra-bsp/xilinx-uboot Adrian Fiergolski (3): misc: atsha204a: return timeout from wakeup function misc: atsha204a: add delay after sending the message misc: atsha204a: fix i2c

[PATCH 2/2 v2] board: starqltechn: get board usable - fix defconfig and strip config options

2022-01-11 Thread Dzmitry Sankouski
- add FIT image support - increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions - add linux kernel image header Uart driver causes hang, when u-boot is used in android boot image instead of linux. Temporary disable console driver, until investigated and fixed. Signed-off-by: Dz

[PATCH 1/2 v2] soc: sdm845: implement ABL info collecting, add bootcommand and usage doc

2022-01-11 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image, and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT - ABL

[PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader

2022-01-11 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image(ABL), and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT

Re: [PATCH 3/3] misc: atsha204a: fix i2c address readout from DTS

2022-01-11 Thread Adrian Fiergolski
Hi Marek, Thank you for your review. On 21.12.2021 18:52, Marek Behún wrote: On Tue, 21 Dec 2021 17:17:22 +0100 Adrian Fiergolski wrote: This patch replaces use fdtdec_get_addr with recommended fdtdec_get_addr_size_auto_parent. And why is that required? I didn't debug why exactly, but it d

Re: [PATCH 1/2] board: samsung: fix menu entries for a{3,7}y17lte

2022-01-11 Thread Dzmitry Sankouski
Reviewed-by: Dzmitry Sankouski пт, 7 янв. 2022 г. в 22:14, Henrik Grimler : > a7y17lte is called SM-A720F, and a3y17lte SM-A320F. a3y17lte also > should select PINCTRL_EXYNOS78x0, not the (non-existent) > PINCTRL_EXYNOS7880, and it has an Exynos 7870 SoC and not 7880. > > Fixes: 3e2095e960b4 ("

[PATCH] cmd: bcb: fix bcb struct alignment issue

2022-01-11 Thread Gary Bisson
Without this patch the bcb struct could be located at an odd address which resulted in data not being copied to the buffer. Here was the repro steps (from Mattijs): => mmc dev 1 => bcb load 1 misc => bcb dump command : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0010: 00 00 00 00 0

[PATCH] misc: mark write buffer const

2022-01-11 Thread John Keeping
The write operation in misc_ops already takes a "const void *" buffer, but misc_write() takes a mutable "void *". There's no reason for this, so make misc_write() consistent with the standard write() prototype. Signed-off-by: John Keeping --- drivers/misc/misc-uclass.c | 2 +- include/misc.h

Re: [PATCH V2] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-01-11 Thread Adam Ford
On Tue, Jan 11, 2022 at 9:31 AM Michael Walle wrote: > > Hi, > > Am 2022-01-11 15:20, schrieb Adam Ford: > > On Tue, Jan 4, 2022 at 2:32 AM Michael Walle wrote: > >> > The imx8mm and imx8mn appear compatible with imx7d-usb > >> > flags in the OTG driver. If the dr_mode is defined as > >> > host

Re: [PATCH 1/1] configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

2022-01-11 Thread Fabio Estevam
On Tue, Jan 11, 2022 at 1:38 PM Ying-Chun Liu wrote: > > From: "Ying-Chun Liu (PaulLiu)" > > We changed to single flash.bin now. So dfu_alt_info should be modified > to reflect this change. > > Signed-off-by: Ying-Chun Liu (PaulLiu) Reviewed-by: Fabio Estevam

[PATCH 1/1] configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

2022-01-11 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" We changed to single flash.bin now. So dfu_alt_info should be modified to reflect this change. Signed-off-by: Ying-Chun Liu (PaulLiu) --- include/configs/imx8mm-cl-iot-gate.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/configs/i

[PATCH 0/1] configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

2022-01-11 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" imx8mm generate a single bootable flash.bin again. Previous it is flash.bin and u-boot.itb. So we need to modify dfu_alt_info for single flash.bin. Ying-Chun Liu (PaulLiu) (1): configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin include/confi

Re: [PATCH 1/1] doc: Building on Alpine Linux

2022-01-11 Thread Sean Anderson
On 1/10/22 7:46 PM, Heinrich Schuchardt wrote: Describe the required packages for building U-Boot on Alpine Linux Signed-off-by: Heinrich Schuchardt --- doc/build/gcc.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index cdd7970032

[PATCH 3/3] sandox: test: activate tests for the command LOG

2022-01-11 Thread Patrick Delaunay
Activate the CONFIG_CMD_LOG in sandbox to execute the LOG tests by default and correct the test log format after 72fa1ad8d9 ("log: Allow padding of the function name"). Signed-off-by: Patrick Delaunay --- configs/sandbox_defconfig | 2 +- test/py/tests/test_log.py | 8 2 files changed,

[PATCH 2/3] dm: compare full name in uclass_get_by_name

2022-01-11 Thread Patrick Delaunay
Change uclass_get_by_name to use a strict string compare function "strcmp" with the parameter 'name'. This patch avoids issues when strlen(name)name) as the function uclass_get_by_name() no more use uclass_get_by_name_len(), which limit the check with "strncmp" and length of name. This problem is

[PATCH 1/3] dm: fix up documentation for uclass_get_by_name_len

2022-01-11 Thread Patrick Delaunay
Fix up the comment for uclass_get_by_name_len() to avoid confusion. Fixes: 4b030177b660 ("dm: core: Allow finding children / uclasses by partial name") Signed-off-by: Patrick Delaunay --- include/dm/uclass.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dm/ucl

[PATCH 0/3] sandox: test: activate tests for the command LOG

2022-01-11 Thread Patrick Delaunay
This patches activate the command LOG and the associated tests in sandbox with CONFIG_CMD_LOG=y and solve the associated issues when these tests are executed. Patrick Patrick Delaunay (3): dm: fix up documentation for uclass_get_by_name_len dm: compare full name in uclass_get_by_name san

Re: [PATCH 2/2] board: starqltechn: get board usable - fix defconfig and strip config options

2022-01-11 Thread Tom Rini
On Tue, Jan 11, 2022 at 07:01:59PM +0300, Dzmitry Sankouski wrote: > - add FIT image support > - increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions > - add linux kernel image header > > Uart driver causes hang, when u-boot is used in android boot image instead > of linux. Te

Re: CONFIG_SYS_SPL_ARGS_ADDR

2022-01-11 Thread Tom Rini
On Sat, Jan 01, 2022 at 08:00:45PM +0100, Sven Schwermer wrote: > Hi, > > I'm looking into booting Linux FIT images from SPL. In board_init_r > (common/spl/spl.c), the boot argument is set to CONFIG_SYS_SPL_ARGS_ADDR if > defined. When booting a FIT image including a DTB, shouldn't this > automat

Re: [RFC] nvme: Split out PCI support

2022-01-11 Thread Tom Rini
On Fri, Dec 31, 2021 at 09:00:20PM +0100, Mark Kettenis wrote: > Apple SoCs have an integrated NVMe controller that isn't connected > over a PCIe bus. In preparation for adding support for this NVMe > controller, split out the PCI support into its own file. This file > is selected through a new CO

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Tom Rini
On Tue, Jan 11, 2022 at 04:36:34PM +0100, Pali Rohár wrote: > On Tuesday 11 January 2022 16:31:20 Marek Vasut wrote: > > The kwbimage has hard dependency on OpenSSL, do not build it > > in case TOOLS_LIBCRYPTO is disabled. > > This patch does not work as kwbimage is required for 32-bit Armada > pl

[PATCH] mmc: dwmmc: return a proper error code when busy

2022-01-11 Thread John Keeping
When failing to send a command because the hardware is busy, return EBUSY to indicate the cause instead of just -1. Signed-off-by: John Keeping --- drivers/mmc/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index a949dad57

Re: [RESEND PATCH v3 01/12] mmc: fsl_esdhc_imx: make BLK as hard requirement of DM_MMC

2022-01-11 Thread Sean Anderson
On 1/10/22 8:14 PM, Jaehoon Chung wrote: Dear Sean, On 1/5/22 1:16 AM, Sean Anderson wrote: [ fsl_esdhc commit 41dec2fe99512e941261594f522b2e7d485c314b ] U-boot prefers DM_MMC + BLK for MMC. Now eSDHC driver has already support it, so let's force to use it. - Drop non-BLK support for DM_MM

[PATCH 2/2] board: starqltechn: get board usable - fix defconfig and strip config options

2022-01-11 Thread Dzmitry Sankouski
- add FIT image support - increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions - add linux kernel image header Uart driver causes hang, when u-boot is used in android boot image instead of linux. Temporary disable console driver, until investigated and fixed. Signed-off-by: Dz

[PATCH 1/2] soc: sdm845: implement ABL info collecting, add bootcommand and usage doc

2022-01-11 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image, and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT - ABL

[PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader

2022-01-11 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image(ABL), and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT

Re: [PATCH] genboardscfg: limit to 240 jobs

2022-01-11 Thread Heinrich Schuchardt
On 1/11/22 16:34, Andre Przywara wrote: When genboardscfg.py is run on machines with 255 or more cores, the process will consume more than 1024 file descriptors, which is a common standard ulimit for user processes. As a consequence it will fail with a lenghty Python trace, with the almost hidden

[PATCH] board: stm32mp1: solve compilation issue when ENV_IS_IN_MMC is deactivated

2022-01-11 Thread Patrick Delaunay
Solve compilation issue on undefined CONFIG_SYS_MMC_ENV_DEV when CONFIG_ENV_IS_IN_MMC is deactivated on STMicroelectronics boards defconfig Fixes: 9f97193616f1 ("board: stm32mp1: use CONFIG_SYS_MMC_ENV_DEV when available") Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 6 ++

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Pali Rohár
On Tuesday 11 January 2022 16:31:20 Marek Vasut wrote: > The kwbimage has hard dependency on OpenSSL, do not build it > in case TOOLS_LIBCRYPTO is disabled. This patch does not work as kwbimage is required for 32-bit Armada platforms. So kwbimage.o cannot be disabled on these platforms. There is

[PATCH] genboardscfg: limit to 240 jobs

2022-01-11 Thread Andre Przywara
When genboardscfg.py is run on machines with 255 or more cores, the process will consume more than 1024 file descriptors, which is a common standard ulimit for user processes. As a consequence it will fail with a lenghty Python trace, with the almost hidden message: OSError: [Errno 24] Too many ope

[PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Marek Vasut
The kwbimage has hard dependency on OpenSSL, do not build it in case TOOLS_LIBCRYPTO is disabled. Signed-off-by: Marek Vasut Cc: Heinrich Schuchardt Cc: Marek Behún Cc: Pali Rohár Cc: Stefan Roese Cc: Tom Rini --- tools/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) dif

Re: [PATCH V2] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-01-11 Thread Michael Walle
Hi, Am 2022-01-11 15:20, schrieb Adam Ford: On Tue, Jan 4, 2022 at 2:32 AM Michael Walle wrote: > The imx8mm and imx8mn appear compatible with imx7d-usb > flags in the OTG driver. If the dr_mode is defined as > host or peripheral, the device appears to operate correctly, > however the auto ho

[PATCH 1/1] cmd: part: list all 128 GPT partitions

2022-01-11 Thread Heinrich Schuchardt
A GPT partition table typically has 128 entries. If a partition table contains a partition 128 'part list' should be able to list it. Signed-off-by: Heinrich Schuchardt --- cmd/part.c | 4 ++-- include/part.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/part.c b

[PATCH 1/1] stm32mp: fix board_get_alt_info_mmc()

2022-01-11 Thread Heinrich Schuchardt
MAX_SEARCH_PARTITIONS is the highest possible partition number. Do not skip the last partition in board_get_alt_info_mmc(). Signed-off-by: Heinrich Schuchardt --- board/st/common/stm32mp_dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/st/common/stm32mp_dfu.c b/boa

[PATCH 1/1] disk: gpt: print all partitions

2022-01-11 Thread Heinrich Schuchardt
For GPT partition tables the 'part list' command stops at the first invalid partition number. But Ubuntu has images with partitions number 1, 12, 13, 14, 15 In this case only partition 1 was listed by 'part list'. Fixes: 38a3021edc54 ("disk: part_efi: remove indent level from loop") Reported

RE: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructions

2022-01-11 Thread ZHIZHIKIN Andrey
Hello Adam, > -Original Message- > From: U-Boot On Behalf Of Adam Ford > Sent: Tuesday, January 11, 2022 2:51 PM > To: u-boot@lists.denx.de > Cc: sba...@denx.de; tr...@konsulko.com; af...@beaconembedded.com; Adam Ford > > Subject: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instruc

Re: [PATCH] arm: rmobile: rzg2_beacon: Migrate reset to SYSRESET_PSCI

2022-01-11 Thread Adam Ford
On Fri, Dec 17, 2021 at 1:48 PM Adam Ford wrote: > > Instead of a custom cpu_reset function, use the sysreset_psci > instead to reduce redundant code clutter. > > Signed-off-by: Adam Ford Marek, Gentle ping on this one. > > diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c > b/board/beaco

Re: [PATCH V2] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-01-11 Thread Adam Ford
On Tue, Jan 4, 2022 at 2:32 AM Michael Walle wrote: > > Hi, > > > The imx8mm and imx8mn appear compatible with imx7d-usb > > flags in the OTG driver. If the dr_mode is defined as > > host or peripheral, the device appears to operate correctly, > > however the auto host/peripheral detection result

  1   2   >