Pull request: u-boot-rockchip-20240525

2024-05-24 Thread Kever Yang
Hi Tom, Please pull the updates for rockchip platform: - new board: rk3566 Powkiddy X55, rk3588s Indiedroid Nova; - rv1126 migrate to OF_UPSTREAM; - Fix for px30 ringneck board; - Fix for rk3588 SPLL clock init; CI: https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/pipelines/20844

Re: [PATCH V4] board: rockchip: Add Indiedroid Nova

2024-05-24 Thread Kever Yang
On 2024/5/25 00:48, Chris Morgan wrote: From: Chris Morgan The Indiedroid Nova is a Rockchip RK3588S based SBC from Indiedroid. Specifications: Rockchip RK3588S SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 4/8/16GB memory LPDDR4x Mali G610MC4 GPU Optional eMMC 2x

Re: [PATCH v2 00/10] xtensa: Enable qemu-xtensa board

2024-05-24 Thread Max Filippov
Hi Jiaxun, On Wed, May 22, 2024 at 06:07:56PM +0100, Jiaxun Yang wrote: > This is a side product of me investigating architectures > physical address != virtual address in U-Boot. Now we can > get it covered under CI and regular tests. > > VirtIO devices are not working as expected, due to

Re: [PATCH v3 00/20] FWU: Add support for FWU metadata version 2

2024-05-24 Thread Tom Rini
On Fri, 22 Mar 2024 16:27:13 +0530, Sughosh Ganu wrote: > The following patch series adds support for version 2 of the FWU > metadata. The version 2 metadata structure is defined in the latest > revision of the FWU specification [1]. > > The earlier versions of these patches were migrating to a

[RFC PATCH] test/cyclic: try to avoid spurious test failures due to cyclic callbacks

2024-05-24 Thread Rasmus Villemoes
Looking at failed pipelines on https://dev.azure.com/u-boot/u-boot/_build, it is easy to find lots of examples that have failed spuriously for the same reason: The "cyclic function ... took too long" message being printed in the middle of some console output, causing the 'expect' machinery to fail

Re: [GIT PULL] Please pull u-boot-imx-next-20240524

2024-05-24 Thread Tom Rini
n" (2024-05-22 > 08:55:35 -0600) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-next-20240524 > > for you to fetch changes up to 7457dc6f183303aaf2d58fff0a622e6791aba33c: > > imx:

Re: [PATCH V3] board: rockchip: Add Indiedroid Nova

2024-05-24 Thread Chris Morgan
On Fri, May 24, 2024 at 08:15:04AM -0600, Tom Rini wrote: > On Fri, May 24, 2024 at 05:58:34PM +0800, Kever Yang wrote: > > > Hi Tom, > > > >     This new boards has MAINTAINERS file, but the CI reports: > > > > WARNING: no maintainers for 'nova-rk3588s' > > > > Could you give advice for this?

Re: [PATCH v4 2/5] lib/lz4: update LZ4 decompressor module

2024-05-24 Thread Jonathan Liu
Hi Jianan, On Sat, 26 Feb 2022 at 18:05, Huang Jianan wrote: > > Update the LZ4 compression module based on LZ4 v1.8.3 in order to > use the newest LZ4_decompress_safe_partial() which can now decode > exactly the nb of bytes requested. > > Signed-off-by: Huang Jianan I noticed after this

[PATCH v2 04/14] net-lwip: add DHCP support and dhcp commmand

2024-05-24 Thread Jerome Forissier
Add what it takes to enable NETDEVICES with NET_LWIP and enable DHCP as well as the dhcp command. - net-lwip/net-lwip.c is mostly empty for now. It will provide functions similar to net/net.c except based on the lwIP stack - include/net-lwip.h is a replacement for include/net.h which is unused

[PATCH v2 01/14] net: introduce alternative implementation as net-lwip/

2024-05-24 Thread Jerome Forissier
Prepare the introduction of the lwIP (lightweight IP) TCP/IP stack by adding a new net-lwip/ directory and the NET_LWIP symbol. At this point, enabling NET_LWIP simply disables NET. Subsequent commits will introduce the lwIP code, re-work the NETDEVICE integration and port some of the NET commands

Re: [PATCH] mtd: spi-nor-ids: Add Puya Semiconductor chips description

2024-05-24 Thread Jagan Teki
On Mon, Feb 26, 2024 at 3:56 PM Dmitry Dunaev wrote: > > Added support for the Puya Semiconductor chips. > > The datasheet can be found here: > https://www.puyasemi.com/h_xilie715.html > > Signed-off-by: Dmitry Dunaev > --- Applied to u-boot-spi/master

Re: [PATCH v11 0/8] spi-nor: Add parallel and stacked memories support

2024-05-24 Thread Jagan Teki
On Fri, May 24, 2024 at 8:56 PM Tom Rini wrote: > > On Fri, May 24, 2024 at 04:09:00PM +0200, Michal Simek wrote: > > > > > > On 5/7/24 17:48, Tom Rini wrote: > > > On Tue, May 07, 2024 at 04:15:14AM +, Abbarapu, Venkatesh wrote: > > > > > > > + Tom Rini > > > > > > > > Do you have any

Re: [PATCH] mtd: spi-nor-ids: Add Puya Semiconductor chips description

2024-05-24 Thread Jagan Teki
On Mon, Feb 26, 2024 at 3:56 PM Dmitry Dunaev wrote: > > Added support for the Puya Semiconductor chips. > > The datasheet can be found here: > https://www.puyasemi.com/h_xilie715.html > > Signed-off-by: Dmitry Dunaev > --- Reviewed-by: Jagan Teki

Re: [PATCH] mtd: spi-nor: Clear Winbond SR3 WPS bit on boot

2024-05-24 Thread Jagan Teki
On Mon, Mar 4, 2024 at 9:46 PM Marek Vasut wrote: > > Some Winbond SPI NORs have special SR3 register which is > used among other things to control whether non-standard > "Individual Block/Sector Write Protection" (WPS bit) > locking scheme is activated. This non-standard locking > scheme is not

Re: [PATCH v11 0/8] spi-nor: Add parallel and stacked memories support

2024-05-24 Thread Tom Rini
On Fri, May 24, 2024 at 09:26:46AM -0600, Tom Rini wrote: > On Fri, May 24, 2024 at 04:09:00PM +0200, Michal Simek wrote: > > > > > > On 5/7/24 17:48, Tom Rini wrote: > > > On Tue, May 07, 2024 at 04:15:14AM +, Abbarapu, Venkatesh wrote: > > > > > > > + Tom Rini > > > > > > > > Do you have

Re: [PATCH v4 2/5] lib/lz4: update LZ4 decompressor module

2024-05-24 Thread Gao Xiang
Hi, On 2024/5/24 22:26, Jonathan Liu wrote: Hi Jianan, On Sat, 26 Feb 2022 at 18:05, Huang Jianan wrote: Update the LZ4 compression module based on LZ4 v1.8.3 in order to use the newest LZ4_decompress_safe_partial() which can now decode exactly the nb of bytes requested. Signed-off-by:

[PATCH V4] board: rockchip: Add Indiedroid Nova

2024-05-24 Thread Chris Morgan
From: Chris Morgan The Indiedroid Nova is a Rockchip RK3588S based SBC from Indiedroid. Specifications: Rockchip RK3588S SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 4/8/16GB memory LPDDR4x Mali G610MC4 GPU Optional eMMC 2x USB 2.0, 2x USB 3.0, 1x USB 3.0 C port with DP Alt

Re: [PATCH] ARM: imx: mx5: Simplify TFTP server layout on MX53 Menlo board

2024-05-24 Thread Fabio Estevam
On Tue, May 21, 2024 at 7:50 AM Marek Vasut wrote: > > From: Olaf Mandel > > By removing the "boot" directory in the "m53menlo/boot/fitImage" path, > we simplify the TFTP server directory layout a bit. This also requires a > change to the mmcload command as it (mis-)uses the same variable as the

Re: [PATCH] ARM: imx: mx5: Enable BMODE command on MX53 Menlo board

2024-05-24 Thread Fabio Estevam
On Tue, May 21, 2024 at 6:42 AM Marek Vasut wrote: > > The board can do primary/secondary boot switching, enable the bmode command. > > Signed-off-by: Marek Vasut Applied, thanks.

Re: [PATCH] ARM: dts: imx8mm: Update iMX8MM Menlo board configuration

2024-05-24 Thread Fabio Estevam
On Tue, May 21, 2024 at 6:41 AM Marek Vasut wrote: > > Synchronize Toradex Verdin iMX8MM based MX8Menlo board configuration > with Toradex Verdin iMX8MM and enable convenience commands like cat, > hexdump, xxd. > > Signed-off-by: Marek Vasut Applied, thanks.

Re: [PATCH] ARM: imx: Increase PHY auto-negotiation timeout to 20s on MX8Menlo

2024-05-24 Thread Fabio Estevam
On Tue, May 21, 2024 at 6:40 AM Marek Vasut wrote: > > The ethernet PHY on MX8Menlo board takes a while to come out of > reset, increase the auto-negotiation timeout to prevent it from > timing out in case the ethernet is used right after the board was > reset. > > Signed-off-by: Marek Vasut

Re: [PATCH v2] imx: hab: add documentation about the required keys/certs

2024-05-24 Thread Fabio Estevam
On Thu, May 16, 2024 at 5:36 AM Claudius Heine wrote: > > For CST to find the certificates and keys for signing, some keys and > certs need to be copied into the u-boot build directory. > > Signed-off-by: Claudius Heine Applied, thanks.

Re: [PATCH] ARM: imx: Add doc/imx/ to i.MX MAINTAINERS entry

2024-05-24 Thread Fabio Estevam
On Mon, May 13, 2024 at 12:28 AM Marek Vasut wrote: > > Make sure i.MX maintainers are CCed on doc/imx/ patches. > > Signed-off-by: Marek Vasut Applied, thanks.

Re: [PATCH v4 1/4] binman: Add nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-24 Thread Fabio Estevam
On Tue, May 21, 2024 at 7:48 AM Marek Vasut wrote: > > Add new binman etype which allows signing both the SPL and fitImage sections > of i.MX8M flash.bin using CST. There are multiple DT properties which govern > the signing process, nxp,loader-address is the only mandatory one which sets > the

[GIT PULL] Please pull u-boot-imx-next-20240524

2024-05-24 Thread Fabio Estevam
.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-next-20240524 for you to fetch changes up to 7457dc6f183303aaf2d58fff0a622e6791aba33c: imx: hab: add documentation about the required keys/certs (2024-05-24 11:33:15 -0300) u-boot-imx-master-20240524 --

[PATCH v2 14/14] CI: add qemu_arm64_lwip to the test matrix

2024-05-24 Thread Jerome Forissier
Build and run qemu_arm64_lwip_defconfig in CI. This tests the lightweight IP (lwIP) implementation of the dhcp, tftpboot and ping commands. Signed-off-by: Jerome Forissier --- .azure-pipelines.yml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/.azure-pipelines.yml

[PATCH v2 13/14] MAINTAINERS: net-lwip: add myself as a maintainer

2024-05-24 Thread Jerome Forissier
Add myself as a maintainer for the lwIP network stack integration code and network commands. The library code itself (i.e., most files under lib/lwip/ except README, Makefile and integration files in u-boot) is unmodified from upstream and therefore does not need a maintainer. Signed-off-by:

[PATCH v2 12/14] test/py: net: add _lwip variants of dhcp, ping and tftpboot tests

2024-05-24 Thread Jerome Forissier
WHen NET_LWIP is enabled, the dhcp/ping/tftpboot commands are enabled via CMD_DHCP_LWIP, CMD_PING_LWIP and CMD_TFTPBOOT_LWIP, respectively; therefore the config annotations in the Python test scripts need to be cmd_dhcp_lwip, cmd_ping_lwip and cmd_tftpboot_lwip. The console output of the tftpboot

[PATCH v2 11/14] configs: add qemu_arm64_lwip_defconfig

2024-05-24 Thread Jerome Forissier
Add qemu_arm64_lwip_defconfig based on qemu_arm64_defconfig but with NET_LWIP instead of NET. The new file was obtained by doing: 1. make qemu_arm64_defconfig 2. make menuconfig Select NET_LWIP 3. make savedefconfig 4. diff -u defconfig configs/qemu_arm64_defconfig 5. Create

[PATCH v2 10/14] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y

2024-05-24 Thread Jerome Forissier
Support "bdinfo -e" when lwIP is selected. Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodimas Reviewed-by: Tom Rini --- cmd/bdinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 79106caeec2..690fb894bf6 100644 ---

[PATCH v2 08/14] net-lwip: add wget command

2024-05-24 Thread Jerome Forissier
Add support for the wget command with NET_LWIP. About the small change in cmd/efidebug.c: when the wget command based on the lwIP stack is used the wget command has a built-in URL validation function since it needs to parse it anyways (in parse_url()). Therefore wget_validate_uri() doesn't exist.

[PATCH v2 09/14] test: dm: dsa, eth: disable tests when CONFIG_NET_LWIP=y

2024-05-24 Thread Jerome Forissier
Some sandbox tests make strong assumptions on how the network stack is implemented. For example, the ping tests assume that ARP resolution occurs upon sending out the ICMP packet. This is not always the case with the lwIP stack which can cache ARP information. Therefore, disable these tests when

[PATCH v2 07/14] net-lwip: add dns command

2024-05-24 Thread Jerome Forissier
Add CONFIG_CMD_DNS_LWIP depending on CONFIG_NET_LWIP to provide the dns command using lwIP. Signed-off-by: Jerome Forissier --- cmd/Kconfig| 6 +++ cmd/net-lwip.c | 8 include/net-lwip.h | 1 + net-lwip/Makefile | 1 + net-lwip/dns.c | 107

[PATCH v2 06/14] net-lwip: add ping command

2024-05-24 Thread Jerome Forissier
Add support for the the ping command with NET_LWIP. The implementation is derived from lwIP's contrib/apps/ping/ping.c. Signed-off-by: Jerome Forissier --- boot/Kconfig | 2 +- cmd/Kconfig| 6 ++ cmd/net-lwip.c | 8 +++ include/net-lwip.h | 3 + net-lwip/Makefile |

[PATCH v2 05/14] net-lwip: add TFTP support and tftpboot command

2024-05-24 Thread Jerome Forissier
Implement do_tftpb(). Signed-off-by: Jerome Forissier --- cmd/Kconfig | 3 +- cmd/net-lwip.c | 8 ++ net-lwip/dhcp.c | 11 ++- net-lwip/tftp.c | 206 +++- 4 files changed, 223 insertions(+), 5 deletions(-) diff --git a/cmd/Kconfig

[PATCH v2 03/14] net-lwip: build lwIP

2024-05-24 Thread Jerome Forissier
Build the lwIP library when NET_LWIP is enabled. The following files are adaptation layers written specially for U-Boot: lib/lwip/u-boot/arch/cc.h lib/lwip/u-boot/arch/sys_arch.h (empty) lib/lwip/u-boot/limits.h (empty) lib/lwip/u-boot/lwipopts.h They were initially contributed by Maxim in a

[PATCH v2 00/14] Introduce the lwIP network stack

2024-05-24 Thread Jerome Forissier
This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip library for the network stack" [1]. The goal is to introduce the lwIP TCP/IP stack [2] [3] as an alternative to the current implementation in net/, selectable with Kconfig, and ultimately keep only lwIP if possible. Some

Re: [PATCH v11 0/8] spi-nor: Add parallel and stacked memories support

2024-05-24 Thread Tom Rini
On Fri, May 24, 2024 at 09:37:58PM +0530, Jagan Teki wrote: > On Fri, May 24, 2024 at 8:56 PM Tom Rini wrote: > > > > On Fri, May 24, 2024 at 04:09:00PM +0200, Michal Simek wrote: > > > > > > > > > On 5/7/24 17:48, Tom Rini wrote: > > > > On Tue, May 07, 2024 at 04:15:14AM +, Abbarapu,

Re: [PATCH 12/15] configs: add qemu_arm64_lwip_defconfig

2024-05-24 Thread Tom Rini
On Fri, May 24, 2024 at 05:30:45PM +0200, Jerome Forissier wrote: > > > On 5/24/24 17:08, Tom Rini wrote: > > On Fri, May 24, 2024 at 12:09:33PM +0200, Jerome Forissier wrote: > >> > >> > >> On 5/23/24 17:02, Tom Rini wrote: > >>> On Wed, May 22, 2024 at 06:00:12PM +0200, Jerome Forissier wrote:

Re: [PATCH v4 15/19] board: am62px: Define capsule update firmware info

2024-05-24 Thread Jon Humphreys
Ilias Apalodimas writes: > Hi Jonathan > > Thanks for working on this > > On Thu, May 09, 2024 at 11:41:19AM -0500, Jonathan Humphreys wrote: >> Define the firmware components updatable via EFI capsule update, including >> defining capsule GUIDs for the various firmware components for the AM62px

Re: [PATCH 12/15] configs: add qemu_arm64_lwip_defconfig

2024-05-24 Thread Jerome Forissier
On 5/24/24 17:08, Tom Rini wrote: > On Fri, May 24, 2024 at 12:09:33PM +0200, Jerome Forissier wrote: >> >> >> On 5/23/24 17:02, Tom Rini wrote: >>> On Wed, May 22, 2024 at 06:00:12PM +0200, Jerome Forissier wrote: >>> Add qemu_arm64_lwip_defconfig which was created from

Re: [PATCH v11 0/8] spi-nor: Add parallel and stacked memories support

2024-05-24 Thread Tom Rini
On Fri, May 24, 2024 at 04:09:00PM +0200, Michal Simek wrote: > > > On 5/7/24 17:48, Tom Rini wrote: > > On Tue, May 07, 2024 at 04:15:14AM +, Abbarapu, Venkatesh wrote: > > > > > + Tom Rini > > > > > > Do you have any comments for this series? > > > > Seems likely fine. Jagan, do you

Re: [PATCH 12/15] configs: add qemu_arm64_lwip_defconfig

2024-05-24 Thread Tom Rini
On Fri, May 24, 2024 at 12:09:33PM +0200, Jerome Forissier wrote: > > > On 5/23/24 17:02, Tom Rini wrote: > > On Wed, May 22, 2024 at 06:00:12PM +0200, Jerome Forissier wrote: > > > >> Add qemu_arm64_lwip_defconfig which was created from > >> qemu_arm64_defconfig with CONFIG_NET_LWIP enabled. >

Re: [PATCH 02/15] net-lwip: import lwIP library under lib/lwip

2024-05-24 Thread Tom Rini
On Fri, May 24, 2024 at 04:55:15PM +0200, Jerome Forissier wrote: > > > On 5/23/24 17:02, Tom Rini wrote: > > On Wed, May 22, 2024 at 06:00:02PM +0200, Jerome Forissier wrote: > > > >> Import the Lightweight IP (lwIP) library as lib/lwip. The code is built > >> when CONFIG_NET_LWIP=y. > >> > >>

Re: [PATCH 02/15] net-lwip: import lwIP library under lib/lwip

2024-05-24 Thread Jerome Forissier
On 5/23/24 17:02, Tom Rini wrote: > On Wed, May 22, 2024 at 06:00:02PM +0200, Jerome Forissier wrote: > >> Import the Lightweight IP (lwIP) library as lib/lwip. The code is built >> when CONFIG_NET_LWIP=y. >> >> The lwIP code was imported with the following commands: >> >> (cd /tmp && git

Re: [PATCH v1] mtd: rawnand: macronix: OTP access for MX30LFxG18AC

2024-05-24 Thread Arseniy Krasnov
On 24.05.2024 16:31, Dario Binacchi wrote: > Hi Arseniy, > > On Fri, May 24, 2024 at 11:25 AM Arseniy Krasnov > wrote: >> >> Hi Dario! >> >> Sorry, is this patch ok? > > Sorry, I told you I was testing it but I forgot to tell you that > testing was successfully > completed for this patch.

Re: [PATCH V3] board: rockchip: Add Indiedroid Nova

2024-05-24 Thread Tom Rini
On Fri, May 24, 2024 at 05:58:34PM +0800, Kever Yang wrote: > Hi Tom, > >     This new boards has MAINTAINERS file, but the CI reports: > > WARNING: no maintainers for 'nova-rk3588s' > > Could you give advice for this? Yes. [snip] > > arch/arm/mach-rockchip/rk3588/Kconfig | 10 > >

Re: [PATCH v11 0/8] spi-nor: Add parallel and stacked memories support

2024-05-24 Thread Michal Simek
On 5/7/24 17:48, Tom Rini wrote: On Tue, May 07, 2024 at 04:15:14AM +, Abbarapu, Venkatesh wrote: + Tom Rini Do you have any comments for this series? Seems likely fine. Jagan, do you have time to put this in a PR for -next? Thanks. No reaction for quite a long time. Can you take

Re: [PATCH v1] mtd: rawnand: macronix: OTP access for MX30LFxG18AC

2024-05-24 Thread Dario Binacchi
Hi Arseniy, On Fri, May 24, 2024 at 11:25 AM Arseniy Krasnov wrote: > > Hi Dario! > > Sorry, is this patch ok? Sorry, I told you I was testing it but I forgot to tell you that testing was successfully completed for this patch. Thanks and regards, Dario > > Thanks > > On 18.04.2024 09:55,

[PATCH] doc: cmd: bootmeth: Fix extlinunx -> extlinux typo

2024-05-24 Thread Mattijs Korpershoek
--- base-commit: a7f0154c412859323396111dd0c09dbafbc153cb change-id: 20240524-bootflow-doc-typo-9339f86cf340 Best regards, -- Mattijs Korpershoek

Re: [PATCH 08/15] net-lwip: import net command from cmd/net.c

2024-05-24 Thread Jerome Forissier
On 5/24/24 11:38, Ilias Apalodimas wrote: > On Wed, 22 May 2024 at 19:04, Jerome Forissier > wrote: >> >> Add support for "net list" and "net stats" to net-lwip/ by copying the >> code from cmd/net.c. >> >> Signed-off-by: Jerome Forissier >> --- >> cmd/net-lwip.c | 98

[PATCH v2 2/2] efi: gop: Mark pixel_format as BLTONLY if we have sync hook

2024-05-24 Thread Jiaxun Yang
If a video device has a video_sync hook, it means some software intervene is required to scanout framebuffer up on change. That means EFI application can't just use it as raw framebuffer, it should call BLT operation to let U-Boot help with scanout. Mark pixel format as BLTONLY as per UEFI spec

[PATCH v2 1/2] virtio: New virtio_gpu driver

2024-05-24 Thread Jiaxun Yang
This driver is implemened based on latest VirtIO spec. It follows operation prodcure as defined in the spec. It implemented multihead (mirroring) support as well. Signed-off-by: Jiaxun Yang --- v2: - Add big endian code path - Reword typical resolution for Kconfig symbol ---

[PATCH v2 0/2] virtio_gpu driver and relevant fix

2024-05-24 Thread Jiaxun Yang
Hi all, This series added support for virtio-gpu device, it has been tested on QEMU riscv64 and aarch64. I also fixed a problem in EFI GOP so it works with EFI applications as well. There is a problem remaining. virtio_init() is being called too late to allow virtio-gpu to be selected as a

[PATCH v3 6/6] spinand: bind UBI block

2024-05-24 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH v3 5/6] disk: support UBI partitions

2024-05-24 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v3 4/6] disk: don't try search for partition type if already set

2024-05-24 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v3 3/6] drivers: introduce UBI block abstraction

2024-05-24 Thread Alexey Romanov
UBI block is an virtual device, that runs on top of the MTD layer. The blocks are UBI volumes. Intended to be used in combination with other MTD drivers. Despite the fact that it, like mtdblock abstraction, it used with UCLASS_MTD, they can be used together on the system without conflicting. For

[PATCH v3 2/6] ubi: allow to write to volume with offset

2024-05-24 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 71 +++-- env/ubi.c | 10 +++

[PATCH v3 1/6] ubi: allow to read from volume with offset

2024-05-24 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7

[PATCH v3 0/6] Introduce UBI block device

2024-05-24 Thread Alexey Romanov
Hello! This series adds support for the UBI block 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 ubi 0 part_name Tested only on SPI NAND, so bind is made only for SPI NAND drivers. Can be used with mtdblock

[PATCH v4 3/3] spinand: bind mtdblock

2024-05-24 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf 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

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

2024-05-24 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 v4 1/3] disk: support MTD partitions

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

[PATCH v4 0/3] Introduce mtdblock device

2024-05-24 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]:

Re: [PATCH 03/15] net-lwip: add DHCP support and dhcp commmand

2024-05-24 Thread Jerome Forissier
On 5/23/24 17:02, Tom Rini wrote: > On Wed, May 22, 2024 at 06:00:03PM +0200, Jerome Forissier wrote: > >> Add what it takes to enable CONFIG_NETDEVICES with CONFIG_NET_LWIP and >> enable DHCP as well as the dhcp command (CONFIG_CMD_DHCP_LWIP). >> - net-lwip/net-lwip.c is mostly empty for now.

Re: [PATCH 10/15] test: dm: dsa, eth: disable tests when CONFIG_NET_LWIP=y

2024-05-24 Thread Maxim Uvarov
чт, 23 мая 2024 г. в 16:40, Peter Robinson : > > On Wed, 22 May 2024 at 19:08, Ilias Apalodimas > wrote: > > > > Hi Jerome, > > > > On Wed, 22 May 2024 at 19:04, Jerome Forissier > > wrote: > > > > > > Some sandbox tests make strong assumptions on how the network stack is > > > implemented. For

Re: [PATCH RFC 1/4] lib: uuid: add UUID v5 support

2024-05-24 Thread Ilias Apalodimas
On Fri, 24 May 2024 at 15:20, Caleb Connolly wrote: > > > > On 24/05/2024 08:01, Ilias Apalodimas wrote: > > [...] > > > >> #include > >> #include > >> +#include > >> > >> int uuid_str_valid(const char *uuid) > >> { > >> int i, valid; > >> @@ -368,8 +369,40 @@ void

Re: [PATCH RFC 2/4] efi: add a helper to generate dynamic UUIDs

2024-05-24 Thread Ilias Apalodimas
On Fri, 24 May 2024 at 15:17, Caleb Connolly wrote: > > > > On 24/05/2024 08:37, Ilias Apalodimas wrote: > > [...] > > > > > >> config EFI_CAPSULE_FIRMWARE_MANAGEMENT > >> diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c > >> index de0d49ebebda..9ef67d1b4405 100644 > >>

Re: [PATCH RFC 1/4] lib: uuid: add UUID v5 support

2024-05-24 Thread Caleb Connolly
On 24/05/2024 08:01, Ilias Apalodimas wrote: [...] #include #include +#include int uuid_str_valid(const char *uuid) { int i, valid; @@ -368,8 +369,40 @@ void uuid_bin_to_str(const unsigned char *uuid_bin, char *uuid_str, } } } +#if

Re: [PATCH RFC 2/4] efi: add a helper to generate dynamic UUIDs

2024-05-24 Thread Caleb Connolly
On 24/05/2024 08:37, Ilias Apalodimas wrote: [...] config EFI_CAPSULE_FIRMWARE_MANAGEMENT diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c index de0d49ebebda..9ef67d1b4405 100644 --- a/lib/efi_loader/efi_capsule.c +++ b/lib/efi_loader/efi_capsule.c @@ -19,8 +19,9

[PATCH 1/1] Update maintainer for Versatile Express.

2024-05-24 Thread Kristian Amlie
Signed-off-by: Kristian Amlie --- board/armltd/vexpress/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/armltd/vexpress/MAINTAINERS b/board/armltd/vexpress/MAINTAINERS index 2b3e4916a5..7a54c6b560 100644 --- a/board/armltd/vexpress/MAINTAINERS +++

[PATCH 3/3] rockchip: theobroma: update URLs to point to CHERRY website

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz Most of the current URLs should be redirected but some aren't already, so let's anticipate more IT hiccups by migrating to new URLs. Signed-off-by: Quentin Schulz --- board/theobroma-systems/jaguar_rk3588/MAINTAINERS | 4 ++--

[PATCH 0/3] fix URL and mails for Theobroma now CHERRY Embedded Solutions

2024-05-24 Thread Quentin Schulz
/theobroma-systems/ringneck_px30/MAINTAINERS | 7 --- 6 files changed, 20 insertions(+), 14 deletions(-) --- base-commit: 377e91c162ab09ec20f96f966f380cb55c590edd change-id: 20240524-tsd-to-cherry-8f9e69a89607 Best regards, -- Quentin Schulz

[PATCH 2/3] migrate Theobroma Systems mail addresses to CHERRY Embedded Solutions

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz See https://embedded.cherry.de/theobroma-systems-is-now-officially-part-of-cherry-se/ While the mail addresses on the theobroma-systems.com domain should be redirect to cherry.de, let's anticipate IT hiccups and avoid important mails not reaching us by swapping the domain

[PATCH 1/3] .mailmap: redirect Philipp Tomsich Theobroma address to Vrull

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz The Theobroma address bounces as Philipp is not working there anymore, so let's update with the one that seems to be working right now. Cc: Philipp Tomsich Signed-off-by: Quentin Schulz --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap

[PATCH next 5/5] power: rk8xx: properly print all supported PMICs name

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz The ID of the PMIC is stored in the 2 16b registers but the only part that matters right now is the 3 MSB, which make the 3 digits (in hex) of the part number. Right now, only RK808 was properly displayed, with this all currently supported PMICs should display the proper

[PATCH next 4/5] rockchip: px30-ringneck: Update SPL_PAD_TO Kconfig option

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz On px30-ringneck the FIT payload is located at sector 0x200 compared to the more Rockchip common sector 0x4000 offset: SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200 Because FIT payload is located at sector 0x200 and the TPL+SPL is located at sector 64, the combined size of

[PATCH next 3/5] rockchip: rk3399-puma: remove unnecessary simple-bin:fit:offset override

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz Since commit 6007b69d544e ("rockchip: rk3399-puma: Update SPL_PAD_TO Kconfig option"), SPL_PAD_TO matches (CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR - 64) * 512 and the default value for simple-bin:fit:offset in rockchip-u-boot.dtsi is SPL_PAD_TO, so let's remove this

[PATCH next 2/5] rockchip: rk3399-puma: remove default value from defconfig

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz CONFIG_ENV_OFFSET already defaults to 0x3F8000, however it is stored in lowercase hexdigits instead of uppercase like in the defconfig. No change in behavior intended. Signed-off-by: Quentin Schulz --- configs/puma-rk3399_defconfig | 1 - 1 file changed, 1 deletion(-)

[PATCH next 1/5] rockchip: jaguar-rk3588: use default env size for Rockchip on MMC

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz The default env size is 0x8000 when building for Rockchip SoCs with support for environment stored in MMC. Jaguar hasn't entered mass production just yet, so it's a breaking change we can afford in the name of consistency. Signed-off-by: Quentin Schulz ---

[PATCH next 0/5] rockchip: display PMIC variant properly + misc fixes for Theobroma boards

2024-05-24 Thread Quentin Schulz
change-id: 20240524-misc-tsd-e08551c01c8a Best regards, -- Quentin Schulz

[PATCH 2/3] tools: binman: Add a property to pass a key directory to mkimage

2024-05-24 Thread Paul HENRYS
The property 'fit,keys-directory' can be added to the configuration file passed to binman to specify a directory where keys are stored and can be used by mkimage to sign and cipher data. Signed-off-by: Paul HENRYS --- tools/binman/btool/mkimage.py | 5 - tools/binman/etype/fit.py | 3

[PATCH 3/3] tools: binman: Add tests for FIT with data encrypted by mkimage

2024-05-24 Thread Paul HENRYS
Test the property 'fit,keys-directory' which, when a cipher node is present, encrypts the data stored in the FIT. Signed-off-by: Paul HENRYS --- tools/binman/ftest.py | 39 + tools/binman/test/326_fit_encrypt_data.dts| 53 ++

[PATCH 1/3] aes: Allow to store randomly generated IV in the FIT

2024-05-24 Thread Paul HENRYS
When the initialisation vector is randomly generated, its value shall be stored in the FIT together with the encrypted data. The changes allow to store the IV in the FIT also in the case where the key is not stored in the DTB but retrieved somewhere else at runtime. Signed-off-by: Paul HENRYS

[PATCH 0/3] *** Allow encrypting data in FIT with binman ***

2024-05-24 Thread Paul HENRYS
The first patch 0001 is required for patch 0002 as random IV are currently only added to the FIT if the encryption key is also added to the DTB. Patch 0002 then allows to use binman to encrypt data in the FIT generated when mkimage is called by binman, when cipher information are provided. Paul

Re: [PATCH 12/15] configs: add qemu_arm64_lwip_defconfig

2024-05-24 Thread Jerome Forissier
On 5/23/24 17:02, Tom Rini wrote: > On Wed, May 22, 2024 at 06:00:12PM +0200, Jerome Forissier wrote: > >> Add qemu_arm64_lwip_defconfig which was created from >> qemu_arm64_defconfig with CONFIG_NET_LWIP enabled. >> >> Signed-off-by: Jerome Forissier >> --- >>

Re: [PATCH 0/3] lib: smbios: Extend driver with using sysinfo driver

2024-05-24 Thread Ilias Apalodimas
Hi Michal On Fri, 24 May 2024 at 12:45, Michal Simek wrote: > > Hi Ilias, > > On 4/26/24 15:38, Michal Simek wrote: > > Hi, > > > > currently only DT way is supported and it is added directly to lib/smbios.c > > but I think DT and env is only one way how information can be found that's > > why

Re: [PATCH V3] board: rockchip: Add Indiedroid Nova

2024-05-24 Thread Kever Yang
Hi Tom,     This new boards has MAINTAINERS file, but the CI reports: WARNING: no maintainers for 'nova-rk3588s' Could you give advice for this? Thanks, - Kever On 2024/5/21 23:33, Chris Morgan wrote: From: Chris Morgan The Indiedroid Nova is a Rockchip RK3588S based SBC from Indiedroid.

Re: [PATCH v3 00/20] FWU: Add support for FWU metadata version 2

2024-05-24 Thread Michal Simek
Hi Sughosh, On 3/22/24 11:57, Sughosh Ganu wrote: The following patch series adds support for version 2 of the FWU metadata. The version 2 metadata structure is defined in the latest revision of the FWU specification [1]. The earlier versions of these patches were migrating to a version 2

Re: [PATCH 0/3] lib: smbios: Extend driver with using sysinfo driver

2024-05-24 Thread Michal Simek
Hi Ilias, On 4/26/24 15:38, Michal Simek wrote: Hi, currently only DT way is supported and it is added directly to lib/smbios.c but I think DT and env is only one way how information can be found that's why this series is improving handling with using sysinfo driver which can be platform

Re: [PATCH 08/15] net-lwip: import net command from cmd/net.c

2024-05-24 Thread Ilias Apalodimas
On Wed, 22 May 2024 at 19:04, Jerome Forissier wrote: > > Add support for "net list" and "net stats" to net-lwip/ by copying the > code from cmd/net.c. > > Signed-off-by: Jerome Forissier > --- > cmd/net-lwip.c | 98 ++ > include/net-lwip.h | 50

Re: [PATCH v1] mtd: rawnand: macronix: OTP access for MX30LFxG18AC

2024-05-24 Thread Arseniy Krasnov
Hi Dario! Sorry, is this patch ok? Thanks On 18.04.2024 09:55, Dario Binacchi wrote: > Arseniy, Michael, All > > On Wed, Apr 17, 2024 at 8:44 PM Michael Nazzareno Trimarchi > wrote: >> >> Hi >> >> Dario did you add those patches in CI and test them again? >> >> Michael >> >> On Wed, Apr 17,

[PATCH next v2 8/8] rockchip: px30/rk3326: migrate to OF_UPSTREAM

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz Migrate PX30/RK3326 boards that exists in Linux v6.8 to use OF_UPSTREAM. firefly-px30 is not migrated to OF_UPSTREAM because there's no Device Tree in the Linux kernel. Differences between U-Boot's Odroid-Go2 and Linux's are now moved to the -u-boot.dtsi, though I have a

[PATCH next v2 7/8] rockchip: evb-px30: make UART5 the debug UART

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz In the Device Tree, UART5 is the system UART, but in the defconfig it currently is UART2. Let's sync the two by making the defconfig use UART5 as well. Reviewed-by: Kever Yang Signed-off-by: Quentin Schulz --- configs/evb-px30_defconfig | 2 +- 1 file changed, 1

[PATCH next v2 6/8] rockchip: evb-px30: do not remove pinctrl nodes from SPL DTB

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz In order to be able to properly mux UART on PX30 EVB, the pinmux needs to be done at runtime, so let's not remove the pinctrl nodes from the SPL DTB. Reviewed-by: Kever Yang Signed-off-by: Quentin Schulz --- configs/evb-px30_defconfig | 2 +- 1 file changed, 1

[PATCH next v2 5/8] rockchip: px30: make UART pinmux accessible to TPL/SPL DTB

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz This adds the default pinmux for UART2 and UART5 to the TPL/SPL DTB (if not removed through the CONFIG_OF_SPL_REMOVE_PROPS symbol) as those two controllers are always made available to all boards. Reviewed-by: Kever Yang Signed-off-by: Quentin Schulz ---

[PATCH next v2 4/8] rockchip: px30-core-*: Use common bss and stack addresses

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz U-Boot proper pre-reloc is currently running out of memory on PX30 Ringneck and it is thus impossible to boot into U-Boot CLI. It is assumed the same problem can be seen on other PX30 boards though I cannot guarantee it since I don't have access to them. Fix this by

[PATCH next v2 3/8] rockchip: odroid-go2: Use common bss and stack addresses

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz U-Boot proper pre-reloc is currently running out of memory on PX30 Ringneck and it is thus impossible to boot into U-Boot CLI. It is assumed the same problem can be seen on other PX30 boards though I cannot guarantee it since I don't have access to them. Fix this by

[PATCH next v2 2/8] rockchip: firefly-px30: Use common bss and stack addresses

2024-05-24 Thread Quentin Schulz
From: Quentin Schulz U-Boot proper pre-reloc is currently running out of memory on PX30 Ringneck and it is thus impossible to boot into U-Boot CLI. It is assumed the same problem can be seen on other PX30 boards though I cannot guarantee it since I don't have access to them. Fix this by

  1   2   >