Re: [PATCH v6 1/3] dt-bindings: mtd: partitions: Add binman compatible

2024-03-07 Thread Miquel Raynal
Hi Simon, s...@chromium.org wrote on Fri, 8 Mar 2024 15:44:25 +1300: > Hi Miquel, > > On Tue, 6 Feb 2024 at 01:17, Miquel Raynal wrote: > > > > Hi Simon, > > > > > > > > > > > > > > > > +description: | > > > > > > > > > > > > > > + The binman node provides a layout for firmware, > > > > >

[PATCH v1 2/2] board: starfive: maintainer: Add visionfive2 PCIe driver

2024-03-07 Thread Minda Chen
Add PCIe driver file to visionfive2 board MAINTAINERS list. Signed-off-by: Minda Chen --- board/starfive/visionfive2/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index 5056e9c713..d7f638f9b4

[PATCH v1 1/2] board: starfive: Update maintainer of VisionFive v2 board

2024-03-07 Thread Minda Chen
Update the maintainer of Starfive VisionFive v2 board. Signed-off-by: Minda Chen --- board/starfive/visionfive2/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index

Re: [PATCH v3] test/py: reset: Add a test for reset command

2024-03-07 Thread Angelo Dureghello
Hi, On 07/03/24 1:55 PM, Tom Rini wrote: On Thu, Mar 07, 2024 at 09:26:42AM +0100, Michal Simek wrote: On 3/7/24 08:56, Angelo Dureghello wrote: Hi Tom, On 07/03/24 1:10 AM, Tom Rini wrote: On Thu, Mar 07, 2024 at 12:36:42AM +0100, Angelo Dureghello wrote: Hi, On 05/03/24 1:34 PM,

RE: [RESEND v2 1/1] arch: arm: Agilex5 enablement

2024-03-07 Thread Chee, Tien Fong
Hi Jit loon, > -Original Message- > From: Lim, Jit Loon > Sent: Thursday, March 7, 2024 12:42 AM > To: u-boot@lists.denx.de > Cc: Jagan Teki ; Marek ; > Simon ; Chee, Tien Fong > ; Hea, Kok Kiang ; > Maniyam, Dinesh ; Ng, Boon Khai > ; Yuslaimi, Alif Zakuan > ; Chong, Teik Heng > ;

RE: [RESEND v2 1/1] arch: arm: Agilex5 enablement

2024-03-07 Thread Chee, Tien Fong
Hi, > -Original Message- > From: Lim, Jit Loon > Sent: Thursday, March 7, 2024 12:42 AM > To: u-boot@lists.denx.de > Cc: Jagan Teki ; Marek ; > Simon ; Chee, Tien Fong > ; Hea, Kok Kiang ; > Maniyam, Dinesh ; Ng, Boon Khai > ; Yuslaimi, Alif Zakuan > ; Chong, Teik Heng > ; Zamri,

[PATCH] Makefile: Improve generated_defconfig file handling

2024-03-07 Thread Sam Protsenko
Commit 2027e99e61aa ("Makefile: Run defconfig files through the C preprocessor") adds `generated_defconfig' file, but fails to clean that up. It might be useful to have that file around after `make' is done, but it's better to clean that up on `make clean'. Also we probably want to hide it in `git

Re: [RFC 3/5] board: starfive: support Milk-V Mars board

2024-03-07 Thread Heinrich Schuchardt
On 3/8/24 04:20, Heinrich Schuchardt wrote: On 3/8/24 03:06, E Shattow wrote: P.S. Found the longer description at https://github.com/milkv-mars/mars-buildroot-sdk/commit/d381610c92827de01b25843786012351b3f35519

Re: [PATCH v6 1/3] dt-bindings: mtd: partitions: Add binman compatible

2024-03-07 Thread Simon Glass
Hi Miquel, On Tue, 6 Feb 2024 at 01:17, Miquel Raynal wrote: > > Hi Simon, > > > > > > > > > > > > > > +description: | > > > > > > > > > > > > > + The binman node provides a layout for firmware, > > > > > > > > > > > > > used when packaging firmware > > > > > > > > > > > > > + from multiple

Re: [RFC 3/5] board: starfive: support Milk-V Mars board

2024-03-07 Thread Heinrich Schuchardt
On 3/8/24 03:06, E Shattow wrote: P.S. Found the longer description at https://github.com/milkv-mars/mars-buildroot-sdk/commit/d381610c92827de01b25843786012351b3f35519 as follows: "if configured as

[PATCH v2] rockchip: load env from boot MMC device

2024-03-07 Thread Ben Wolsieffer
Currently, if the environment is stored on an MMC device, the device number is hardcoded by CONFIG_SYS_MMC_ENV_DEV. This is problematic because many boards can choose between booting from an SD card or a removable eMMC. For example, the Rock64 defconfig sets CONFIG_SYS_MMC_ENV_DEV=1, which

Re: [PATCH] rockchip: load env from boot MMC device

2024-03-07 Thread Ben Wolsieffer
Hi Quentin, On Mon, Feb 26, 2024 at 12:26:59PM +0100, Quentin Schulz wrote: > Hi Ben, > > On 2/26/24 02:14, Ben Wolsieffer wrote: > > [Some people who received this message don't often get email from > > benwolsief...@gmail.com. Learn why this is important at > >

Re: [RFC 5/5] doc: describe Milk-V Mars board

2024-03-07 Thread Heinrich Schuchardt
On 3/8/24 00:20, E Shattow wrote: On Sun, Mar 3, 2024 at 5:02 AM Heinrich Schuchardt > wrote: ... +The board provides the DIP switches MSEL[1:0] to select the boot device out of +SPI flash, eMMC, SD-card, UART. To select booting from

[PATCH 4/4] clk: exynos: Add CMU_CORE and CMU_HSI for Exynos850

2024-03-07 Thread Sam Protsenko
CMU_CORE generates clocks needed for eMMC enablement, and CMU_HSI provides clocks for SD card and USB. Most of the code is copied from the Linux kernel counterpart driver. Signed-off-by: Sam Protsenko --- drivers/clk/exynos/clk-exynos850.c | 252 + 1 file changed,

[PATCH 3/4] clk: exynos: Fix incorrect clock lookup for non-top CMUs

2024-03-07 Thread Sam Protsenko
Samsung clock drivers usually define the clock indices that are unique per one CMU, but are not unique across all CMUs. That is, clock indices start from 1 for each CMU, as provided in CMU bindings header. The way the clock lookup via clk_get_by_index() works at the moment is by using

[PATCH 0/4] clk: exynos: Prepare clocks for eMMC enablement

2024-03-07 Thread Sam Protsenko
This short series features a couple of Exynos850 clock driver fixes and adds new clocks needed for further eMMC and SD card enablement. Sam Protsenko (4): clk: exynos: Re-arrange clocks in Exynos850 CMU_TOP clk: exynos: Don't expose prototypes for not used functions clk: exynos: Fix

[PATCH 2/4] clk: exynos: Don't expose prototypes for not used functions

2024-03-07 Thread Sam Protsenko
Samsung CCF is meant to be used from the clock drivers by calling the CMU registration API, i.e.: - samsung_cmu_register_one() -- for top-level CMU - samsung_register_cmu() -- for the rest of CMUs Functions for registering separate clocks is probably not going to be very useful, and isn't

[PATCH 1/4] clk: exynos: Re-arrange clocks in Exynos850 CMU_TOP

2024-03-07 Thread Sam Protsenko
Group CMU_TOP clocks to make it easier to add the support for more CMUs. No functional change. Signed-off-by: Sam Protsenko --- drivers/clk/exynos/clk-exynos850.c | 56 -- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git

Re: [RFC 3/5] board: starfive: support Milk-V Mars board

2024-03-07 Thread E Shattow
P.S. Found the longer description at https://github.com/milkv-mars/mars-buildroot-sdk/commit/d381610c92827de01b25843786012351b3f35519 as follows: "if configured as 24c04, its address will occupy 0x51, conflicting with the RTC chip pcf85063 on the IO-Board. Refer to:

Re: [PATCH] doc: board: starfive: Fix paths in the bash block

2024-03-07 Thread Ivan Orlov
On 3/5/24 19:52, Heinrich Schuchardt wrote: On 3/4/24 23:15, Ivan Orlov wrote:  From the current documentation it is not entirely obvious where to take some of the u-boot build artifacts in order to flash them to the sd card. Extend the "Program the SD card" block by providing relative paths to

[PATCH] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present

2024-03-07 Thread Sam Protsenko
Sometimes clocks provided to a consumer might not have .set_rate operation (like gate or mux clocks), but have CLK_SET_PARENT_RATE flag set. In that case it's usually possible to find a parent up the tree which is capable of setting the rate (div, pll, etc). Implement a simple lookup procedure for

Re: [RFC 5/5] doc: describe Milk-V Mars board

2024-03-07 Thread E Shattow
On Sun, Mar 3, 2024 at 5:02 AM Heinrich Schuchardt < heinrich.schucha...@canonical.com> wrote: ... > +The board provides the DIP switches MSEL[1:0] to select the boot device > out of > +SPI flash, eMMC, SD-card, UART. To select booting from SD-card set the DIP > +switches MSEL[1:0] to 10. > This

Re: [PATCH v2 2/2] android_ab: Fix ANDROID_AB_BACKUP_OFFSET

2024-03-07 Thread Sam Protsenko
On Thu, Mar 7, 2024 at 4:11 PM Colin McAllister wrote: > > Currently, setting CONFIG_AB_BACKUP_OFFSET in a target's defconfig will > not actually enable the #if protected code in android_ab.c. This is > because "CONFIG_" should have been prepended to the config macro, or the > macros defined in

Re: [RFC 3/5] board: starfive: support Milk-V Mars board

2024-03-07 Thread E Shattow
On Sun, Mar 3, 2024 at 5:02 AM Heinrich Schuchardt < heinrich.schucha...@canonical.com> wrote: ... > * The EEPROM is atmel,24c02 according to the vendor U-Boot. > ... The same vendor (Milk-V) U-Boot change is present on their branch for Mars CM Lite (which despite the naming has more in common

Re: [PATCH v2 1/2] android_ab: Add missing semicolon

2024-03-07 Thread Sam Protsenko
On Thu, Mar 7, 2024 at 4:11 PM Colin McAllister wrote: > > Found a missing semicolon in code protected by a #if that will never > evaluate to true due to a separate issue. Fixing this issue before > addressing the #if. > > Signed-off-by: Colin McAllister > Cc: Joshua Watt > Cc: Simon Glass >

[PATCH v2 0/2] Fix Android A/B backup

2024-03-07 Thread Colin McAllister
- Addresses compiler error due to missing semicolon - Removes use of preprocessor macros with ANDROID_AB_BACKUP_OFFSET Bug was found by noticing a semicolon was missing and not causing a compiler error when CONFIG_ANDROID_AB_BACKUP_OFFSET was set. I submitted a patch to fix the semicolon before

[PATCH v2 1/2] android_ab: Add missing semicolon

2024-03-07 Thread Colin McAllister
Found a missing semicolon in code protected by a #if that will never evaluate to true due to a separate issue. Fixing this issue before addressing the #if. Signed-off-by: Colin McAllister Cc: Joshua Watt Cc: Simon Glass --- boot/android_ab.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 2/2] android_ab: Fix ANDROID_AB_BACKUP_OFFSET

2024-03-07 Thread Colin McAllister
Currently, setting CONFIG_AB_BACKUP_OFFSET in a target's defconfig will not actually enable the #if protected code in android_ab.c. This is because "CONFIG_" should have been prepended to the config macro, or the macros defined in kconfig.h could have been used. The code included by

Re: Can U-Boot create mtdparts from device tree partition info?

2024-03-07 Thread Chuck Meade
Hi Alex, On Thu, Mar 7, 2024 at 4:17 AM Alexander Dahl wrote: > Hello Chuck, > > Am Wed, Mar 06, 2024 at 11:48:39AM -0500 schrieb Chuck Meade: > > Hello, > > > > In looking through the source, I'm not yet seeing logic that allows > U-Boot > > to actually use MTD partition information found in

[PATCH v5] cmd: add FDT setup for bootelf by flag

2024-03-07 Thread Maxim Moskalets
From: Maxim Moskalets Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command. Enable by selecting CMD_ELF_FDT_SETUP. Signed-off-by: Maxim Moskalets --- cmd/Kconfig | 11 +++

[PATCH] cmd: add FDT setup for bootelf by flag

2024-03-07 Thread Maxim Moskalets
From: Maxim Moskalets Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command. Enable by selecting CMD_ELF_FDT_SETUP. Signed-off-by: Maxim Moskalets --- cmd/Kconfig | 11 +++

Re: U-boot fails for khadas-edge -v

2024-03-07 Thread Fabio Estevam
On Thu, Mar 7, 2024 at 2:43 PM Vivek Jaiswal wrote: > are you saying to use this one? > https://github.com/u-boot/u-boot/blob/master/configs/khadas-edge-v-rk3399_defconfig Yes, this one.

How to add the bootargs parameter between the bootcmds parameters

2024-03-07 Thread Mario Marietto
Hello to everyone. These days I'm playing with my old ARM Chromebook model "SNOW". As you probably know,this kind of Netbook can load an external operating system using the sd card slot or the usb port. Unfortunately,my Chromebook has the sd card slot broken. So,what I want to do is to load Linux

Re: [PATCH] configs: imx8mp_beacon: Fall back to using TF-A

2024-03-07 Thread Fabio Estevam
Hi Adam, On Thu, Mar 7, 2024 at 8:59 AM Adam Ford wrote: > > When the board was originally added, it enabled some features which > allowed it to bypass Trusted Firmware, but as the feature set of > Linux grew and more features became available, the U-Boot config > options which bypassed TF-A

Re: [PATCH v4] cmd: add FDT setup for bootelf by flag

2024-03-07 Thread Tom Rini
On Thu, Mar 07, 2024 at 10:35:35PM +0300, Maxim M. Moskalets wrote: > On 07.03.2024 15:41, Tom Rini wrote: > > On Mon, Feb 26, 2024 at 09:35:53PM +0300, Maxim Moskalets wrote: > > > > > From: Maxim Moskalets > > > > > > Added the ability to use FDT for ELF applications, required to run some > >

Re: [PATCH v3 0/2] board: phytec_imx8mp: Use 2GHz RAM timings for PCL-070 from pcb_rev 1

2024-03-07 Thread Fabio Estevam
Hi Benjamin, On Wed, Mar 6, 2024 at 1:18 PM Benjamin Hahn wrote: > > PCL-070 supports 2GHz RAM-timings from pcb_rev 1 and newer. PCM-070 > supports 2GHz RAM-timings only from pcb_rev 3 and newer. > > Signed-off-by: Benjamin Hahn v3 looks good. Is this material for U-Boot 2024.04 or 2024.07?

Re: [PATCH v4] cmd: add FDT setup for bootelf by flag

2024-03-07 Thread Maxim M. Moskalets
On 07.03.2024 15:41, Tom Rini wrote: On Mon, Feb 26, 2024 at 09:35:53PM +0300, Maxim Moskalets wrote: From: Maxim Moskalets Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command.

Re: ECDSA related PRs

2024-03-07 Thread Igor Opaniuk
Hi Bob, On Thu, Mar 7, 2024 at 12:49 AM Bob Wolff wrote: > Hey all, > I'm not opposed to using the kernel ecdsa.c and have taken a quick look at > `ecdsa_verify()` - but I'd love if someone could point me in the right > direction for how to set up the context and public key. The >

Re: U-boot fails for khadas-edge -v

2024-03-07 Thread Vivek Jaiswal
Hello Fabio, Thanks for looking into the matter. Can you please send me the link of the khadas-edge-v-rk3399_defconfig in main line. I am not been able to find any mainline branch in https://github.com/khadas/u-boot are you saying to use this one?

Re: [PATCH 2/2] android_ab: Fix ANDROID_AB_BACKUP_OFFSET

2024-03-07 Thread Igor Opaniuk
Hello Colin, +CC Mattijs, Sam On Thu, Mar 7, 2024 at 5:19 PM Colin McAllister wrote: > Currently, setting CONFIG_AB_BACKUP_OFFSET in a target's defconfig will > not actually enable the #if protected code in android_ab.c. This is > because "CONFIG_" should have been prepended to the config

Re: [PATCH v3 2/2] doc: board: phytec: Add phyCORE-AM64x

2024-03-07 Thread Tom Rini
On Wed, Feb 28, 2024 at 09:42:17AM +0100, Wadim Egorov wrote: > Add documentation for PHYTEC phyCORE-AM64x SoM. > > Signed-off-by: Wadim Egorov > Reviewed-by: Dhruva Gole Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] autoboot: Add check for result of malloc_cache_aligned()

2024-03-07 Thread Tom Rini
On Fri, Mar 01, 2024 at 01:32:11AM +0300, Maks Mishin wrote: > Return value of a function 'malloc_cache_aligned' > is dereferenced at autoboot.c:207 without checking for NULL, > but it is usually checked for this function. > > Found by RASU JSC. > > Signed-off-by: Maks Mishin Applied to

Re: [PATCH v2] serial: pl01x: set baudrate when probing

2024-03-07 Thread Tom Rini
On Wed, Feb 28, 2024 at 06:57:52PM +0800, Yang Xiwen via B4 Relay wrote: > From: Yang Xiwen > > It is found that when DM is enabled, only generic init function is > called in .probe(). Baudrate is never honored. Add a function call > to .setbrg() when probing so that we can update the baudrate

Re: [PATCH v2 1/2] net: mdio: Handle bus level GPIO Reset

2024-03-07 Thread Tom Rini
On Wed, Feb 28, 2024 at 12:35:26PM +0200, Roger Quadros wrote: > Some platforms have bus level Reset controlled > by a GPIO line. If available then handle bus reset > via GPIO. > > Signed-off-by: Roger Quadros Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 1/2] board: phytec: am64x: Add PHYTEC phyCORE-AM64x SoM

2024-03-07 Thread Tom Rini
On Wed, Feb 28, 2024 at 09:42:16AM +0100, Wadim Egorov wrote: > Add support for PHYTEC phyCORE-AM64x SoM. > > Supported features: > - 2GB DDR4 RAM > - eMMC Flash > - external uSD > - OSPI NOR Flash > - debug UART > > Product page SoM: https://www.phytec.com/product/phycore-am64x > >

Re: [PATCH v2 2/2] net: am65-cpsw: cpsw_mdio: Switch to proper DM_MDIO framework

2024-03-07 Thread Tom Rini
On Wed, Feb 28, 2024 at 12:35:27PM +0200, Roger Quadros wrote: > Add a new Kconfig symbol MDIO_TI_CPSW for the CPSW MDIO > driver and build it with proper DM support if enabled. > > If MDIO_TI_CPSW is not enabled then we continue to > behave like before. > > Clean up MDIO custom handling in

Re: [PATCH] Check curve_name for null to avoid crash

2024-03-07 Thread Tom Rini
On Tue, Feb 27, 2024 at 03:57:03PM -0800, Bob Wolff wrote: > If mixed rsa and ecdsa keys are specified in dtsi, an rsa key can be sent > into the ecdsa verify. Without the ecdsa,curve property, this function will > crash due to lack of checking the null pointer return. > > Signed-off-by: Bob

Re: [PATCH v2] cmd: md5sum: use hash_command

2024-03-07 Thread Tom Rini
On Sat, Mar 02, 2024 at 04:05:48PM +0100, Igor Opaniuk wrote: > Drop old implementation and use hash_command() instead, as > how it's currently done for crc32 and sha1sum cmds. > > Test: > => md5sum 0x6000 0x200 > md5 for 6000 ... 61ff ==> e6bbbe95f5b41996f4a9b9af7bbd4050 > >

Re: U-boot fails for khadas-edge -v

2024-03-07 Thread Fabio Estevam
Hi Vivek, On Thu, Mar 7, 2024 at 11:56 AM Vivek Jaiswal wrote: > > Hello U-boot Team, > I am using the u-boot for Khadas Edge-v rk3399 rockchip: > https://github.com/khadas/u-boot/tree/khadas-edges-v2017.09-release-v1.0.0?tab=readme-ov-file > And I am using configuration file : >

Re: [PATCH 6/6] arm: move image_copy_start/end to linker symbols

2024-03-07 Thread Ilias Apalodimas
On Thu, 7 Mar 2024 at 08:55, Ilias Apalodimas wrote: > > On Thu, 7 Mar 2024 at 01:08, Sam Edwards wrote: > > > > > > > > On 3/6/24 06:23, Ilias Apalodimas wrote: > > > On Wed, 6 Mar 2024 at 12:37, Ilias Apalodimas > > > wrote: > > >> > > >> On Wed, 6 Mar 2024 at 11:35, Ilias Apalodimas > > >>

[PATCH v1] configs: colibri-imx7: enable watchdog

2024-03-07 Thread Parth Pancholi
From: Parth Pancholi Enable watchdog functionality for Toradex's Colibri iMX7 (NAND/EMMC) modules. Signed-off-by: Parth Pancholi --- arch/arm/dts/imx7d-colibri-eval-v3-u-boot.dtsi | 4 configs/colibri_imx7_defconfig | 2 ++ configs/colibri_imx7_emmc_defconfig|

[PATCH 2/2] android_ab: Fix ANDROID_AB_BACKUP_OFFSET

2024-03-07 Thread Colin McAllister
Currently, setting CONFIG_AB_BACKUP_OFFSET in a target's defconfig will not actually enable the #if protected code in android_ab.c. This is because "CONFIG_" should have been prepended to the config macro, or the macros defined in kconfig.h could have been used. Each use of AB_BACKUP_OFFSET is

[PATCH 1/2] android_ab: Add missing semicolon

2024-03-07 Thread Colin McAllister
Found a missing semicolon in code protected by a #if that will never evaluate to true due to a separate issue. Fixing this issue before addressing the #if. Signed-off-by: Colin McAllister Cc: Joshua Watt Cc: Simon Glass --- boot/android_ab.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 0/2] Fix Android A/B backup

2024-03-07 Thread Colin McAllister
- Addresses compiler error due to missing semicolon - Fixes use of ANDROID_AB_BACKUP_OFFSET in preprocessor macros Bug was found by noticing a semicolon was missing and not causing a compiler error when CONFIG_ANDROID_AB_BACKUP_OFFSET was set. I submitted a patch to fix the semicolon before

Re: [PATCH v2 5/8] phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY

2024-03-07 Thread Tim Harvey
On Wed, Mar 6, 2024 at 10:35 PM Sumit Garg wrote: > > On Wed, 6 Mar 2024 at 22:56, Tim Harvey wrote: > > > > On Tue, Mar 5, 2024 at 4:47 PM Adam Ford wrote: > > > > > > On Tue, Mar 5, 2024 at 7:51 AM Adam Ford wrote: > > > > > > > > On Tue, Mar 5, 2024 at 7:48 AM Sumit Garg wrote: > > > > > >

[PATCH v2] arm64: zynqmp: Add label to pmu fwnode

2024-03-07 Thread lukas . funke-oss
From: Lukas Funke ZynqMP CG series devices only have two cpus. In this case the interrupt-affinity property has to adapted, because cpu3 and cpu4 are missing. By adding a label to the pmu fwnode the interrupt-affinity can be adapted in a device specific DT. Signed-off-by: Lukas Funke ---

Re: [PATCH] mips: implement __udivdi3

2024-03-07 Thread Bartel Eerdekens
Could this be merged? Tested here, and solves my mips32 build of squashfs in u-boot.

[PATCH v2 3/3] spinand: bind mtdblock

2024-03-07 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2a3dbcfcb4..dd880adf31 100644 ---

[PATCH v2 2/3] drivers: introduce mtdblock abstraction

2024-03-07 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 +

[PATCH v2 1/3] disk: support MTD partitions

2024-03-07 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 5 +++- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 69 +++ include/part.h| 2 ++ 4 files

[PATCH v2 0/3] Introduce mtdblock device

2024-03-07 Thread Alexey Romanov
Hello! This series adds support for the mtdblock device, which allows to read/write data block by block. For example, it can now be used for BCB or Android AB command: $ bcb load mtd 0 part_name Tested only on SPI NAND, so bind is made only for SPI NAND drivers. --- Changes V1 -> V2 [1]:

U-boot fails for khadas-edge -v

2024-03-07 Thread Vivek Jaiswal
Hello U-boot Team, I am using the u-boot for Khadas Edge-v rk3399 rockchip: https://github.com/khadas/u-boot/tree/khadas-edges-v2017.09-release-v1.0.0?tab=readme-ov-file And I am using configuration file :

Re: [PATCH v1 1/4] drivers: introduce mtdblock abstraction

2024-03-07 Thread Alexey Romanov
Hi Heinrich, On Tue, Feb 27, 2024 at 02:37:17PM +0100, Heinrich Schuchardt wrote: > On 27.02.24 11:04, Alexey Romanov wrote: > > MTD block - abstraction over MTD subsystem, allowing > > to read and write in blocks using BLK UCLASS. > > > > - Read algorithm: > > > >1. Convert start block

Re: [PATCH v4] disk: dos: Add all options for EFI System Partitions

2024-03-07 Thread Tom Rini
On Sat, Mar 02, 2024 at 11:20:31AM +, Peter Robinson wrote: > The EFI spec states that the ESP can be any of FAT12/16/32 but for > compatibility doesn't necssarily require the partition to be the > EFI partition table ID of 0xef. A number of arm devices will not > find their firmware on a FAT

Re: [PATCH v3] test/py: reset: Add a test for reset command

2024-03-07 Thread Tom Rini
On Thu, Mar 07, 2024 at 09:26:42AM +0100, Michal Simek wrote: > > > On 3/7/24 08:56, Angelo Dureghello wrote: > > Hi Tom, > > > > On 07/03/24 1:10 AM, Tom Rini wrote: > > > On Thu, Mar 07, 2024 at 12:36:42AM +0100, Angelo Dureghello wrote: > > > > Hi, > > > > > > > > On 05/03/24 1:34 PM,

Re: [PATCH v6] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-03-07 Thread Tom Rini
On Wed, Feb 28, 2024 at 05:36:45PM +0530, MD Danish Anwar wrote: > Add APIs to set a firmware_name to a rproc and boot the rproc with the > same firmware. > > Clients can call rproc_set_firmware() API to set firmware_name for a rproc > whereas rproc_boot() will load the firmware set by

Re: [PATCH v4] cmd: add FDT setup for bootelf by flag

2024-03-07 Thread Tom Rini
On Mon, Feb 26, 2024 at 09:35:53PM +0300, Maxim Moskalets wrote: > From: Maxim Moskalets > > Added the ability to use FDT for ELF applications, required to run some > OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for > bootelf command. > > Signed-off-by: Maxim Moskalets

Re: FEAT_CCIDX not tested when parsing ccsidr_el1

2024-03-07 Thread Fabio Estevam
Hi Łukasz, On Wed, Mar 6, 2024 at 3:21 PM Łukasz Więcaszek wrote: > I have already prepared a patch for our work related product and now I > am thinking of mainstreaming that piece of work. What do you think > about that? Please send a formal patch via git send-email.

Re: [PATCH v2 5/8] phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY

2024-03-07 Thread Sumit Garg
On Thu, 7 Mar 2024 at 17:12, Adam Ford wrote: > > On Thu, Mar 7, 2024 at 12:35 AM Sumit Garg wrote: > > > > On Wed, 6 Mar 2024 at 22:56, Tim Harvey wrote: > > > > > > On Tue, Mar 5, 2024 at 4:47 PM Adam Ford wrote: > > > > > > > > On Tue, Mar 5, 2024 at 7:51 AM Adam Ford wrote: > > > > > > >

[PATCH] configs: imx8mp_beacon: Fall back to using TF-A

2024-03-07 Thread Adam Ford
When the board was originally added, it enabled some features which allowed it to bypass Trusted Firmware, but as the feature set of Linux grew and more features became available, the U-Boot config options which bypassed TF-A caused issues, so it needs to return to the standard operating mode of

Re: [PATCH v2 5/8] phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY

2024-03-07 Thread Adam Ford
On Thu, Mar 7, 2024 at 12:35 AM Sumit Garg wrote: > > On Wed, 6 Mar 2024 at 22:56, Tim Harvey wrote: > > > > On Tue, Mar 5, 2024 at 4:47 PM Adam Ford wrote: > > > > > > On Tue, Mar 5, 2024 at 7:51 AM Adam Ford wrote: > > > > > > > > On Tue, Mar 5, 2024 at 7:48 AM Sumit Garg wrote: > > > > > >

Re: [PATCH] cmd: sbi: Correctly display unknown implementation IDs

2024-03-07 Thread Dan Carpenter
On Wed, Mar 06, 2024 at 03:44:02PM +0100, Heinrich Schuchardt wrote: > For an unknown implementation ID an output like > > SBI 1.0Unknown implementation ID 16777216 > Extensions: > sbi_set_timer > ... > > was shown. The number 16777216 is not the implementation ID. > > *

Re: [PATCH 3/4] mtd: nand: raw: Fix (most) Kconfig indentation

2024-03-07 Thread Michael Nazzareno Trimarchi
Hi On Thu, Mar 7, 2024 at 10:10 AM Alexander Dahl wrote: > > One tab in general. One tab plus two spaces for help text. > > Signed-off-by: Alexander Dahl > --- > drivers/mtd/nand/raw/Kconfig | 106 +-- > 1 file changed, 53 insertions(+), 53 deletions(-) > >

Re: [PATCH 2/4] mtd: nand: raw: Port another option flag from Linux

2024-03-07 Thread Michael Nazzareno Trimarchi
Hi On Thu, Mar 7, 2024 at 10:10 AM Alexander Dahl wrote: > > Introduced in upstream Linux with commit 7a08dbaedd365 for release v5.0. > > When the new atmel nand driver was backported to U-Boot with commit > 6a8dfd57220d ("nand: atmel: Add DM based NAND driver") that definition > was added to

Re: [PATCH 1/4] mtd: nand: raw: Use macro nand_to_mtd() where appropriate

2024-03-07 Thread Michael Nazzareno Trimarchi
On Thu, Mar 7, 2024 at 10:10 AM Alexander Dahl wrote: > > In every other place in this file the macro is used, make it consistent. > > Fixes: 9d1806fadc24 ("mtd: nand: Get rid of mtd variable in function calls") > Signed-off-by: Alexander Dahl > --- > drivers/mtd/nand/raw/nand_base.c | 6 +++---

Re: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-07 Thread Eugen Hristev
On 3/7/24 11:10, Alexander Dahl wrote: > For now adds one new command 'hsmc' with a single subcommand 'decode' to > read and display the content of the registers of the Static Memory > Controllers (SMC/HSMC) found in different at91 SoCs. Needed to get a > better picture on what raw nand core and

Re: [PATCH v1] include: android_bootloader_message.h: sync with AOSP upstream

2024-03-07 Thread Mattijs Korpershoek
Hi Igor, Sam, On mar., févr. 20, 2024 at 20:08, Igor Opaniuk wrote: > Hi Sam, > > On Tue, Feb 20, 2024 at 7:29 PM Sam Protsenko > wrote: >> >> On Mon, Feb 19, 2024 at 4:16 AM Igor Opaniuk wrote: >> > >> > This takes the latest changes from AOSP from [1][2] (as this >> > header was split on

Re: [PATCH v1] include: android_bootloader_message.h: sync with AOSP upstream

2024-03-07 Thread Mattijs Korpershoek
Hi Igor, Thank you for the patch. On lun., févr. 19, 2024 at 11:15, Igor Opaniuk wrote: > This takes the latest changes from AOSP from [1][2] (as this > header was split on two) with minimal changes (this could lead > to warnings reported by checkpatch). > > Some local changes have been

imx7 issues with Secure and Non-Secure boot mode

2024-03-07 Thread Emanuele Ghidoli
Hello, I'm currently facing issues with our board, Colibri-imx7, regarding its behavior in different boot modes: - Secure Mode (bootm_boot_mode=sec in U-Boot): When running Linux in secure mode, the idle time management does not function properly. The following error message is displayed

Re: Can U-Boot create mtdparts from device tree partition info?

2024-03-07 Thread Alexander Dahl
Hello Chuck, Am Wed, Mar 06, 2024 at 11:48:39AM -0500 schrieb Chuck Meade: > Hello, > > In looking through the source, I'm not yet seeing logic that allows U-Boot > to actually use MTD partition information found in the device tree.  Does > this logic exist and I'm just missing it?  Or do I need

[PATCH 1/4] mtd: nand: raw: Use macro nand_to_mtd() where appropriate

2024-03-07 Thread Alexander Dahl
In every other place in this file the macro is used, make it consistent. Fixes: 9d1806fadc24 ("mtd: nand: Get rid of mtd variable in function calls") Signed-off-by: Alexander Dahl --- drivers/mtd/nand/raw/nand_base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 0/4] mtd: nand: raw: Collected improvements

2024-03-07 Thread Alexander Dahl
Hello everyone, while working on NAND flash support for a custom board based on the at91 SAM9X60 SoC I stumbled over some issues in the raw nand subsystem. First three patches are minor fixes. Fourth patch is introducing a new subcommand for the new atmel nand controller driver, which helped me

[PATCH 2/4] mtd: nand: raw: Port another option flag from Linux

2024-03-07 Thread Alexander Dahl
Introduced in upstream Linux with commit 7a08dbaedd365 for release v5.0. When the new atmel nand driver was backported to U-Boot with commit 6a8dfd57220d ("nand: atmel: Add DM based NAND driver") that definition was added to the driver instead of the header file. Move it over to the other

[PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-07 Thread Alexander Dahl
For now adds one new command 'hsmc' with a single subcommand 'decode' to read and display the content of the registers of the Static Memory Controllers (SMC/HSMC) found in different at91 SoCs. Needed to get a better picture on what raw nand core and atmel nand controller driver try to set as

[PATCH 3/4] mtd: nand: raw: Fix (most) Kconfig indentation

2024-03-07 Thread Alexander Dahl
One tab in general. One tab plus two spaces for help text. Signed-off-by: Alexander Dahl --- drivers/mtd/nand/raw/Kconfig | 106 +-- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index

Re: [PATCH 1/1] serial: move sbi_dbcn_available to .data section

2024-03-07 Thread Conor Dooley
On Mon, Feb 26, 2024 at 05:32:26PM +0100, Heinrich Schuchardt wrote: > U-Boot SPL loads the device-tree directly behind main U-Boot overlapping > the .bss section. reserve_fdt() is called in board_init_f() to relocate the > device-tree to a safe location. > > Debug UARTs are enabled before

Re: [PATCH v3] test/py: reset: Add a test for reset command

2024-03-07 Thread Michal Simek
On 3/7/24 08:56, Angelo Dureghello wrote: Hi Tom, On 07/03/24 1:10 AM, Tom Rini wrote: On Thu, Mar 07, 2024 at 12:36:42AM +0100, Angelo Dureghello wrote: Hi, On 05/03/24 1:34 PM, Michal Simek wrote: On 3/3/24 22:58, Angelo Dureghello wrote: Hi Tom, On Tue, Feb 20, 2024 at 01:11:38PM

Re: [PATCH v3] test/py: reset: Add a test for reset command

2024-03-07 Thread Angelo Dureghello
Hi Tom, On 07/03/24 1:10 AM, Tom Rini wrote: On Thu, Mar 07, 2024 at 12:36:42AM +0100, Angelo Dureghello wrote: Hi, On 05/03/24 1:34 PM, Michal Simek wrote: On 3/3/24 22:58, Angelo Dureghello wrote: Hi Tom, On Tue, Feb 20, 2024 at 01:11:38PM +0530, Love Kumar wrote: Add a test for reset