Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-18 Thread Ilias Apalodimas
Hi Akashi-san, On Wed, 19 Jan 2022 at 06:47, AKASHI Takahiro wrote: > > On Tue, Jan 18, 2022 at 08:12:22PM +0200, Ilias Apalodimas wrote: > > Hi Heinrich, > > > > On Tue, 18 Jan 2022 at 18:22, Heinrich Schuchardt > > wrote: > > > > > > On 1/18/22 15:03, Ilias Apalodimas wrote: > > > > Hi Heinr

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-18 Thread AKASHI Takahiro
On Tue, Jan 18, 2022 at 08:12:22PM +0200, Ilias Apalodimas wrote: > Hi Heinrich, > > On Tue, 18 Jan 2022 at 18:22, Heinrich Schuchardt wrote: > > > > On 1/18/22 15:03, Ilias Apalodimas wrote: > > > Hi Heinrich, > > > > > > - info.checksum = image_get_checksum_algo("sha256,rsa2048"); >

Re: [PATCH 1/1] doc: printf() codes

2022-01-18 Thread AKASHI Takahiro
Heinrich, Thank you for additional work. On Wed, Jan 19, 2022 at 01:23:00AM +0100, Heinrich Schuchardt wrote: > Document the format specifier codes used by U-Boot's printf() > implementation. > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/index.rst | 1 + > doc/develop/printf.rs

[PATCH v3 23/31] bootstd: Add a system bootdev for strange boot methods

2022-01-18 Thread Simon Glass
Some boot methods don't act on a single bootdev but instead do their own thing. An example is EFI bootmgr which scan various devices using its own logic. Add a bootdev to handle this. Signed-off-by: Simon Glass --- Changes in v3: - Add a log category boot/Makefile | 2 +- boot/bootstd

[PATCH v3 15/31] bootstd: Add a bootdev command

2022-01-18 Thread Simon Glass
Add a 'bootdev' command to handle listing and selection of bootdevs. Disable standard boot for a few boards which otherwise run out of space. Signed-off-by: Simon Glass --- Changes in v3: - Use separate Kconfig options for each command MAINTAINERS| 1 + cmd/Kconfig

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

2022-01-18 Thread Simon Glass
Add documentation for this feature, including the commands and full devicetree bindings. Signed-off-by: Simon Glass --- Changes in v3: - Update docs for "bootmeths" and "boot_targets" env vars MAINTAINERS | 4 + doc/develop/bootstd.rst | 638 ++

[PATCH v3 28/31] bootstd: Add tests for bootstd including all uclasses

2022-01-18 Thread Simon Glass
Add a set of combined tests for the bootdev, bootflow and bootmeth commands, along with associated functionality. Expand the sandbox console-recording limit so that these can work. These tests rely on a filesystem script which is not yet added to the Python tests. It is included here as a shell s

[PATCH v3 31/31] RFC: Switch rpi over to use bootstd

2022-01-18 Thread Simon Glass
Switch this over, for testing purposes. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 3 ++- include/configs/rpi.h | 39 ++- 2 files changed, 4 insertions(+), 38 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index 9cf

[PATCH v3 29/31] bootstd: Add setup for the bootflow tests

2022-01-18 Thread Simon Glass
We need to create a disk image with a partition table and a DOS-format filesystem containing a few files. Provide a fallback binary for CI since it does not seem able to detect the loopback partitions. Add this to a dm_init test so that it happens when needed. Signed-off-by: Simon Glass --- Cha

[PATCH v3 27/31] bootstd: usb: Add a bootdev driver

2022-01-18 Thread Simon Glass
Add a bootdev driver for USB host. It can use the distro boot mechanism to locate a file, or any other available bootmeth. Signed-off-by: Simon Glass --- (no changes since v1) common/usb_storage.c | 12 +++ drivers/usb/host/Makefile | 4 +++ drivers/usb/host/usb_bootdev.c |

[PATCH v3 24/31] bootstd: Add an implementation of EFI bootmgr

2022-01-18 Thread Simon Glass
Add a bootmeth driver which handles EFI boot manager, using EFI_LOADER. In effect, this provides the same functionality as the 'bootefi bootmgr' command and shares the same code. But the interface into it is via a bootmeth, so it does not require any special scripts, etc. For now this requires th

[PATCH v3 22/31] bootstd: Add an implementation of EFI boot

2022-01-18 Thread Simon Glass
Add a bootmeth driver which handles EFI boot, using EFI_LOADER. In effect, this provides the same functionality as the 'bootefi' command and shares the same code. But the interface into it is via a bootmeth, so it does not require any special scripts, etc. For now this requires the 'bootefi' comm

[PATCH v3 25/31] bootstd: Add a sandbox bootmeth driver

2022-01-18 Thread Simon Glass
Add a bootmeth driver for sandbox, used for testing. Signed-off-by: Simon Glass --- Changes in v3: - Add a log category boot/Kconfig| 7 + boot/Makefile | 1 + boot/bootmeth_sandbox.c | 69 + 3 files changed, 77 insertions(+)

[PATCH v3 26/31] bootstd: Add an implementation of script boot

2022-01-18 Thread Simon Glass
Add a bootmeth driver which handles distro boot from a disk via a U-Boot script, so we can boot a bootflow using this commonly used mechanism. This is required by Armbian, for example. Signed-off-by: Simon Glass --- Changes in v3: - Add support for script boot boot/Kconfig | 11

[PATCH v3 20/31] bootstd: ethernet: Add a bootdev driver

2022-01-18 Thread Simon Glass
Add a bootdev driver for Ethernet. It can use the PXE boot mechanism to locate a file, added later. Signed-off-by: Simon Glass --- (no changes since v1) MAINTAINERS | 1 + net/Kconfig | 9 + net/Makefile | 1 + net/eth-uclass.c | 8 net/eth_bootdev.c | 101 ++

[PATCH v3 21/31] bootstd: Add an implementation of distro PXE boot

2022-01-18 Thread Simon Glass
Add a bootmeth driver which handles distro boot from a network device, so we can boot a bootflow using this commonly used mechanism. In effect, this provides the same functionality as the 'pxe' command and shares the same code. But the interface into it is via a bootmeth. For now this requires th

[PATCH v3 18/31] bootstd: Add an implementation of distro boot

2022-01-18 Thread Simon Glass
Add a bootmeth driver which handles distro boot from a disk, so we can boot a bootflow using this commonly used mechanism. In effect, this provides the same functionality as the 'sysboot' command and shares the same code. But the interface into it is via a bootmeth. For now this requires the 'pxe

[PATCH v3 19/31] bootstd: mmc: Add a bootdev driver

2022-01-18 Thread Simon Glass
Add a bootdev driver for MMC. It mostly just calls the bootdev helper function. Add a function to obtain the block device for an MMC controller. Fix up the comment for mmc_get_blk_desc() while we are here. Signed-off-by: Simon Glass --- Changes in v3: - Adjust for new blk_find_device() functio

[PATCH v3 12/31] bootstd: Add the bootdev uclass

2022-01-18 Thread Simon Glass
A 'bootdev' is a device which can be used to boot an operating system. It is a child of the media device (e.g. MMC) which handles reading files from that device, such as a bootflow file. Add a uclass for bootdev and the various helpers needed to make it work. Also add a binding file, empty for now

[PATCH v3 16/31] bootstd: Add a bootflow command

2022-01-18 Thread Simon Glass
Add a 'bootflow' command to handle listing and selection of bootflow. Signed-off-by: Simon Glass --- Changes in v3: - Use separate Kconfig options for each command - Put some features behind CONFIG_BOOTFLOW_FULL cmd/Kconfig| 18 +++ cmd/Makefile | 1 + cmd/bootflow.c | 399 +++

[PATCH v3 17/31] bootstd: Add a bootmeth command

2022-01-18 Thread Simon Glass
Add a 'bootmeth' command to handle listing and ordering of boot methods. Signed-off-by: Simon Glass --- Changes in v3: - Move bootmeth ordering into the uclass cmd/Kconfig| 11 + cmd/Makefile | 1 + cmd/bootmeth.c | 113 + 3 files ch

[PATCH v3 13/31] bootstd: Add the bootmeth uclass and helpers

2022-01-18 Thread Simon Glass
A bootmeth is a method of locating an operating system. For now, just add the uclass itself. Drivers for particular bootmeths are added later. If no bootmeths devices are included in the devicetree, create them automatically. This avoids the need for boilerplate in the devicetree files. Signed-of

[PATCH v3 14/31] bootstd: Add support for bootflows

2022-01-18 Thread Simon Glass
Add support for bootflows, including maintaining a list of them and iterating to find them. Signed-off-by: Simon Glass --- Changes in v3: - Point to the header file for bootflow_state[] docs - Explain why it is OK to use "?" as an unknown bootflow state - Move bootmeth/bootdev ordering into the

[PATCH v3 10/31] bootstd: Add the concept of a bootflow

2022-01-18 Thread Simon Glass
A bootflow encapsulates the process used to boot an operating system. It typically has a control file (such as extlinux.conf) and information about which 'bootdev' it came from. Add the header file for this first, since it is needed by all other files. Signed-off-by: Simon Glass --- Changes in

[PATCH v3 11/31] bootstd: Add the bootstd uclass and core implementation

2022-01-18 Thread Simon Glass
The 'bootstd' device provides the central information about U-Boot standard boot. Add a uclass for bootstd and the various helpers needed to make it work. Also add a binding file. Signed-off-by: Simon Glass --- Changes in v3: - Add CONFIG_BOOTSTD_FULL to enable the full feature set - Support bo

[PATCH v3 08/31] test: dm: Restart USB before assuming it is stopped

2022-01-18 Thread Simon Glass
Update the blk test to stop USB first, in case another test has started it. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/blk.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/test/dm/blk.c b/test/dm/blk.c index deccf05289b..b5957a20fb0 100644 --- a/test/dm/blk.c +++ b

[PATCH v3 09/31] dm: blk: Add a function to return the device type

2022-01-18 Thread Simon Glass
Use the uclass name to get the device type for a block device. Signed-off-by: Simon Glass --- (no changes since v1) drivers/block/blk-uclass.c | 8 include/blk.h | 8 2 files changed, 16 insertions(+) diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-u

[PATCH v3 06/31] dm: core: Allow finding a uclass device by partial name

2022-01-18 Thread Simon Glass
In some cases two devices are related and the only way to tell is to check that the names partially patch. Add a way to check this without needing to create a new string for the comparison. Fix the comment for device_find_child_by_namelen() while we are here. Signed-off-by: Simon Glass --- Chan

[PATCH v3 07/31] test: fastboot: Avoid using mmc1

2022-01-18 Thread Simon Glass
The bootflow tests need to use an MMC with an associated backing file containing a filesystem. Update the fastboot tests to cope with this. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/fastboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dm/fa

[PATCH v3 04/31] lib: Add a way to find the postiion of a trailing number

2022-01-18 Thread Simon Glass
At present it is not possible to find out which part of the string is the number part and which is before it. Add a new variant which provides this feature, so we can separate the two in the caller. Signed-off-by: Simon Glass --- Changes in v3: - Change the function to return a pointer to the fi

[PATCH v3 05/31] dm: core: Rename uclass_get_by_name_len()

2022-01-18 Thread Simon Glass
It seems that namelen is more common in U-Boot. Rename this function to fit in better. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to rename uclass_get_by_name_len() drivers/core/uclass.c | 7 --- include/dm/uclass.h | 8 2 files changed, 8 insertions(+), 7 del

[PATCH v3 03/31] str: Fix a few bugs in trailing_strtoln()

2022-01-18 Thread Simon Glass
At present this has a minor bug in that it reads the byte before the start of the string. Also it doesn't handle a non-numeric prefix which is only one character long. Fix these bugs with a reworked implementation. Add a test for the second case. The first one is hard to test. Signed-off-by: Simo

[PATCH v3 02/31] test: Add tests for trailing_strtol()

2022-01-18 Thread Simon Glass
This function currently has no tests. Add some. Signed-off-by: Simon Glass --- (no changes since v1) include/vsprintf.h | 4 ++-- test/str_ut.c | 19 +++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/include/vsprintf.h b/include/vsprintf.h index 8bfafa0d

[PATCH v3 01/31] str: Move string tests to the string module

2022-01-18 Thread Simon Glass
A few string tests were added to the print module by mistake. Move them. Signed-off-by: Simon Glass --- (no changes since v1) test/print_ut.c | 40 test/str_ut.c | 40 2 files changed, 40 insertions(+), 40 dele

[PATCH v3 00/31] Initial implementation of standard boot

2022-01-18 Thread Simon Glass
The bootflow feature provide a built-in way for U-Boot to automatically boot an Operating System without custom scripting and other customisation. This is called 'standard boot' since it provides a standard way for U-Boot to boot a distro, without scripting. It introduces the following concepts:

Re: [PATCH v3 4/4] arm: kirkwood: Pogoplug-V4 : Add board implementation files

2022-01-18 Thread Tony Dinh
Hi Stefan, On Mon, Jan 17, 2022 at 11:54 PM Stefan Roese wrote: > > On 1/18/22 07:58, Tony Dinh wrote: > > Note: currently the fdt_get_phy_addr function in this file is > > duplicate in this board and many other Kirkwood boards > > (eg. Sheevaplug, GoFlex Home, etc.). This function is being > > f

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

2022-01-18 Thread Heinrich Schuchardt
For printing phys_addr_t we should use %pa to avoid warning like: drivers/bootcount/bootcount_syscon.c:110:17: note: in expansion of macro ‘dev_err’ 110 | dev_err(dev, "%s: Unsupported register size: %d\n", __func__, | ^~~ seen for sandbox_defconfig w

[PATCH 1/1] doc: printf() codes

2022-01-18 Thread Heinrich Schuchardt
Document the format specifier codes used by U-Boot's printf() implementation. Signed-off-by: Heinrich Schuchardt --- doc/develop/index.rst | 1 + doc/develop/printf.rst | 132 + 2 files changed, 133 insertions(+) create mode 100644 doc/develop/printf.r

[PATCH 1/1] miiphy.h: Remove CONFIG_DM_xxx guards

2022-01-18 Thread Tom Rini
Function prototypes must not be guarded with ifdef tests. Doing so prevents us from doing: if (CONFIG_IS_ENABLED(FOO)) func(); as that results in a warning when CONFIG_FOO is not enabled. Signed-off-by: Tom Rini --- I forgot that I had this applied when pushing before, as it's required by the

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

2022-01-18 Thread Fabio Estevam
Hi Adam, On Mon, Jan 17, 2022 at 10:58 PM Adam Ford wrote: > Thanks for testing it. > > I am not really sure what's significantly different between them. Do > you get any errors when you run UMS? Just realized the problem I am seeing is unrelated to your patch. I will need to debug it.

Re: [next 5/5] clk: ast2600: Revise MII interface delay

2022-01-18 Thread Tom Rini
On Thu, Dec 09, 2021 at 10:12:28AM +0800, Dylan Hung wrote: > The clock delay of the RMII/RGMII interface is controlled by SCU340~35C. > These values are obtained by measurement and experiments so we simply > use macro to define them. > > Signed-off-by: Dylan Hung > Reviewed-by: Ramon Fried Ap

Re: [next 4/5] configs: ast2600: enable DM_MDIO and MDIO driver

2022-01-18 Thread Tom Rini
On Thu, Dec 09, 2021 at 10:12:27AM +0800, Dylan Hung wrote: > Enable DM_MDIO and Aspeed MDIO driver for AST2600 EVB. > > Signed-off-by: Dylan Hung > Reviewed-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [next 3/5] ARM: dts: ast2600: Add MDIO devices

2022-01-18 Thread Tom Rini
On Thu, Dec 09, 2021 at 10:12:26AM +0800, Dylan Hung wrote: > There are 4 MDIO bus controllers in AST2600 SOC. Each of them can > connect to one or more PHY chips and is flexible to work with the 4 MAC > devices in AST2600. On AST2600 EVB, MDIO 0,1,2,3 connect to the PHY > chips used by MAC 0,1,

Re: [next 1/5] net: ftgmac100: Add DM_MDIO support

2022-01-18 Thread Tom Rini
On Thu, Dec 09, 2021 at 10:12:24AM +0800, Dylan Hung wrote: > Add support for DM_MDIO to connect to PHY. For the systems that have a > stand-alone MDIO hardware block, enable CONFIG_DM_MDIO to use driver > model for MDIO devices. > > Signed-off-by: Dylan Hung > Reviewed-by: Ramon Fried Applie

Re: [next 2/5] net: ftgmac100: Add Aspeed AST2600 support

2022-01-18 Thread Tom Rini
On Thu, Dec 09, 2021 at 10:12:25AM +0800, Dylan Hung wrote: > Add support of the MAC controller of Aspeed AST2600 SOC. The MAC > controller is the same with AST2500, except it has stand-alone MDIO > hardware block. > > Signed-off-by: Dylan Hung > Reviewed-by: Ramon Fried Applied to u-boot/mas

Re: [PATCH v4 6/6] configs: Enable mmc support

2022-01-18 Thread Tom Rini
On Sun, Nov 28, 2021 at 05:02:25PM +0530, Amit Singh Tomar wrote: > From: Amit Singh Tomar > > This commits enables mmc on the Actions Cubieboard7 board. > > Signed-off-by: Amit Singh Tomar Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 5/6] mmc: actions: add MMC driver for Actions OWL S700/S900

2022-01-18 Thread Tom Rini
On Sun, Nov 28, 2021 at 05:02:24PM +0530, Amit Singh Tomar wrote: > From: Amit Singh Tomar > > This commit adds support for MMC controllers found on Actions OWL > SoC platform(S700/S900). > > Signed-off-by: Amit Singh Tomar Applied to u-boot/master, thanks! -- Tom signature.asc Descriptio

Re: [PATCH v4 4/6] ARM: dts: s700: add MMC/SD controller node

2022-01-18 Thread Tom Rini
On Sun, Nov 28, 2021 at 05:02:23PM +0530, Amit Singh Tomar wrote: > From: Amit Singh Tomar > > This patch adds node for mmc/sd controller found on Action Semi OWL > S700 SoC. > > Since, upstream Linux binding has not been merged for S700 MMC/SD > controller, Changes are put in u-boot specific d

Re: [PATCH v4 3/6] ARM: dts: sync Actions Semi S700 DT from Linux v5.16-rc3

2022-01-18 Thread Tom Rini
On Thu, Dec 02, 2021 at 11:53:28PM +0530, Amit Singh Tomar wrote: > From: Amit Singh Tomar > > This Synchronizes the Actions Semi S700 SoC DT changes from > commit "g58e1100fdc59" ("Linux v5.16-rc3"). > > Signed-off-by: Amit Singh Tomar Applied to u-boot/master, thanks! -- Tom signature.a

Re: [PATCH v4 2/6] clk: actions: Add SD/MMC clocks

2022-01-18 Thread Tom Rini
On Sun, Nov 28, 2021 at 05:02:21PM +0530, Amit Singh Tomar wrote: > From: Amit Singh Tomar > > This commit adds SD/MMC clocks, and provides .set/get_rate callbacks > for SD/MMC device present on Actions OWL S700 SoCs. > > Signed-off-by: Amit Singh Tomar Applied to u-boot/master, thanks! --

Re: [PATCH v4 1/6] clk: actions: Introduce dummy get/set_rate callbacks

2022-01-18 Thread Tom Rini
On Sun, Nov 28, 2021 at 05:02:20PM +0530, Amit Singh Tomar wrote: > From: Amit Singh Tomar > > This commit introduces get/set_rate callbacks, these are dummy at > the moment, and can be used to get/set clock for various devices > based on the clk id. > > Signed-off-by: Amit Singh Tomar > Revie

[PATCH] smegw01: Update DDR initialization

2022-01-18 Thread Fabio Estevam
Sync with the latest DDR initialization from Phytec, which uses version 1.2 of NXP's i.MX7D DRAM Register Programming Aid spreadsheet. This updated DDR initialization fixes occasional system freeze. Signed-off-by: Fabio Estevam --- board/storopack/smegw01/imximage.cfg | 55 -

Re: [PATCH v4 02/13] mips: Avoid using config_enabled() directly

2022-01-18 Thread Daniel Schwierzeck
Am Sonntag, dem 16.01.2022 um 13:19 -0700 schrieb Simon Glass: > Use IS_ENABLED() instead, which is the correct macro for checking a > CONFIG > option. > > Signed-off-by: Simon Glass Reviewed-by: Daniel Schwierzeck > --- > > (no changes since v1) > > arch/mips/lib/cache.c | 2 +- > 1 file c

Re: [PATCH] mtd: nand: pxa3xx: set mtd->dev

2022-01-18 Thread Tom Rini
On Wed, Jan 05, 2022 at 04:01:00PM +0100, Robert Marko wrote: > Currently the pxa3xx driver does not set the udevice in the mtd_info > struct and this prevents the mtd from parsing the partitions via DTS > like for SPI-NOR. > > So simply set the mtd->dev to the driver udevice. > > Signed-off-by:

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-18 Thread Ilias Apalodimas
Hi Heinrich, On Tue, 18 Jan 2022 at 18:22, Heinrich Schuchardt wrote: > > On 1/18/22 15:03, Ilias Apalodimas wrote: > > Hi Heinrich, > > > > - info.checksum = image_get_checksum_algo("sha256,rsa2048"); > > > > [...] > > > > - info.name = "sha256,rsa2048"; > > - } else

Re: [PATCH v2] arm: dts: Aspeed: add Bletchley dts

2022-01-18 Thread Tom Rini
On Tue, Jan 04, 2022 at 06:03:17PM +0800, Potin Lai wrote: > Initial introduction of Bletchley equipped with > Aspeed 2600 BMC SoC. > > Signed-off-by: Potin Lai > Reviewed-by: Patrick Williams > --- > > Change since v1: > - Disable mdio0, mdio1, mdio2 > - Remove mac0, mac1, mac3 (keep disabled)

Re: [PATCH v2 7/7] common: board_r: drop ifdefs around header includes

2022-01-18 Thread Tom Rini
On Sat, Jan 01, 2022 at 07:13:31PM +0200, Ovidiu Panait wrote: > Drop the remaining ifdefs around header includes, to fix an old TODO. > > Reviewed-by: Simon Glass > Signed-off-by: Ovidiu Panait Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 6/7] common: board_r: include asm-generic/gpio.h

2022-01-18 Thread Tom Rini
On Sat, Jan 01, 2022 at 07:13:30PM +0200, Ovidiu Panait wrote: > Not all architectures define and even on those that do, the > header cannot be included for all boards without causing various build > failures. > > Since common/board_r.c only needs gpio_hog_probe_all() declaration, include > and

Re: [PATCH v2 5/7] common: board_r: move init_addr_map() to init.h

2022-01-18 Thread Tom Rini
On Sat, Jan 01, 2022 at 07:13:29PM +0200, Ovidiu Panait wrote: > asm/mmu.h include is currently guarded by CONFIG_ADDR_MAP ifdef because > the header is only present on arm and powerpc. In order to remove the > dependency on this header and the associated ifdef, move init_addr_map() > declaration

Re: [PATCH v2 4/7] common: board_r: drop initr_addr_map wrapper

2022-01-18 Thread Tom Rini
On Sat, Jan 01, 2022 at 07:13:28PM +0200, Ovidiu Panait wrote: > Add a return value to init_addr_map and use it directly in the > post-relocation init sequence, rather than using a wrapper stub. > > Reviewed-by: Matthias Brugger > Reviewed-by: Simon Glass > Signed-off-by: Ovidiu Panait Applie

Re: [PATCH v2 3/7] common: board_r: drop initr_kgdb wrapper

2022-01-18 Thread Tom Rini
On Sat, Jan 01, 2022 at 07:13:27PM +0200, Ovidiu Panait wrote: > Add a return value to kgdb_init and use it directly in the post-relocation > init sequence, rather than using a wrapper stub. Also, move the "KGDB" > print message inside kgdb_init(). > > Reviewed-by: Simon Glass > Signed-off-by: O

Re: [PATCH v2 2/7] common: remove bedbug debugger support

2022-01-18 Thread Tom Rini
On Sat, Jan 01, 2022 at 07:13:26PM +0200, Ovidiu Panait wrote: > Commit 98f705c9cefd ("powerpc: remove 4xx support") removed (in 2017) the > last code that made use of bedbug debugger support. Since there aren't > any boards left that define either CONFIG_CMD_BEDBUG or a real > bedbug_init(), drop

Re: [PATCH v2 1/7] common: spl: move armv7m-specific code to spl_perform_fixups()

2022-01-18 Thread Tom Rini
On Sat, Jan 01, 2022 at 07:13:25PM +0200, Ovidiu Panait wrote: > Factor out armv7m fragment to spl_perform_fixups(), which is an arch/board > specific function designed for this purpose. > > Reviewed-by: Simon Glass > Signed-off-by: Ovidiu Panait Applied to u-boot/master, thanks! -- Tom si

Re: [PATCH 2/2] fs/btrfs: add dependency on BLAKE2 hash

2022-01-18 Thread Tom Rini
On Mon, Dec 27, 2021 at 02:12:08PM +0800, Qu Wenruo wrote: > Now btrfs can utilize the newly intorudced BLAKE2 hash. > > Signed-off-by: Qu Wenruo Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/2] lib: add BLAKE2 hash support

2022-01-18 Thread Tom Rini
On Mon, Dec 27, 2021 at 02:12:07PM +0800, Qu Wenruo wrote: > The code is cross-ported from BLAKE2 reference implementation > (https://github.com/BLAKE2/BLAKE2). > > With minimal change to remove unused macros/features. > > Currently there is only one user inside U-boot (btrfs), and since it > on

Re: [PATCH] fs/btrfs: fix a bug that U-boot fs btrfs implementation doesn't handle NO_HOLE feature correctly

2022-01-18 Thread Tom Rini
On Mon, Dec 27, 2021 at 02:11:14PM +0800, Qu Wenruo wrote: > [BUG] > When passing a btrfs with NO_HOLE feature to U-boot, and if one file > contains holes, then the hash of the file is not correct in U-boot: > > # mkfs.btrfs -f test.img # Since v5.15, mkfs defaults to NO_HOLES > # mount tes

Re: [PATCH] pinctrl: single: add support for pinctrl-single, pins when #pinctrl-cells = 2

2022-01-18 Thread Tom Rini
On Fri, Dec 03, 2021 at 03:18:53PM +, AJ Bagwell wrote: > Changes to the am33xx device (33e9021a) trees have been merged in from > the upstream linux kernel which now means the device tree uses the new > pins format (as of 5.10) where the confinguration can be stores as a > separate configurat

Re: [PATCH] drivers: musb_gadget: Save endpoint desc to usb_ep->desc

2022-01-18 Thread Tom Rini
On Tue, Nov 16, 2021 at 08:30:12AM +0800, qianfangui...@qq.com wrote: > From: qianfan Zhao > > Fix fastboot flash bug. > > If the downloading file size is equal to the partition size, "fastboot > flash" can't work, at least in sunxi platform, because used an > uninitalized point: ep->desc. > >

Re: [PATCH] mxc_gpio: on imx8m read the DR instead of the PSR

2022-01-18 Thread Fabio Estevam
Hi Angus, On Sun, Nov 28, 2021 at 12:42 PM Angus Ainslie wrote: > [1] > diff --git a/arch/arm/dts/imx8mq-librem5.dts > b/arch/arm/dts/imx8mq-librem5.dts > index b28420654f..b60a8538af 100644 > --- a/arch/arm/dts/imx8mq-librem5.dts > +++ b/arch/arm/dts/imx8mq-librem5.dts > @@ -56,29 +56,29 @@ >

Re: [PATCH] gpio: mxc_gpio: Fix i.MX8M GPIO output status read

2022-01-18 Thread Fabio Estevam
On Tue, Jan 18, 2022 at 1:13 PM Harm Berntsen wrote: > I did not check the manual assignment of bit 30 in the dts, I now see > that it is used more often than I thought. > > I'm using an imx8mn on U-Boot 2021.10. It was as simple as setting the > pinctrl as you described and in the same way as An

Re: [PATCH] imx: ventana: correct splashimage load address

2022-01-18 Thread Tim Harvey
On Mon, Jan 17, 2022 at 3:32 AM Andrey Zhizhikin wrote: > > Commit 72d81360aabd ("global: Convert CONFIG_LOADADDR to > CONFIG_SYS_LOADADDR") dropped the usage of LOADADDR and replaced it with > SYS_LOADADDR. > > Use the correct macro in environment by replacing CONFIG_LOADADDR with > CONFIG_SYS_LO

Re: [PATCH u-boot-dm v3] fdt_support: Add fdt_for_each_node_by_compatible() helper macro

2022-01-18 Thread Stefan Roese
On 1/18/22 15:14, Marek Behún wrote: From: Marek Behún Add macro fdt_for_each_node_by_compatible() to allow iterating over fdt nodes by compatible string. Convert various usages of off = fdt_node_offset_by_compatible(fdt, start, compat); while (off > 0) { code(); of

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-18 Thread Heinrich Schuchardt
On 1/18/22 15:03, Ilias Apalodimas wrote: Hi Heinrich, - info.checksum = image_get_checksum_algo("sha256,rsa2048"); [...] - info.name = "sha256,rsa2048"; - } else { - pr_warn("unknown msg digest algo: %s\n", sig->hash_algo); + if (strcmp

Re: [PATCH 1/2] lmb: Fix lmb property's defination under struct lmb

2022-01-18 Thread Heinrich Schuchardt
On 1/17/22 17:23, Patrick DELAUNAY wrote: Hi, On 1/14/22 1:14 PM, Michal Simek wrote: From: Ashok Reddy Soma Under struct lmb {} the lmb property's should be defined only if CONFIG_LMB_MEMORY_REGIONS is defined. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek ---   include/lmb

Re: [PATCH] gpio: mxc_gpio: Fix i.MX8M GPIO output status read

2022-01-18 Thread Harm Berntsen
Hi, On Mon, 2022-01-17 at 13:57 -0300, Fabio Estevam wrote: > Hi Harm, > > Adding Angus, who submitted a similar patch: > https://patchwork.ozlabs.org/project/uboot/patch/20211128145143.1433262-1-an...@akkea.ca/ > > On Mon, Jan 17, 2022 at 12:55 PM Harm Berntsen > wrote: > > > > Could this iss

Re: [PATCH 1/2] lmb: Fix lmb property's defination under struct lmb

2022-01-18 Thread Michal Simek
On 1/17/22 17:23, Patrick DELAUNAY wrote: Hi, On 1/14/22 1:14 PM, Michal Simek wrote: From: Ashok Reddy Soma Under struct lmb {} the lmb property's should be defined only if CONFIG_LMB_MEMORY_REGIONS is defined. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek ---   include/

Re: [PATCH u-boot-dm v3] fdt_support: Add fdt_for_each_node_by_compatible() helper macro

2022-01-18 Thread Stefan Roese
On 1/18/22 15:14, Marek Behún wrote: From: Marek Behún Add macro fdt_for_each_node_by_compatible() to allow iterating over fdt nodes by compatible string. Convert various usages of off = fdt_node_offset_by_compatible(fdt, start, compat); while (off > 0) { code(); of

Re: [PATCH v2 01/20] remoteproc: k3_system_controller: Support optional boot_notification channel

2022-01-18 Thread Tom Rini
On Tue, Jan 18, 2022 at 07:50:34AM -0600, Nishanth Menon wrote: > On 07:50-20220118, Tom Rini wrote: > > On Tue, Jan 18, 2022 at 11:26:50AM +0530, Aswath Govindraju wrote: > > > Hi Tomi, > > > > > > On 17/01/22 7:24 pm, Tom Rini wrote: > > > >

Re: [PATCH u-boot-dm v2] fdt_support: Add fdt_for_each_node_by_compatible() helper macro

2022-01-18 Thread Marek Behún
On Tue, 18 Jan 2022 14:28:17 +0100 Stefan Roese wrote: > Hi Marek, > > On 1/10/22 11:46, Marek Behún wrote: > > From: Marek Behún > > > > Add macro fdt_for_each_node_by_compatible() to allow iterating over > > fdt nodes by compatible string. > > > > Convert various usages of > > off = fd

[PATCH u-boot-dm v3] fdt_support: Add fdt_for_each_node_by_compatible() helper macro

2022-01-18 Thread Marek Behún
From: Marek Behún Add macro fdt_for_each_node_by_compatible() to allow iterating over fdt nodes by compatible string. Convert various usages of off = fdt_node_offset_by_compatible(fdt, start, compat); while (off > 0) { code(); off = fdt_node_offset_by_compatible(fdt, off,

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-18 Thread Ilias Apalodimas
Hi Heinrich, > > > > - info.checksum = > > > > image_get_checksum_algo("sha256,rsa2048"); [...] > > > > - info.name = "sha256,rsa2048"; > > > > - } else { > > > > - pr_warn("unknown msg digest algo: %s\n", > > > > sig->hash_algo); > > > > +

Re: [PATCH v2 01/20] remoteproc: k3_system_controller: Support optional boot_notification channel

2022-01-18 Thread Nishanth Menon
On 07:50-20220118, Tom Rini wrote: > On Tue, Jan 18, 2022 at 11:26:50AM +0530, Aswath Govindraju wrote: > > Hi Tomi, > > > > On 17/01/22 7:24 pm, Tom Rini wrote: > > > On Mon, Jan 17, 2022 at 12:22:52PM +0530, Aswath Govindraju wrote: > > >> Hi Tom,

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-18 Thread Heinrich Schuchardt
On 1/18/22 13:50, Ilias Apalodimas wrote: Akashi-san, On Tue, Jan 18, 2022 at 09:38:22PM +0900, AKASHI Takahiro wrote: Hi Ilias, On Tue, Jan 18, 2022 at 01:12:37PM +0200, Ilias Apalodimas wrote: Right now the code explicitly limits us to sha1,256 hashes with RSA2048 encryption. But the limit

Re: [PATCH v2 1/2] cmd: source: Use script from default config

2022-01-18 Thread Tom Rini
On Sat, Jan 01, 2022 at 07:45:39PM +0100, Sven Schwermer wrote: > When sourcing FIT images, source the script node from the "bootscr" > property within the default configuration. If > board_fit_config_name_match is overridden, this will determine the > selected configuration rather than the defaul

Re: [PATCH u-boot-dm v2] fdt_support: Add fdt_for_each_node_by_compatible() helper macro

2022-01-18 Thread Stefan Roese
Hi Marek, On 1/10/22 11:46, Marek Behún wrote: From: Marek Behún Add macro fdt_for_each_node_by_compatible() to allow iterating over fdt nodes by compatible string. Convert various usages of off = fdt_node_offset_by_compatible(fdt, start, compat); while (off > 0) { code();

RE: imx8mm-evk does not boot kernel 5.16

2022-01-18 Thread Jacky Bai
> Subject: Re: imx8mm-evk does not boot kernel 5.16 > > Hi Tim, > > On Mon, Jan 17, 2022 at 2:09 PM Tim Harvey > wrote: > > > Interesting. Can you give us a breakdown of pros and cons of using > > mainline TF-A vs NXP's? I'm not clear if NXP has been actively pushing > > their changes up or not

Re: [PATCH v2 01/20] remoteproc: k3_system_controller: Support optional boot_notification channel

2022-01-18 Thread Tom Rini
On Tue, Jan 18, 2022 at 11:26:50AM +0530, Aswath Govindraju wrote: > Hi Tomi, > > On 17/01/22 7:24 pm, Tom Rini wrote: > > On Mon, Jan 17, 2022 at 12:22:52PM +0530, Aswath Govindraju wrote: > >> Hi Tom, > >> > >> On 17/01/22 11:01 am, Aswath Govindraju wrote: > >>> Hi Tom, > >>> > >>> On 13/01/22

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-18 Thread Ilias Apalodimas
Akashi-san, On Tue, Jan 18, 2022 at 09:38:22PM +0900, AKASHI Takahiro wrote: > Hi Ilias, > > On Tue, Jan 18, 2022 at 01:12:37PM +0200, Ilias Apalodimas wrote: > > Right now the code explicitly limits us to sha1,256 hashes with RSA2048 > > encryption. But the limitation is artificial since U-Boot

Re: [PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-18 Thread AKASHI Takahiro
Hi Ilias, On Tue, Jan 18, 2022 at 01:12:37PM +0200, Ilias Apalodimas wrote: > Right now the code explicitly limits us to sha1,256 hashes with RSA2048 > encryption. But the limitation is artificial since U-Boot supports > a wider range of algorithms. > > The internal image_get_[checksum|crypto]_a

Re: [PATCH] imx8mn-ddr4-evk: generate single bootable image

2022-01-18 Thread Fabio Estevam
On Mon, Jan 17, 2022 at 7:04 PM Andrey Zhizhikin wrote: > > As suggested in commit 028abfd9b157 ("imx8mm-evk: Generate a single > bootable flash.bin again") for imx8mm_evk, it is possible to produce > single bootable image via binman. This restores the original behavior in > distros, where only on

Re: [PATCH] imx: ventana: correct splashimage load address

2022-01-18 Thread Fabio Estevam
Hi Andrey, On Mon, Jan 17, 2022 at 8:32 AM Andrey Zhizhikin wrote: > > Commit 72d81360aabd ("global: Convert CONFIG_LOADADDR to > CONFIG_SYS_LOADADDR") dropped the usage of LOADADDR and replaced it with > SYS_LOADADDR. > > Use the correct macro in environment by replacing CONFIG_LOADADDR with > C

Re: [PATCH v2] ARM: mvebu: x530: Add option for ECC

2022-01-18 Thread Stefan Roese
On 1/18/22 09:57, Chris Packham wrote: On Tue, 18 Jan 2022, 8:11 PM Stefan Roese, > wrote: Hi Chris, On 1/11/22 02:49, Chris Packham wrote: > Some older x530 boards have layout issues that cause problems for DDR. > These are usually seen as training

Re: [PATCH 2/2] phy: marvell: Remove unused function comphy_update_map()

2022-01-18 Thread Stefan Roese
On 1/18/22 10:33, Pali Rohár wrote: This weak function is not used anymore, so completely remove it. Private struct comphy_map is not used by any board code anymore, so move it into private driver header file comphy_core.h. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH 1/2] arm: mvebu: turris_mox: Convert comphy_update_map() to board_fix_fdt()

2022-01-18 Thread Stefan Roese
On 1/18/22 10:33, Pali Rohár wrote: Code in board_fix_fdt() already detects connected MOX modules so there is no need to have custom comphy_update_map() function for setting serdes speeds. This change sets phy-mode for MOX SFP module (when present) to sgmii. Comphy driver then sets sgmii serdes

Re: [PATCH] arm: a37xx: Disable CONFIG_DEBUG_UART_ANNOUNCE

2022-01-18 Thread Stefan Roese
On 1/18/22 10:43, Pali Rohár wrote: After next branch was merged to v2022.01 release, U-Boot on A3720 started printing "" line on UART during booting. There is no need to print this debug line by default, so disable it via config option CONFIG_DEBUG_UART_ANNOUNCE in all config files for Armada 37

[PATCH] lib/crypto: Enable more algorithms in cert verification

2022-01-18 Thread Ilias Apalodimas
Right now the code explicitly limits us to sha1,256 hashes with RSA2048 encryption. But the limitation is artificial since U-Boot supports a wider range of algorithms. The internal image_get_[checksum|crypto]_algo() functions expect an argument in the format of ,. So let's remove the size checki

Re: [PATCH 0/3] QEMU spike machine support for U-Boot

2022-01-18 Thread Anup Patel
On Tue, Jan 18, 2022 at 3:41 PM Bin Meng wrote: > > On Sat, Jan 15, 2022 at 12:20 AM Anup Patel wrote: > > > > We can use same U-Boot binary compiled using qemu-riscv64_smode_defconfig > > on QEMU virt machine and QEMU spike machine. To achieve this, we need HTIF > > console support for U-Boot QE

[PATCH v3 11/11] dts: am57xx*: Add ipu early boot DT changes

2022-01-18 Thread Amjad Ouled-Ameur
From: Keerthy Add support for ipu early boot. Signed-off-by: Keerthy Signed-off-by: Amjad Ouled-Ameur --- (no changes since v1) MAINTAINERS | 1 + arch/arm/dts/am57xx-beagle-x15-revb1-u-boot.dtsi | 7 +++ arch/arm/dts/am57xx-beagle-x15-revc-u-boot.d

[PATCH v3 06/11] remoteproc: uclass: Add remoteproc resource handling helpers

2022-01-18 Thread Amjad Ouled-Ameur
From: Keerthy Add remoteproc resource handling helpers. These functions are primarily to parse the resource table and to handle different types of resources. Carveout, devmem, trace & vring resources are handled. Signed-off-by: Keerthy [Amjad: fix redefinition of "struct resource_table" and com

[PATCH v3 07/11] remoteproc: ipu: Add driver to bring up ipu

2022-01-18 Thread Amjad Ouled-Ameur
From: Keerthy The driver enables IPU support. Basically enables the clocks, timers, watchdog timers and bare minimal MMU and supports loading the firmware from mmc. Signed-off-by: Keerthy [Amjad: fix compile warnings] Signed-off-by: Amjad Ouled-Ameur --- (no changes since v1) MAINTAINERS

  1   2   >