[RFC PATCH v2 7/8] FWU: Add support for FWU Multi Bank Update feature

2021-12-18 Thread Sughosh Ganu
The FWU Multi Bank Update feature supports updation of firmware images to one of multiple sets(also called banks) of images. The firmware images are clubbed together in banks, with the system booting images from the active bank. Information on the images such as which bank they belong to is stored

[RFC PATCH v2 8/8] FWU: cmd: Add a command to read FWU metadata

2021-12-18 Thread Sughosh Ganu
Add a command to read the metadata as specified in the FWU specification and print the fields of the metadata. Signed-off-by: Sughosh Ganu --- Changes since V1: * None cmd/Kconfig | 7 ++ cmd/Makefile| 1 + cmd/fwu_mdata.c | 64 + 3

[RFC PATCH v2 6/8] FWU: Add boot time checks as highlighted by the FWU specification

2021-12-18 Thread Sughosh Ganu
The FWU Multi Bank Update specification requires the Update Agent to carry out certain checks at the time of platform boot. The Update Agent is the component which is responsible for updating the firmware components and maintaining and keeping the metadata in sync. The spec requires that the

[RFC PATCH v2 5/8] EFI: FMP: Add provision to update image's ImageTypeId in image descriptor

2021-12-18 Thread Sughosh Ganu
The FWU Multi Banks Update feature allows updating different types of updatable firmware images on the platform. These image types are identified using the ImageTypeId GUID value. Add support in the GetImageInfo function of the FMP protocol to get the GUID values for the individual images and

[RFC PATCH v2 4/8] FWU: STM32MP1: Add support to read boot index from backup register

2021-12-18 Thread Sughosh Ganu
The FWU Multi Bank Update feature allows the platform to boot the firmware images from one of the partitions(banks). The first stage bootloader(fsbl) passes the value of the boot index, i.e. the bank from which the firmware images were booted from to U-Boot. On the STM32MP157C-DK2 board, this

[RFC PATCH v2 3/8] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2021-12-18 Thread Sughosh Ganu
Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. These functions have been added for the STM32MP157C-DK2 board which has the updatable images on the uSD card, formatted as GPT partitions. Signed-off-by: Sughosh Ganu --- Changes since

[RFC PATCH v2 2/8] FWU: Add FWU metadata access functions for GPT partitioned block devices

2021-12-18 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add functions for reading from and writing to the metadata when the updatable images and the metadata are stored on a block device which is formated with GPT

[RFC PATCH v2 1/8] FWU: Add FWU metadata structure and functions for accessing metadata

2021-12-18 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, which is stored on a dedicated partition. Add the metadata structure, and functions to access the metadata. These are generic API's, and implementations can be added based on

[RFC PATCH v2 0/8] FWU: Add support for FWU Multi Bank Update feature

2021-12-18 Thread Sughosh Ganu
The patchset adds support for the FWU Multi Bank Update[1] feature. Certain aspects of the Dependable Boot[2] specification have also been implemented. The FWU multi bank update feature is used for supporting multiple sets(also called banks) of firmware image(s), allowing the platform to boot

Re: [RFC PATCH v2 0/3] imx8m: move env_get_location for imx8mn and imx8mp at board level

2021-12-18 Thread Peng Fan (OSS)
On 2021/12/1 4:17, Tommaso Merciai wrote: This series move env_get_location from soc to board level. As suggested by Michael make no sense to define an unique way for multiple board. One board can boot from emmc and having env on spi flash etc.. Anyways, this function is kept in both imx8mn

Re: [PATCH] ARM: imx6: dh-imx6: Add update_sf script to install U-Boot into SF

2021-12-18 Thread Peng Fan (OSS)
On 2021/11/28 10:52, Marek Vasut wrote: Add script to read U-Boot from SD card and write it to matching locations in the SPI NOR, thus making the SPI NOR bootable. Signed-off-by: Marek Vasut Cc: Christoph Niedermaier Cc: Stefano Babic Acked-by: Peng Fan ---

Re: [PATCH 1/1] mmc: unconditionally define mmc_deinit()

2021-12-18 Thread Peng Fan (OSS)
On 2021/12/18 17:53, Heinrich Schuchardt wrote: We want to replace '#ifdef' by 'if (IS_ENABLED(CONFIG_...))' in our code. Therefore functions should be defined unconditionally even if they are not implemented. Signed-off-by: Heinrich Schuchardt Acked-by: Peng Fan --- include/mmc.h |

Re: [PATCH v2] ARM: dts: imx6ull: Use the correct name for ESAI_TX0

2021-12-18 Thread Peng Fan (OSS)
On 2021/12/17 19:09, Fabio Estevam wrote: According to the i.MX6ULL Reference Manual, pad CSI_DATA07 may have the ESAI_TX0 functionality, not ESAI_T0. Also, NXP's i.MX Config Tools 10.0 generates dtsi with the MX6ULL_PAD_CSI_DATA07__ESAI_TX0 naming, so fix it accordingly. There are no

Re: [PATCH v3 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2021-12-18 Thread Vagrant Cascadian
On 2021-12-14, Patrick Wildt wrote: > The MNT Reform 2 is a modular DIY laptop. In its initial version it > is based on the BoundaryDevices i.MX8MQ SoM. Some parts have been > lifted from BoundaryDevices official U-Boot downstream project. Successfully loaded u-boot, loaded a kernel and .dtb,

Re: [PATCH 1/8] arm: kirkwood: Pogoplug-V4 : Add DTS files

2021-12-18 Thread Tony Dinh
Hi Andre, On Sat, Dec 18, 2021 at 4:03 PM Andre Przywara wrote: > > On Sat, 18 Dec 2021 14:05:39 -0800 > Tony Dinh wrote: > > Hi Tony, > > > On Sat, Dec 18, 2021 at 8:38 AM Andre Przywara > > wrote: > > > > > > On Fri, 17 Dec 2021 20:23:27 -0800 > > > Tony Dinh wrote: > > > > > > Hi, > > > >

Re: [PATCH 1/8] arm: kirkwood: Pogoplug-V4 : Add DTS files

2021-12-18 Thread Andre Przywara
On Sat, 18 Dec 2021 14:05:39 -0800 Tony Dinh wrote: Hi Tony, > On Sat, Dec 18, 2021 at 8:38 AM Andre Przywara wrote: > > > > On Fri, 17 Dec 2021 20:23:27 -0800 > > Tony Dinh wrote: > > > > Hi, > > > > > Add DTS files for Pogoplug V4 board > > > > is there any reason you didn't take the

Re: [PATCH 7/8] arm: kirkwood: Pogoplug-V4 : Add board implementation

2021-12-18 Thread Marek Behún
On Sat, 18 Dec 2021 15:28:49 -0800 Tony Dinh wrote: > Hi Marek, > > On Sat, Dec 18, 2021 at 2:59 PM Marek Behún wrote: > > > > > +#if defined(CONFIG_RESET_PHY_R) > > > +/* Configure and initialize PHY */ > > > +void reset_phy(void) > > > +{ > > > + u16 reg; > > > + int phyaddr; > > >

Re: [PATCH 2/6] moveconfig: Convert to ArgumentParser

2021-12-18 Thread Simon Glass
Hi Heinrich, On Sat, 18 Dec 2021 at 15:32, Heinrich Schuchardt wrote: > > On 12/18/21 22:54, Simon Glass wrote: > > This is a newer library and is now preferred for Python scripts. Update > > the code to use it instead of optparse > > > > Use 'args' instead of 'options' throughout, since this is

Re: [PATCH 7/8] arm: kirkwood: Pogoplug-V4 : Add board implementation

2021-12-18 Thread Tony Dinh
Hi Marek, On Sat, Dec 18, 2021 at 2:59 PM Marek Behún wrote: > > > +#if defined(CONFIG_RESET_PHY_R) > > +/* Configure and initialize PHY */ > > +void reset_phy(void) > > +{ > > + u16 reg; > > + int phyaddr; > > + char *name = "ethernet-controller@72000"; > > + char *eth0_path =

Re: [PATCH 7/8] arm: kirkwood: Pogoplug-V4 : Add board implementation

2021-12-18 Thread Marek Behún
> +#if defined(CONFIG_RESET_PHY_R) > +/* Configure and initialize PHY */ > +void reset_phy(void) > +{ > + u16 reg; > + int phyaddr; > + char *name = "ethernet-controller@72000"; > + char *eth0_path = "/ocp@f100/ethernet-controller@72000"; > + > + if

Re: [PATCH] i2c: mvtwsi: Swab the register address if its size is > 1

2021-12-18 Thread Marek Behún
On Sat, 18 Dec 2021 14:42:51 +0100 Stefan Roese wrote: > Hi Heiko, > > On 11/18/21 09:18, Stefan Roese wrote: > > Testing on Armada XP with an EEPROM using register address with size > > of 2 has shown, that the register address bytes are sent to the I2C > > EEPROM in the incorrect order. This

Re: [PATCH 2/6] moveconfig: Convert to ArgumentParser

2021-12-18 Thread Heinrich Schuchardt
On 12/18/21 22:54, Simon Glass wrote: This is a newer library and is now preferred for Python scripts. Update the code to use it instead of optparse Use 'args' instead of 'options' throughout, since this is the term used in that module. Also it helps to avoid confusion with CONFIG options, a

Re: [PATCH 3/6] moveconfig: Drop check for old Python

2021-12-18 Thread Heinrich Schuchardt
On 12/18/21 22:54, Simon Glass wrote: Python 2 is not supported anymore and Python 3 has had subprocess.DEVNULL since version 3.3 which was released in 2012. Drop the unnecessary check. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- tools/moveconfig.py | 10 +-

Re: [PATCH 1/6] moveconfig: Use single quotes

2021-12-18 Thread Heinrich Schuchardt
On 12/18/21 22:54, Simon Glass wrote: Quite a few places use double quotes. Fix this to be consistent with other Python code in U-Boot. Signed-off-by: Simon Glass --- tools/moveconfig.py | 72 ++--- 1 file changed, 36 insertions(+), 36 deletions(-)

Re: [PATCH 1/8] arm: kirkwood: Pogoplug-V4 : Add DTS files

2021-12-18 Thread Tony Dinh
HI Andre, On Sat, Dec 18, 2021 at 8:38 AM Andre Przywara wrote: > > On Fri, 17 Dec 2021 20:23:27 -0800 > Tony Dinh wrote: > > Hi, > > > Add DTS files for Pogoplug V4 board > > is there any reason you didn't take the kirkwood-pogoplug-series-4.dts > file from the Linux tree? That is the same

[PATCH 6/6] moveconfig: Fix some pylint errors

2021-12-18 Thread Simon Glass
There are over 200 errors in this file. Fix some of them, starting at the beginning of the file. Future work can continue this effort. Signed-off-by: Simon Glass --- tools/moveconfig.py | 206 +++- 1 file changed, 110 insertions(+), 96 deletions(-) diff

[PATCH 1/6] moveconfig: Use single quotes

2021-12-18 Thread Simon Glass
Quite a few places use double quotes. Fix this to be consistent with other Python code in U-Boot. Signed-off-by: Simon Glass --- tools/moveconfig.py | 72 ++--- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/tools/moveconfig.py

[PATCH 5/6] moveconfig: Use a function to read files

2021-12-18 Thread Simon Glass
At present there is quite a bit of ad-hoc code reading from files. The most common case is to read the file as lines. Put it in a function and set the unicode encoding correctly. Avoid writing back to a file when there are obviously no changes as this speeds things up slightly. Signed-off-by:

[PATCH 3/6] moveconfig: Drop check for old Python

2021-12-18 Thread Simon Glass
Python 2 is not supported anymore and Python 3 has had subprocess.DEVNULL since version 3.3 which was released in 2012. Drop the unnecessary check. Signed-off-by: Simon Glass --- tools/moveconfig.py | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git

[PATCH 2/6] moveconfig: Convert to ArgumentParser

2021-12-18 Thread Simon Glass
This is a newer library and is now preferred for Python scripts. Update the code to use it instead of optparse Use 'args' instead of 'options' throughout, since this is the term used in that module. Also it helps to avoid confusion with CONFIG options, a term that is used in this file.

[PATCH 4/6] moveconfig: Use a function to write files

2021-12-18 Thread Simon Glass
At present there is quite a bit of ad-hoc code writing to files. The treatment of newlines is different in some of them. Put it in a function and set the unicode encoding correctly. Signed-off-by: Simon Glass --- tools/moveconfig.py | 41 +++-- 1 file

[PATCH 0/6] moveconfig: Improve the pylist score a little

2021-12-18 Thread Simon Glass
There are about 240 warnings in this file. This series refactors file reading and writing, which fixes about 40. It also includes a patch to make a start on the rest, reducing the count to about 160. It also tidies up quoting. There are still about 160 warnings left. Simon Glass (6):

Re: [PATCH 0/2] Add more support for NXP's mfgtool

2021-12-18 Thread Oleh Kravchenko
18.12.21 16:34, Angus Ainslie пише: Hi Oleh On 2021-12-18 00:44, Oleh Kravchenko wrote: Hello Angus! What is the use-case for these patches? Would you mind defining why the current implementation is not enough? Used like that: FB: flash -raw2sparse mmc0 emmc.wic Thanks, it looks

Re: [PATCH] efi_loader: Bump the number of shared pages with StandAloneMM

2021-12-18 Thread Ilias Apalodimas
Hi Heinrich, On Sat, Dec 18, 2021 at 12:03:34PM +0100, Heinrich Schuchardt wrote: > > > On 12/15/21 08:50, Ilias Apalodimas wrote: > > Currently we allow (and explicitly check) a single shared page with > > StandAloneMM. This is dictated by OP-TEE which runs the application. > > However

Re: [PATCH 6/8] arm: kirkwood: Pogoplug-V4 : Add board implementation header

2021-12-18 Thread Tony Dinh
Hi Pali, On Sat, Dec 18, 2021 at 5:09 AM Pali Rohár wrote: > > On Friday 17 December 2021 20:23:32 Tony Dinh wrote: > > Add board implementation header and Makefile for Pogoplug V4 > > > > Signed-off-by: Tony Dinh > > --- > > > > board/cloudengines/pogo_v4/Makefile | 10 > >

Re: [PATCH 2/8] arm: kirkwood: Pogoplug V4 : Add board defconfig file

2021-12-18 Thread Tony Dinh
Hi Pali, On Sat, Dec 18, 2021 at 5:17 AM Pali Rohár wrote: > > On Friday 17 December 2021 20:23:28 Tony Dinh wrote: > > Add board defconfig file for Pogoplug V4 board > > > > Signed-off-by: Tony Dinh > > --- > > > > configs/pogo_v4_defconfig | 97 +++ > > 1

Re: [PATCH 4/8] arm: kirkwood: Pogoplug-V4 : Add board include configs file

2021-12-18 Thread Tony Dinh
Hi Pali, On Sat, Dec 18, 2021 at 5:12 AM Pali Rohár wrote: > > On Friday 17 December 2021 20:23:30 Tony Dinh wrote: > > Add include configs file for Pogoplug V4 board > > > > Signed-off-by: Tony Dinh > > --- > > > > include/configs/pogo_v4.h | 94 +++ > > 1

[PATCH 6/6] udoo: Select CMD_DM

2021-12-18 Thread Fabio Estevam
CMD_DM is useful for showing the whole DM tree. Enable it via "imply CMD_DM". Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mx6/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig index 62de942a32aa..98df4d4e4281 100644

[PATCH 5/6] udoo: Increase CONFIG_ENV_OFFSET

2021-12-18 Thread Fabio Estevam
Increase CONFIG_ENV_OFFSET to avoid the environment region to overlap with U-Boot proper. Signed-off-by: Fabio Estevam --- configs/udoo_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/udoo_defconfig b/configs/udoo_defconfig index 284ea0588465..ab2b2ee67550

[PATCH 4/6] udoo: Adjust the SD card device numbering

2021-12-18 Thread Fabio Estevam
After the conversion to DM the SD card shows up as 'mmc 2' device. Adjust the 'mmcdev' and the distro command 'func' accordingly. Signed-off-by: Fabio Estevam --- configs/udoo_defconfig | 1 + include/configs/udoo.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 3/6] udoo: Call gpio_request()

2021-12-18 Thread Fabio Estevam
Calling gpio_request() prior to its usage is now mandatory. This fixes the following GPIO errors: U-Boot SPL 2022.01-rc3-00067-g7a5be871c0ec (Dec 18 2021 - 17:45:07 -0300) Trying to boot from MMC1

[PATCH 2/6] ARM: dts: imx6qdl-udoo: Properly describe the SD card detect

2021-12-18 Thread Fabio Estevam
GPIO7_IO00 is used as SD card detect. Properly describe this in the devicetree. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx6qdl-udoo.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imx6qdl-udoo.dtsi b/arch/arm/dts/imx6qdl-udoo.dtsi index

[PATCH 1/6] udoo_spl: Initialize the eSDHC controller in SPL

2021-12-18 Thread Fabio Estevam
Currently, imx6q udoo board fails to boot like this: U-Boot SPL 2022.01-rc3-00061-g95ca715adad3 (Dec 18 2021 - 18:04:40 -0300) Trying to boot from MMC1 The reason is that the eSDHC controller is not initialized in SPL. Initialize the eSDHC controller in SPL via C code as DM is not used in SPL.

Pull request for efi-2022-01-rc4-3

2021-12-18 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit c03942ddc9e88d86d919504299905e4e8b0003cd: Merge commit '4720b83d2c711062cfb55f03591b8f12c897d7cb' of https://github.com/tienfong/uboot_mainline (2021-12-17 07:24:56 -0500) are available in the Git repository at:

[PATCH v2 3/5] Convert CONFIG_TIMESTAMP to Kconfig

2021-12-18 Thread Simon Glass
This converts the following to Kconfig: CONFIG_TIMESTAMP Signed-off-by: Simon Glass --- (no changes since v1) arch/Kconfig | 1 + arch/arm/Kconfig | 1 + arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 +

Re: [PATCH 3/4] Convert CONFIG_TIMESTAMP to Kconfig

2021-12-18 Thread Sean Anderson
On 12/18/21 10:08 AM, Simon Glass wrote: This converts the following to Kconfig: CONFIG_TIMESTAMP Signed-off-by: Simon Glass --- [...] diff --git a/net/Kconfig b/net/Kconfig index 3d3329912da..1983506bb8e 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -109,6 +109,7 @@ config

[PATCH 3/4] Convert CONFIG_TIMESTAMP to Kconfig

2021-12-18 Thread Simon Glass
This converts the following to Kconfig: CONFIG_TIMESTAMP Signed-off-by: Simon Glass --- arch/Kconfig | 1 + arch/arm/Kconfig | 1 + arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + arch/powerpc/cpu/mpc85xx/Kconfig

[PATCH v7 08/24] efi: Fix ll_boot_init() operation with the app

2021-12-18 Thread Simon Glass
This should return false when the EFI app is running, since UEFI has done the required low-level init. Fix it. Signed-off-by: Simon Glass --- (no changes since v1) include/init.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/init.h b/include/init.h index

[PATCH v7 09/24] efi: Add a few comments to the stub

2021-12-18 Thread Simon Glass
Comment some functions that need more information. Signed-off-by: Simon Glass --- (no changes since v6) Changes in v6: - Fix comment style in setup_info_table() lib/efi/efi_stub.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/lib/efi/efi_stub.c

[PATCH v7 11/24] efi: Move exit_boot_services into a function

2021-12-18 Thread Simon Glass
At present this code is inline in the app and stub. But they do the same thing. The difference is that the stub does it immediately and the app doesn't want to do it until the end (when it boots a kernel) or not at all, if returning to UEFI. Move it into a function so it can be called as needed.

[PATCH v7 23/24] x86: efi: Set the correct link flags for the 64-bit EFI app

2021-12-18 Thread Simon Glass
At present some 32-bit settings are used with the 64-bit app. Fix this by separating out the two cases. Be careful not to break the 64-bit payload, which needs to build a 64-bit EFI stub with a 32-bit U-Boot. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add new patch

[PATCH v7 10/24] efi: Share struct efi_priv between the app and stub code

2021-12-18 Thread Simon Glass
At present each of these has its own static variable and helper functions. Move them into a shared file. Signed-off-by: Simon Glass --- (no changes since v1) include/efi.h | 21 + lib/efi/efi.c | 29 + lib/efi/efi_app.c | 21

[PATCH v7 24/24] efi: Build the 64-bit app properly

2021-12-18 Thread Simon Glass
Now that the linker crash is resolved, build the 64-bit EFI app, including all the required code. Signed-off-by: Simon Glass --- Changes in v7: - Rebase on -master instead of -next Changes in v5: - Add new patch to build the 64-bit app properly - Add various patches to fix up the 64-bit app so

[PATCH v7 22/24] x86: efi: Don't use the 64-bit link script for the EFI app

2021-12-18 Thread Simon Glass
That script is not intended for use with EFI, so update the logic to avoid using it. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add new patch to avoid using the 64-bit link script for the EFI app arch/x86/cpu/config.mk | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v7 21/24] x86: efi: Round out the link script for 64-bit EFI

2021-12-18 Thread Simon Glass
Make sure the linker lists are in the right place and drop the eh_frame section, which is not needed. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add new patch to round out the link script for 64-bit EFI arch/x86/lib/elf_x86_64_efi.lds | 5 - 1 file changed, 4

[PATCH v7 17/24] efi: Support the efi command in the app

2021-12-18 Thread Simon Glass
At present the 'efi' command only works in the EFI payload. Update it to work in the app too, so the memory map can be examined. Signed-off-by: Simon Glass --- (no changes since v1) cmd/Makefile | 2 +- cmd/efi.c | 48 ---

[PATCH v7 18/24] x86: efi: Show the system-table revision

2021-12-18 Thread Simon Glass
Show the revision of this table as it can be important. Also update the 'efi table' entry to show the actual address of the EFI table rather than our table that points to it. This saves a step and the intermediate table has nothing else in it. Signed-off-by: Simon Glass --- (no changes since

[PATCH v7 19/24] x86: efi: Don't set up global_data again with EFI

2021-12-18 Thread Simon Glass
Since EFI does not relocate and uses the same global_data pointer throughout the board-init process, drop this unnecessary setup, to avoid a hang. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add new patch to avoid setting up global_data again with EFI

[PATCH v7 16/24] x86: efi: Update efi_get_next_mem_desc() to avoid needing a map

2021-12-18 Thread Simon Glass
At present this function requires a pointer to struct efi_entry_memmap but the only field used in there is the desc_size. We want to be able to use it from the app, so update it to use desc_size directly. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/efi/payload.c | 8

[PATCH v7 15/24] efi: Allow easy selection of serial-only operation

2021-12-18 Thread Simon Glass
Add info about how to select vidconsole or serial. Also set up a demo boot command. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add a better boot command too include/configs/efi-x86_app.h | 25 + 1 file changed, 25 insertions(+) diff --git

[PATCH v7 14/24] efi: Show when allocated pages are used

2021-12-18 Thread Simon Glass
Add a message here so that both paths of memory allocation are reported. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Use log_info() instead of printf() lib/efi/efi_app.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi/efi_app.c

[PATCH v7 12/24] efi: Check for failure when initing the app

2021-12-18 Thread Simon Glass
The stub checks for failure with efi_init(). Add this for the app as well. It is unlikely that anything can be done, but we may as well stop. Signed-off-by: Simon Glass --- (no changes since v6) Changes in v6: - Use 'U-Boot' instead of 'ARP' typo lib/efi/efi_app.c | 7 +-- 1 file

[PATCH v7 13/24] efi: Mention that efi_info_get() is only used in the stub

2021-12-18 Thread Simon Glass
This provides access to EFI tables after U-Boot has exited boot services. It is not needed in the app since boot services remain alive and we can just call them whenever needed. Add a comment to explain this. Signed-off-by: Simon Glass --- (no changes since v6) Changes in v6: - Fix 'stuff'

[PATCH v7 07/24] efi: Add comments to struct efi_priv

2021-12-18 Thread Simon Glass
This structure is uncommented. Fix it. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Drop comments that confuse sphinx - Move device_path path change to its own patch include/efi.h | 23 +++ 1 file changed, 23 insertions(+) diff --git

[PATCH v7 03/24] x86: Allow booting a kernel from the EFI app

2021-12-18 Thread Simon Glass
At present this is disabled, but it should work so long as the kernel does not need EFI services. Enable it and add a note about remaining work. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Update documentation arch/x86/lib/bootm.c | 11 +++

[PATCH v7 04/24] x86: Don't process the kernel command line unless enabled

2021-12-18 Thread Simon Glass
If the 'bootm' command is not enabled then this code is not available and this causes a link error. Fix it. Note that for the EFI app, there is no indication of missing code. It just hangs! Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/zimage.c | 13 - 1 file

[PATCH v7 06/24] efi: Drop device_path from struct efi_priv

2021-12-18 Thread Simon Glass
This is not used anywhere drop it. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Move device_path path change to its own patch include/efi.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/efi.h b/include/efi.h index 908c5dc6ebd..77e599c256e 100644 ---

[PATCH v7 05/24] x86: efi: Add room for the binman definition in the dtb

2021-12-18 Thread Simon Glass
At present only 4KB of spare space is left in the DTB when building the EFI app. Increase this to 32KB so there is plenty of space to insert the binman definition. This cannot be expanded later (as with OF_SEPARATE) because the ELF image has already been built. Signed-off-by: Simon Glass ---

[PATCH v7 01/24] efi: Locate all block devices in the app

2021-12-18 Thread Simon Glass
When starting the app, locate all block devices and make them available to U-Boot. This allows listing partitions and accessing files in filesystems. EFI also has the concept of 'disks', meaning boot media. For now, this is not obviously useful in U-Boot, but add code to at least locate these.

[PATCH v7 02/24] efi: serial: Support arrow keys

2021-12-18 Thread Simon Glass
At present only the backspace key is supported in U-Boot, when running as an EFI app. Add support for arrows, home and end as well, to make the CLI more friendly. Signed-off-by: Simon Glass --- (no changes since v1) drivers/serial/serial_efi.c | 11 +-- 1 file changed, 9

[PATCH v7 00/24] efi: Improvements to U-Boot running on top of UEFI

2021-12-18 Thread Simon Glass
At present U-Boot can be built as an EFI app, but it is really just for testing, with very few features. Instead, the payload build is used for booting on top of UEFI, where U-Boot takes over the machine immediately and supplies its own drivers. But the app could be made more useful. This series

[PATCH v2 5/5] net: Drop #ifdefs with CONFIG_BOOTP_SERVERIP

2021-12-18 Thread Simon Glass
Use IS_ENABLED() instead, to reduce the number of build paths. Signed-off-by: Simon Glass --- (no changes since v1) cmd/net.c | 4 +--- net/bootp.c | 5 +++-- net/net.c | 24 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/cmd/net.c b/cmd/net.c

[PATCH v2 4/5] Convert CONFIG_BOOTP_SERVERIP to Kconfig

2021-12-18 Thread Simon Glass
This converts the following to Kconfig: CONFIG_BOOTP_SERVERIP Signed-off-by: Simon Glass --- Changes in v2: - Send the correct series README| 3 --- arch/arm/mach-stm32mp/Kconfig | 1 + configs/adp-ae3xx_defconfig | 1 +

[PATCH v2 2/5] Convert CONFIG_UDP_CHECKSUM to Kconfig

2021-12-18 Thread Simon Glass
This converts the following to Kconfig: CONFIG_UDP_CHECKSUM Signed-off-by: Simon Glass --- (no changes since v1) configs/M5208EVBE_defconfig | 1 + configs/M53017EVB_defconfig | 1 + configs/M5329AFEE_defconfig | 1 + configs/M5329BFEE_defconfig | 1 + configs/M5373EVB_defconfig | 1

[PATCH v2 1/5] Convert CONFIG_KEEP_SERVERADDR to Kconfig

2021-12-18 Thread Simon Glass
This converts the following to Kconfig: CONFIG_KEEP_SERVERADDR Drop the preprocessor usage also. Signed-off-by: Simon Glass --- (no changes since v1) README | 5 - include/configs/sandbox.h| 1 - net/Kconfig | 9 + net/arp.c

[PATCH v4] timer: Add a migration message

2021-12-18 Thread Simon Glass
Some boards still use the old timer mechanism. Set a deadline for them to update to driver model. Point to some examples as well. This needs a bit of a strange rule to avoid an error on some boards. Signed-off-by: Simon Glass --- Changes in v4: - Fix alsol typo Changes in v3: - Push out the

Re: [PATCH] fw_setenv: Unbreak fw_setenv caused by buggy MEMISLOCKED use

2021-12-18 Thread Joakim Tjernlund
Ping? Maybe just revert commit 8a726b852502 ("fw_setenv: lock the flash only if it was locked before") ? From: Joakim Tjernlund Sent: 13 December 2021 18:22 To: u-boot@lists.denx.de; joe.hershber...@ni.com; fr0st6...@gmail.com Subject: Re: [PATCH]

Re: [PATCH 1/4] Convert CONFIG_KEEP_SERVERADDR to Kconfig

2021-12-18 Thread Simon Glass
Hi Sean, Tom, On Sat, 18 Dec 2021 at 09:50, Tom Rini wrote: > > On Sat, Dec 18, 2021 at 10:15:08AM -0500, Sean Anderson wrote: > > On 12/18/21 10:08 AM, Simon Glass wrote: > > > This converts the following to Kconfig: > > > CONFIG_KEEP_SERVERADDR > > > > > > Drop the preprocessor usage also.

Re: [PATCH 1/4] Convert CONFIG_KEEP_SERVERADDR to Kconfig

2021-12-18 Thread Tom Rini
On Sat, Dec 18, 2021 at 10:15:08AM -0500, Sean Anderson wrote: > On 12/18/21 10:08 AM, Simon Glass wrote: > > This converts the following to Kconfig: > > CONFIG_KEEP_SERVERADDR > > > > Drop the preprocessor usage also. > > > > Signed-off-by: Simon Glass > > --- > > > > README

Re: [PATCH 1/8] arm: kirkwood: Pogoplug-V4 : Add DTS files

2021-12-18 Thread Andre Przywara
On Fri, 17 Dec 2021 20:23:27 -0800 Tony Dinh wrote: Hi, > Add DTS files for Pogoplug V4 board is there any reason you didn't take the kirkwood-pogoplug-series-4.dts file from the Linux tree? That is the same device, isn't it? Tom will ask you about the upstream status anyway... Cheers, Andre

Re: [PATCH v6 02/27] efi: Add EFI uclass for media

2021-12-18 Thread Simon Glass
Hi Heinrich, On Sat, 18 Dec 2021 at 01:12, Heinrich Schuchardt wrote: > > On 12/17/21 20:40, Simon Glass wrote: > > At present UCLASS_EFI_LOADER is used to represent an EFI filesystem among > > other things. The only driver that uses this uclass is in fact not a real > > U-Boot driver, since its

Re: [PATCH 1/4] Convert CONFIG_KEEP_SERVERADDR to Kconfig

2021-12-18 Thread Sean Anderson
On 12/18/21 10:08 AM, Simon Glass wrote: This converts the following to Kconfig: CONFIG_KEEP_SERVERADDR Drop the preprocessor usage also. Signed-off-by: Simon Glass --- README | 6 -- include/configs/sandbox.h| 1 - net/Kconfig | 9

[PATCH 4/5] moveconfig: Allow adding unit tests

2021-12-18 Thread Simon Glass
Add a -t option to run unit tests in this program. So far, there is none. Signed-off-by: Simon Glass --- tools/moveconfig.py | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 369589727cc..71a7736ca63 100755 --- a/tools/moveconfig.py

[PATCH 5/5] moveconfig: Allow querying board configuration

2021-12-18 Thread Simon Glass
It is useful to be able to find out which boards define a particular option, or combination of options. This is not as easy as grepping the defconfig files since many options are implied by others. Add a -f option to the moveconfig tool to permit this. Update the documentation to cover this,

[PATCH 3/5] moveconfig: Sort the options

2021-12-18 Thread Simon Glass
Put the options in sorted order by their short name so it is easier to find an option. Signed-off-by: Simon Glass --- tools/moveconfig.py | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index

[PATCH 2/5] moveconfig: Read the database in a separate function

2021-12-18 Thread Simon Glass
Move this code out into a function so it can be used elsewhere. Signed-off-by: Simon Glass --- tools/moveconfig.py | 78 - 1 file changed, 49 insertions(+), 29 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index

[PATCH 1/5] moveconfig: Correct operation of the 'imply' feature

2021-12-18 Thread Simon Glass
This doesn't work anymore, since the Kconfig update. The script has no tests so we did not notice. Fix it. Signed-off-by: Simon Glass --- tools/moveconfig.py | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index

[PATCH 2/4] Convert CONFIG_UDP_CHECKSUM to Kconfig

2021-12-18 Thread Simon Glass
This converts the following to Kconfig: CONFIG_UDP_CHECKSUM Signed-off-by: Simon Glass --- configs/M5208EVBE_defconfig | 1 + configs/M53017EVB_defconfig | 1 + configs/M5329AFEE_defconfig | 1 + configs/M5329BFEE_defconfig | 1 + configs/M5373EVB_defconfig | 1 +

[PATCH 1/4] Convert CONFIG_KEEP_SERVERADDR to Kconfig

2021-12-18 Thread Simon Glass
This converts the following to Kconfig: CONFIG_KEEP_SERVERADDR Drop the preprocessor usage also. Signed-off-by: Simon Glass --- README | 6 -- include/configs/sandbox.h| 1 - net/Kconfig | 9 + net/arp.c| 5 ++---

[PATCH 4/4] Convert CONFIG_BOOTP_SERVERIP to Kconfig

2021-12-18 Thread Simon Glass
This converts the following to Kconfig: CONFIG_BOOTP_SERVERIP Signed-off-by: Simon Glass --- README| 3 --- arch/arm/mach-stm32mp/Kconfig | 1 + configs/adp-ae3xx_defconfig | 1 + configs/adp-ag101p_defconfig | 1 +

Re: [PATCH 2/3] arch: imx8m: imx-regs.h add the USB regs

2021-12-18 Thread Angus Ainslie
On 2021-12-17 09:45, Fabio Estevam wrote: On Fri, Dec 17, 2021 at 2:03 PM Adam Ford wrote: I didn't think Driver model was a requirement for SPL. That's my understanding as well. > I had problems getting the dwc3 to initialize properly when using the > device model in the SPL. I'm

Re: [PATCH 0/2] Add more support for NXP's mfgtool

2021-12-18 Thread Angus Ainslie
Hi Oleh On 2021-12-18 00:44, Oleh Kravchenko wrote: Hello Angus! What is the use-case for these patches? Would you mind defining why the current implementation is not enough? Used like that: FB: flash -raw2sparse mmc0 emmc.wic Thanks, it looks like the way I'm using fastboot is causing

Re: Please pull u-boot-marvell/next

2021-12-18 Thread Tom Rini
On Sat, Dec 18, 2021 at 02:51:49PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the following Marvell MVEBU related patches into next: > > > - Armada XP etc: Move to DM_I2C (Stefan) > - Some mvebu comphy + mox +

Re: [PATCH u-boot-marvell 00/10] PCI mvebu and aardvark changes

2021-12-18 Thread Stefan Roese
Hi Pali, On 12/16/21 11:28, Pali Rohár wrote: On Wednesday 15 December 2021 09:10:50 Stefan Roese wrote: Hi Pali, On 12/13/21 11:27, Pali Rohár wrote: On Monday 13 December 2021 08:41:30 Stefan Roese wrote: Hi Pali, On 12/12/21 12:23, Pali Rohár wrote: On Thursday 11 November 2021

Please pull u-boot-marvell/next

2021-12-18 Thread Stefan Roese
Hi Tom, please pull the following Marvell MVEBU related patches into next: - Armada XP etc: Move to DM_I2C (Stefan) - Some mvebu comphy + mox + fdt_support changes (Marek & Pali) - mvebu: a38x: improve USB3 serdes configuration

Re: [PATCH] arm: mvebu: Use printf for printing fatal errors

2021-12-18 Thread Stefan Roese
On 12/17/21 18:31, Pali Rohár wrote: There is no point to hide/disable fatal errors via debug() macro. Print fatal errors loudly. Signed-off-by: Pali Rohár Applied to u-boot-marvell/next Thanks, Stefan --- arch/arm/mach-mvebu/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH] arm: mvebu: Remove commented example code

2021-12-18 Thread Stefan Roese
On 12/17/21 18:28, Pali Rohár wrote: Include file debug_uart.h already contains documentation how to use it. Signed-off-by: Pali Rohár Applied to u-boot-marvell/next Thanks, Stefan --- arch/arm/mach-mvebu/spl.c | 13 - 1 file changed, 13 deletions(-) diff --git

Re: [PATCH u-boot-marvell 0/2] arm: mvebu: Add maintainer entries for Marvell PCIe and serial drivers

2021-12-18 Thread Stefan Roese
On 12/16/21 12:04, Pali Rohár wrote: Hello Stefan! I did big cleanup of Marvell PCIe and serial drivers and I'm sending these two patches which adds me as author and co-maintainer of these two drivers. Pali Rohár (2): arm: mvebu: pci: Add me as co-maintainer and author of Marvell PCIe

Re: [PATCH 0/2] arm: mvebu: a38x: improve USB3 serdes configuration

2021-12-18 Thread Stefan Roese
On 12/9/21 11:19, Stefan Eichenberger wrote: This patchset improves the USB3 serdes configuration for the Armada 38x SoC from Marvell. The changes are based on the version from Marvell found here: https://github.com/MarvellEmbeddedProcessors/u-boot-marvell Stefan Eichenberger (2): arm:

Re: [PATCH u-boot-marvell RESEND 00/11] Some mvebu comphy + mox + fdt_support changes

2021-12-18 Thread Stefan Roese
On 11/26/21 14:57, Marek Behún wrote: From: Marek Behún Hello Stefan, as requested I am resending this series with board maintainers added in Ccs. Original message: Pali prepared patches that convert A3720 comphy driver to use Linux' DT bindings. (Yes, I have patches that convert the whole

  1   2   >