[PATCH 1/1] sandbox: raise SANDBOX_RAM_SIZE_MB default to 256

2022-04-29 Thread Heinrich Schuchardt
The UEFI Self Certification Test (SCT) cannot run on 128 MiB. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig index f83282d9d5..de53b7d66f 100644 ---

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Samuel Holland
On 4/29/22 7:08 PM, Andre Przywara wrote: > On Fri, 29 Apr 2022 14:14:19 -0400 > Tom Rini wrote: > > Hi, > >> On Fri, Apr 29, 2022 at 06:05:03PM +0200, Mark Kettenis wrote: Date: Fri, 29 Apr 2022 11:31:00 -0400 From: Tom Rini On Fri, Apr 29, 2022 at 04:25:51PM +0100, Andre

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Andre Przywara
On Fri, 29 Apr 2022 14:14:19 -0400 Tom Rini wrote: Hi, > On Fri, Apr 29, 2022 at 06:05:03PM +0200, Mark Kettenis wrote: > > > Date: Fri, 29 Apr 2022 11:31:00 -0400 > > > From: Tom Rini > > > > > > On Fri, Apr 29, 2022 at 04:25:51PM +0100, Andre Przywara wrote: > > > > On Fri, 29 Apr 2022

[PATCH v1 4/4] arm: dts: rockchip: remove usb-phy fallback string for rk3188

2022-04-29 Thread Johan Jonker
With the conversion of rockchip-usb-phy.yaml a long time used fallback string for rk3066a/rk3188 was added. The linux driver doesn't do much with the GRF phy address range, however the u-boot driver rockchip_usb2_phy.c does. The bits in GRF_UOC0_CON2 for rk3066a/rk3188 and rk3288 for example don't

[PATCH v1 3/4] rockchip: board: change condition board_usb_init() in function

2022-04-29 Thread Johan Jonker
Change define condition in board_usb_init() function to allow rk3066/rk3188 to use the USB PHY driver. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/board.c

[PATCH v1 2/4] rockchip: usb: phy: add rk3066/rk3188 support

2022-04-29 Thread Johan Jonker
Add rk3066a/rk3188 support to rockchip_usb2_phy.c They don't have completely identical usb phy registers, so separate comapatible strings and data. Signed-off-by: Johan Jonker --- drivers/usb/phy/rockchip_usb2_phy.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v1 1/4] rockchip: usb: gadget: add rk3066 product id

2022-04-29 Thread Johan Jonker
From: Paweł Jarosz Product id of rk3066 usb otg is 0x300a. Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index d81a9c5a..8c6cf474 100644 ---

[PATCH] board: gateworks: gw_ventana: remove obsolete file

2022-04-29 Thread Tim Harvey
commit 61cf22505339 ("board: gateworks: gw_ventana: use comomn GSC driver") moved to the common GSC driver and moved remaining board-specific functions to eeprom.c. The functions in gsc.c are no longer used and it was removed from the Makefile but the file itself was not removed. Remove it now.

Re: [PATCH] misc: fs_loader: Fix compile warnings when CONFIG_CMD_UBIFS is enabled

2022-04-29 Thread Sean Anderson
On 4/29/22 10:36 AM, Pali Rohár wrote: > drivers/misc/fs_loader.c: In function ‘mount_ubifs’: > drivers/misc/fs_loader.c:46:12: warning: implicit declaration of function > ‘ubi_part’ [-Wimplicit-function-declaration] > int ret = ubi_part(mtdpart, NULL); > ^~~~ >

[PATCH] board: gateworks: gw_ventana: add support for GPY111 PHY

2022-04-29 Thread Tim Harvey
The MaxLinear GPY111 PHY is being used on some boards due to part availability. Add support for this PHY which requires a longer reset post-delay and RGMII delay configuration. Signed-off-by: Tim Harvey --- arch/arm/dts/imx6qdl-gw51xx.dtsi| 2 +- arch/arm/dts/imx6qdl-gw52xx.dtsi

[PATCH 1/1] doc: fix typos in bootmenu.rst

2022-04-29 Thread Heinrich Schuchardt
%s/cammand/command/ %s/sequencies/sequences/ Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/bootmenu.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/usage/cmd/bootmenu.rst b/doc/usage/cmd/bootmenu.rst index 1016ac8ceb..9430f8c9aa 100644 ---

Re: [PATCH v5 08/17] bootmenu: update bootmenu_entry structure

2022-04-29 Thread Heinrich Schuchardt
On 4/28/22 10:09, Masahisa Kojima wrote: This is a preparation for succeeding addition of uefi boot and distro boot menu entries into bootmenu. The bootmenu_entry title is updated to u16 string because uefi use u16 string. This commit also factors out the function to prepare the entries

Re: [PATCH v5 07/17] bootmenu: flush input buffer before waiting user key input

2022-04-29 Thread Heinrich Schuchardt
On 4/28/22 10:09, Masahisa Kojima wrote: Before waiting user key input to stop autoboot, the input buffer must be flushed. I am not sure if this is desirable. The default time for autoboot stopping is just 2 seconds. So it is nice to be able to type ahead. On the other hand I have seen

Re: [PATCH v3 08/13] misc: Add support for nvmem cells

2022-04-29 Thread Sean Anderson
Hi Simon, On 4/25/22 11:24 AM, Sean Anderson wrote: > > > On 4/25/22 1:48 AM, Simon Glass wrote: >> Hi Sean, >> >> On Mon, 18 Apr 2022 at 13:37, Sean Anderson wrote: >>> >>> This adds support for "nvmem cells" as seen in Linux. The nvmem device >>> class in Linux is used for various assorted

Re: [PATCH v5 04/17] menu: menu_get_choice() return -ENOENT if menu item is empty

2022-04-29 Thread Heinrich Schuchardt
On 4/28/22 10:09, Masahisa Kojima wrote: menu_get_choice() needs to handle the case that menu item is empty. In this case, menu_get_choice() returns -ENOENT. Signed-off-by: Masahisa Kojima --- Newly created in v5 common/menu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH] board: gateworks: venice: enable SPL_DM_SERIAL

2022-04-29 Thread Tim Harvey
The uart2 and its pinmux are already marked with u-boot,dm-spl but we need to move the call to preloader_console_init() after spl_early_init() to avoid a board hang as dm can't be used until after spl_early_init() due to the uart driver not enabling the uart clock. Remove the manual config of the

Re: [PATCH v5 01/17] lib/charset: add u16_strlcat() function

2022-04-29 Thread Heinrich Schuchardt
On 4/28/22 10:09, Masahisa Kojima wrote: Provide u16 string version of strlcat(). Signed-off-by: Masahisa Kojima --- Changes in v5: - change 3rd argument from size to count, it indicates the maximum u16 string count that dest buffer can have. Other u16_strXXX functions in U-Boot use

[PATCH] efi_loader: don't call log with __func__ as parameter

2022-04-29 Thread Heinrich Schuchardt
The log functions print file name, line number, and function name if selected via the log command or customizing. Don't print the function name twice. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_bootmgr.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH] mmc: fsl_esdhc: Fix 'Internal clock never stabilised.' error

2022-04-29 Thread Pali Rohár
Only newer eSDHC controllers set PRSSTAT_SDSTB flag. So do not wait until flag PRSSTAT_SDSTB is set on old pre-2.2 controllers. Instead sleep for fixed amount of time like it was before commit 6f883e501b65 ("mmc: fsl_esdhc: Add emmc hs200 support"). This change fixes error 'Internal clock never

Re: Error fsl_esdhc: Internal clock never stabilised.

2022-04-29 Thread Pali Rohár
On Friday 29 April 2022 13:50:31 Sinan Akman wrote: > >   Hi Pali > > On 2022-04-29 1:35 p.m., Pali Rohár wrote: > > Hello! > > > > U-Boot prints error "fsl_esdhc: Internal clock never stabilised." on > > P2020 everytime when trying to access SD card. It happens with every > > tested SD card.

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Mark Kettenis
> Date: Fri, 29 Apr 2022 14:14:19 -0400 > From: Tom Rini > > On Fri, Apr 29, 2022 at 06:05:03PM +0200, Mark Kettenis wrote: > > > Date: Fri, 29 Apr 2022 11:31:00 -0400 > > > From: Tom Rini > > > > > > On Fri, Apr 29, 2022 at 04:25:51PM +0100, Andre Przywara wrote: > > > > On Fri, 29 Apr 2022

[PATCH] configs: remove FEC_QUIRK_ENET_MAC from imx8m configs

2022-04-29 Thread Tim Harvey
FEC_QUIRK_ENET_MAC is defined in the imx-regs.h include file and thus does not need to be defined in the various board config includes. Signed-off-by: Tim Harvey --- include/configs/cgtqmx8.h | 1 - include/configs/imx8mm-cl-iot-gate.h| 1 -

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Tom Rini
On Fri, Apr 29, 2022 at 06:05:03PM +0200, Mark Kettenis wrote: > > Date: Fri, 29 Apr 2022 11:31:00 -0400 > > From: Tom Rini > > > > On Fri, Apr 29, 2022 at 04:25:51PM +0100, Andre Przywara wrote: > > > On Fri, 29 Apr 2022 10:57:10 -0400 > > > Tom Rini wrote: > > > > > > Hi, > > > > > > > On

Re: [PATCH] configs: imx8mp_venice: add FEC_QUIRK_ENET_MAC

2022-04-29 Thread Tim Harvey
On Fri, Apr 29, 2022 at 10:08 AM Tim Harvey wrote: > > The IMX8MP SoC FEC needs to have the FEC_QUIRK_ENET_MAC defined. > > Fixes: commit 2395625209cc ("board: gateworks: venice: add > imx8mp-venice-gw740x support") > Signed-off-by: Tim Harvey > --- > include/configs/imx8mp_venice.h | 4 >

Re: [PATCH 8/8] test: dm: devres: Remove use-after-free

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:15AM +, Andrew Scull wrote: > Use-after-free shouldn't be used, even in tests. It's bad practice and > makes the test brittle. > > Signed-off-by: Andrew Scull > Cc: Simon Glass > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 7/8] test: Fix pointer overrun in dm_test_devm_regmap()

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:14AM +, Andrew Scull wrote: > This tests calls regmap_read() which takes a uint pointer as an output > parameter. The test was passing a pointer to a u16 which resulted in an > overflow when the output was written. Fix this by following the > regmap_read() API

Re: [PATCH 6/8] sound: Fix buffer overflow in square wave generation

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:13AM +, Andrew Scull wrote: > Data is written for each channel but is only tracked as having one > channel written. This resulted in a buffer overflow and corruption of > the allocator's metadata which caused further problems when the buffer > was later freed.

Re: [PATCH 5/8] usb: sandbox: Bounds check read from buffer

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:12AM +, Andrew Scull wrote: > The buffer is 512 bytes but read requests can be 800 bytes. Limit the > request to the size of the buffer. > > Signed-off-by: Andrew Scull > Cc: Simon Glass > Cc: Marek Vasut > Reviewed-by: Simon Glass Applied to u-boot/master,

Re: [PATCH 4/8] usb: sandbox: Check for string end in copy_to_unicode()

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:11AM +, Andrew Scull wrote: > When copying the string in copy_to_unicode(), check for the null > terminator in each position, not just at the start, to avoid reading > beyond the end of the string. > > Signed-off-by: Andrew Scull > Cc: Simon Glass > Cc: Marek

Re: [PATCH 3/8] x86: sandbox: Add missing PCI bar to barinfo

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:10AM +, Andrew Scull wrote: > There are expecte to be bars 0 through 5, but the last of these was > missing leading to an read beyond the buffer. Add the missing element > with zero values. > > Signed-off-by: Andrew Scull > Cc: Simon Glass > Cc: Bin Meng >

Re: [PATCH 2/8] acpi: Fix buffer overflow in do_acpi_dump()

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:09AM +, Andrew Scull wrote: > When do_acpi_dump() converts the table name to upper case, pass the > actual size of the output buffer so that the null terminator doesn't get > written beyond the end of the buffer. > > Signed-off-by: Andrew Scull > Cc: Simon

Re: [PATCH 1/8] doc: Correct position of gdb '--args' parameter

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:08AM +, Andrew Scull wrote: > The '--args' parameter to gdb comes before the binary that the debugger > will be attached to rather than after the binary and before the > arguments. Fix that in the docs. > > Signed-off-by: Andrew Scull > Cc: Simon Glass >

Re: Error fsl_esdhc: Internal clock never stabilised.

2022-04-29 Thread Sinan Akman
  Hi Pali On 2022-04-29 1:35 p.m., Pali Rohár wrote: Hello! U-Boot prints error "fsl_esdhc: Internal clock never stabilised." on P2020 everytime when trying to access SD card. It happens with every tested SD card. Note that both read and write operation with SD card is working fine, U-Boot

Error fsl_esdhc: Internal clock never stabilised.

2022-04-29 Thread Pali Rohár
Hello! U-Boot prints error "fsl_esdhc: Internal clock never stabilised." on P2020 everytime when trying to access SD card. It happens with every tested SD card. Note that both read and write operation with SD card is working fine, U-Boot just prints that noisy error. For example: SD boot...

[PATCH] configs: imx8mp_venice: add FEC_QUIRK_ENET_MAC

2022-04-29 Thread Tim Harvey
The IMX8MP SoC FEC needs to have the FEC_QUIRK_ENET_MAC defined. Fixes: commit 2395625209cc ("board: gateworks: venice: add imx8mp-venice-gw740x support") Signed-off-by: Tim Harvey --- include/configs/imx8mp_venice.h | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH v5 06/17] efi_loader: bootmgr: add booting from removable media

2022-04-29 Thread Heinrich Schuchardt
On 4/28/22 10:09, Masahisa Kojima wrote: From: AKASHI Takahiro Under the current implementation, booting from removable media using a architecture-specific default image name, say BOOTAA64.EFI, is supported only in distro_bootcmd script. See the commit 74522c898b35 ("efi_loader: Add distro

Pull request for efi-2022-07-rc2

2022-04-29 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 8b2b125e95c44bb007b4573945f4aedb8a56222c: Merge https://gitlab.denx.de/u-boot/custodians/u-boot-mpc85xx (2022-04-27 09:19:41 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git

[PATCH] configs: imx8m{m, n}_venice: remove unneeded CONFIG_FEC_MXC_PHYADDR

2022-04-29 Thread Tim Harvey
The IMX8M based Venice boards all have device-tree fec nodes that use proper dt with a phy-handle pointing to a phy with reg assigned to the proper phy address. There is no need to keep using the CONFIG_FEC_MXC_PHYADDR hack when a proper dt is used - remove it. Signed-off-by: Tim Harvey ---

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Mark Kettenis
> Date: Fri, 29 Apr 2022 11:31:00 -0400 > From: Tom Rini > > On Fri, Apr 29, 2022 at 04:25:51PM +0100, Andre Przywara wrote: > > On Fri, 29 Apr 2022 10:57:10 -0400 > > Tom Rini wrote: > > > > Hi, > > > > > On Fri, Apr 29, 2022 at 03:51:59PM +0100, Andre Przywara wrote: > > > > On Wed, 27 Apr

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Andre Przywara
On Fri, 29 Apr 2022 11:31:00 -0400 Tom Rini wrote: Hi, > On Fri, Apr 29, 2022 at 04:25:51PM +0100, Andre Przywara wrote: > > On Fri, 29 Apr 2022 10:57:10 -0400 > > Tom Rini wrote: > > > > Hi, > > > > > On Fri, Apr 29, 2022 at 03:51:59PM +0100, Andre Przywara wrote: > > > > On Wed, 27 Apr

[PATCH] arm: mvebu: clearfog_defconfig: enable setexpr command

2022-04-29 Thread Josef Schlehofer
This command is useful in U-boot scripts and it is being used by OpenWrt bootscript for this board [1]. Otherwise shell scripting commands are enabled by default in cmd/Kconfig. [1]

Passing the index of booting MMC interface from SPL to u-boot.bin

2022-04-29 Thread Da Shi Cao
On beaglebone black, which are based on TI AM3358, the booting of U-Boot is split into two phrases, MLO and u-boot.bin/img. There should be a way to pass the index of the booting MMC interface from MLO to u-boot, so that the uboot.env in the FAT file system on the booting card could be read

[PATCH v2] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-04-29 Thread Gaurav Jain
From: Ye Li issue: CAAM fails with key error when perform Modular Exponentiation using PKHA Block in CAAM Fix: add flush and invalidate dcache for keys, signature and output decrypted data processed by CAAM. Fixes: 34276478f7 (DM: crypto/fsl - Add Freescale rsa DM driver) Signed-off-by: Ye Li

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Tom Rini
On Fri, Apr 29, 2022 at 04:25:51PM +0100, Andre Przywara wrote: > On Fri, 29 Apr 2022 10:57:10 -0400 > Tom Rini wrote: > > Hi, > > > On Fri, Apr 29, 2022 at 03:51:59PM +0100, Andre Przywara wrote: > > > On Wed, 27 Apr 2022 15:31:19 -0500 > > > Samuel Holland wrote: > > > > > > Hi Samuel, Tom,

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Andre Przywara
On Fri, 29 Apr 2022 10:57:10 -0400 Tom Rini wrote: Hi, > On Fri, Apr 29, 2022 at 03:51:59PM +0100, Andre Przywara wrote: > > On Wed, 27 Apr 2022 15:31:19 -0500 > > Samuel Holland wrote: > > > > Hi Samuel, Tom, > > > > > This series brings all of our devicetrees up to date with Linux. > > >

Re: [PATCH v3 00/15] Add support for MediaTek MT7621 SoC

2022-04-29 Thread Marek Behún
On Fri, 29 Apr 2022 15:59:44 +0800 Weijie Gao wrote: > On Fri, 2022-04-29 at 08:15 +0200, Stefan Roese wrote: > > Hi Weijie > > > > On 4/29/22 03:23, Weijie Gao wrote: > > > Hi Marek, > > > > > > Yes. MT7621 does need such a proprietary binary for DDR > > > initialization > > > and

Re: [PATCH v2 03/12] sandbox: Migrate getopt section to linker list

2022-04-29 Thread Tom Rini
On Thu, Apr 14, 2022 at 01:59:32PM +, Andrew Scull wrote: > Use the common infrastructure to create a linker list of the sandbox > command line flags rather than using a custom method. > > The list is changed from containing pointers to containing structs and > the uses are updated

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Tom Rini
On Fri, Apr 29, 2022 at 03:51:59PM +0100, Andre Przywara wrote: > On Wed, 27 Apr 2022 15:31:19 -0500 > Samuel Holland wrote: > > Hi Samuel, Tom, > > > This series brings all of our devicetrees up to date with Linux. > > > > Older SoCs (before A83T) have not been synchronized in over 3 years. >

[PATCH v2] patman: Fix defaults not propagating to subparsers

2022-04-29 Thread Sean Anderson
On python 3.8.10 (and 3.10), subparsers are not updated with defaults. I suspect this is related to [1]. Fix this by explicitly updating subparsers with settings. [1] https://github.com/python/cpython/issues/89398 Fixes: 3145b63513 ("patman: Update defaults in subparsers") Signed-off-by: Sean

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-29 Thread Andre Przywara
On Wed, 27 Apr 2022 15:31:19 -0500 Samuel Holland wrote: Hi Samuel, Tom, > This series brings all of our devicetrees up to date with Linux. > > Older SoCs (before A83T) have not been synchronized in over 3 years. > And I don't have any of this hardware to test. But there are not major >

Re: [PATCH v3 12/13] test: Load mac address using RTC

2022-04-29 Thread Tom Rini
On Mon, Apr 18, 2022 at 03:36:58PM -0400, Sean Anderson wrote: > This uses the nvmem API to load a mac address from an RTC. > > Signed-off-by: Sean Anderson > Reviewed-by: Simon Glass > --- > > (no changes since v1) > > arch/sandbox/dts/test.dts | 9 - > drivers/rtc/i2c_rtc_emul.c

Re: [PATCH v3 10/13] net: Add support for reading mac addresses from nvmem cells

2022-04-29 Thread Tom Rini
On Mon, Apr 18, 2022 at 03:36:56PM -0400, Sean Anderson wrote: > This adds support for reading mac addresses from the "mac-address" nvmem > cell. If there is no (local-)mac-address property, then we will try > reading from an nvmem cell. > > For some existing examples of this property, refer to

Re: [PATCH v3 01/13] sandbox: net: Add aliases for ethernet devices

2022-04-29 Thread Tom Rini
On Mon, Apr 18, 2022 at 03:36:47PM -0400, Sean Anderson wrote: > Commit f3dd213e15 ("net: introduce helpers to get PHY ofnode from MAC") > changed the ethernet sequence assignment from > > uclass 36: ethernet > 0 * eth@10002000 @ 05813460, seq 0 > 1 * eth@10003000 @ 05813550, seq 5 > 2 *

[PATCH] misc: fs_loader: Fix compile warnings when CONFIG_CMD_UBIFS is enabled

2022-04-29 Thread Pali Rohár
drivers/misc/fs_loader.c: In function ‘mount_ubifs’: drivers/misc/fs_loader.c:46:12: warning: implicit declaration of function ‘ubi_part’ [-Wimplicit-function-declaration] int ret = ubi_part(mtdpart, NULL); ^~~~ drivers/misc/fs_loader.c:53:9: warning: implicit declaration of

Re: [PATCH] imx: drop CONFIG_MXC_UART_BASE

2022-04-29 Thread Soeren Moch
On 29.04.22 15:10, Peng Fan (OSS) wrote: From: Peng Fan Since these boards has CONFIG_DM_SERIAL and/or CONFIG_SPL_DM_SERIAL, the legacy macro no need to be defined. Signed-off-by: Peng Fan --- include/configs/aristainetos2.h | 2 -- include/configs/imx8mm_evk.h | 1 -

Re: fsl_hash.c: Alignment problem when using caam_hash() for FIT images

2022-04-29 Thread Sean Anderson
Hi Stefan, On 4/29/22 8:54 AM, Stefan Roese wrote: > Hi, > > while working on an LX2160 based board and updating to latest mainline > I noticed problems using the HW accelerated hash functions on this > platform, when trying to boot a FIT Kernel image. Here the resulting > error message: > > ##

RE: [EXT] [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-04-29 Thread Gaurav Jain
Reviewed-by: Gaurav Jain > -Original Message- > From: Stefan Roese > Sent: Friday, April 29, 2022 7:05 PM > To: u-boot@lists.denx.de > Cc: Gaurav Jain ; dullf...@yahoo.com > Subject: [EXT] [PATCH] crypto: fsl_hash: Remove unnecessary alignment check > in caam_hash() > > Caution: EXT

Re: U-Boot and ethernet regression on mx6cuboxi

2022-04-29 Thread Tom Rini
On Fri, Apr 29, 2022 at 10:31:05AM -0300, Fabio Estevam wrote: > Hi Tom, > > On Fri, Apr 29, 2022 at 9:44 AM Tom Rini wrote: > > > Thanks for the hint, Tim! Fabio, the dts needs to be re-synced with > > Linux as upstream it says: > > /* > > * The PHY seems to require a

[PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-04-29 Thread Stefan Roese
While working on an LX2160 based board and updating to latest mainline I noticed problems using the HW accelerated hash functions on this platform, when trying to boot a FIT Kernel image. Here the resulting error message: Using 'conf-freescale_lx2160a.dtb' configuration Trying 'kernel-1'

Re: U-Boot and ethernet regression on mx6cuboxi

2022-04-29 Thread Fabio Estevam
Hi Tom, On Fri, Apr 29, 2022 at 9:44 AM Tom Rini wrote: > Thanks for the hint, Tim! Fabio, the dts needs to be re-synced with > Linux as upstream it says: > /* > * The PHY seems to require a long-enough reset duration to avoid > * some rare issues where the PHY gets

Re: [EXT] fsl_hash.c: Alignment problem when using caam_hash() for FIT images

2022-04-29 Thread Stefan Roese
On 4/29/22 15:22, Gaurav Jain wrote: Hello Stefan -Original Message- From: Stefan Roese Sent: Friday, April 29, 2022 6:24 PM To: U-Boot Mailing List Cc: Gaurav Jain ; 'dullf...@yahoo.com Subject: [EXT] fsl_hash.c: Alignment problem when using caam_hash() for FIT images Caution: EXT

Re: root access and u-boot-test-hooks scripts

2022-04-29 Thread Tom Rini
On Fri, Apr 29, 2022 at 03:19:00PM +0200, Michael Nazzareno Trimarchi wrote: > Hi Tom > > On Fri, Apr 29, 2022 at 3:04 PM Tom Rini wrote: > > > > Hey all, > > > > I'm looking for some feedback and ideas. Today, in our > > u-boot-test-hooks repository we have 2 cases that use sudo, imx_usb and >

RE: [EXT] fsl_hash.c: Alignment problem when using caam_hash() for FIT images

2022-04-29 Thread Gaurav Jain
Hello Stefan > -Original Message- > From: Stefan Roese > Sent: Friday, April 29, 2022 6:24 PM > To: U-Boot Mailing List > Cc: Gaurav Jain ; 'dullf...@yahoo.com > Subject: [EXT] fsl_hash.c: Alignment problem when using caam_hash() for FIT > images > > Caution: EXT Email > > Hi, > >

Re: root access and u-boot-test-hooks scripts

2022-04-29 Thread Michael Nazzareno Trimarchi
Hi Tom On Fri, Apr 29, 2022 at 3:04 PM Tom Rini wrote: > > Hey all, > > I'm looking for some feedback and ideas. Today, in our > u-boot-test-hooks repository we have 2 cases that use sudo, imx_usb and I'm not a super expert but is it sufficient to use udev and insert the right on a group for a

root access and u-boot-test-hooks scripts

2022-04-29 Thread Tom Rini
Hey all, I'm looking for some feedback and ideas. Today, in our u-boot-test-hooks repository we have 2 cases that use sudo, imx_usb and L4T-based flashing. Other places that may require root access, such as mounting a filesystem instead assume an /etc/fstab entry exists and has "user" as one of

fsl_hash.c: Alignment problem when using caam_hash() for FIT images

2022-04-29 Thread Stefan Roese
Hi, while working on an LX2160 based board and updating to latest mainline I noticed problems using the HW accelerated hash functions on this platform, when trying to boot a FIT Kernel image. Here the resulting error message: ## Loading kernel from FIT Image at a000 ... Using

Re: U-Boot and ethernet regression on mx6cuboxi

2022-04-29 Thread Tom Rini
On Thu, Apr 28, 2022 at 02:25:03PM -0700, Tim Harvey wrote: > On Thu, Apr 28, 2022 at 1:41 PM Tom Rini wrote: > > > > Hey, > > > > So my mx6cuboxi was out of my lab for a bit, and that's how this > > regression got in mainline. With: > > 4223fb0ee18d11462c55ac94198fdc2055f2c27c is the first bad

Re: [PATCH] imx: drop CONFIG_MXC_UART_BASE

2022-04-29 Thread Heiko Schocher
Hello Peng, On 29.04.22 15:10, Peng Fan (OSS) wrote: > From: Peng Fan > > Since these boards has CONFIG_DM_SERIAL and/or CONFIG_SPL_DM_SERIAL, > the legacy macro no need to be defined. > > Signed-off-by: Peng Fan > --- > include/configs/aristainetos2.h | 2 -- >

Re: [PATCH] imx: drop CONFIG_MXC_UART_BASE

2022-04-29 Thread Fabio Estevam
Hi Peng, On Fri, Apr 29, 2022 at 9:28 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > Since these boards has CONFIG_DM_SERIAL and/or CONFIG_SPL_DM_SERIAL, > the legacy macro no need to be defined. > > Signed-off-by: Peng Fan Thanks for the cleanup: Reviewed-by: Fabio Estevam

[PATCH] imx: drop CONFIG_MXC_UART_BASE

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan Since these boards has CONFIG_DM_SERIAL and/or CONFIG_SPL_DM_SERIAL, the legacy macro no need to be defined. Signed-off-by: Peng Fan --- include/configs/aristainetos2.h | 2 -- include/configs/imx8mm_evk.h | 1 - include/configs/imx8mn_evk.h | 1

[PATCH] arm: mvebu: turris_omnia: Fix SYS_RSTOUT_* macro names

2022-04-29 Thread Pali Rohár
This is A385 register. Signed-off-by: Pali Rohár --- board/CZ.NIC/turris_omnia/turris_omnia.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index 97292456f148..6132c8f94369 100644

[PATCH] pwm: aspeed: Select SYSCON to get parent detail.

2022-04-29 Thread Billy Tsai
To work correctly, this driver depends on SYSCON to get the base address from the parent dts node. Signed-off-by: Billy Tsai --- drivers/pwm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index cb54e67fae..cf66293eeb 100644 ---

Re: [PATCH] efi_loader: fix a problem in loading an image from a short-path

2022-04-29 Thread Heinrich Schuchardt
On 4/28/22 06:50, AKASHI Takahiro wrote: Booting from a short-form device path which starts with the first element being a File Path Media Device Path failed because it doesn't contain any valid device with simple file system protocol and efi_dp_find_obj() in efi_load_image_from_path() will

Re: [PATCH v5 13/17] efi_loader: menu-driven addition of UEFI boot option

2022-04-29 Thread Heinrich Schuchardt
On 4/28/22 18:33, Heinrich Schuchardt wrote: On 4/28/22 10:09, Masahisa Kojima wrote: This commit supports the menu-driven UEFI boot option addition. User can select the block device volume having efi_simple_file_system_protocol and select the file corresponding to the Boot variable. Then

[PATCH] xilinx: Handle board_get_usable_ram_top(0) properly

2022-04-29 Thread Michal Simek
board_get_usable_ram_top() was designed for getting the top most location for U-Boot allocation that's why function itself supports via total_size parameter to find out where the right location for U-Boot is. But function itself is also reused by different (EFI) which is passing total_size as 0 to

Re: [PATCH v2] ram: stm32mp1: Conditionally enable ASR

2022-04-29 Thread Patrick DELAUNAY
Hi, Adding also Nicolas, On 4/26/22 16:37, Marek Vasut wrote: Enable DRAM ASR, auto self-refresh, conditionally, based on DT PWRCTL register bits. While ASR does save considerable amount of power at runtime automatically, it also causes LTDC underruns on large panels. Let user select whether

Re: [PATCH v2] stm32mp: psci: Retain MCUDIVR, PLL3CR, PLL4CR, MSSCKSELR across suspend

2022-04-29 Thread Patrick DELAUNAY
Hi Marek, On 4/26/22 16:38, Marek Vasut wrote: The SoC seems to lose the values of MCUDIVR, PLL3CR, PLL4CR, RCC_MSSCKSELR during suspend/resume cycle, cache them and reinstate their values on resume. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- V2: Cache MCUDIVR

Re: [PATCH v5 11/17] bootmenu: add Kconfig option not to enter U-Boot console

2022-04-29 Thread Mark Kettenis
> From: Masahisa Kojima > Date: Thu, 28 Apr 2022 17:09:44 +0900 > > This commit adds the Kconfig option to disable to enter > the U-Boot console from bootmenu. > > If CMD_BOOTMENU_ENTER_UBOOT_CONSOLE is enabled, "U-Boot console" > entry is appeared as the last entry in the bootmenu, then user

Re: [PATCH v5 00/17] enable menu-driven boot device selection

2022-04-29 Thread Mark Kettenis
> From: Masahisa Kojima > Date: Thu, 28 Apr 2022 17:09:33 +0900 > > This patch series adds the menu-driven boot device selection, > by extending the existing "bootmenu" to include UEFI and distro_boot > related entries, and supports menu-driven UEFI boot variable > maintenance. > > This patch

Re: please modify output of i.MX8MSCALE DDR Tool

2022-04-29 Thread Peng Fan (OSS)
On 2022/4/28 21:10, Rasmus Villemoes wrote: Hi NXP folks Is it possible for you to modify the i.MX8MSCALE DDR Tool so that the lpddr4_timing.c files it emits use "static" in front of ddr_ddrc_cfg[] and all the other arrays it defines; the only symbol that file defines which should have

[PATCH] imx: imx8m: drop uneeded check

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan All i.MX8M needs TZASC ID SWAP set and locked, no need the check to waste cpu cycles. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c

[PATCH] imx: logos: use NXP logo

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan Use NXP logo. The vendor and board dir not changed, only replace the contents of freescale.bmp. Signed-off-by: Peng Fan --- tools/logos/freescale.bmp | Bin 46738 -> 47670 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/tools/logos/freescale.bmp

[PATCH 4/4] imx: imx8m: add rproc_att

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan With rpoc_att, bootaux able to kick elf file for M core Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index

[PATCH 3/4] imx: bootaux: get stack from elf file

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan To i.MX8, M core stack is pre-coded in source code, so need to get it before kicking M core. The stack pointer is stored in the first word of the first PT_LOAD section __isr_vector. So use a num to index the section loading. Signed-off-by: Peng Fan ---

[PATCH 2/4] imx: bootaux: add missing newline

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan Add missing newline Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx_bootaux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx_bootaux.c b/arch/arm/mach-imx/imx_bootaux.c index 6a075ccc4fb..3c6a5c09b7d 100644 ---

[PATCH 1/4] imx: bootaux: cleanup code

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan Use if (CONFIG_IS_ENABLED()) to make code cleaner Enable elf support for i.MX8M Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx_bootaux.c | 43 +++-- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-imx/imx_bootaux.c

[PATCH 3/3] imx: imx8mq: select CONFIG_CMD_CLK

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan select CONFIG_CMD_CLK to enable dump clk in uboot shell Signed-off-by: Peng Fan --- configs/imx8mq_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8mq_evk_defconfig b/configs/imx8mq_evk_defconfig index 780f93103c7..9f54a280d9b 100644 ---

[PATCH 2/3] imx: imx8mq: default select CLK_IMX8MQ

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan Since the power domain driver default select CONFIG_CLK, so we will meet lots failures without CLK_IMX8MQ, so default select it. Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency") Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 1 + 1

[PATCH 1/3] Kconfig: set i.MX8MQ SYS_MALLOC_F_LEN

2022-04-29 Thread Peng Fan (OSS)
From: Peng Fan set SPL_SYS_MALLOC_F_LEN to 0x2000 set SYS_MALLOC_F_LEN to 0x1 This is to prepare enable CLK_IMX8MQ for i.MX8MQ Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency") Signed-off-by: Peng Fan --- Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH] watchdog: Fix SPL build with watchdog disabled in asm files

2022-04-29 Thread Stefan Roese
On 4/28/22 13:33, Pali Rohár wrote: Allow to compile assembler files in SPL build which calls WATCHDOG_RESET function when watchdog is disabled in SPL and enabled in U-Boot proper. This issue was fixed in past by commit 7fbd42f5afc4 ("watchdog: Handle SPL build with watchdog disabled") for C

Re: [PATCH v3 02/15] mips: mtmips: add two reference boards for mt7621

2022-04-29 Thread Stefan Roese
On 4/28/22 12:37, Weijie Gao wrote: The mt7621_rfb board supports integrated giga PHYs plus one external giga PHYs. It also has up to 512MiB DDR3, 16MB SPI-NOR, 3 mini PCI-e x1 slots, SDXC and USB. The mt7621_nand_rfb board is almost the same as mt7621_rfb board, but it uses NAND flash and SDXC

Re: [PATCH v3 00/15] Add support for MediaTek MT7621 SoC

2022-04-29 Thread Stefan Roese
Hi Weijie On 4/29/22 03:23, Weijie Gao wrote: Hi Marek, Yes. MT7621 does need such a proprietary binary for DDR initialization and calibration. That's why I submit only the ram-bootable part here. I'm considering to create a preloader to load and run DDR init binary and ram-bootable u-boot