Re: [PATCH v12 9/9] doc: uefi: add HTTP Boot support

2023-11-09 Thread Masahisa Kojima
Hi Ilias, On Fri, 10 Nov 2023 at 15:58, Ilias Apalodimas wrote: > > On Fri, 10 Nov 2023 at 06:27, Masahisa Kojima > wrote: > > > > This adds the description about HTTP Boot. > > > > Signed-off-by: Masahisa Kojima > > Reviewed-by: Ilias Apalodimas > > --- > > doc/develop/uefi/uefi.rst | 30

Re: [PATCH v12 7/9] efi_loader: support boot from URI device path

2023-11-09 Thread Masahisa Kojima
On Fri, 10 Nov 2023 at 15:50, Ilias Apalodimas wrote: > > Hi Kojima-san > > Going through the patch one last time before I merge it I noticed some > memory leaks > > On Fri, 10 Nov 2023 at 06:27, Masahisa Kojima > wrote: > > > > This supports to boot from the URI device path. > > When user

Re: [PATCH v12 9/9] doc: uefi: add HTTP Boot support

2023-11-09 Thread Ilias Apalodimas
On Fri, 10 Nov 2023 at 06:27, Masahisa Kojima wrote: > > This adds the description about HTTP Boot. > > Signed-off-by: Masahisa Kojima > Reviewed-by: Ilias Apalodimas > --- > doc/develop/uefi/uefi.rst | 30 ++ > 1 file changed, 30 insertions(+) > > diff --git

Re: [PATCH v12 7/9] efi_loader: support boot from URI device path

2023-11-09 Thread Ilias Apalodimas
Hi Kojima-san Going through the patch one last time before I merge it I noticed some memory leaks On Fri, 10 Nov 2023 at 06:27, Masahisa Kojima wrote: > > This supports to boot from the URI device path. > When user selects the URI device path, bootmgr downloads > the file using wget into the

Re: [PATCH 2/2] cmd: bcb: extend BCB C API to allow read/write the fields

2023-11-09 Thread Dmitrii Merkurev
Uploaded v2 with fixes On Thu, Nov 9, 2023 at 2:05 AM Mattijs Korpershoek < mkorpersh...@baylibre.com> wrote: > Hi Dmitrii, > > Thank you for your patch. > > On jeu., nov. 09, 2023 at 00:36, Dmitrii Merkurev > wrote: > > > Currently BCB C API only allows to modify 'command' BCB field. > >

Re: [PATCH 1/2] cmd: bcb: support various block device interfaces for BCB command

2023-11-09 Thread Dmitrii Merkurev
Thank you Mattijs for taking time to verify it, uploaded v2 with "mcc" thing fixed On Thu, Nov 9, 2023 at 2:06 AM Mattijs Korpershoek < mkorpersh...@baylibre.com> wrote: > On jeu., nov. 09, 2023 at 10:40, Mattijs Korpershoek < > mkorpersh...@baylibre.com> wrote: > > > Hi Dmitrii, > > > > Thank

[PATCH v2 2/2] cmd: bcb: extend BCB C API to allow read/write the fields

2023-11-09 Thread Dmitrii Merkurev
Currently BCB C API only allows to modify 'command' BCB field. Extend it so that we can also read and modify all the available BCB fields (command, status, recovery, stage). Co-developed-by: Cody Schuffelen Signed-off-by: Cody Schuffelen Signed-off-by: Dmitrii Merkurev Cc: Eugeniu Rosca Cc:

[PATCH 0/2] cmd: bcb: extend BCB APIs to support Android boot flow

2023-11-09 Thread Dmitrii Merkurev
Following patches introduce various block interfaces support and extend API of BCB (bootloader control block) to reuse it for Android boot flow of Cuttlefish virtual device. Signed-off-by: Dmitrii Merkurev Cc: Eugeniu Rosca Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Cc: Mattijs Korpershoek

[PATCH v2 1/2] cmd: bcb: support various block device interfaces for BCB command

2023-11-09 Thread Dmitrii Merkurev
Currently BCB command-line, C APIs and implementation only support MMC interface. Extend it to allow various block device interfaces. Signed-off-by: Dmitrii Merkurev Cc: Eugeniu Rosca Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Cc: Mattijs Korpershoek Cc: Sean Anderson Cc: Cody Schuffelen

Re: [PATCH 0/3] Revert HAFDBS changes

2023-11-09 Thread Chris Packham
On Fri, 10 Nov 2023, 10:33 am Tom Rini, wrote: > On Fri, Oct 27, 2023 at 01:22:37PM -0400, Tom Rini wrote: > > On Fri, Oct 27, 2023 at 10:49:47AM +0100, Pierre-Clément Tosi wrote: > > > Hi Chris, > > > > > > On Fri, Oct 27, 2023 at 01:23:51PM +1300, Chris Packham wrote: > > > > As discussed this

[PATCH v12 9/9] doc: uefi: add HTTP Boot support

2023-11-09 Thread Masahisa Kojima
This adds the description about HTTP Boot. Signed-off-by: Masahisa Kojima Reviewed-by: Ilias Apalodimas --- doc/develop/uefi/uefi.rst | 30 ++ 1 file changed, 30 insertions(+) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index

[PATCH v12 7/9] efi_loader: support boot from URI device path

2023-11-09 Thread Masahisa Kojima
This supports to boot from the URI device path. When user selects the URI device path, bootmgr downloads the file using wget into the address specified by loadaddr env variable. If the file is .iso or .img file, mount the image with blkmap then try to boot with the default file(e.g.

[PATCH v12 8/9] cmd: efidebug: add uri device path

2023-11-09 Thread Masahisa Kojima
This adds the URI device path option for 'boot add' subcommand. User can add the URI load option for downloading ISO image file or EFI application through network. Currently HTTP is only supported. Signed-off-by: Masahisa Kojima --- cmd/efidebug.c | 78

[PATCH v12 6/9] efi_loader: add return to efibootmgr event group

2023-11-09 Thread Masahisa Kojima
When the image loaded by efibootmgr returns, efibootmgr needs to clean the resources. Adding the event of returning to efibootmgr is useful to simplify the implementation. Signed-off-by: Masahisa Kojima Reviewed-by: Ilias Apalodimas --- cmd/bootefi.c | 12

[PATCH v12 5/9] efi_loader: add missing const classifier for event service

2023-11-09 Thread Masahisa Kojima
const classifier is missing in EventGroup parameter of CreateEventEx(). Fix it to remove the compiler warning. NotifyContext parameter of CreateEventEx() is also defined with const in UEFI specification, but NotifyContext parameter of CreateEvent() is defined without const. Since current

[PATCH v12 4/9] efi_loader: Boot var automatic management

2023-11-09 Thread Masahisa Kojima
From: Raymond Mao Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Please note that currently the function

[PATCH v12 3/9] blk: blkmap: add ramdisk creation utility function

2023-11-09 Thread Masahisa Kojima
User needs to call several functions to create the ramdisk with blkmap. This adds the utility function to create blkmap device and mount the ramdisk. Signed-off-by: Masahisa Kojima Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- drivers/block/Makefile| 3 +-

[PATCH v12 2/9] net: wget: add wget with dns utility function

2023-11-09 Thread Masahisa Kojima
Current wget takes the target uri in this format: ":" e.g.) 192.168.1.1:/bar The http server ip address must be resolved before calling wget. This commit adds the utility function runs wget with dhs. User can call wget with the uri like "http://foo/bar;. Signed-off-by: Masahisa Kojima

[PATCH v12 1/9] net: wget: prevent overwriting reserved memory

2023-11-09 Thread Masahisa Kojima
This introduces the valid range check to store the received blocks using lmb. The same logic is implemented in tftp. Signed-off-by: Masahisa Kojima Acked-by: Ilias Apalodimas Reviewed-by: Simon Glass Reviewed-by: Ramon Fried --- net/wget.c | 80

[PATCH v12 0/9] Add EFI HTTP boot support

2023-11-09 Thread Masahisa Kojima
This series adds the EFI HTTP boot support. User can add the URI device path with "efidebug boot add" command. efibootmgr handles the URI device path, download the specified file using wget, mount the downloaded image with blkmap, then boot with the default file(e.g. EFI/BOOT/BOOTAA64.EFI) by

Re: [PATCH v1 2/2] poplar: provide more space for kernel image

2023-11-09 Thread Sam Protsenko
On Thu, Nov 9, 2023 at 4:34 PM Igor Opaniuk wrote: > > Adjust mem layout, providing more space for linux kernel image. > > This fixes the problem: > ERROR: FDT image overlaps OS image (OS=0x3000..0x3258) > > Signed-off-by: Igor Opaniuk > --- Reviewed-by: Sam Protsenko > >

Re: [PATCH v1 1/2] poplar: use random mac address

2023-11-09 Thread Sam Protsenko
On Thu, Nov 9, 2023 at 4:34 PM Igor Opaniuk wrote: > > Set CONFIG_NET_RANDOM_ETHADDR=y, which sets random eth address in > case there is no configuration provided neither in CONFIG_ETHADDR > nor in "ethaddr" env variable. > > This fixes the problem: > poplar# dhcp > Error: ethernet@9841000

RE: [PATCH] mmc: renesas-sdhi: Disable clock after tuning reset when possible

2023-11-09 Thread Yoshihiro Shimoda
Hello Marek-san, > From: U-Boot On Behalf Of Marek Vasut, Sent: Monday, November 6, 2023 7:43 AM > > Currently the renesas_sdhi_reset_tuning() unconditionally leaves SDHI > clock enabled after the tuning reset. This is not always necessary. > > After the driver performed tuning reset at the end

[PATCH v1 2/2] poplar: provide more space for kernel image

2023-11-09 Thread Igor Opaniuk
Adjust mem layout, providing more space for linux kernel image. This fixes the problem: ERROR: FDT image overlaps OS image (OS=0x3000..0x3258) Signed-off-by: Igor Opaniuk --- include/configs/poplar.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v1 1/2] poplar: use random mac address

2023-11-09 Thread Igor Opaniuk
Set CONFIG_NET_RANDOM_ETHADDR=y, which sets random eth address in case there is no configuration provided neither in CONFIG_ETHADDR nor in "ethaddr" env variable. This fixes the problem: poplar# dhcp Error: ethernet@9841000 address not set. Signed-off-by: Igor Opaniuk ---

Re: [PATCH v2 1/3] net: Get pxe config file from dhcp option 209

2023-11-09 Thread Tom Rini
On Thu, Nov 09, 2023 at 02:35:40PM -0700, Heinrich Schuchardt wrote: > > > Am 9. November 2023 14:04:40 GMT-07:00 schrieb Tom Rini : > >On Wed, Nov 08, 2023 at 12:24:24PM +, Peter Robinson wrote: > >> > > > > > > Allow dhcp server pass pxe config file full path by using > >> > > > > > >

Re: [PATCH v2 1/3] net: Get pxe config file from dhcp option 209

2023-11-09 Thread Heinrich Schuchardt
Am 9. November 2023 14:04:40 GMT-07:00 schrieb Tom Rini : >On Wed, Nov 08, 2023 at 12:24:24PM +, Peter Robinson wrote: >> > > > > > > Allow dhcp server pass pxe config file full path by using option >> > > > > > > 209 >> > > > > > > >> > > > > > > Signed-off-by: Sean Edmond >> > > > > > >

Re: [PATCH 0/3] Revert HAFDBS changes

2023-11-09 Thread Tom Rini
On Fri, Oct 27, 2023 at 01:22:37PM -0400, Tom Rini wrote: > On Fri, Oct 27, 2023 at 10:49:47AM +0100, Pierre-Clément Tosi wrote: > > Hi Chris, > > > > On Fri, Oct 27, 2023 at 01:23:51PM +1300, Chris Packham wrote: > > > As discussed this series reverts the HAFDBS changes that caused an issue > >

Re: [PATCH 6/6] rockchip: ringneck-px30: fix modified boot_targets detection

2023-11-09 Thread Tom Rini
On Wed, Nov 08, 2023 at 03:20:35PM +0100, Quentin Schulz wrote: > From: Quentin Schulz > > U-Boot proper automatically modifies boot_targets to swap the order in > which MMC storage media are used for standard boot based on which MMC > storage medium was used to load U-Boot proper. This is

Re: [PATCH 4/6] rockchip: ringneck-px30: only declare functions in U-Boot proper

2023-11-09 Thread Tom Rini
On Wed, Nov 08, 2023 at 03:20:33PM +0100, Quentin Schulz wrote: > From: Quentin Schulz > > Those functions are useless in anything but U-Boot proper for now, so > let's compile them out explicitly. > > Cc: Quentin Schulz > Signed-off-by: Quentin Schulz > --- >

Re: [PATCH 3/6] rockchip: puma-rk3399: only declare functions in U-Boot proper

2023-11-09 Thread Tom Rini
On Wed, Nov 08, 2023 at 03:20:32PM +0100, Quentin Schulz wrote: > From: Quentin Schulz > > Those functions are useless in anything but U-Boot proper for now, so > let's compile them out explicitly. > > Cc: Quentin Schulz > Signed-off-by: Quentin Schulz > --- >

Re: [PATCH 2/6] env: migrate env_get_default to call env_get_default_into

2023-11-09 Thread Tom Rini
On Wed, Nov 08, 2023 at 03:20:31PM +0100, Quentin Schulz wrote: > From: Quentin Schulz > > Since both functions share a similar goal and env_get_default_into can > do what env_get_default wants to do with specific arguments, let's make > env_get_default call env_get_default_into so as to avoid

Re: [PATCH 1/6] env: allow to copy value from default environment into a buffer

2023-11-09 Thread Tom Rini
On Wed, Nov 08, 2023 at 03:20:30PM +0100, Quentin Schulz wrote: > From: Quentin Schulz > > env_get_default suffers from a particular issue int that it can only > return a value truncated to gd->env_buf (32) characters. This may be > enough for most variables but it isn't for others, so let's

Re: [PATCH v2 1/3] net: Get pxe config file from dhcp option 209

2023-11-09 Thread Tom Rini
On Wed, Nov 08, 2023 at 12:24:24PM +, Peter Robinson wrote: > > > > > > > Allow dhcp server pass pxe config file full path by using option > > > > > > > 209 > > > > > > > > > > > > > > Signed-off-by: Sean Edmond > > > > > > > --- > > > > > > > cmd/Kconfig | 4 > > > > > > >

Re: [PATCH] acpi: move acpi_get_rsdp_addr() to acpi/acpi_table.h

2023-11-09 Thread Tom Rini
On Thu, Nov 09, 2023 at 12:28:26PM -0800, Heinrich Schuchardt wrote: > On 11/9/23 11:24, Tom Rini wrote: > > On Thu, Nov 09, 2023 at 09:23:02AM -0800, Heinrich Schuchardt wrote: > > > > > Function acpi_get_rsdp_addr() is needed on all architectures which > > > write ACPI tables. Move the

Re: [PATCH] acpi: move acpi_get_rsdp_addr() to acpi/acpi_table.h

2023-11-09 Thread Heinrich Schuchardt
On 11/9/23 11:24, Tom Rini wrote: On Thu, Nov 09, 2023 at 09:23:02AM -0800, Heinrich Schuchardt wrote: Function acpi_get_rsdp_addr() is needed on all architectures which write ACPI tables. Move the definition from the x86 include to an architecture independent one. Signed-off-by: Heinrich

Re: [PATCH] board: samsung: Remove incorrect SYS_CONFIG_NAME in axy17lte Kconfig

2023-11-09 Thread Sam Protsenko
On Thu, Nov 9, 2023 at 6:53 AM Tom Rini wrote: > > On Fri, Oct 20, 2023 at 01:42:53PM -0500, Sam Protsenko wrote: > > > The global SYS_CONFIG_NAME in axy17lte Kconfig overrides SYS_CONFIG_NAME > > for all boards specified after this line in > > arch/arm/mach-exynos/Kconfig: > > > > source

[PATCH v2 2/2] configs: Remove unneeded SYS_CONFIG_NAME from a*y17lte defconfigs

2023-11-09 Thread Sam Protsenko
As correct default SYS_CONFIG_NAME value is now set in board/samsung/axy17lte/Kconfig (in commit "board: samsung: Fix SYS_CONFIG_NAME configs in axy17lte Kconfig"), the SYS_CONFIG_NAME option can be safely removed from all a*y17lte defconfigs. That removal doesn't change resulting .config files.

[PATCH v2 1/2] board: samsung: Fix SYS_CONFIG_NAME configs in axy17lte Kconfig

2023-11-09 Thread Sam Protsenko
There is a couple of issues related to SYS_CONFIG_NAME config in axy17lte Kconfig. 1. The global SYS_CONFIG_NAME in axy17lte Kconfig overrides SYS_CONFIG_NAME for all boards specified after this line in arch/arm/mach-exynos/Kconfig: source "board/samsung/axy17lte/Kconfig" Right

[PATCH 3/3] treewide: use linux/time.h for time conversion defines

2023-11-09 Thread Igor Prusov
Now that we have time conversion defines from in time.h there is no need for each driver to define their own version. Signed-off-by: Igor Prusov --- board/friendlyarm/nanopi2/onewire.c | 5 + drivers/clk/at91/clk-main.c | 2 +- drivers/i2c/stm32f7_i2c.c

[PATCH 0/3] Add time conversion defines from Linux.

2023-11-09 Thread Igor Prusov
This series imports time conversion defines from Linux, that are currently located in include/vdso/time64.h file. Those defines are almost always used by including linux/time.h so it seems the proper place in U-Boot to place them. Various places where same or similar defines were added on

Re: [PATCH] acpi: move acpi_get_rsdp_addr() to acpi/acpi_table.h

2023-11-09 Thread Tom Rini
On Thu, Nov 09, 2023 at 09:23:02AM -0800, Heinrich Schuchardt wrote: > Function acpi_get_rsdp_addr() is needed on all architectures which > write ACPI tables. Move the definition from the x86 include to an > architecture independent one. > > Signed-off-by: Heinrich Schuchardt > --- >

[PATCH] squash! Remove some ifndef __U_BOOT__ checks in new hush

2023-11-09 Thread Tom Rini
Looking at the code, we had a number of places where the blocks were: #ifndef __U_BOOT__ ... #endif /* !__U_BOOT__ */ #ifndef __U_BOOT__ ... #endif /* !__U_BOOT__ */ And so we can just remove the center endif/ifndef. If the enclosed functionality gets ported to U-Boot at some point in the

Re: [RFC PATCH 1/1] arm: mach-k3: Enable icache on am625 to boot faster

2023-11-09 Thread Tom Rini
On Thu, Nov 09, 2023 at 12:44:56PM -0600, Andrew Davis wrote: > On 11/9/23 11:37 AM, Nishanth Menon wrote: > > On 11:09-20231109, Joao Paulo Goncalves wrote: > > > Enable the am625 instruction cache on SPL and U-boot earlier for the A53 > > > to execute code a bit f

Re: [RFC PATCH 1/1] arm: mach-k3: Enable icache on am625 to boot faster

2023-11-09 Thread Andrew Davis
On 11/9/23 11:37 AM, Nishanth Menon wrote: On 11:09-20231109, Joao Paulo Goncalves wrote: Enable the am625 instruction cache on SPL and U-boot earlier for the A53 to execute code a bit faster. For normal boot flow, it was possible to gain about 2 seconds on boot time. Signed-off-by: Joao Paulo

Re: [RFC PATCH 1/1] arm: mach-k3: Enable icache on am625 to boot faster

2023-11-09 Thread Nishanth Menon
On 11:09-20231109, Joao Paulo Goncalves wrote: > Enable the am625 instruction cache on SPL and U-boot earlier for the A53 > to execute code a bit faster. For normal boot flow, it was possible to > gain about 2 seconds on boot time. > > Signed-off-by: Joao Paulo Goncalves &g

[PATCH] acpi: move acpi_get_rsdp_addr() to acpi/acpi_table.h

2023-11-09 Thread Heinrich Schuchardt
Function acpi_get_rsdp_addr() is needed on all architectures which write ACPI tables. Move the definition from the x86 include to an architecture independent one. Signed-off-by: Heinrich Schuchardt --- arch/x86/include/asm/acpi_table.h | 9 - drivers/misc/qfw.c| 1 +

[PATCH 2/3] spi: meson_spifc_a1: Use define for time interval

2023-11-09 Thread Igor Prusov
Use USEC_PER_MSEC define for timeout to sync code with Linux version. Signed-off-by: Igor Prusov --- drivers/spi/meson_spifc_a1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/meson_spifc_a1.c b/drivers/spi/meson_spifc_a1.c index 099c4c037d..418d4d5e10

[PATCH 1/3] linux/time.h: Add Linux time conversion defines

2023-11-09 Thread Igor Prusov
Currently there are no defines for time conversion in time.h, which leads to drivers declaring those locally or not using defines at all, so add them from Linux. Signed-off-by: Igor Prusov --- include/linux/time.h | 9 + 1 file changed, 9 insertions(+) diff --git

Re: rockpro64 rk3399 dwc3 issue

2023-11-09 Thread Shantur Rathore
Seeing an interesting behaviour. This NVME to USB disk gets detected 100% of the time when its plugged in while usb is starting. So after the usb controller is initialized and ready but before the controller is scanned for devices. It seems like the device isn't reset correctly on controller

[RFC PATCH 1/1] arm: mach-k3: Enable icache on am625 to boot faster

2023-11-09 Thread Joao Paulo Goncalves
Enable the am625 instruction cache on SPL and U-boot earlier for the A53 to execute code a bit faster. For normal boot flow, it was possible to gain about 2 seconds on boot time. Signed-off-by: Joao Paulo Goncalves --- Hello all, We are trying to optimize boot time on our AM62 devices and on

[PATCH] doc: typo 'form' in qfw.rst

2023-11-09 Thread Heinrich Schuchardt
%s/form/from/ Fixes: d46bee8c2d24 ("doc: qfw man-page") Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/qfw.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/usage/cmd/qfw.rst b/doc/usage/cmd/qfw.rst index ec13e0967a..e734b26671 100644 --- a/doc/usage/cmd/qfw.rst

[PATCH 2/2] board: apalis/colibri imx6/imx6ull/imx7: Add fastboot bootcmd support

2023-11-09 Thread Hiago De Franco
This commit adds support for Fastboot boot commands by checking both CONFIG_CMD_USB_SDP and CONFIG_USB_FUNCTION_FASTBOOT. If either of these configurations is set, it indicates that the board is in recovery mode and can use either SDP or Fastboot. The default option remains the SDP command, but

[PATCH 1/2] apalis/colibri imx6/imx6ull/imx7: defconfig: Enable fastboot support

2023-11-09 Thread Hiago De Franco
Add fastboot support for Apalis iMX6, Colibri iMX6, Colibri iMX6ULL and Colibri iMX7 boards. Remove CONFIG_FASTBOOT_BUF_SIZE from colibri_imx7_emmc_defconfig to get the default value of 0x700 instead of 0x1000, to make it consistent with the other boards. Signed-off-by: Hiago De Franco

[PATCH 0/2] apalis/colibri imx6/imx6ull/imx7: Add fastboot supp

2023-11-09 Thread Hiago De Franco
This patch series introduces Fastboot support on all Apalis iMX6, Colibri iMX6, Colibri iMX6ULL and Colibri iMX7 machines. It includes the necessary configurations in their respective defconfig files and implements logic in the boards files to determine whether SDP or Fastboot will be utilized.

Re: [PATCH v2 7/8] board: ti: j721e: During resume spl restores TF-A and DM-Firmware

2023-11-09 Thread Andrew Davis
On 11/9/23 5:29 AM, Thomas Richard wrote: On 11/8/23 18:30, Andrew Davis wrote:   void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)   {   typedef void __noreturn (*image_entry_noargs_t)(void); @@ -235,6 +241,32 @@ void __noreturn jump_to_image_no_args(struct

Re: eMMC broken on SK-AM62

2023-11-09 Thread Maxime Ripard
Hi Nishanth, On Thu, Nov 09, 2023 at 06:23:03AM -0600, Nishanth Menon wrote: > On 11:29-20231109, Mattijs Korpershoek wrote: > > Hi Maxime, Nishanth, > > > > On mer., nov. 08, 2023 at 16:05, Maxime Ripard wrote: > > > > > Hi Nishanth, > > > > &

Re: [PATCH] efi_loader: Fix UEFI variable error handling

2023-11-09 Thread Weizhao Ouyang
On Thu, Nov 9, 2023 at 9:57 PM Heinrich Schuchardt wrote: > > On 11/9/23 04:55, Weizhao Ouyang wrote: > > Correct some UEFI variable error handing code paths. > > > > Signed-off-by: Weizhao Ouyang > > --- > > lib/efi_loader/efi_var_file.c | 1 + > > lib/efi_loader/efi_variable.c | 8

Re: [PATCH v2 3/5] gpio: qcom_pmic: fix support for upstream DT

2023-11-09 Thread Stephan Gerhold
On Wed, Nov 08, 2023 at 04:20:55PM +, Caleb Connolly wrote: > Linux devicetrees use the "gpio-ranges" property, add support for > parsing it instead of "gpio-count" so that upstream DTs can be used with > U-Boot. > > Signed-off-by: Caleb Connolly > --- > drivers/gpio/qcom_pmic_gpio.c | 26

Re: [PATCH v2 2/5] gpio: qcom_pmic: rework pwrkey driver into a button driver

2023-11-09 Thread Stephan Gerhold
On Wed, Nov 08, 2023 at 04:20:54PM +, Caleb Connolly wrote: > The power and resin keys were implemented as GPIOs here, but their only > use would be as buttons. Avoid the additional layer of introspection and > rework this driver into a button driver. > > While we're here, replace the

Re: [PATCH v2 6/8] board: ti: j721e: Add the missing part of exit retention for k3-ddrss (J7200)

2023-11-09 Thread Tom Rini
On Thu, Nov 09, 2023 at 11:43:12AM +0100, Thomas Richard wrote: > On 11/7/23 19:18, Tom Rini wrote: > > On Tue, Nov 07, 2023 at 05:18:00PM +0100, Thomas Richard wrote: > > > >> Add the board specific part of the exit retention sequence for k3-ddrss > >> > >> Based on the work of Gregory CLEMENT

Re: [PATCH] efi_loader: Fix UEFI variable error handling

2023-11-09 Thread Heinrich Schuchardt
On 11/9/23 04:55, Weizhao Ouyang wrote: Correct some UEFI variable error handing code paths. Signed-off-by: Weizhao Ouyang --- lib/efi_loader/efi_var_file.c | 1 + lib/efi_loader/efi_variable.c | 8 2 files changed, 5 insertions(+), 4 deletions(-) diff --git

Re: [RFT PATCH 2/2] mmc: meson-gx: set 270 core phase during the identification

2023-11-09 Thread Viacheslav
After running some tests, I've noticed inconsistent behavior with the eMMC: On a cold boot (following a shutdown), the eMMC operates as expected within U-Boot. On a hot reboot (via the kernel's reboot command), the eMMC sometimes (not always, but if fit in error, next need to do poweroff) does

Re: [PATCH 0/6] siemens,am335x: clean up the draco board family

2023-11-09 Thread Heiko Schocher
Hello Tom, On 08.11.23 17:11, Tom Rini wrote: > On Wed, Nov 08, 2023 at 03:53:16PM +0100, Enrico Leto wrote: > >> The boards were not maintained upstream since the development phase. >> >> Restore SPL and remove unused settings. We need i2c to read the DDR >> settings from EEPROM, get u-boot

Re: [PATCH v11 09/24] cli: Add menu for hush parser

2023-11-09 Thread Tom Rini
On Tue, Nov 07, 2023 at 11:41:06PM +0200, Francis Laniel wrote: > For the moment, the menu contains only entry: HUSH_OLD_PARSER which is the > default. > The goal is to prepare the field to add a new hush parser which guarantees > actual behavior is still correct. > > Reviewed-by: Simon Glass >

Re: [PATCH v11 23/24] DO NOT MERGE: only to make CI happy

2023-11-09 Thread Tom Rini
On Tue, Nov 07, 2023 at 11:41:20PM +0200, Francis Laniel wrote: > This commit set CONFIG_HUSH_PARSER_2021 as the default to trigger the CI with > this parser. > > Nonetheless, the keymile (i.e. VENDOR_KM) board family is not compatible with > new 2021 hush parser. > Indeed, This boards used

Re: [PATCH v11 08/24] cli: Port Busybox 2021 hush to U-Boot

2023-11-09 Thread Tom Rini
On Tue, Nov 07, 2023 at 11:41:05PM +0200, Francis Laniel wrote: > Adds new file cli_hush_2021.c, it is a copy of Busybox hush file as it was of > time to commit 37460f5da. I'm not sure where best to say this in the series so I'll try here. I think we should name the hush.c file being imported

Re: [PATCH v11 00/24] Modernize U-Boot shell

2023-11-09 Thread Tom Rini
On Wed, Nov 08, 2023 at 12:14:28PM +, Peter Robinson wrote: > On Wed, Nov 8, 2023 at 12:49 AM Francis Laniel > wrote: > > > > Hi. > > > > > > During 2021 summer, Sean Anderson wrote a contribution to add a new shell, > > based > > on LIL, to U-Boot [1, 2]. > > While one of the goals of this

Re: [PATCH v3] arm64: zynqmp: Introduce kria SOM defconfig

2023-11-09 Thread Michal Simek
On 11/9/23 05:24, Venkatesh Yadav Abbarapu wrote: Enable the initial kria SOM specific configurations like pinctrl, pinconf etc. Also add the environment file. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Updated the CONFIG_ENV_OFFSET_REDUND - Updated the

[PATCH] efi_loader: Fix UEFI variable error handling

2023-11-09 Thread Weizhao Ouyang
Correct some UEFI variable error handing code paths. Signed-off-by: Weizhao Ouyang --- lib/efi_loader/efi_var_file.c | 1 + lib/efi_loader/efi_variable.c | 8 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c

Re: [PATCH] board: samsung: Remove incorrect SYS_CONFIG_NAME in axy17lte Kconfig

2023-11-09 Thread Tom Rini
On Fri, Oct 20, 2023 at 01:42:53PM -0500, Sam Protsenko wrote: > The global SYS_CONFIG_NAME in axy17lte Kconfig overrides SYS_CONFIG_NAME > for all boards specified after this line in > arch/arm/mach-exynos/Kconfig: > > source "board/samsung/axy17lte/Kconfig" > > Right now it's the last

Re: eMMC broken on SK-AM62

2023-11-09 Thread Nishanth Menon
On 11:29-20231109, Mattijs Korpershoek wrote: > Hi Maxime, Nishanth, > > On mer., nov. 08, 2023 at 16:05, Maxime Ripard wrote: > > > Hi Nishanth, > > > > I've been trying for the last few days to get an SK-AM62 to boot from > > the eMMC user data ar

Re: [UBOOT PATCH v2] test/py: net: Add dhcp abort test

2023-11-09 Thread Michal Simek
st 8. 11. 2023 v 15:42 odesílatel Tom Rini napsal: > > On Tue, Oct 31, 2023 at 06:29:20PM +0530, Love Kumar wrote: > > > Abort the dhcp request in the middle by pressing ctrl + c on u-boot > > prompt and validate the abort status. > > > > Signed-off-by: Love Kumar > > --- > > Changes in v2: > >

Re: [PATCH v2 7/8] board: ti: j721e: During resume spl restores TF-A and DM-Firmware

2023-11-09 Thread Thomas Richard
On 11/8/23 18:30, Andrew Davis wrote: >>   void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) >>   { >>   typedef void __noreturn (*image_entry_noargs_t)(void); >> @@ -235,6 +241,32 @@ void __noreturn jump_to_image_no_args(struct >> spl_image_info *spl_image) >>   if

Re: [PATCH v1 0/5] Implement fastboot multiresponce

2023-11-09 Thread Mattijs Korpershoek
Hi Svyatoslav, On jeu., nov. 09, 2023 at 11:01, Svyatoslav Ryhel wrote: > 9 листопада 2023 р. 10:41:30 GMT+02:00, Mattijs Korpershoek > написав(-ла): >>Hi Svyatoslav, Ion, >> >>Thank you for these series. >> >>On mar., nov. 07, 2023 at 14:42, Svyatoslav Ryhel wrote: >> >>> Currently u-boot

[PATCH v7 8/8] cmd: clk: Make soc_clk_dump static

2023-11-09 Thread Igor Prusov
After introducing dump to clk_ops there is no need to override or expose this symbol anymore. Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard Reviewed-by: Sean Anderson Signed-off-by: Igor Prusov --- cmd/clk.c | 4 ++-- include/clk.h | 2 -- 2 files changed, 2 insertions(+), 4

[PATCH v7 7/8] clk: treewide: switch to clock dump from clk_ops

2023-11-09 Thread Igor Prusov
Switch to using new dump operation in clock provider drivers instead of overriding soc_clk_dump. Tested-by: Patrice Chotard Reviewed-by: Sean Anderson Signed-off-by: Igor Prusov --- arch/mips/mach-pic32/cpu.c | 23 drivers/clk/aspeed/clk_ast2600.c | 13

[PATCH v7 6/8] cmd: clk: Use dump function from clk_ops

2023-11-09 Thread Igor Prusov
Add another loop to dump additional info from clock providers that implement dump operation. Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard Reviewed-by: Sean Anderson Signed-off-by: Igor Prusov --- cmd/clk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/cmd/clk.c

[PATCH v7 5/8] clk: Add dump operation to clk_ops

2023-11-09 Thread Igor Prusov
This adds dump function to struct clk_ops which should replace soc_clk_dump. It allows clock drivers to provide custom dump implementation without overriding generic CCF dump function. Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard Reviewed-by: Sean Anderson Signed-off-by: Igor Prusov

[PATCH v7 4/8] clk: amlogic: Move driver and ops structs

2023-11-09 Thread Igor Prusov
Move driver and ops structs to avoid forward declaration after switching to dump in clk_ops. Reviewed-by: Neil Armstrong Signed-off-by: Igor Prusov --- drivers/clk/meson/a1.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git

[PATCH v7 3/8] clk: k210: Move soc_clk_dump function

2023-11-09 Thread Igor Prusov
Move clock dump function to avoid forward declaration after switching to dump in clk_ops. Reviewed-by: Sean Anderson Signed-off-by: Igor Prusov --- drivers/clk/clk_k210.c | 92 +- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git

[PATCH v7 2/8] clk: ast2600: Move soc_clk_dump function

2023-11-09 Thread Igor Prusov
Move clock dump function to avoid forward declaration after switching to dump in clk_ops. Signed-off-by: Igor Prusov --- drivers/clk/aspeed/clk_ast2600.c | 70 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/clk/aspeed/clk_ast2600.c

[PATCH v7 1/8] clk: zynq: Move soc_clk_dump to Zynq clock driver

2023-11-09 Thread Igor Prusov
Move clock dump function in preparation for switching to dump function in clk_ops. Acked-by: Michal Simek Signed-off-by: Igor Prusov --- arch/arm/mach-zynq/clk.c | 57 --- drivers/clk/clk_zynq.c | 58 2 files

[PATCH v7 0/8] clk: Switch from soc_clk_dump to clk_ops function

2023-11-09 Thread Igor Prusov
Currently clock providers may override default implementation of soc_clk_dump function to replace clk dump command output. This causes confusing behaviour when u-boot is built with one of such drivers enabled but still has clocks defined using CCF. For example, enabling CMD_CLK and using clk dump

Re: [PATCH v2 6/8] board: ti: j721e: Add the missing part of exit retention for k3-ddrss (J7200)

2023-11-09 Thread Thomas Richard
On 11/7/23 19:18, Tom Rini wrote: > On Tue, Nov 07, 2023 at 05:18:00PM +0100, Thomas Richard wrote: > >> Add the board specific part of the exit retention sequence for k3-ddrss >> >> Based on the work of Gregory CLEMENT >> >> Signed-off-by: Thomas Richard >> Signed-off-by: Gregory CLEMENT > >

Re: [PATCH v6 7/8] clk: treewide: switch to clock dump from clk_ops

2023-11-09 Thread Igor Prusov
On Wed, Nov 08, 2023 at 12:02:44PM -0500, Sean Anderson wrote: > On 11/5/23 03:38, Igor Prusov wrote: > > Switch to using new dump operation in clock provider drivers instead of > > overriding soc_clk_dump. > > > > Signed-off-by: Igor Prusov > > Tested-by: Patrice Chotard > > Reviewed-by: Sean

Re: eMMC broken on SK-AM62

2023-11-09 Thread Mattijs Korpershoek
Hi Maxime, Nishanth, On mer., nov. 08, 2023 at 16:05, Maxime Ripard wrote: > Hi Nishanth, > > I've been trying for the last few days to get an SK-AM62 to boot from > the eMMC user data area. > > I finally got the jumper configuration to make the CPU boot from there > thanks to Mattijs, but it

Re: [PATCH v11 8/9] cmd: efidebug: add uri device path

2023-11-09 Thread Masahisa Kojima
Hi Simon, Ilias, On Thu, 9 Nov 2023 at 17:00, Ilias Apalodimas wrote: > > Hi Simon, > > On Thu, 9 Nov 2023 at 03:15, Simon Glass wrote: > > > > Hi Masahisa, > > > > On Wed, 8 Nov 2023 at 04:08, Masahisa Kojima > > wrote: > > > > > > This adds the URI device path option for 'boot add'

Re: [PATCH v11 7/9] efi_loader: support boot from URI device path

2023-11-09 Thread Masahisa Kojima
On Thu, 9 Nov 2023 at 17:04, Ilias Apalodimas wrote: > > Kojima-san > > On Wed, 8 Nov 2023 at 13:08, Masahisa Kojima > wrote: > > > > This supports to boot from the URI device path. > > When user selects the URI device path, bootmgr downloads > > the file using wget into the address specified

Re: [PATCH] board: samsung: Remove incorrect SYS_CONFIG_NAME in axy17lte Kconfig

2023-11-09 Thread Minkyu Kang
Hi! 2023년 10월 21일 (토) 09:10, Sam Protsenko 님이 작성: > The global SYS_CONFIG_NAME in axy17lte Kconfig overrides SYS_CONFIG_NAME > for all boards specified after this line in > arch/arm/mach-exynos/Kconfig: > > source "board/samsung/axy17lte/Kconfig" > > Right now it's the last 'source' line

Re: [PATCH 1/8] tools: mkeficapsule: Add support for parsing capsule params from config file

2023-11-09 Thread Masahisa Kojima
Hi Sughosh, On Fri, 20 Oct 2023 at 15:02, Masahisa Kojima wrote: > > Hi Sughosh, > > On Fri, 8 Sept 2023 at 21:00, Sughosh Ganu wrote: > > > > Add support for specifying the parameters needed for capsule > > generation through a config file, instead of passing them through > > command-line.

Re: [PATCH 1/2] cmd: bcb: support various block device interfaces for BCB command

2023-11-09 Thread Mattijs Korpershoek
On jeu., nov. 09, 2023 at 10:40, Mattijs Korpershoek wrote: > Hi Dmitrii, > > Thank you for your patch. > > Thank you as well for taking the time to upstream things from: > https://android.googlesource.com/platform/external/u-boot/ > > On jeu., nov. 09, 2023 at 00:36, Dmitrii Merkurev >

Re: [PATCH 2/2] cmd: bcb: extend BCB C API to allow read/write the fields

2023-11-09 Thread Mattijs Korpershoek
Hi Dmitrii, Thank you for your patch. On jeu., nov. 09, 2023 at 00:36, Dmitrii Merkurev wrote: > Currently BCB C API only allows to modify 'command' BCB field. > Extend it so that we can also read and modify all the available > BCB fields (command, status, recovery, stage). > >

Re: [PATCH v1 9/9] stm32mp2: initial support

2023-11-09 Thread Patrick DELAUNAY
Hi, On 10/27/23 16:43, Patrice Chotard wrote: Add initial support for STM32MP2 SoCs family. SoCs information are available here : https://www.st.com/content/st_com/en/campaigns/microprocessor-stm32mp2.html Migrate all MP1 related code into stm32mp1/ directory Minor: MP1 => STM32MP1 series

Re: [PATCH 1/2] cmd: bcb: support various block device interfaces for BCB command

2023-11-09 Thread Mattijs Korpershoek
Hi Dmitrii, Thank you for your patch. Thank you as well for taking the time to upstream things from: https://android.googlesource.com/platform/external/u-boot/ On jeu., nov. 09, 2023 at 00:36, Dmitrii Merkurev wrote: > Currently BCB command-line, C APIs and implementation only > support MMC

Re: [PATCH 1/2] configs: rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-11-09 Thread Jonas Karlman
On 2023-11-09 04:29, Kever Yang wrote: > Hi Jonas, Marek, > > On 2023/10/20 12:23, Marek Vasut wrote: >> On 10/19/23 22:39, Jonas Karlman wrote: >>> On 2023-10-19 01:44, Marek Vasut wrote: On 10/19/23 00:30, Jonas Karlman wrote: [..] > +++

Re: [PATCH] rockchip: rk3588-rock-5b: Enable CONFIG_PCI_INIT_R to support EFI networking

2023-11-09 Thread Jonas Karlman
Hi Martin, On 2023-11-07 12:43, Martin Roukala wrote: > Hi Jonas, > > On 11/7/23 12:41, Jonas Karlman wrote: >> Hi Martin, >> >> On 2023-11-07 10:45, Martin Roukala wrote: >>> Hi Jonas, >>> >>> On 06/11/2023 20:15, Jonas Karlman wrote: Hi Martin, On 2023-11-04 14:04, Martin

Re: [PATCH v1 8/9] ARM: dts: stm32: Add STM32MP257F Evaluation board support

2023-11-09 Thread Patrick DELAUNAY
Hi, On 10/27/23 16:43, Patrice Chotard wrote: Add STM32MP257F Evaluation board support. It embeds a STM32MP257FAI SoC, with 4GB of DDR4, TSN switch (2+1 ports), 2*USB typeA, 1*USB2 typeC, SNOR OctoSPI, mini PCIe, STPMIC2 for power distribution ... Sync device tree with kernel v6.6-rc1.

Re: [PATCH v1 7/9] pinctrl: pinctrl_stm32: Add stm32mp2 support

2023-11-09 Thread Patrick DELAUNAY
Hi, On 10/27/23 16:43, Patrice Chotard wrote: Add stm32mp2 compatible. Signed-off-by: Patrice Chotard --- drivers/pinctrl/pinctrl_stm32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 8bb7588714a..7120b8edba0

Re: [PATCH v1 6/9] serial: stm32: Fix AARCH64 compilation warnings

2023-11-09 Thread Patrick DELAUNAY
Hi, On 10/27/23 16:43, Patrice Chotard wrote: From: Patrice Chotard When building with AARCH64 defconfig, we got warnings, fix them by using registers base address defined as void __iomem * instead of fdt_addr_t. Signed-off-by: Patrice Chotard Signed-off-by: Patrice Chotard ---

  1   2   >