Re: Please pull u-boot-samsung master

2024-08-23 Thread Minkyu Kang
Hi, On Fri, 23 Aug 2024 at 07:11, Tom Rini wrote: > On Thu, Aug 22, 2024 at 07:20:10PM +0900, Minkyu Kang wrote: > > > Dear Tom, > > > > The following changes since commit > d51764417dc37ead471a5597f7815ae455e84ea3: > > > > am335x_hs_evm_spi_defconfig: Add MAINTAINERS entry (2024-08-15 16:07:4

Re: [PATCH v2 0/3] Meson: R/W support for pages used by boot ROM

2024-08-23 Thread Michael Nazzareno Trimarchi
Hi Arseniy On Thu, Aug 22, 2024 at 9:04 AM Arseniy Krasnov wrote: > > Hi, thanks! > > Thanks, Arseniy > > On 22.08.2024 00:17, Michael Nazzareno Trimarchi wrote: > > Hi > > > > I will read them tomorrow ;) > > > > Thank you for understanding > > All the series are delegated to Neil. I will revie

Re: [PATCH v2 0/3] Meson: R/W support for pages used by boot ROM

2024-08-23 Thread Arseniy Krasnov
Hi! Got it, thanks! On 23.08.2024 11:10, Michael Nazzareno Trimarchi wrote: > Hi Arseniy > > On Thu, Aug 22, 2024 at 9:04 AM Arseniy Krasnov > wrote: >> >> Hi, thanks! >> >> Thanks, Arseniy >> >> On 22.08.2024 00:17, Michael Nazzareno Trimarchi wrote: >>> Hi >>> >>> I will read them tomorrow ;)

Re: [PATCH v2 0/3] Meson: R/W support for pages used by boot ROM

2024-08-23 Thread Neil Armstrong
On 23/08/2024 10:29, Arseniy Krasnov wrote: Hi! Got it, thanks! On 23.08.2024 11:10, Michael Nazzareno Trimarchi wrote: Hi Arseniy On Thu, Aug 22, 2024 at 9:04 AM Arseniy Krasnov wrote: Hi, thanks! Thanks, Arseniy On 22.08.2024 00:17, Michael Nazzareno Trimarchi wrote: Hi I will read th

[PATCH v2 0/2] Risc-V cache operations

2024-08-23 Thread Mayuresh Chitale
This patchset adds support for using the CBO instructions to perform the dcache flush/inval operations for the qemu-riscv board when those are enabled. The CBO instructions are defined in the Risc-V CMO specification which can be found at the link below: https://github.com/riscv/riscv-CMOs/blob/mas

[PATCH v2 1/2] riscv: Add support for defining instructions

2024-08-23 Thread Mayuresh Chitale
Add insn-def.h which is similar to that in linux and contains the macros to generate any instruction of type 'I' using the assembler's .insn directive. Signed-off-by: Mayuresh Chitale --- arch/riscv/include/asm/insn-def.h | 42 +++ 1 file changed, 42 insertions(+) cr

[PATCH v2 2/2] riscv: cache: Add CBO instructions

2024-08-23 Thread Mayuresh Chitale
Define CBO inval and flush instructions and use those for the dcache inval and flush operations respectively. Signed-off-by: Mayuresh Chitale --- arch/riscv/Kconfig | 4 ++ arch/riscv/lib/cache.c | 96 ++ 2 files changed, 100 insertions(+) diff --git

Re: [PATCH v3 04/10] soc: ti: k3-navss-ringacc: Fix reset ring API

2024-08-23 Thread Chintan Vankar
On 16/08/24 17:58, Sverdlin, Alexander wrote: Hi Chintan, Vignesh, On Fri, 2024-07-05 at 10:20 +0530, Chintan Vankar wrote: From: Vignesh Raghavendra Expectation of k3_ringacc_ring_reset_raw() is to reset the ring to requested size and not to 0. Fix this. Signed-off-by: Vignesh Raghavendr

Re: [PATCH v3 04/10] soc: ti: k3-navss-ringacc: Fix reset ring API

2024-08-23 Thread Sverdlin, Alexander
Hi Chintan, On Fri, 2024-08-23 at 15:22 +0530, Chintan Vankar wrote: > On 16/08/24 17:58, Sverdlin, Alexander wrote: > > Hi Chintan, Vignesh, > > > > On Fri, 2024-07-05 at 10:20 +0530, Chintan Vankar wrote: > > > From: Vignesh Raghavendra > > > > > > Expectation of k3_ringacc_ring_reset_raw() i

RE: [PATCH 1/3] tpm: update tpm hash algorithm according to tpm2.0 spec 1.59

2024-08-23 Thread Benjamin BARATTE
Hi @Ilias Apalodimas, ST Restricted > -Original Message- > From: Ilias Apalodimas > Sent: Monday, July 29, 2024 3:55 PM > To: Benjamin BARATTE > Cc: u-boot@lists.denx.de; eaja...@linux.ibm.com; s...@chromium.org; > thar...@gateworks.com; tr...@konsulko.com > Subject: Re: [PATCH 1/3] tpm

RE: [PATCH 3/3] tpm_tcg2: hash algo optimization

2024-08-23 Thread Benjamin BARATTE
Hi @Ilias Apalodimas, ST Restricted > -Original Message- > From: Ilias Apalodimas > Sent: Monday, July 29, 2024 4:10 PM > To: Benjamin BARATTE > Cc: u-boot@lists.denx.de; akashi.tk...@gmail.com; > abdellatif.elkhl...@arm.com; eaja...@linux.ibm.com; xypron.g...@gmx.de; > kojima.masah...@

Re: [PATCH v2 26/35] global_data: Reduce size of early-malloc vars

2024-08-23 Thread Tom Rini
On Wed, Aug 21, 2024 at 10:19:18AM -0600, Simon Glass wrote: > The early malloc region is normally quite small and is certainly less > than 4GB, so use a 32-bit value for the limit and pointer. Update the > comment for clarity while we are here. > > Signed-off-by: Simon Glass > --- > > (no chan

Re: [PATCH 1/1] usb: gadget: ether: Disable USB pullup in eth probe

2024-08-23 Thread Zixun LI
On Fri, Aug 23, 2024 at 4:54 AM Marek Vasut wrote: > > I think udc_bind_to_driver() should not call usb_gadget_connect() , that > connect should likely be called by at some later point. Yes it's more logical, to keep it in disconnected state you prefer modify controllers drivers init (I can do us

Re: [RESEND PATCH v3 4/9] net/tcp: add connection info to tcp_stream structure

2024-08-23 Thread Mikhail Kshevetskiy
On 17.08.2024 18:58, Simon Glass wrote: > Hi Mikhail, > > On Wed, 14 Aug 2024 at 04:32, Mikhail Kshevetskiy > wrote: >> Changes: >> * Avoid use net_server_ip in tcp code, use tcp_stream data instead >> * Ignore packets from other connections if connection already created. >>This prevents u

[PATCH v9 01/37] Makefile: detect HOST_ARCH properly when CROSS_COMPILE is multi-word

2024-08-23 Thread Jerome Forissier
When CROSS_COMPILE contains multiple words, HOST_ARCH is not properly detected and the sandbox build fail. It typically happens when using ccache. For example: $ make sandbox_defconfig $ make CROSS_COMPILE="ccache x86_64-linux-gnu-" \ CC="ccache x86_64-linux-gnu-gcc" [...] In file incl

[PATCH v9 00/23] Introduce the lwIP network stack

2024-08-23 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

[PATCH v9 02/37] flash: prefix error codes with FL_

2024-08-23 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 Reviewed-by: Tom Rini Reviewed-by: Ilias Apalod

[PATCH v9 04/37] arm: omap2: add missing #include

2024-08-23 Thread Jerome Forissier
emac.c implements cpu_eth_init() so it needs to pull the corresponding header file. Signed-off-by: Jerome Forissier --- arch/arm/mach-omap2/omap3/emac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/omap3/emac.c b/arch/arm/mach-omap2/omap3/emac.c index 7348e92cabd..1e30

[PATCH v9 03/37] at91: rename mem_init() to at91_mem_init()

2024-08-23 Thread Jerome Forissier
THe AT91-based platforms have a mem_init() function declared in arch/arm/mach-at91/include/mach/at91_common.h and implemented in various places. In preparation of the introduction of the lwIP networking library which also has a global mem_init() function, rename the AT91 one to at91_mem_init(). Si

[PATCH v9 05/37] net: fm: call dtsec_init_phy() only when it is defined

2024-08-23 Thread Jerome Forissier
dtsec_init_phy() is defined only with MII so add the proper conditional in the caller code. Signed-off-by: Jerome Forissier --- drivers/net/fm/eth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c index 19f3f0fef07..e4ec7696939 100644 --- a/drive

[PATCH v9 06/37] net: wget: removed unused function wget_success()

2024-08-23 Thread Jerome Forissier
wget_success() is used nowhere so remove it. Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodimas --- net/wget.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/net/wget.c b/net/wget.c index f1dd7abeff6..0e4dc5159d0 100644 --- a/net/wget.c +++ b/net/wget.c @@ -199,13 +199,6 @

[PATCH v9 07/37] net: phy: ncsi: depend on NET

2024-08-23 Thread Jerome Forissier
PHY_NCSI enables drivers/net/phy/ncsi.c which calls net_loop() and net_set_timeout_handler(). That's the legacy NET stack (as opposed to NET_LWIP). Therefore add the dependency to Kconfig. Signed-off-by: Jerome Forissier --- drivers/net/phy/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --g

[PATCH v9 08/37] net: ftgmac100: depend on NET

2024-08-23 Thread Jerome Forissier
FTGMAC100 enables drivers/net/ftgmac100.c which uses PHY_INTERFACE_MODE_NCSI, which is defined only when PHY_NCSI is enabled. Therefore FTGMAC100 depends on PHY_NCSI. However adding such a dependency causes a "recursive dependency detected!" message, so add a dependency on NET instead (PHY_NCSI dep

[PATCH v9 09/37] net: wget: allow EFI boot

2024-08-23 Thread Jerome Forissier
wget followed by bootefi currently fails as follows: U-Boot> wget 20 192.168.0.30:helloworld.efi Waiting for Ethernet connection... done. HTTP/1.0 200 OK Packets received 13, Transfer Successful Bytes transferred = 12720 (31b0 hex) U-Boot> bootefi 20 No UEFI binary known at 20

[PATCH v9 10/37] net: fec_mxc_init(): do not ignore return status of fec_open()

2024-08-23 Thread Jerome Forissier
The fec_mxc_init() function currently always returns 0. This does not allow the callers to detect when for instance the PHY initialization failed due to the port being unconnected. Fix that by returning the status of fec_open(). Signed-off-by: Jerome Forissier Reviewed-by: Fabio Estevam --- dri

[PATCH v9 11/37] test/py: net_boot: fix comment

2024-08-23 Thread Jerome Forissier
If env__pxe_boot_test_skip is not present, it defaults to True not False. Therefore fix the comment. Signed-off-by: Jerome Forissier --- test/py/tests/test_net_boot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/tests/test_net_boot.py b/test/py/tests/test_net_boot

[PATCH v9 12/37] test/py: test_efi_loader: add missing dependency on cmd_tftpboot

2024-08-23 Thread Jerome Forissier
test_efi_helloworld_net() and test_efi_grub_net() depend on cmd_tftpboot so add the missing annotations. Reported-by: Tom Rini Signed-off-by: Jerome Forissier --- test/py/tests/test_efi_loader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_efi_loader.py b/test/py/te

[PATCH v9 13/37] test/py: test_efi_loader: add HTTP (wget) test for the EFI loader

2024-08-23 Thread Jerome Forissier
Add a test to test_efi_loader.py similar to the TFTP test but for HTTP with the wget command. Suggested-by: Tom Rini Signed-off-by: Jerome Forissier Tested-by: Tom Rini --- test/py/tests/test_efi_loader.py | 62 +++- 1 file changed, 46 insertions(+), 16 deletions(-)

[PATCH v9 17/37] net: move copy_filename() to new file net/net-common.c

2024-08-23 Thread Jerome Forissier
copy_filename() can be useful when NET_LWIP is enabled, therefore move it out of net/net.c which is built only when networking choice is NET. Signed-off-by: Jerome Forissier --- net/Makefile | 2 ++ net/net-common.c | 13 + net/net.c| 12 3 files changed, 15

[PATCH v9 16/37] net: split include/net.h into net{, -common, -legacy, -lwip}.h

2024-08-23 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 | 485 ++ include/net-legacy.h | 560 + include/net-lwip.h

[PATCH v9 18/37] net: eth-uclass: add function eth_start_udev()

2024-08-23 Thread Jerome Forissier
Add a function to start a given network device, and update eth_init() to use it. Signed-off-by: Jerome Forissier Reviewed-by: Tom Rini --- drivers/mtd/altera_qspi.c | 4 ++-- include/net-common.h | 1 + net/eth-uclass.c | 38 +- 3 files change

[PATCH v9 19/37] net-lwip: build lwIP

2024-08-23 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 v9 14/37] net: introduce alternative implementation as net-lwip/

2024-08-23 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 v9 15/37] configs: replace '# CONFIG_NET is not set' with CONFIG_NO_NET=y

2024-08-23 Thread Jerome Forissier
The parent patch has made the networking stack a choice between NO_NET, NET and NET_LWIP. Therefore '# CONFIG_NET is not set' is now 'CONFIG_NO_NET=y'. Adjust the defconfigs accordingly. Note that this patch is intended to be folded in but is kept separate separate for now to make review easier. S

[PATCH v9 22/37] net-lwip: add ping command

2024-08-23 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 --- cmd/Kconfig| 11 +-- cmd/net-lwip.c | 8 ++ include/net-lwip.h | 1 + net/lwip/Makefile | 1 + net/lwip/ping.c| 177

[PATCH v9 21/37] net-lwip: add TFTP support and tftpboot command

2024-08-23 Thread Jerome Forissier
Implement do_tftpb(). This implementation of the tftp command supports an optional port number. For example: tftp 192.168.0.30:9069:file.bin It also supports taking the server IP from ${tftpserverip} if defined, before falling back to ${serverip}. Signed-off-by: Jerome Forissier --- cmd/Kconf

[PATCH v9 23/37] net-lwip: add dns command

2024-08-23 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| 11 ++-- cmd/net-lwip.c | 8 +++ include/net-lwip.h | 1 + net/lwip/Makefile | 1 + net/lwip/dns.c | 127 ++

[PATCH v9 24/37] net: split cmd/net.c into cmd/net.c and cmd/net-common.c

2024-08-23 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 Reviewed-by: Ilias Apalodimas --- cmd/Makefile | 5 ++- cmd/net-common.c | 109 cmd/net.c| 115

[PATCH v9 25/37] net-lwip: add wget command

2024-08-23 Thread Jerome Forissier
Add support for the wget command with NET_LWIP. The command normally expects a URL: wget [loadaddr] url, but it also accepts the legacy syntax: wget [loadaddr] [server:]file. The server IP may alternatively be supplied via ${httpserverip} which has higher priority than ${serverip}. Based on code i

[PATCH v9 26/37] net-lwip: lwIP wget supports user defined port in the uri, so allow it.

2024-08-23 Thread Jerome Forissier
From: Jonathan Humphreys Signed-off-by: Jonathan Humphreys Signed-off-by: Jerome Forissier --- net/lwip/wget.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/net/lwip/wget.c b/net/lwip/wget.c index e8768fc2acd..b495ebd1aa9 100644 --- a/net/lwip/wget.c +++ b/net/lwip/wget.c @@ -349,12

[PATCH v9 27/37] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y

2024-08-23 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 437ac4e8630..472e5c42b08 100644 --- a/cmd/b

[PATCH v9 28/37] configs: add qemu_arm64_lwip_defconfig

2024-08-23 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 | 10 ++ 1 file changed, 10 insertions(+) create mode 10

[PATCH v9 29/37] lwip: tftp: add support of blksize option to client

2024-08-23 Thread Jerome Forissier
The TFTP protocol uses a default block size of 512 bytes. This value is sub-optimal for ethernet devices, which have a MTU (Maximum Transmission Unit) of 1500 bytes. When taking into acount the overhead of the IP and UDP layers, this leaves 1468 bytes for the TFTP payload. This patch introduces a

[PATCH v9 30/37] net-lwip: add TFTP_BLOCKSIZE

2024-08-23 Thread Jerome Forissier
Add support for setting the TFTP block size. The default value (1468) is fine for Ethernet and allows a better throughput than the TFTP default (512), if the server supports the blksize option of course. I tested this change with qemu_arm64_lwip_defconfig. The throughput is now 875 KiB/s vs. 313 K

[PATCH v9 31/37] CI: add qemu_arm64_lwip to the test matrix

2024-08-23 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 v9 32/37] MAINTAINERS: net-lwip: add myself as a maintainer

2024-08-23 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 v9 33/37] Kconfig: fix undefined symbols (g_dnl*) when NET_LWIP is default enabled

2024-08-23 Thread Jerome Forissier
Fix for link errors on am62px_evm_a53and other platforms when NET_LWIP is enabled: common/dfu.c:34:(.text.run_usb_dnl_gadget+0x68): undefined reference to `g_dnl_clear_detach [...] common/spl/spl_dfu.c:29:(.text.spl_dfu_cmd+0xb0): undefined reference to `run_usb_dnl_gadget' - DFU_OVER_USB co

[PATCH v9 34/37] configs: use syntax CONFIG_FOO=n in tools-only_defconfig

2024-08-23 Thread Jerome Forissier
The tools-only defconfig causes troubles on MacOSX due to the default C compiler being Clang (LLVM) rather than GCC and more specifically due to [1]. Therefore replace "$ CONFIG_FOO is not set" with the equivalent "CONFIG_FOO=n" using the following command: $ sed -i -e 's/# \(CONFIG_[^ ]*\) is no

[PATCH v9 35/37] [TESTING] Kconfig: enable NET_LWIP by default except for SANDBOX

2024-08-23 Thread Jerome Forissier
Enable NET_LWIP by default for testing purposes. SANDBOX doesn't support NET_LWIP so default to NET in this case. Signed-off-by: Jerome Forissier --- Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/Kconfig b/Kconfig index 6657b9e5e30..2b316afa542 100644 --- a/Kconfig +++ b/Kconfig @@

[PATCH v9 36/37] [TESTING] configs: set CONFIG_NET=y for FTGMAC100

2024-08-23 Thread Jerome Forissier
FTGMAC100 is not compatible with NET_LWIP which was enabled as the default stack in a previous commit. So enable NET in the defconfig. Signed-off-by: Jerome Forissier --- configs/evb-ast2500_defconfig | 1 + configs/evb-ast2600_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/conf

[PATCH v9 20/37] net-lwip: add DHCP support and dhcp commmand

2024-08-23 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 --- board/engicam/imx8mp/icore_mx8mp.c| 2 +- ...

[PATCH v9 37/37] [TESTING] configs: set CONFIG_NET=y when PXE is enabled

2024-08-23 Thread Jerome Forissier
Many platforms won't build when NET_LWIP is the default choice in Kconfig: include/config_distro_bootcmd.h:443:9: error: expected '}' before 'BOOT_TARGET_DEVICES_references_PXE_without_CONFIG_CMD_DHCP_or_PXE' [...] Set the legacy stack (CONFIG_NET=y) for these platforms. Signed-off-by: Jerome

Re: [RESEND PATCH v3 6/9] net/tcp: improve tcp framework, use better state machine

2024-08-23 Thread Mikhail Kshevetskiy
Unfortunately no. This patch change the tcp state machine and corresponding logic.  I tried to split "initial send value is always zero" fix to a separate patch but failed. See the patch description in v4 (when it will be sent). On 17.08.2024 18:58, Simon Glass wrote: > Hi Mikhail, > > On Wed, 14

Re: [RESEND PATCH v3 7/9] net/tcp: simplify tcp header filling code

2024-08-23 Thread Mikhail Kshevetskiy
By the way, I'd like to know your opinion:  * should I add a sample implementation of http/1.1 compatible web-server to this patch series? This can be used as a base for other implementations like firmware upgrade web-server used by some vendors. Mikhail Kshevetskiy On 17.08.2024 18:58, Simon G

[GIT PULL] Please pull u-boot-imx-master-20240823

2024-08-23 Thread Fabio Estevam
ository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-next-20240823 for you to fetch changes up to dda8444832ce32e0bdb9a05e2e90a7dc9f8663ca: ARM: imx: Enable cat and xxd commands on Data Modul i.MX8M Mini/Plus eDM SBC (2024-08-23 14:53:53 -0300) u-boot-imx-maste

Re: [PATCH v1 0/4] apalis/colibri imx8: enable additional features

2024-08-23 Thread Fabio Estevam
On Wed, Aug 7, 2024 at 11:17 AM wrote: > > From: Max Krummenacher > > > Enable and use additional features which have been added to U-Boot > on the Apalis iMX8QM / Colibri iMX8X boards. > > > > Andrejs Cainikovs (4): > board: apalis-imx8: add reset code > apalis-imx8: enable i.MX specific BOO

Re: [PATCH 1/3] tqma6: Remove non-DM board code

2024-08-23 Thread Fabio Estevam
On Wed, Aug 14, 2024 at 3:28 PM Fabio Estevam wrote: > > From: Fabio Estevam > > CONFIG_DM_MMC and CONFIG_DM_SPI are alway selected so the mmc > and spi board code can be safely removed. > > Remove it to make the code cleaner. > > Signed-off-by: Fabio Estevam Applied all, thanks.

Re: [PATCH v4] config: Add 'update_bootimg' command to update flash.bin on Phytec's imx8mm

2024-08-23 Thread Fabio Estevam
On Fri, Aug 9, 2024 at 1:53 PM Lukasz Majewski wrote: > > This command allows easy update on SD card or eMMC of the flash.bin > generated (with binman) during u-boot build. > > Signed-off-by: Lukasz Majewski Applied, thanks.

Re: [PATCH] ARM: imx: Use USB SDPS as fallback option on Data Modul i.MX8M Plus eDM SBC

2024-08-23 Thread Fabio Estevam
On Wed, Aug 21, 2024 at 6:02 PM Marek Vasut wrote: > > The Data Modul i.MX8M Plus eDM SBC does have USB gadget capable port > accessible via USB A-A cable plugged into the bottom USB 3.0 port. > Use USB SDPS as the fallback boot device, so USB SDPS loading can > be performed using e.g. uuu tool. >

Re: [PATCH] ARM: imx: Enable cat and xxd commands on Data Modul i.MX8M Mini/Plus eDM SBC

2024-08-23 Thread Fabio Estevam
On Wed, Aug 21, 2024 at 6:04 PM Marek Vasut wrote: > > Enable 'cat' command to print file from filesystem to stdout. > Enable 'xxd' command to hexdump file from filesystem to stdout. > > Signed-off-by: Marek Vasut Applied, thanks.

Re: [PATCH] imx: imx9: Set correct critical temperature

2024-08-23 Thread Fabio Estevam
On Tue, Aug 13, 2024 at 9:12 AM Primoz Fiser wrote: > > Commit 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses") > wrongly set critical temperature to (maxc - 5) instead of maxc. > > Fixes: 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses") > Signed-off-by: Primoz Fiser Applied,

Re: [PATCH 0/2] Add and enable mcore support

2024-08-23 Thread Fabio Estevam
On Tue, Aug 20, 2024 at 12:46 PM Yashwanth Varakala wrote: > > Added m7 core support in uboot for imx8mp by adding > the boot variable prepare_mcore and enabled bootaux in > defconfig. > > Regards, > yashwanth. > > Yashwanth Varakala (2): > board: phytec: phycore_imx8mp: Add mcore support > co

Re: [PATCH v2] imx: ele_ahab: Add HUK derivation support

2024-08-23 Thread Fabio Estevam
On Tue, Aug 20, 2024 at 1:48 AM Mathieu Othacehe wrote: > > Add a new ahab_derive command that derives the hardware unique key (HUK) > into a 16 or 32 bytes key and stores it at the given address. > > Signed-off-by: Mathieu Othacehe It fails to apply. Please rebase against uboot/next and resubm

[GIT PULL v2] Please pull u-boot-imx-next-20240823

2024-08-23 Thread Fabio Estevam
ository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-next-20240823 for you to fetch changes up to dda8444832ce32e0bdb9a05e2e90a7dc9f8663ca: ARM: imx: Enable cat and xxd commands on Data Modul i.MX8M Mini/Plus eDM SBC (2024-08-23 14:53:53 -0300) u-boot-imx-nex

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

2024-08-23 Thread Fabio Estevam
On Fri, Aug 23, 2024 at 4:12 PM Fabio Estevam wrote: > > Hi Tom, > > Please pull from u-boot-imx/master, thanks. I meant next, not master. I have sent a v2 with the correct Subject and commit log.

[PATCH v3 00/35] global_data: Reduce size of struct global_data

2024-08-23 Thread Simon Glass
The global data structure has grown quite a lot over the years, being the best place to put an important pointer or something that must be accessed before and after relocation. This series attempts to reduce the size a little, by moving some things out and shrinking and aligning some fields. Some

[PATCH v3 26/35] global_data: Reduce size of early-malloc vars

2024-08-23 Thread Simon Glass
The early malloc region is normally quite small and is certainly less than 4GB, so use a 32-bit value for the limit and pointer. Update the comments for clarity while we are here. Signed-off-by: Simon Glass --- Changes in v3: - Keep new_ptr as a ulong to avoid overflow - Update the comment for m

Re: [PATCH v2 26/35] global_data: Reduce size of early-malloc vars

2024-08-23 Thread Simon Glass
Hi Tom, On Fri, 23 Aug 2024 at 07:34, Tom Rini wrote: > > On Wed, Aug 21, 2024 at 10:19:18AM -0600, Simon Glass wrote: > > > The early malloc region is normally quite small and is certainly less > > than 4GB, so use a 32-bit value for the limit and pointer. Update the > > comment for clarity whil

[PATCH v4 1/9] net/tcp: fix TCP options processing

2024-08-23 Thread Mikhail Kshevetskiy
Current TCP code may miss an option if TCP_O_NOP option was used before it for proper aligning. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index b0cc8a1fe3e..3e3118de45

[PATCH v4 0/9] net: tcp: improve tcp support

2024-08-23 Thread Mikhail Kshevetskiy
U-Boot support of LWIP is not ready for a moment, but we already have some kind of tcp support. Unfrotunately this support is really bad. Some of the known issues: * tcp packet from other connection can break a current one * tcp send sequence always starts from zero * bad tcp options processing

[PATCH v4 2/9] net/tcp: fix selective acknowledge

2024-08-23 Thread Mikhail Kshevetskiy
Current code assume that all (except last) packets are of the same size. This is definitely wrong. Replace SACK code with a new one, that does not rely on this assumption. Also this code uses less memory. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 200 ++

[PATCH v4 5/9] net/tcp: rename ack_edge and seq_init to more common rcv_nxt and irs

2024-08-23 Thread Mikhail Kshevetskiy
Use the names from RFC 9293 Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 8 net/tcp.c | 32 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index f224

[PATCH v4 3/9] net/tcp: put connection specific data into a tcp_stream structure

2024-08-23 Thread Mikhail Kshevetskiy
no functional changes Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 37 +++- net/net.c | 11 ++- net/tcp.c | 231 +++--- net/wget.c| 3 +- 4 files changed, 163 insertions(+), 119 deleti

[PATCH v4 4/9] net/tcp: add connection info to tcp_stream structure

2024-08-23 Thread Mikhail Kshevetskiy
Changes: * Avoid use net_server_ip in tcp code, use tcp_stream data instead * Ignore packets from other connections if connection already created. This prevents us from connection break caused by other tcp stream. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net.

[PATCH v4 7/9] net/tcp: simplify tcp header filling code

2024-08-23 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 70 +-- 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index 2c34556c26d..7014d5b4f43 100644 --- a/net/tcp.c +++ b/net/tcp.c @@ -

[PATCH v4 8/9] net/tcp: define a fallback value for rcv_wnd size

2024-08-23 Thread Mikhail Kshevetskiy
Some driver implements it's own network packet pool, so PKTBUFSRX is zero. This results in zero-size TCP receive window, so data transfer doesn't work. Avoid it by setting a reasonable fallback value. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 +- 1 file c

[PATCH v4 6/9] net/tcp: improve tcp framework, use better state machine

2024-08-23 Thread Mikhail Kshevetskiy
Changes: * Fix initial send sequence always zero issue * Use state machine close to RFC 9293. This should make TCP transfers more reliable (now we can upload a huge array of data from the board to external server) * Improve TCP framework a lot. This should make tcp client code much more

[PATCH v4 9/9] net/netcat: add netcat over tcp support

2024-08-23 Thread Mikhail Kshevetskiy
This patch adds downloading/uploading of data with netcat. Client/server mode both supported. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfig | 7 ++ cmd/net.c| 34 +++-- include/net.h| 2 +- include/net/netcat.h | 20 ++ net/Makefile | 1 +

Re: [RESEND PATCH v3 7/9] net/tcp: simplify tcp header filling code

2024-08-23 Thread Simon Glass
Hi Mikhail, On Fri, 23 Aug 2024 at 09:12, Mikhail Kshevetskiy wrote: > > By the way, I'd like to know your opinion: > * should I add a sample implementation of http/1.1 compatible > web-server to this patch series? > > This can be used as a base for other implementations like firmware > upgrade

Re: [PATCH v3 16/27] ppc: lmb: move arch specific lmb reservations to arch_misc_init()

2024-08-23 Thread Simon Glass
On Wed, 21 Aug 2024 at 05:00, Sughosh Ganu wrote: > > All the current function definitions of arch_lmb_reserve() are doing > the same thing -- reserve the U-Boot memory region. The powerpc(ppc) > architecture, in addition, is making some LMB reservations for the > bootm related image loading. Move

Re: [PATCH v3 17/27] lmb: do away with arch_lmb_reserve()

2024-08-23 Thread Simon Glass
Hi Sughosh, On Wed, 21 Aug 2024 at 05:00, Sughosh Ganu wrote: > > All of the current definitions of arch_lmb_reserve() are doing the > same thing -- reserve the region of memory occupied by U-Boot, > starting from the current stack address to the ram_top. Introduce a > function lmb_reserve_uboot_

Re: [PATCH v3 18/27] lmb: remove the unused board_lmb_reserve() function

2024-08-23 Thread Simon Glass
On Wed, 21 Aug 2024 at 05:00, Sughosh Ganu wrote: > > The board_lmb_reserve() function is not being used, and currently > there is only an empty weak function defined. Remove this unused > function. > > Signed-off-by: Sughosh Ganu > --- > Changes since V2: New patch > > include/lmb.h | 2 -- > l

Re: [PATCH v3 19/27] sandbox: move the TCG event log to the start of ram memory

2024-08-23 Thread Simon Glass
Hi Sughosh, On Wed, 21 Aug 2024 at 05:00, Sughosh Ganu wrote: > > The TCG event log buffer is being set at the end of ram memory. This > region of memory is to be reserved as LMB_NOMAP memory in the LMB > memory map. The current location of this buffer overlaps with the > memory region reserved f

Re: [PATCH v3 27/27] lmb: add logic to print lmb flag strings

2024-08-23 Thread Simon Glass
Hi Sughosh, On Wed, 21 Aug 2024 at 05:00, Sughosh Ganu wrote: > > Instead of printing the LMB flags as numerical values, print them as > strings. This makes it easier to understand what flags are associated > with the lmb region. Also make corresponding changes to the bdinfo > command's test code

Re: [PATCH v3 01/27] alist: add a helper to check if the list is full

2024-08-23 Thread Simon Glass
Hi Sughosh, On Wed, 21 Aug 2024 at 04:59, Sughosh Ganu wrote: > > Add a helper function to check if the alist is full. This can then be > used to extend the alist. > > Signed-off-by: Sughosh Ganu > --- > Changes since V2: None > > include/alist.h | 11 +++ > 1 file changed, 11 insertion

[PATCH v2 1/8] blk: Make functions available unconditionally

2024-08-23 Thread Simon Glass
Some boards still don't enable BLK but we want to be able to at least compile the code which relies on this. For example, bootstd includes calls to blk_...() functions, albeit with a check for BLK so that the code is eliminated by the compiler. Reduce the scope of the BLK #ifdef to help with this.

[PATCH v2 2/8] bootstd: Avoid calling unavailable block functions

2024-08-23 Thread Simon Glass
When BLK is not enabled but BOOTSTD is, some features of standard boot become unavailable. Add a check for this in the only site that is currently apparent. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootdev-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot/bo

[PATCH v2 3/8] bootstd: Avoid depending on BLK

2024-08-23 Thread Simon Glass
In principle bootstd can work without block devices, even if it does require driver model to be enabled in that case. The use of a 'depends on BLK' for BOOTSTD conflicts with the way 'BLK' is now defined, producing recursive errors through multiple different paths, one of which is this (with Links

[PATCH v2 4/8] sunxi: Add a bootmeth for FEL

2024-08-23 Thread Simon Glass
Add support for booting from a script loaded over FEL. This mirrors the bootcmd_fel provided by distro boot. Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek --- Changes in v2: - Put the FEL bootmeth before all other global bootmeths boot/Kconfig| 14 boot/Makefile

[PATCH v2 5/8] sunxi: Move to bootstd

2024-08-23 Thread Simon Glass
Drop support for distroboot and move to using bootstd instead. Signed-off-by: Simon Glass --- Changes in v2: - Convert the other DISTRO_DEFAULTS in the Kconfig too arch/arm/Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfi

[PATCH v2 6/8] sunxi: Drop old distro boot variables

2024-08-23 Thread Simon Glass
These are not needed as bootstd handles the boot now. Drop them. Keep BOOTCMD_SUNXI_COMPAT for now since it does not relate to distro boot. Signed-off-by: Simon Glass --- Changes in v2: - Keep BOOTCMD_SUNXI_COMPAT include/configs/sunxi-common.h | 75 +- 1 file

[PATCH v2 7/8] env: Provide a work-around for unquoting fdtfile

2024-08-23 Thread Simon Glass
Some boards use a CONFIG option to specify the value of this variable. This is normally handled by efi_get_distro_fdt_name() but in the case of sunxi this does not work, since 'soc' is sunxi, but the files are in the allwinner directory. Provide a work-around for this particular case. Signed-off-

[PATCH v2 8/8] sunxi: Move to text environment

2024-08-23 Thread Simon Glass
Convert these boards to use a text environment. For the boards check, the only differences are extra spaces after the semicolons in 'dfu_alt_info_ram' and 'partitions', both of which are permitted. Add in the special boot command for old kernels, dropping the unnecessary and confusing hex prefixe

Re: [PATCH v2 26/35] global_data: Reduce size of early-malloc vars

2024-08-23 Thread Tom Rini
On Fri, Aug 23, 2024 at 02:30:04PM -0600, Simon Glass wrote: > Hi Tom, > > On Fri, 23 Aug 2024 at 07:34, Tom Rini wrote: > > > > On Wed, Aug 21, 2024 at 10:19:18AM -0600, Simon Glass wrote: > > > > > The early malloc region is normally quite small and is certainly less > > > than 4GB, so use a 32

Re: [PATCH v9 00/23] Introduce the lwIP network stack

2024-08-23 Thread Tom Rini
On Fri, Aug 23, 2024 at 03:48:04PM +0200, Jerome Forissier wrote: > 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/, > sele

Re: [PATCH v9 34/37] configs: use syntax CONFIG_FOO=n in tools-only_defconfig

2024-08-23 Thread Tom Rini
On Fri, Aug 23, 2024 at 03:48:38PM +0200, Jerome Forissier wrote: > The tools-only defconfig causes troubles on MacOSX due to the default > C compiler being Clang (LLVM) rather than GCC and more specifically > due to [1]. Therefore replace "$ CONFIG_FOO is not set" with the "# CONFIG_FOO" not "$

Re: [PATCH v9 04/37] arm: omap2: add missing #include

2024-08-23 Thread Tom Rini
On Fri, Aug 23, 2024 at 03:48:08PM +0200, Jerome Forissier wrote: > emac.c implements cpu_eth_init() so it needs to pull the corresponding > header file. > > Signed-off-by: Jerome Forissier Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

[u-boot-test-hooks PATCH v3 0/2] Add support for Labgrid

2024-08-23 Thread Simon Glass
This adds hooks for use with Labgrid. The only existing hook that really does anything now is the 'console' one. There is also a new 'getrole' hook which looks up a role to find various things about it, such as the U-Boot board name. Changes in v3: - Fall back to conf.${board_type}_${board_ident}

[u-boot-test-hooks PATCH v3 1/2] Create a common file for test scripts

2024-08-23 Thread Simon Glass
The top part of each of the u-boot-test-* files is common. Put it in a common script file to avoid duplication and to allow it to be replaced for the Labgrid integration. Signed-off-by: Simon Glass --- Changes in v3: - Fall back to conf.${board_type}_${board_ident} if conf.all missing Changes i

[u-boot-test-hooks PATCH v3 2/2] Provide some basic scripts for Labgrid integration

2024-08-23 Thread Simon Glass
With Labgrid we don't need to specify the various methods, except for the console, which simply calls labgrid-client. This allows supporting any boards in your lab, without adding per-board configuration to these hooks. Provide ellesmere files as an example. Signed-off-by: Simon Glass --- Chan

  1   2   >