Re: [PATCH] fs: btrfs: fix out of bounds write

2024-06-17 Thread Dan Carpenter
On Mon, Jun 17, 2024 at 10:49:47PM +0300, Alex Shumsky wrote: > Fix btrfs_read/read_and_truncate_page write out of bounds of destination > buffer. Old behavior break bootstd malloc'd buffers of exact file size. > Previously this OOB write have not been noticed because distroboot usually > read file

[PATCH 1/1] spl: correct link to FIT specification

2024-06-17 Thread Heinrich Schuchardt
Replace the invalid link to the FIT file format specification. Signed-off-by: Heinrich Schuchardt --- SPL is tightly size constrained. Shouldn't we remove the message with the link which is only of interest to developers. --- common/spl/spl_fit.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH] boot: links to FIT documentation in Kconfig

2024-06-17 Thread Heinrich Schuchardt
Correct the links to the FIT documentation in boot/Kconfig. Signed-off-by: Heinrich Schuchardt --- boot/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index 6f3096c15a6..36bdc83b957 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -85

[PATCH 1/1] doc: FIT links in develop/uefi/uefi.rst

2024-06-17 Thread Heinrich Schuchardt
Correct the links to the FIT documentation. Signed-off-by: Heinrich Schuchardt --- doc/develop/uefi/uefi.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index 0389b269c01..ea70dcbda86 100644 --- a/doc/develop/uefi/

[PATCH 1/1] cmd: link to doc/usage/fit/x86-fit-boot.rst

2024-06-17 Thread Heinrich Schuchardt
Replace the outdated link. Signed-off-by: Heinrich Schuchardt --- cmd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index ff0f5941ecc..9e4245a9702 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -622,7 +622,7 @@ config CMD_ZBOOT C

Re: [RFC 1/1] doc: Remove FIT documentation that is elsewhere

2024-06-17 Thread Heinrich Schuchardt
On 6/17/24 22:20, Sam Povilus wrote: FIT documentation is now a separate project, instead of having a duplicate, we should point at the other project. Signed-off-by: Sam Povilus --- doc/usage/fit/index.rst | 14 +- doc/usage/fit/source_file_format.rst | 682 +---

[PATCH v2] arm: dts: k3-am625-beagleplay: Package TIFS Stub

2024-06-17 Thread Dhruva Gole
Add support for packaging the TIFS Stub as it's required for basic Low Power Modes like Deep Sleep. Acked-by: Neha Malcom Francis Signed-off-by: Dhruva Gole --- No changes from v1, just picked Neha's ack and rebased on master again. Link to v1: https://lore.kernel.org/u-boot/20240612062351.3690

[PATCH v2] board: beagleplay: Fix the bootpart to pick from root partition

2024-06-17 Thread Dhruva Gole
The Kernel Image and DTB files are supposed to be picked from the rootfs of the SD Card, this fails in legacy boot flow because bootpart is set to 1:1. Fix it. Fixes: a200f428b5b21 ("board: ti: am62x: Add am62x_beagleplay_* defconfigs and env file") Reviewed-by: Nishanth Menon Acked-by: Chirag S

[PATCH v4 2/2] doc: beagle: am62x_beagleplay: Rename the boot bins

2024-06-17 Thread Dhruva Gole
Rename the boot bins as the _unsigned postfixes are not longer required. We have symlinks in place for having generic names for all the boot bins now. Signed-off-by: Dhruva Gole --- doc/board/beagle/am62x_beagleplay.rst | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/d

[PATCH v4 1/2] arm: dts: k3-am625-beagleplay: Add symlinks for tiboot3 and tispl

2024-06-17 Thread Dhruva Gole
Add symlinks for both tiboot3.bin and tispl.bin because a user has to anyway rename these files to get the platform to boot up. This just makes it more intuitive and convenient. Reviewed-by: Manorit Chawdhry Signed-off-by: Dhruva Gole --- arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 1 + arch

[PATCH v4 0/2] k3-am625-beagleplay: Add symlinks for tiboot3 and tispl

2024-06-17 Thread Dhruva Gole
Add symlinks for both tiboot3.bin and tispl.bin because a user has to anyway rename these files to get the platform to boot up. Also update the documentation to reflect above change. Changes in v4: * Add the docs patch. Cc: Nishant Menon Cc: Robert Nelson Dhruva Gole (2): arm: dts: k3-am625-

[PATCH 2/3] configs: rockchip: sync ENV_MEM_LAYOUT_SETTINGS for rk3308, rk3328, and rk3399

2024-06-17 Thread FUKAUMI Naoki
add support for compressed kernel for rk3308. prepare support for fdtoverlay for rk3328. tested on ROCK Pi S 256MB, ROCK Pi E 2GB, and ROCK Pi 4A 4GB with linux-next-20240613 defconfig kernel. Signed-off-by: FUKAUMI Naoki --- include/configs/rk3308_common.h | 12 include/configs/rk

[PATCH 1/3] configs: rockchip: cosmetic changes for rk3308, rk3328, rk3399, rk3568, and rk3588

2024-06-17 Thread FUKAUMI Naoki
no functional change is intended. Signed-off-by: FUKAUMI Naoki --- include/configs/rk3308_common.h | 26 ++--- include/configs/rk3328_common.h | 28 +++ include/configs/rk3399_common.h | 40 - include/configs/rk3568_common.h | 1

[PATCH 3/3] configs: rockchip: imply OF_LIBFDT_OVERLAY for rk3308 and rk3328

2024-06-17 Thread FUKAUMI Naoki
for rk3308, all defconfigs have CONFIG_OF_LIBFDT_OVERLAY=y, so enable it by default. for rk3328, any defconfig doesn't have it. but there is no strong reason not to enable it. at least it's required for ROCK Pi E. Signed-off-by: FUKAUMI Naoki --- arch/arm/mach-rockchip/Kconfig | 2 ++ confi

Re: [PATCH 12/20] cyclic: Rise default CYCLIC_MAX_CPU_TIME_US to 5000

2024-06-17 Thread Tom Rini
On Fri, Jun 14, 2024 at 04:13:54PM +0200, Stefan Roese wrote: > On 6/12/24 18:50, Tom Rini wrote: > > On Wed, Jun 12, 2024 at 05:13:37PM +0100, Jiaxun Yang wrote: > > > > > > > > > 在2024年6月12日六月 下午5:00,Tom Rini写道: > > > [...] > > > > > configs/octeon_nic23_defconfig | 1 - > > > > > 2 files ch

[RFC 1/1] doc: Remove FIT documentation that is elsewhere

2024-06-17 Thread Sam Povilus
FIT documentation is now a separate project, instead of having a duplicate, we should point at the other project. Signed-off-by: Sam Povilus --- doc/usage/fit/index.rst | 14 +- doc/usage/fit/source_file_format.rst | 682 +-- 2 files changed, 5 insertions(+)

[RFC 0/1] FIT documentation link vs copy

2024-06-17 Thread Sam Povilus
I'm proposing linking the FIT documentation instead of double book keeping it, it does have the disadvantage of making it more difficult to see the documentation especially if offline. Sam Povilus (1): doc: Remove FIT documentation that is elsewhere doc/usage/fit/index.rst | 1

[PATCH] fs: btrfs: fix out of bounds write

2024-06-17 Thread Alex Shumsky
Fix btrfs_read/read_and_truncate_page write out of bounds of destination buffer. Old behavior break bootstd malloc'd buffers of exact file size. Previously this OOB write have not been noticed because distroboot usually read files into huge static memory areas. Signed-off-by: Alex Shumsky --- f

Re: [PATCH] fs: btrfs: fix out of bounds write

2024-06-17 Thread Qu Wenruo
在 2024/6/18 05:19, Alex Shumsky 写道: Fix btrfs_read/read_and_truncate_page write out of bounds of destination buffer. Old behavior break bootstd malloc'd buffers of exact file size. Previously this OOB write have not been noticed because distroboot usually read files into huge static memory are

Re: [PATCH] mtd: spi-nor: ids: Add IS25LP01GG flash support

2024-06-17 Thread Dragan Simic
On 2024-06-17 15:38, Michal Simek wrote: On 6/17/24 15:31, Dragan Simic wrote: On 2024-06-17 15:26, Michal Simek wrote: On 6/17/24 08:28, Dhruva Gole wrote: On Jun 17, 2024 at 09:48:42 +0530, Prasad Kummari wrote: Add support for ISSI 128MB flash IS25LP01GG. This part Can we have the datash

Re: [PATCH v5 0/3] automatically add /chosen/kaslr-seed and deduplicate code

2024-06-17 Thread Tom Rini
On Mon, Jun 17, 2024 at 12:32:22PM -0700, Tim Harvey wrote: > On Thu, Jun 13, 2024 at 3:18 PM Tom Rini wrote: > > > > On Thu, May 30, 2024 at 03:06:31PM -0700, Tim Harvey wrote: > > > > > This series will automatically add /chosen/kaslr-seed to the dt if DM_RNG > > > is enabled > > > during the b

Re: [PATCH v5 0/3] automatically add /chosen/kaslr-seed and deduplicate code

2024-06-17 Thread Tim Harvey
On Thu, Jun 13, 2024 at 3:18 PM Tom Rini wrote: > > On Thu, May 30, 2024 at 03:06:31PM -0700, Tim Harvey wrote: > > > This series will automatically add /chosen/kaslr-seed to the dt if DM_RNG > > is enabled > > during the boot process. > > > > If RANDOMIZE_BASE is enabled in the Linux kernel inst

[PATCH v6 4/4] test: cmd: fdt: fix chosen test for DM_RNG

2024-06-17 Thread Tim Harvey
Now that kaslr-seed is automatically added to the chosen node if DM_RNG is enabled, adjust the test to expect this. Signed-off-by: Tim Harvey Cc: Michal Simek Cc: Andy Yan Cc: Akash Gajjar Cc: Ilias Apalodimas Cc: Simon Glass Cc: Patrick Delaunay Cc: Patrice Chotard Cc: Devarsh Thakkar Cc

[PATCH v6 3/4] use fdt_kaslrseed function to de-duplicate code

2024-06-17 Thread Tim Harvey
Use the fdt_kaslrseed function to deduplicate code doing the same thing. Note that the kalsrseed command (CMD_KASLRSEED) is likely pointless now but left in place in case boot scripts exist that rely on this command existing and returning success. An informational message is printed to alert users

[PATCH v6 2/4] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-06-17 Thread Tim Harvey
If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to randomize the virtual address at which the kernel image is loaded, it expects entropy to be provided by the bootloader by populating /chosen/kaslr-seed with a 64-bit value from source of entropy at boot. If we have DM_RNG enabled p

[PATCH v6 1/4] Add fdt_kaslrseed function to add kaslr-seed to chosen node

2024-06-17 Thread Tim Harvey
If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to randomize the virtual address at which the kernel image is loaded, it expects entropy to be provided by the bootloader by populating /chosen/kaslr-seed with a 64-bit value from source of entropy at boot. Add a fdt_kaslrseed functio

[PATCH v6 0/4] automatically add /chosen/kaslr-seed and deduplicate code

2024-06-17 Thread Tim Harvey
This series will automatically add /chosen/kaslr-seed to the dt if DM_RNG is enabled during the boot process. If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to randomize the virtual address at which the kernel image is loaded, it expects entropy to be provided by the bootloader b

Re: [GIT PULL] xilinx patches for v2024.10-rc1

2024-06-17 Thread Tom Rini
On Mon, Jun 17, 2024 at 06:12:06PM +0200, Michal Simek wrote: > Hi Tom, > > please pull these patches to your tree. Gitlab CI is not showing any issue. > There are some alignments and improvements but overall nothing significant. > The biggest patchset is add support for new AMD Versal Gen 2 SoC.

Re: [PATCH COVER] rockchip: rk3399: fix SPI-NOR flash not found in U-Boot pre-reloc

2024-06-17 Thread Jonas Karlman
Hi Quentin, On 2024-06-17 16:03, Quentin Schulz wrote: > Hi Jonas, > > On 6/17/24 3:44 PM, Jonas Karlman wrote: >> Hi Quentin, >> >> On 2024-06-17 15:29, Quentin Schulz wrote: >>> Hi Jonas, >>> >>> On 6/17/24 3:26 PM, Jonas Karlman wrote: Hi Quentin, On 2024-06-17 15:10, Quentin Sc

Re: [PATCH next] power: rk8xx: fix display name for RK808

2024-06-17 Thread Dragan Simic
fix show_variant for that PMIC */ + show_variant = 0x808; break; case RK805_ID: case RK816_ID: --- base-commit: e242cd95130b64cf91692da41363ac59b25fc08d change-id: 20240617-rk808-show-variant-2121df41caf7 Best regards,

Re: [PATCH v1 2/4] board: wexler: qc750: add WEXLER Tab 7t support

2024-06-17 Thread Tom Rini
On Sat, Jun 15, 2024 at 12:19:44PM +0300, Svyatoslav Ryhel wrote: > WEXLER Tab 7t is a mini tablet computer developed by WEXLER that > runs the Android operating system. The device features a 7.0-inch > (180 mm) HD display, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM, > 8, 16 or 32 GB of storage

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

2024-06-17 Thread Dragan Simic
On 2024-06-17 18:54, Quentin Schulz wrote: On 6/17/24 4:58 PM, Dragan Simic wrote: On 2024-06-17 16:10, Quentin Schulz wrote: On 6/6/24 10:45 AM, Quentin Schulz wrote: 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

Re: [PATCH v1 0/4] Initial support for new Tegra 2/3 devices

2024-06-17 Thread Tom Rini
On Sat, Jun 15, 2024 at 12:19:42PM +0300, Svyatoslav Ryhel wrote: > Patchset includes initial support bringup for 4 new Tegra 2 and > Tegra 3 devices which include Asus Transformers with Tegra 2, > Microfost Surface RT, Lenovo Ideapad Yoga 11 and Wexler Tab 7t. > All setups are tested on real hard

Re: [PATCH v1 1/4] board: asus: transformer: add ASUS Transformer T20 family support

2024-06-17 Thread Tom Rini
On Sat, Jun 15, 2024 at 12:19:43PM +0300, Svyatoslav Ryhel wrote: > The Asus Eee Pad Transformer family are 2-in-1 detachable/slider > tablets developed by Asus that run the Android operating system. > The Eee Pad Transformers feature a 10.1-inch (260 mm) display, > an Nvidia Tegra 2 dual-core chi

Re: [PATCH 1/2] phy: Extend generic_setup_phy() with PHY mode and submode

2024-06-17 Thread Marek Vasut
On 6/16/24 10:49 PM, Jonas Karlman wrote: Hi, diff --git a/drivers/phy/phy-uclass.c b/drivers/phy/phy-uclass.c index acdcda15b5b..bbaf95112c5 100644 --- a/drivers/phy/phy-uclass.c +++ b/drivers/phy/phy-uclass.c @@ -508,7 +508,8 @@ int generic_phy_power_off_bulk(struct phy_bulk *bulk) re

[PATCH v2 3/3] phy: test: Implement sandbox PHY .set_mode and DM test

2024-06-17 Thread Marek Vasut
Implement trivial extension to the sandbox PHY, which makes it pretend to support selecting USB Host mode and nothing else. Any other mode is rejected with -EINVAL. Any submode except for default submode 0 is rejected with -EOPNOTSUPP . The implementation behaves in this trivial way to permit easy

[PATCH v2 2/3] phy: rcar: Split init and set_mode operations

2024-06-17 Thread Marek Vasut
The current init operation also sets the PHY into USB host mode. Split the mode configuration into set_mode callback instead and implement support for device and OTG modes as well. The OTG mode performs auto-detection and selects either host or device mode. In case the OTG mode is configured, subm

[PATCH v2 1/3] phy: Extend generic_setup_phy() with PHY mode and submode

2024-06-17 Thread Marek Vasut
Extend generic_setup_phy() parameter list with PHY mode and submode and call generic_phy_set_mode() in generic_setup_phy(), so the generic PHY setup function can configure the PHY into correct mode before powering the PHY up. Update all call sites of generic_setup_phy() as well, all of which are U

Re: [PULL] Pull request for u-boot-nand-20240617

2024-06-17 Thread Tom Rini
4 > 08:13:54 -0600) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-nand-flash.git > tags/u-boot-nand-20240617 > > for you to fetch changes up to aad8aa56d96b1305ae5a9708b604b2f2a4e97c4e: > > mtd: nand: pxa3xx: In

Re: [PULL] Pull request for u-boot master / v2024.07 = u-boot-stm32-20240617

2024-06-17 Thread Tom Rini
On Mon, Jun 17, 2024 at 11:06:24AM +0200, Patrice CHOTARD wrote: > Please pull the STM32 related fixes for u-boot/master, v2024.07: > u-boot-stm32-20240617 > > CI status: > https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/21155 > > The following

Re: [PATCH v3 2/2] doc: api: bootcount: Convert to rST documentation

2024-06-17 Thread Tom Rini
On Sun, Jun 16, 2024 at 08:20:53PM +0200, Vasileios Amoiridis wrote: > On Fri, Jun 14, 2024 at 10:43:09AM +0200, Quentin Schulz wrote: > > Hi Vasileios, > > > > On 6/14/24 12:02 AM, Vasileios Amoiridis wrote: > > > Move to the new documentation style with rST formatting. > > > > > > Signed-off-by

Re: [PATCH v2 2/9] tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL

2024-06-17 Thread Tom Rini
On Mon, Jun 17, 2024 at 07:53:22AM -0600, Simon Glass wrote: > Hi, > > On Sat, 15 Jun 2024 at 01:03, Ilias Apalodimas > wrote: > > > > Hi Heinrich > > > > resending the reply, I accidentally sent half of the message... > > > > On Fri, 14 Jun 2024 at 12:04, Heinrich Schuchardt > > wrote: > > > >

Re: [PATCH 1/2] phy: Extend generic_setup_phy() with PHY mode and submode

2024-06-17 Thread Marek Vasut
On 6/17/24 9:07 AM, Caleb Connolly wrote: On 16/06/2024 17:04, Marek Vasut wrote: Extend generic_setup_phy() parameter list with PHY mode and submode and call generic_phy_set_mode() in generic_setup_phy(), so the generic PHY setup function can configure the PHY into correct mode before powerin

Re: [PATCH 1/1] usb: informative message if no controller

2024-06-17 Thread Marek Vasut
On 6/17/24 10:20 AM, Dragan Simic wrote: Hello Heinrich, On 2024-06-17 10:16, Heinrich Schuchardt wrote: The message 'No working controllers found' provides no clue that this refers to USB controllers. Provide a message that refers to USB. Use log_info(). Signed-off-by: Heinrich Schuchardt -

Re: [PATCH v4 05/14] net-lwip: add DHCP support and dhcp commmand

2024-06-17 Thread Heinrich Schuchardt
On 17.06.24 17:32, Jerome Forissier wrote: Add what it takes to enable NETDEVICES with NET_LWIP and enable DHCP as well as the dhcp command. CMD_TFTPBOOT is selected by BOOTMETH_EFI due to this code having an implicit dependency on do_tftpb(). Signed-off-by: Jerome Forissier --- Makefile

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

2024-06-17 Thread Quentin Schulz
Hi Dragan, On 6/17/24 4:58 PM, Dragan Simic wrote: Hello Quentin, On 2024-06-17 16:10, Quentin Schulz wrote: On 6/6/24 10:45 AM, Quentin Schulz wrote: 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 t

[PATCH next] power: rk8xx: fix display name for RK808

2024-06-17 Thread Quentin Schulz
RK816_ID: --- base-commit: e242cd95130b64cf91692da41363ac59b25fc08d change-id: 20240617-rk808-show-variant-2121df41caf7 Best regards, -- Quentin Schulz

[GIT PULL] xilinx patches for v2024.10-rc1

2024-06-17 Thread Michal Simek
Hi Tom, please pull these patches to your tree. Gitlab CI is not showing any issue. There are some alignments and improvements but overall nothing significant. The biggest patchset is add support for new AMD Versal Gen 2 SoC. Thanks, Michal The following changes since commit 0786dd573d079341

Re: [PATCH v3] arm: dts: k3-am625-beagleplay: Add symlinks for tiboot3 and tispl

2024-06-17 Thread Nishanth Menon
On 10:37-20240617, Manorit Chawdhry wrote: > Hi Dhruva, > > On 17:34-20240614, Dhruva Gole wrote: > > Add symlinks for both tiboot3.bin and tispl.bin because a user has to > > anyway rename these files to get the platform to boot up. > > This just makes it mo

Re: [PATCH] board: beagleplay: Fix the bootpart to pick from root partition

2024-06-17 Thread Nishanth Menon
On 11:55-20240617, Dhruva Gole wrote: > Hi Robert and Bryan, > > On Jun 15, 2024 at 21:30:55 -0500, Robert Nelson wrote: > > On Sat, Jun 15, 2024 at 8:55 PM Bryan Brattlof wrote: > > > > > > On June 13, 2024 thus sayeth Dhruva Gole: > > > > The

[PATCH v4 02/14] net: introduce alternative implementation as net-lwip/

2024-06-17 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. Network support is either NO_NET, NET (legacy stack) or NET_LWIP. Subsequent commits will introduce the lwIP code, re-work the NETDEVICE integration and port some of the N

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

2024-06-17 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 b/.azure-pipelines.

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

2024-06-17 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: Jerom

[PATCH v4 12/14] configs: add qemu_arm64_lwip_defconfig

2024-06-17 Thread Jerome Forissier
Add qemu_arm64_lwip_defconfig which #include's qemu_arm64_defconfig and selects NET_LWIP instead of NET. This config has all the supported net commands enabled. Signed-off-by: Jerome Forissier --- configs/qemu_arm64_lwip_defconfig | 4 1 file changed, 4 insertions(+) create mode 100644 con

[PATCH v4 11/14] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y

2024-06-17 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 --- a/cmd/b

[PATCH v4 10/14] net-lwip: add wget command

2024-06-17 Thread Jerome Forissier
Add support for the wget command with NET_LWIP. Based on code initially developed by Maxim U. Signed-off-by: Jerome Forissier Co-developed-by: Maxim Uvarov Cc: Maxim Uvarov Signed-off-by: Jerome Forissier --- cmd/Kconfig| 7 ++ cmd/net-lwip.c | 8 ++ include/net-lwip.h | 18

[PATCH v4 09/14] net: split cmd/net.c into cmd/net.c and cmd/net-common.c

2024-06-17 Thread Jerome Forissier
Extract some code from cmd/net.c that will be useful in a subsequent commit to implement wget with NET_LWIP. Signed-off-by: Jerome Forissier --- cmd/Makefile | 5 ++- cmd/net-common.c | 109 cmd/net.c| 115 ---

[PATCH v4 08/14] net-lwip: add dns command

2024-06-17 Thread Jerome Forissier
Add CMD_DNS when NET_LWIP is enabled 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 | 117 ++

[PATCH v4 07/14] net-lwip: add ping command

2024-06-17 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 | 1 + net-lwip/Makefile | 1

[PATCH v4 06/14] net-lwip: add TFTP support and tftpboot command

2024-06-17 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 | 221 +++- 4 files changed, 237 insertions(+), 6 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kcon

[PATCH v4 05/14] net-lwip: add DHCP support and dhcp commmand

2024-06-17 Thread Jerome Forissier
Add what it takes to enable NETDEVICES with NET_LWIP and enable DHCP as well as the dhcp command. CMD_TFTPBOOT is selected by BOOTMETH_EFI due to this code having an implicit dependency on do_tftpb(). Signed-off-by: Jerome Forissier --- Makefile| 6 + boot/Kconfig|

[PATCH v4 04/14] net-lwip: build lwIP

2024-06-17 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 v4 03/14] net: split include/net.h into net{, -common, -legacy, -lwip}.h

2024-06-17 Thread Jerome Forissier
Make net.h a wrapper which includes net-common.h and either net-legacy.h or net-lwip.h based on NET_LWIP. Signed-off-by: Jerome Forissier --- Makefile | 4 +- include/net-common.h | 408 +++ include/net-legacy.h | 649 + include/net-lwip.

[PATCH v4 01/14] flash: prefix error codes with FL_

2024-06-17 Thread Jerome Forissier
Prefix the flash status codes (ERR_*) with FL_ in order to avoid clashes with third-party libraries. Case in point: including the lwIP library header file which defines err_enum_t as an enum with values being ERR_*. Signed-off-by: Jerome Forissier --- board/cobra5272/flash.c | 26

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

2024-06-17 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 reason

Re: [PATCH v1] arm: mach-k3: j784s4: Fix MCU_CLKOUT0 parent clock mux

2024-06-17 Thread Bryan Brattlof
On June 17, 2024 thus sayeth Emanuele Ghidoli: > From: Emanuele Ghidoli > > MCU_CLKOUT0 output can be driven by two different clock inputs: > one at 25 MHz and another at 50 MHz. Currently, the 25 MHz input > clock is not selectable due to a duplication of the 50 MHz clock input > in the mux conf

Re: [PATCH v2 0/5] bootstd: Add Android support

2024-06-17 Thread Mattijs Korpershoek
Hi Simon, On lun., juin 17, 2024 at 07:53, Simon Glass wrote: > Hi Mattijs, > > On Thu, 13 Jun 2024 at 04:13, Mattijs Korpershoek > wrote: >> >> Android boot flow is a bit different than a regular Linux distro. >> Android relies on multiple partitions in order to boot. >> >> A typical boot flow

[PATCH v2] sandbox: cleanup linker scripts and sections

2024-06-17 Thread Ilias Apalodimas
commit 6e2228fb052b ("Merge patch series "Clean up arm linker scripts"") was cleaning up linker scripts for armv7 and v8 in a similar fashion. Several commits in the past -- e.g commit d0b5d9da5de2 ("arm: make _end compiler-generated") was moving symbols to be compiler generated. They were defined

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

2024-06-17 Thread Dragan Simic
Hello Quentin, On 2024-06-17 16:10, Quentin Schulz wrote: On 6/6/24 10:45 AM, Quentin Schulz wrote: 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

Re: [PATCH] board: beagleplay: Fix the bootpart to pick from root partition

2024-06-17 Thread Bryan Brattlof
On June 17, 2024 thus sayeth Dhruva Gole: > Hi Robert and Bryan, > > On Jun 15, 2024 at 21:30:55 -0500, Robert Nelson wrote: > > On Sat, Jun 15, 2024 at 8:55 PM Bryan Brattlof wrote: > > > > > > On June 13, 2024 thus sayeth Dhruva Gole: > > > > The Kernel Image and DTB files are supposed to be pi

Re: [PATCH] board: beagleplay: Fix the bootpart to pick from root partition

2024-06-17 Thread Robert Nelson
On Mon, Jun 17, 2024 at 8:53 AM Simon Glass wrote: > > Hi Dhruva, > > On Thu, 13 Jun 2024 at 02:06, Dhruva Gole wrote: > > > > The Kernel Image and DTB files are supposed to be picked from the rootfs > > of the SD Card, this fails in legacy boot flow because bootpart is set > > to 1:1. Fix it. >

Re: Pull request efi-2024-07-rc5-2

2024-06-17 Thread Tom Rini
On Sun, Jun 16, 2024 at 12:22:32PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 2248c96ea1cf0b65377040d9f87ce7d8cf534c63: > > Merge tag 'u-boot-stm32-20240614' of > https://source.denx.de/u-boot/custodians/u-boot-stm (2024-06-14 08:13:54 > -0600) > > ar

Re: Please pull u-boot-watchdog/next

2024-06-17 Thread Tom Rini
On Sun, Jun 16, 2024 at 12:18:52PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following watchdog & cyclic related patches: > Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: Pull request: u-boot-rockchip-next-20240615

2024-06-17 Thread Tom Rini
On Sat, Jun 15, 2024 at 08:22:13PM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the updates for next on rockchip platform: > - New board: Theobroma Systems SOM-RK3588-Q7 Tiger, ArmSoM Sige7 Rk3588; > - PX30 dts migrate to OF_UPSTREAM; > - Some other update on board or config; > > CI: > htt

Re: Pull request: u-boot-rockchip-20240614

2024-06-17 Thread Tom Rini
On Sat, Jun 15, 2024 at 08:11:49PM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the fixex for rockchip platform: > - pmic fix for rk8xx; > - pinctrl fix for rk3188/rv1126/rk3588; > - mkimage fix for rockcihp "-l" option; > > CI: > https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/

Re: [GIT PULL] Please pull u-boot-imx-master-20240614

2024-06-17 Thread Tom Rini
On Fri, Jun 14, 2024 at 01:04:47PM -0300, Fabio Estevam wrote: > Hi Tom, > > Please pull this single fix from u-boot-imx/master, thanks. > > The following changes since commit ca6a992e09441d6cca73439c63c3735f86b36ea4: > > cmd: sound: fix help text (2024-06-13 09:31:56 -0600) > > are availabl

[PULL] Pull request for u-boot-nand-20240617

2024-06-17 Thread Dario Binacchi
stodians/u-boot-nand-flash.git tags/u-boot-nand-20240617 for you to fetch changes up to aad8aa56d96b1305ae5a9708b604b2f2a4e97c4e: mtd: nand: pxa3xx: Incorrect bitflip return on page read (2024-06-17 09:43:45 +0200) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-

Re: [PATCH 1/1] doc: update requirements.txt

2024-06-17 Thread Heinrich Schuchardt
On 17.06.24 15:53, Simon Glass wrote: Hi Heinrich, On Sun, 16 Jun 2024 at 02:59, Heinrich Schuchardt wrote: Update all required Python packages to current release. Signed-off-by: Heinrich Schuchardt --- doc/sphinx/requirements.txt | 16 1 file changed, 8 insertions(+), 8

Re: [PATCH 3/3] power: regulator: add qcom-rpmh-regulator

2024-06-17 Thread Neil Armstrong
On 17/06/2024 10:32, Caleb Connolly wrote: Add a regulator driver for controlling the PMIC rails via the RPMh on Qualcomm platforms. This driver is restricted to only know about rails which are required by u-boot. Signed-off-by: Caleb Connolly --- drivers/power/regulator/Kconfig

Re: [PATCH 2/6] board: freescale: p1_p2_rdb_pc: Add weak function p1_p2_rdb_pc_fix_fdt_model() for fixing DT model string

2024-06-17 Thread Sinan Akman
On 2024-06-17 8:16 a.m., Marek Mojík wrote: On 6/7/24 1:32 AM, Sinan Akman wrote: On 2024-06-06 12:33 p.m., Marek Mojík wrote: From: Pali Rohár This allows boards to fixup / overwrite DT model string when booting OS. Signed-off-by: Pali Rohár Signed-off-by: Marek Mojík ---   board/fr

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

2024-06-17 Thread Quentin Schulz
Hi all, On 6/6/24 10:45 AM, Quentin Schulz wrote: 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 cu

Re: [PATCH] xilinx: Enable NVMEM framework for all platforms

2024-06-17 Thread Michal Simek
čt 11. 4. 2024 v 8:04 odesílatel Michal Simek napsal: > > Boards which have for example MAC address in eeprom but not in Xilinx > format (legacy or FRU) could reference it via nvmem cells. > For example: > > &gem0 { > nvmem-cells = <&mac>; > nvmem-cell-names = "mac-address"; > }; >

Re: [PATCH COVER] rockchip: rk3399: fix SPI-NOR flash not found in U-Boot pre-reloc

2024-06-17 Thread Quentin Schulz
Hi Jonas, On 6/17/24 3:44 PM, Jonas Karlman wrote: Hi Quentin, On 2024-06-17 15:29, Quentin Schulz wrote: Hi Jonas, On 6/17/24 3:26 PM, Jonas Karlman wrote: Hi Quentin, On 2024-06-17 15:10, Quentin Schulz wrote: From: Quentin Schulz In commit 100f489f58a6 ("rockchip: rk3399: Fix loading

Re: [PATCH v3 2/2] doc: api: bootcount: Convert to rST documentation

2024-06-17 Thread Simon Glass
Hi Vasileios, On Thu, 13 Jun 2024 at 16:04, Vasileios Amoiridis wrote: > > Move to the new documentation style with rST formatting. > > Signed-off-by: Vasileios Amoiridis > --- > doc/README.bootcount | 53 --- > doc/api/bootcount.rst | 58 +++

Re: [PATCH] board: beagleplay: Fix the bootpart to pick from root partition

2024-06-17 Thread Simon Glass
Hi Dhruva, On Thu, 13 Jun 2024 at 02:06, Dhruva Gole wrote: > > The Kernel Image and DTB files are supposed to be picked from the rootfs > of the SD Card, this fails in legacy boot flow because bootpart is set > to 1:1. Fix it. > > Fixes: a200f428b5b21 ("board: ti: am62x: Add am62x_beagleplay_* d

Re: [PATCH v2 0/5] bootstd: Add Android support

2024-06-17 Thread Simon Glass
Hi Mattijs, On Thu, 13 Jun 2024 at 04:13, Mattijs Korpershoek wrote: > > Android boot flow is a bit different than a regular Linux distro. > Android relies on multiple partitions in order to boot. > > A typical boot flow would be: > 1. Parse the Bootloader Control Block (BCB, misc partition) > 2.

Re: [PATCH] sandbox: cleanup linker scripts and sections

2024-06-17 Thread Simon Glass
Hi Ilias, On Fri, 14 Jun 2024 at 01:01, Ilias Apalodimas wrote: > > Hi Simon, > > I just noticed that the sections in sandbox were discarded because > their definition was wrong to begin with. > They were defined with an extra _ -- ___efi_runtime_rel_start instead > of __efi_runtime_rel_start. >

Re: [PATCH v2 2/2] bootstd: Replace bootmethod(s) -> bootmeth(s)

2024-06-17 Thread Simon Glass
Hi, On Sun, 16 Jun 2024 at 01:43, Heinrich Schuchardt wrote: > > On 6/4/24 17:15, Mattijs Korpershoek wrote: > > According to [1], we should use bootmeth when describing the > > struct bootmeth: > > > > """ > > For version 2, a new naming scheme is used as above: > > > > - bootdev is used in

Re: [PATCH 1/1] doc: update requirements.txt

2024-06-17 Thread Simon Glass
Hi Heinrich, On Sun, 16 Jun 2024 at 02:59, Heinrich Schuchardt wrote: > > Update all required Python packages to current release. > > Signed-off-by: Heinrich Schuchardt > --- > doc/sphinx/requirements.txt | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) Reviewed-by: Sim

Re: [PATCH v2 2/9] tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL

2024-06-17 Thread Simon Glass
Hi, On Sat, 15 Jun 2024 at 01:03, Ilias Apalodimas wrote: > > Hi Heinrich > > resending the reply, I accidentally sent half of the message... > > On Fri, 14 Jun 2024 at 12:04, Heinrich Schuchardt wrote: > > > > On 14.06.24 09:01, Ilias Apalodimas wrote: > > > On Fri, 14 Jun 2024 at 09:59, Heinri

Re: [PATCH COVER] rockchip: rk3399: fix SPI-NOR flash not found in U-Boot pre-reloc

2024-06-17 Thread Jonas Karlman
Hi Quentin, On 2024-06-17 15:29, Quentin Schulz wrote: > Hi Jonas, > > On 6/17/24 3:26 PM, Jonas Karlman wrote: >> Hi Quentin, >> >> On 2024-06-17 15:10, Quentin Schulz wrote: >>> From: Quentin Schulz >>> >>> In commit 100f489f58a6 ("rockchip: rk3399: Fix loading FIT from SD-card >>> when bootin

Re: [PATCH] xilinx: Enable FF-A for all our arm64 SoCs

2024-06-17 Thread Michal Simek
út 11. 6. 2024 v 13:07 odesílatel Michal Simek napsal: > > Enable FFA_TRANSPORT which also enable FFA command. > > Signed-off-by: Michal Simek > --- > > configs/amd_versal2_virt_defconfig | 1 + > configs/xilinx_versal_net_virt_defconfig | 1 + > configs/xilinx_versal_virt_defconfig |

Re: [PATCH] mtd: spi-nor: ids: Add IS25LP01GG flash support

2024-06-17 Thread Michal Simek
On 6/17/24 15:31, Dragan Simic wrote: Hello Michal, On 2024-06-17 15:26, Michal Simek wrote: On 6/17/24 08:28, Dhruva Gole wrote: On Jun 17, 2024 at 09:48:42 +0530, Prasad Kummari wrote: Add support for ISSI 128MB flash IS25LP01GG. This part Can we have the datasheet link for this part?

Re: [PATCH] xilinx: versal-net: Add env redund offset

2024-06-17 Thread Michal Simek
On 6/14/24 14:51, Venkatesh Yadav Abbarapu wrote: ENV_OFFSET_REDUND config is by default set to 0 for flashes. Saving the env variables is overwriting data at 0 offset, which is wrong. So add default redund env offset ENV_OFFSET_REDUND at 0x7F0 for Versal NET platform. Signed-off-by: Venk

Re: [PATCH] mtd: spi-nor: ids: Add IS25LP01GG flash support

2024-06-17 Thread Dragan Simic
Hello Michal, On 2024-06-17 15:26, Michal Simek wrote: On 6/17/24 08:28, Dhruva Gole wrote: On Jun 17, 2024 at 09:48:42 +0530, Prasad Kummari wrote: Add support for ISSI 128MB flash IS25LP01GG. This part Can we have the datasheet link for this part? I am assuming it's this? https://www.issi.

Re: [PATCH] gpio: Add proper dependency on ZYNQMP_FIRMWARE

2024-06-17 Thread Michal Simek
On 6/6/24 16:44, Michal Simek wrote: ZYNQMP_FIRMWARE can be disabled and driver depends on it that's why record this dependency via Kconfig. Signed-off-by: Michal Simek --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/dri

Re: [PATCH COVER] rockchip: rk3399: fix SPI-NOR flash not found in U-Boot pre-reloc

2024-06-17 Thread Quentin Schulz
Hi Jonas, On 6/17/24 3:26 PM, Jonas Karlman wrote: Hi Quentin, On 2024-06-17 15:10, Quentin Schulz wrote: From: Quentin Schulz In commit 100f489f58a6 ("rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC"), the spi1 bootph properties were mistakenly removed meaning, so re-a

Re: [PATCH] arm64: zynqmp: Align #address/size-cells with node

2024-06-17 Thread Michal Simek
On 6/6/24 16:35, Michal Simek wrote: zynqmp-mini-nand wasn't aligned with dt binding that's why fix it. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-mini-nand.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/zynqmp-mini-nand.dts b/arch/arm/

Re: [PATCH] mtd: spi-nor: ids: Add IS25LP01GG flash support

2024-06-17 Thread Michal Simek
On 6/17/24 08:28, Dhruva Gole wrote: On Jun 17, 2024 at 09:48:42 +0530, Prasad Kummari wrote: Add support for ISSI 128MB flash IS25LP01GG. This part Can we have the datasheet link for this part? I am assuming it's this? https://www.issi.com/WW/pdf/25LP-WP01GG.pdf Problem with links is tha

Re: [PATCH v5 0/3] Introduce mtdblock device

2024-06-17 Thread Alexey Romanov
Hello, On Fri, Jun 14, 2024 at 10:09:27AM +0200, Dario Binacchi wrote: > Hi Alexey, > > I'm still encountering errors raised by the CI: I'm sorry. I tested my patches with GitHub + Azure Pipelines and didn't get any errors like that. I thought testing there uses buildman. I'll try to run it loc

  1   2   >