Re: [EXTERNAL] Re: [PATCH] common: Kconfig: Fix CMD_BMP/BMP dependency

2023-07-14 Thread Samuel Dionne-Riel
Please do! On 7/14/23, Nikhil M Jain wrote: > > > On 10/07/23 20:36, Tom Rini wrote: >> On Sun, Jul 09, 2023 at 07:18:10PM -0400, Samuel Dionne-Riel wrote: >> >>> Using `default y` will not select BMP when CMD_BMP has been enabled, if >>> it was already configured. >>> >>> By using `select`, if

Re: [PATCH v2 0/6] introduce EFI_RAM_DISK_PROTOCOL

2023-07-14 Thread Tobias Waldekranz
Hi Masahisa, On fre, jul 14, 2023 at 14:44, Masahisa Kojima wrote: > This series introduces the EFI_RAM_DISK_PROTOCOL implementation. > The major purpose of this series is a preparation for EFI HTTP(S) boot. > > Now U-Boot can download the distro installer ISO image > via wget or tftpboot

Re: [PATCH] configs: k2x_evm: Always include FIT loading support

2023-07-14 Thread Nishanth Menon
On 14:00-20230714, Andrew Davis wrote: > Non-HS boards can use FIT images so include the env var commands > for these unconditionally. > > Signed-off-by: Andrew Davis Reviewed-by: Nishanth Menon > --- > include/configs/k2e_evm.h | 11 ++- > include/co

Re: [PATCH 3/3] usb: xhci-pci: Load ASMedia XHCI controller firmware

2023-07-14 Thread Marek Vasut
On 7/14/23 22:43, Mark Kettenis wrote: The ASMedia XHCI controller found on some of the Apple Silicon machines needs firmware to operate. Use the file system firmware loader interface to read the firmware and load it onto the controller. This allows keyboards connected to the type-A ports on

Re: [PATCH 1/3] apple: Set up file system firmware loader

2023-07-14 Thread Marek Vasut
On 7/14/23 22:43, Mark Kettenis wrote: Find the appropriate EFI system partition on the internal NVMe storage and set the U-Boot environment variables such that the file system firmware loader can load firmware from it. Signed-off-by: Mark Kettenis --- arch/arm/mach-apple/board.c | 60

Re: [PATCH 2/3] iopoll: Add readb_poll_sleep_timeout

2023-07-14 Thread Marek Vasut
On 7/14/23 22:43, Mark Kettenis wrote: Add a variant of readl_poll_sleep_timeout that reads a single byte to match the readb_poll_timeout API that Linux has. Signed-off-by: Mark Kettenis --- include/linux/iopoll.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/iopoll.h

Re: [PATCH] bootstd: Make efi_mgr bootmeth work for non-sandbox setups

2023-07-14 Thread Heinrich Schuchardt
On 7/14/23 21:56, Mark Kettenis wrote: Enable the bootflow based on this bootmeth if the BootOrder EFI variable is set. Signed-off-by: Mark Kettenis --- boot/bootmeth_efi_mgr.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/boot/bootmeth_efi_mgr.c

[PATCH 3/3] usb: xhci-pci: Load ASMedia XHCI controller firmware

2023-07-14 Thread Mark Kettenis
The ASMedia XHCI controller found on some of the Apple Silicon machines needs firmware to operate. Use the file system firmware loader interface to read the firmware and load it onto the controller. This allows keyboards connected to the type-A ports on these machines to function in U-Boot.

[PATCH 2/3] iopoll: Add readb_poll_sleep_timeout

2023-07-14 Thread Mark Kettenis
Add a variant of readl_poll_sleep_timeout that reads a single byte to match the readb_poll_timeout API that Linux has. Signed-off-by: Mark Kettenis --- include/linux/iopoll.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h index

[PATCH 1/3] apple: Set up file system firmware loader

2023-07-14 Thread Mark Kettenis
Find the appropriate EFI system partition on the internal NVMe storage and set the U-Boot environment variables such that the file system firmware loader can load firmware from it. Signed-off-by: Mark Kettenis --- arch/arm/mach-apple/board.c | 60 + 1 file

[PATCH 0/3] Load ASMedia XHCI controller firmware

2023-07-14 Thread Mark Kettenis
Some of the Apple desktop machine have a PCI ASMedia XHCI controller that needs firmware to be uploaded to function. This firmware is placed on the EFI system partition by the Asahi installer. So this series sets up a file system firmware loader that reads from that partition and ports the Linux

[PATCH] phy: Add support for the Apple Type-C PHY

2023-07-14 Thread Mark Kettenis
This is merely a dummy driver that makes sure the DWC3 XHCI driver finds its reset and PHY controllers. We rely on iBoot to set up the PHY for us. Signed-off-by: Mark Kettenis --- MAINTAINERS | 1 + arch/arm/Kconfig| 1 + configs/apple_m1_defconfig | 1 +

Re: [PATCH] bootstd: Make efi_mgr bootmeth work for non-sandbox setups

2023-07-14 Thread Heinrich Schuchardt
Am 14. Juli 2023 21:56:02 MESZ schrieb Mark Kettenis : >Enable the bootflow based on this bootmeth if the BootOrder EFI >variable is set. > >Signed-off-by: Mark Kettenis >--- > boot/bootmeth_efi_mgr.c | 12 +++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git

[PATCH] bootstd: Make efi_mgr bootmeth work for non-sandbox setups

2023-07-14 Thread Mark Kettenis
Enable the bootflow based on this bootmeth if the BootOrder EFI variable is set. Signed-off-by: Mark Kettenis --- boot/bootmeth_efi_mgr.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/boot/bootmeth_efi_mgr.c b/boot/bootmeth_efi_mgr.c index

Re: [PATCH 1/2] cmd: thordown: Add proper dependency for CMD_THOR_DOWNLOAD

2023-07-14 Thread Tom Rini
On Sun, Jul 09, 2023 at 07:09:57AM -0600, Ashok Reddy Soma wrote: > When CONFIG_CMD_USB and CONFIG_USB are disabled some compilation errors > are seen as below. > > cmd/thordown.o: in function `usb_gadget_initialize': > include/linux/usb/gadget.h:981: undefined reference to `board_usb_init' >

[PATCH] pci: apple: Enable CONFIG_SYS_PCI_64BIT

2023-07-14 Thread Mark Kettenis
The Apple hardware supports 64-bit prefetchable memory windows so enable CONFIG_SYS_PCI_64BIT. This fixes BAR assignments for the Broadcom Ethernet controller used in some of the desktop machines. Signed-off-by: Mark Kettenis --- drivers/pci/Kconfig | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] configs: k2x_evm: Always include FIT loading support

2023-07-14 Thread Andrew Davis
Non-HS boards can use FIT images so include the env var commands for these unconditionally. Signed-off-by: Andrew Davis --- include/configs/k2e_evm.h | 11 ++- include/configs/k2hk_evm.h | 11 ++- include/configs/k2l_evm.h | 11 ++- 3 files changed, 6 insertions(+), 27

Re: [PATCH v3 5/6] sysinfo: rcar3: Use int instead of char for revision

2023-07-14 Thread Detlev Casanova
On Friday, July 14, 2023 1:33:01 P.M. EDT Marek Vasut wrote: > On 7/14/23 18:43, Detlev Casanova wrote: > > To be used with the sysinfo command, revision values must be considered > > as integers, not chars as some boards will implement BOARD_REVISION_* > > and might use numbers greater than 9. >

Re: [PATCH 1/2] schemas: Add firmware node schema

2023-07-14 Thread Simon Glass
Hi Rob, On Fri, 14 Jul 2023 at 10:58, Rob Herring wrote: > > On Tue, Jul 11, 2023 at 3:18 PM Simon Glass wrote: > > > > Add a motivation and purpose for this new proposed node. > > > > Signed-off-by: Simon Glass > > --- > > > > dtschema/schemas/firmware.yaml | 83

Re: [PATCH v3 5/6] sysinfo: rcar3: Use int instead of char for revision

2023-07-14 Thread Marek Vasut
On 7/14/23 18:43, Detlev Casanova wrote: To be used with the sysinfo command, revision values must be considered as integers, not chars as some boards will implement BOARD_REVISION_* and might use numbers greater than 9. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 104

Re: [PATCH v3 4/6] sysinfo: Add documentation

2023-07-14 Thread Marek Vasut
On 7/14/23 18:43, Detlev Casanova wrote: [...] +Return value + + +The return value $? is set to 0 (true) if the command succededd succeeded -- typo . If an +error occurs, the return value $? is set to 1 (false). With that fixed: Reviewed-by: Marek Vasut

Re: [PATCH v3 3/6] sysinfo: Add a test

2023-07-14 Thread Marek Vasut
On 7/14/23 18:43, Detlev Casanova wrote: The test runs one of each subcommand and checks that the output matches the values in the sandbox sysinfo driver. Signed-off-by: Detlev Casanova Nice Reviewed-by: Marek Vasut

Re: [PATCH v3 2/6] cmd: Add a sysinfo command

2023-07-14 Thread Marek Vasut
On 7/14/23 18:43, Detlev Casanova wrote: The command is able to show different information for the running system: * Model name * Board ID * Revision This command can be used by boot shell scripts to select configurations depending on the specific running system. Signed-off-by: Detlev Casanova

Re: [PATCH v3 1/6] sysinfo: Add IDs for board id and revision

2023-07-14 Thread Marek Vasut
On 7/14/23 18:43, Detlev Casanova wrote: These IDs will be used by the sysinfo command. The new IDs are: * SYSINFO_ID_BOARD_ID: The board ID as an integer * SYSINFO_ID_BOARD_REV_MAJOR: The board major revision as int * SYSINFO_ID_BOARD_REV_MINOR: The board minor revision as int

Re: [PATCH v3 00/18] bootstd: Add a bootmeth for ChromiumOS on x86

2023-07-14 Thread Tom Rini
On Fri, Jul 14, 2023 at 05:29:40PM +0800, Bin Meng wrote: > Hi Simon, > > On Thu, Jul 13, 2023 at 9:14 PM Bin Meng wrote: > > > > On Wed, Jul 12, 2023 at 11:04 PM Simon Glass wrote: > > > > > > This series adds a simple bootmeth for ChromiumOS on x86. It uses zimage > > > to boot the kernel. >

Re: [PATCH v2] bdinfo: Correct use of assertions

2023-07-14 Thread Tom Rini
On Tue, 11 Jul 2023 20:46:30 -0600, Simon Glass wrote: > This test was written for the incorrect use of assertions. Update it to > build with the previous approach, where tests fail at the first > assertion. > > All assertion functions return 0 on success and non-zero on failure. > They can be

Re: [PATCH 00/40] expo: Add an initial configuration editor

2023-07-14 Thread Tom Rini
On Thu, 01 Jun 2023 10:22:24 -0600, Simon Glass wrote: > This series provides a means to edit board configuration in U-Boot in a > graphical manner. It supports multiple menu items and allows moving > between them and selecting items. The configuration is defined in a > data format so that code

[PATCH] crc32: Drop duplicates crc header includes

2023-07-14 Thread Ilya Lukin
Fixes: 3db711085752 ("crc32: Use the crc.h header for crc functions") Signed-off-by: Ilya Lukin <4.sh...@gmail.com> --- board/sunxi/board.c | 1 - boot/android_ab.c | 1 - common/hash.c | 1 - lib/crc32.c | 1 - tools/default_image.c | 1 - 5 files changed, 5 deletions(-)

Re: [PATCH 1/2] schemas: Add firmware node schema

2023-07-14 Thread Rob Herring
On Tue, Jul 11, 2023 at 3:18 PM Simon Glass wrote: > > Add a motivation and purpose for this new proposed node. > > Signed-off-by: Simon Glass > --- > > dtschema/schemas/firmware.yaml | 83 ++ > 1 file changed, 83 insertions(+) > create mode 100644

[PATCH v3 6/6] sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_*

2023-07-14 Thread Detlev Casanova
Expose that information to the sysinfo command to let scripts make decisions based on the board id and revision. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 103 +++- 1 file changed, 70 insertions(+), 33 deletions(-) diff --git

[PATCH v3 5/6] sysinfo: rcar3: Use int instead of char for revision

2023-07-14 Thread Detlev Casanova
To be used with the sysinfo command, revision values must be considered as integers, not chars as some boards will implement BOARD_REVISION_* and might use numbers greater than 9. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 104 1 file

[PATCH v3 4/6] sysinfo: Add documentation

2023-07-14 Thread Detlev Casanova
Add documentation for the sysinfo command with examples. Signed-off-by: Detlev Casanova --- doc/usage/cmd/sysinfo.rst | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 doc/usage/cmd/sysinfo.rst diff --git a/doc/usage/cmd/sysinfo.rst

[PATCH v3 3/6] sysinfo: Add a test

2023-07-14 Thread Detlev Casanova
The test runs one of each subcommand and checks that the output matches the values in the sandbox sysinfo driver. Signed-off-by: Detlev Casanova --- configs/sandbox_defconfig | 1 + drivers/sysinfo/sandbox.c | 17 + test/cmd/Makefile | 1 + test/cmd/test_sysinfo.c | 51

[PATCH v3 2/6] cmd: Add a sysinfo command

2023-07-14 Thread Detlev Casanova
The command is able to show different information for the running system: * Model name * Board ID * Revision This command can be used by boot shell scripts to select configurations depending on the specific running system. Signed-off-by: Detlev Casanova --- cmd/Kconfig | 6 +++

[PATCH v3 1/6] sysinfo: Add IDs for board id and revision

2023-07-14 Thread Detlev Casanova
These IDs will be used by the sysinfo command. The new IDs are: * SYSINFO_ID_BOARD_ID: The board ID as an integer * SYSINFO_ID_BOARD_REV_MAJOR: The board major revision as int * SYSINFO_ID_BOARD_REV_MINOR: The board minor revision as int Signed-off-by: Detlev Casanova --- include/sysinfo.h |

[PATCH v3 0/5] Introduce the sysinfo command

2023-07-14 Thread Detlev Casanova
The command can be used to show various information that can be used to identify the running system. Currently supported subcommands are: * model: A string representing the model * id: The id of the board * revision: The revision of this board. Changes since v2: - Fix code style. - Use

[PATCH v1 6/6] power: regulator: tps65911: add regulator support

2023-07-14 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS5911 PMIC. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/tps65911_regulator.c | 375

[PATCH v1 3/6] power: pmic: add the base TPS80031 PMIC support

2023-07-14 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/tps80031.txt | 76 drivers/power/pmic/Kconfig | 6 ++

[PATCH v1 5/6] power: pmic: tps65910: add TPS65911 PMIC support

2023-07-14 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/tps65911.txt | 78 ++ drivers/power/pmic/pmic_tps65910_dm.c | 26

[PATCH v1 4/6] power: regulator: tps80031: add regulator support

2023-07-14 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS80031/TPS80032 PMICs. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/tps80031_regulator.c |

[PATCH v1 2/6] power: regulator: max77663: add regulator support

2023-07-14 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for MAXIM MAX77663 PMICs. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/max77663_regulator.c | 362

[PATCH v1 1/6] power: pmic: add the base max77663 pmic support

2023-07-14 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/max77663.txt | 84 ++ drivers/power/pmic/Kconfig | 6

[PATCH v1 0/6] Add support for PMICs used on Tegra 3 devices

2023-07-14 Thread Svyatoslav Ryhel
Patch set adds basic support for PMICs used in many Tegra 3 devices. All PMIC drivers are based on datasheets provided by vendors. Implemented API include regulator set/get voltage enable/disable and basic PMIC r/w capabilities. Drivers were tested by me on LG P895 (max77663), HTC One X

Re: Pull request: u-boot-spi/master

2023-07-14 Thread Tom Rini
On Thu, Jul 13, 2023 at 10:06:28PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > Summary: > - Add xtxtech spi-nor chip parts (Bruce Suen) > - Add bcm63xx-hsspi driver fixes (William Zhang) > > CI: > https://source.denx.de/u-boot/custodians/u-boot-spi/-/pipelines/16886 > >

Re: Please pull u-boot-marvell/master

2023-07-14 Thread Tom Rini
On Thu, Jul 13, 2023 at 04:03:08PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following Marvell MVEBU related patches into master: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: Pull request: please pull u-boot-imx-20230713

2023-07-14 Thread Tom Rini
On Thu, Jul 13, 2023 at 02:00:53PM +0200, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit 146a82c017d51eb2c3b8be33854f200f1e52a1cb: > > Merge branch 'next' (2023-07-10 14:29:14 -0400) > > are available in the Git repository at:

Re: [PATCH v2 5/6] net: add fastboot TCP documentation and IP6-only mode

2023-07-14 Thread Ying-Chun Liu (PaulLiu)
Reviewed-by: Ying-Chun Liu (PaulLiu) On 2023/5/11 00:59, Dmitrii Merkurev wrote: Command to start IP6 only TCP fastboot: fastboot tcp -ipv6 Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- cmd/fastboot.c | 29

[PATCH v3 6/7] clk: treewide: switch to clock dump from clk_ops

2023-07-14 Thread Igor Prusov
Switch to using new dump operation in clock provider drivers instead of overriding soc_clk_dump. Signed-off-by: Igor Prusov --- arch/mips/mach-pic32/cpu.c | 23 --- drivers/clk/aspeed/clk_ast2600.c | 13 - drivers/clk/clk_k210.c | 11

[PATCH v3 7/7] cmd: clk: Make soc_clk_dump static

2023-07-14 Thread Igor Prusov
After introducing dump to clk_ops there is no need to override or expose this symbol anymore. Signed-off-by: Igor Prusov --- cmd/clk.c | 4 ++-- include/clk.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/clk.c b/cmd/clk.c index 55fb96e631..59155d7902 100644 ---

[PATCH v3 5/7] cmd: clk: Use dump function from clk_ops

2023-07-14 Thread Igor Prusov
Add another loop to dump additional info from clock providers that implement dump operation. Signed-off-by: Igor Prusov --- cmd/clk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/cmd/clk.c b/cmd/clk.c index ff7c7649a1..55fb96e631 100644 --- a/cmd/clk.c +++ b/cmd/clk.c @@ -62,6

[PATCH v3 4/7] clk: Add dump operation to clk_ops

2023-07-14 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. Signed-off-by: Igor Prusov --- include/clk-uclass.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v3 3/7] clk: k210: Move soc_clk_dump function

2023-07-14 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/clk_k210.c | 92 +- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/drivers/clk/clk_k210.c

[PATCH v3 0/7] clk: Switch from soc_clk_dump to clk_ops function

2023-07-14 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

[PATCH v3 1/7] clk: zynq: Move soc_clk_dump to Zynq clock driver

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

[PATCH v3 2/7] clk: ast2600: Move soc_clk_dump function

2023-07-14 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 v2 3/3] arm: mach-k3: am62: Fixup CPU core, gpu and pru nodes in fdt

2023-07-14 Thread Francesco Dolcini
From: Emanuele Ghidoli AM62x SoC is available in multiple variant: - CPU cores (Cortex-A) AM62x1 (1 core), AM62x2 (2 cores), AM62x4 (4 cores) - GPU AM625x with GPU, AM623x without GPU - PRU (Programmable RT unit) can be present or not on AM62x2/AM62x4 Remove the relevant FDT nodes by reading

[PATCH v2 2/3] arm: mach-k3: am62: Add CTRLMMR_WKUP_JTAG_DEVICE_ID register definition

2023-07-14 Thread Francesco Dolcini
From: Emanuele Ghidoli Add register address and relevant bitmasks and shifts. Allow reading these information: - device identification - number of cores (part of device identification) - features (currently: PRU / no PRU) - security - functional safety - speed grade - temperature grade - package

[PATCH v2 1/3] arm: k3: Fix ft_system_setup so it can be enabled on any SoC

2023-07-14 Thread Francesco Dolcini
From: Emanuele Ghidoli ft_system_setup cannot be enabled on SoC without msmc sram otherwise fdt_fixup_msmc_ram function fails causing system reset. Fix by moving fdt_fixup_msmc_ram to common_fdt.c file and creating SoC (AM654, J721E and J721S2) specific files for fdt fixups. This change was

[PATCH v2 0/3] arm: mach-k3: am62: Add core number, gpu and pru autodetection FDT fixups

2023-07-14 Thread Francesco Dolcini
From: Francesco Dolcini AM62x SoC is available in multiple variant: - CPU cores (Cortex-A) AM62x1 (1 core), AM62x2 (2 cores), AM62x4 (4 cores) - GPU AM625x with GPU, AM623x without GPU - PRU (Programmable RT unit) can be present or not on AM62x2/AM62x4 Remove the relevant FDT nodes by

Re: [PATCH 14/18] board: ti: keys: add .key and .crt for fit signature signing

2023-07-14 Thread Andrew Davis
On 7/14/23 12:52 AM, Manorit Chawdhry wrote: Fit signature mechanism through the standards require the presence of .key and .crt in the folder with the same name, since we are using our custMpk only for the signing, update the format to that of standards to be compatible for packaging easily.

[PATCHv4 5/5] net/lwip: apps/http: add dns support

2023-07-14 Thread Maxim Uvarov
provide hostname to client and allow lwip to resolve it. Signed-off-by: Maxim Uvarov --- lib/lwip/apps/http/lwip-wget.c | 59 ++ 1 file changed, 53 insertions(+), 6 deletions(-) diff --git a/lib/lwip/apps/http/lwip-wget.c b/lib/lwip/apps/http/lwip-wget.c index

[PATCHv4 4/5] net/lwip: add dns command

2023-07-14 Thread Maxim Uvarov
dns lwip version of the command. This commmit might be good example how to enable new network command. Signed-off-by: Maxim Uvarov --- cmd/net.c| 41 +++- lib/lwip/Kconfig | 2 +- lib/lwip/Makefile| 2 ++

[PATCHv4 2/5] net/lwip: add lwip library for the network stack

2023-07-14 Thread Maxim Uvarov
This commit adds lwip library for the U-boot network stack. Supported commands: ping, tftp, dhcp and wget. Signed-off-by: Maxim Uvarov --- .gitignore| 9 + boot/bootmeth_pxe.c | 2 +- cmd/net.c | 48 + cmd/pxe.c

[PATCHv4 3/5] net/lwip: add doc/develop/net_lwip.rst

2023-07-14 Thread Maxim Uvarov
Just add inital doc. Signed-off-by: Maxim Uvarov --- doc/develop/index.rst| 1 + doc/develop/net_lwip.rst | 59 2 files changed, 60 insertions(+) create mode 100644 doc/develop/net_lwip.rst diff --git a/doc/develop/index.rst

[PATCHv4 1/5] net/lwip: add lwip-external submodule

2023-07-14 Thread Maxim Uvarov
This commit adds the lwip library as a git submodule. I think there has to be advantages to compile lwip inside U-boot, i.e. use the same compiler and flags as the main code. One of them is LTO and the other is to enable additional debug options for network protocol during development. Also we can

Re: [PATCH 01/18] arch: mach-k3: security: fix the check for authentication

2023-07-14 Thread Andrew Davis
On 7/14/23 12:52 AM, Manorit Chawdhry wrote: Fix regression occurred during refactoring for the mentioned commit. Fixes: bd6a24759374 ("arm: mach-k3: security: separate out validating binary logic") Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/security.c | 5 +++-- 1 file changed,

[PATCHv4 0/5] net/lwip: add lwip library for the network stack

2023-07-14 Thread Maxim Uvarov
changelog: v4: - tested with tests/py/ did some minor fixes (out of tree build, variables set after downloads). - accounted review comments for documentation. - implemented dns command - corrected wget command to not use serverip variable

Re: [PATCH 4/5] CI: Update to gcc-13.1.0

2023-07-14 Thread Tom Rini
On Fri, Jul 14, 2023 at 01:52:09PM +, Alexey Brodkin wrote: > Hi Tom, > > > As this is the current version of the public cross toolchains we use, > > upgrade to this now. > > > > Suggested-by: Alexey Brodkin > > Signed-off-by: Tom Rini > > --- > > Cc: Heinrich Schuchardt > > > >

Re: [PATCH v7 00/23] Migration to using binman for bootloader

2023-07-14 Thread Jerome Forissier
On 7/14/23 15:50, Neha Malcom Francis wrote: > This series aims to eliminate the use of additional custom repositories > such as k3-image-gen (K3 Image Generation) repo and core-secdev-k3 (K3 > Security Development Tools) that was plumbed into the U-Boot build flow > to generate boot images for

[PATCH v7 04/23] j721e: schema: yaml: Add general schema and J721E board config files

2023-07-14 Thread Neha Malcom Francis
Schema file in YAML must be provided in board/ti/common for validating input config files and packaging system firmware. The schema includes entries for rm-cfg, board-cfg, pm-cfg and sec-cfg. Board config files must be provided in board/ti/ in YAML. These can then be consumed for generation of

[PATCH 1/2] configs: visionfive2: add a trailing space to prompt

2023-07-14 Thread Chanho Park
Adds a trailing space to SYS_PROMPT to make it easier to distinguish between commands and the prompt. Signed-off-by: Chanho Park --- configs/starfive_visionfive2_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/starfive_visionfive2_defconfig

[PATCH 2/2] doc: visionfive2: apply a trailing space to the prompt

2023-07-14 Thread Chanho Park
Apply the trailing space changes in the guide document. Signed-off-by: Chanho Park --- doc/board/starfive/visionfive2.rst | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/board/starfive/visionfive2.rst b/doc/board/starfive/visionfive2.rst index

[PATCH 0/2] add a trailing space to prompt for visionfive2 board

2023-07-14 Thread Chanho Park
Adds a trailing space to SYS_PROMPT to make it easier to distinguish between commands and the prompt. Chanho Park (2): configs: visionfive2: add a trailing space to prompt doc: visionfive2: apply a trailing space to the prompt configs/starfive_visionfive2_defconfig | 2 +-

[PATCH v7 23/23] CI: Make use of buildman requirements.txt

2023-07-14 Thread Neha Malcom Francis
From: Tom Rini Now that buildman has a requirements.txt file we need to make use of it. Signed-off-by: Tom Rini Reviewed-by: Simon Glass [n-fran...@ti.com: Adding missing command from .azure-pipelines.yml] Signed-off-by: Neha Malcom Francis --- .azure-pipelines.yml | 4 .gitlab-ci.yml

[PATCH v7 22/23] buildman: Create a requirements.txt file

2023-07-14 Thread Neha Malcom Francis
From: Tom Rini At this point, buildman requires a few different modules and so we need a requirements.txt to track what modules are needed. Cc: Simon Glass Cc: Neha Malcom Francis Signed-off-by: Tom Rini Reviewed-by: Simon Glass Signed-off-by: Neha Malcom Francis ---

[PATCH v7 21/23] binman: Overwrite symlink if it already exists

2023-07-14 Thread Neha Malcom Francis
From: Andrew Davis Without this re-building will fail with an error when trying to create the symlink for the second time with an already exists error. Signed-off-by: Andrew Davis [n-fran...@ti.com: Added support for test output dir and testcase] Signed-off-by: Neha Malcom Francis ---

[PATCH v7 20/23] doc: board: ti: Update documentation for binman flow

2023-07-14 Thread Neha Malcom Francis
Earlier documentation specified builds for generating bootloader images using an external TI repository k3-image-gen and core-secdev-k3. Modify this to using the binman flow so that user understands how to build the final boot images. Signed-off-by: Neha Malcom Francis Reviewed-by: Simon Glass

[PATCH v7 19/23] k3: tools: config.mk: Update makefile and remove scripts

2023-07-14 Thread Neha Malcom Francis
Since binman is used to package bootloader images for all K3 devices, we do not have to rely on the earlier methods to package them. Scripts that were used to generate x509 certificate for tiboot3.bin and generate tispl.bin, u-boot.img have been removed. Signed-off-by: Neha Malcom Francis

[PATCH v7 18/23] arm: k3-am65x-iot2050: Use binman for tispl.bin for iot2050

2023-07-14 Thread Neha Malcom Francis
Move to using binman to generate tispl.bin which is used to generate the final flash.bin bootloader for iot2050 boards. Signed-off-by: Neha Malcom Francis Cc: Jan Kiszka Reviewed-by: Simon Glass --- arch/arm/dts/k3-am65-iot2050-boot-image.dtsi | 75 +++- 1 file changed, 74

[PATCH v7 17/23] am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img

2023-07-14 Thread Neha Malcom Francis
Support added for HS-SE, HS-FS and GP boot binaries for AM62ax. HS-SE: * tiboot3-am62ax-hs-evm.bin * tispl.bin * u-boot.img HS-FS: * tiboot3-am62ax-hs-fs-evm.bin * tispl.bin * u-boot.img GP: * tiboot3.bin --> tiboot3-am62ax-gp-evm.bin * tispl.bin_unsigned *

[PATCH v7 16/23] am62a: yaml: Add board configs for AM62ax

2023-07-14 Thread Neha Malcom Francis
Added YAML configs for AM62ax Signed-off-by: Neha Malcom Francis --- board/ti/am62ax/board-cfg.yaml | 36 + board/ti/am62ax/pm-cfg.yaml | 12 + board/ti/am62ax/rm-cfg.yaml | 1151 ++ board/ti/am62ax/sec-cfg.yaml | 379 ++

[PATCH v7 15/23] am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img

2023-07-14 Thread Neha Malcom Francis
Support added for HS-SE, HS-FS and GP boot binaries for AM62. HS-SE: * tiboot3-am62x-hs-evm.bin * tispl.bin * u-boot.img HS-FS: * tiboot3-am62x-hs-fs-evm.bin * tispl.bin * u-boot.img GP: * tiboot3.bin --> tiboot3-am62x-gp-evm.bin * tispl.bin_unsigned *

[PATCH v7 14/23] am62: yaml: Add board configs for AM62

2023-07-14 Thread Neha Malcom Francis
Added YAML configs for AM62 Signed-off-by: Neha Malcom Francis --- board/ti/am62x/board-cfg.yaml | 36 ++ board/ti/am62x/pm-cfg.yaml| 12 + board/ti/am62x/rm-cfg.yaml| 1088 + board/ti/am62x/sec-cfg.yaml | 379 4 files changed, 1515

[PATCH v7 13/23] j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img

2023-07-14 Thread Neha Malcom Francis
Support has been added for both HS-SE, HS-FS and GP images. HS-SE: * tiboot3-j721s2-hs-evm.bin * tispl.bin * u-boot.img HS-FS: * tiboot3-j721s2-hs-fs-evm.bin * tispl.bin * u-boot.img GP: * tiboot3.bin --> tiboot3-j721s2-gp-evm.bin * tispl.bin_unsigned *

[PATCH v7 12/23] j721s2: yaml: Add board configs for J721S2

2023-07-14 Thread Neha Malcom Francis
Added YAML configs for J721S2 Signed-off-by: Neha Malcom Francis --- board/ti/j721s2/board-cfg.yaml | 36 + board/ti/j721s2/pm-cfg.yaml| 12 + board/ti/j721s2/rm-cfg.yaml| 2901 board/ti/j721s2/sec-cfg.yaml | 379 + 4 files changed, 3328

[PATCH v7 11/23] am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img

2023-07-14 Thread Neha Malcom Francis
Support added for HS and GP boot binaries for AM64x. HS-SE: * tiboot3-am64x_sr2-hs-evm.bin * tispl.bin * u-boot.img HS-FS: * tiboot3-am64x_sr2-hs-fs-evm.bin * tispl.bin * u-boot.img GP: * tiboot3.bin --> tiboot3-am64x-gp-evm.bin * tispl.bin_unsigned *

[PATCH v7 10/23] am64x: yaml: Add board configs for AM64x

2023-07-14 Thread Neha Malcom Francis
Added YAML configs for AM64xx Signed-off-by: Neha Malcom Francis --- board/ti/am64x/board-cfg.yaml | 36 + board/ti/am64x/pm-cfg.yaml| 12 + board/ti/am64x/rm-cfg.yaml| 1400 + board/ti/am64x/sec-cfg.yaml | 380 + 4 files changed, 1828

[PATCH v7 09/23] am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img

2023-07-14 Thread Neha Malcom Francis
Support has been added for both HS-SE(SR 2.0) and GP(SR 2.0) images. HS-SE: * tiboot3-am65x_sr2-hs-evm.bin * sysfw-am65x_sr2-hs-evm.itb * tispl.bin * u-boot.img GP: * tiboot3.bin --> tiboot3-am65x_sr2-gp-evm.bin * sysfw.itb -->

Re: [PATCH 4/5] CI: Update to gcc-13.1.0

2023-07-14 Thread Alexey Brodkin
Hi Tom, > As this is the current version of the public cross toolchains we use, > upgrade to this now. > > Suggested-by: Alexey Brodkin > Signed-off-by: Tom Rini > --- > Cc: Heinrich Schuchardt > > Heinrich, at this point is there a newer grub we should be testing? > There's now 2 changes

[PATCH v7 08/23] am65x: yaml: Add AM65x board config files

2023-07-14 Thread Neha Malcom Francis
Added YAML configs for AM65x Signed-off-by: Neha Malcom Francis --- board/ti/am65x/board-cfg.yaml | 36 + board/ti/am65x/pm-cfg.yaml| 12 + board/ti/am65x/rm-cfg.yaml| 2068 + board/ti/am65x/sec-cfg.yaml | 379 ++ 4 files changed, 2495

[PATCH v7 07/23] j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img

2023-07-14 Thread Neha Malcom Francis
Support has been added for both HS-SE(SR 2.0), HS-FS(SR 2.0) and GP images. HS-SE: * tiboot3-j7200_sr2-hs-evm.bin * tispl.bin * u-boot.img HS-FS: * tiboot3-j7200_sr2-hs-fs-evm.bin * tispl.bin * u-boot.img GP: * tiboot3.bin -->

[PATCH v7 06/23] j7200: yaml: Add J7200 board config files

2023-07-14 Thread Neha Malcom Francis
Added YAML configs for J7200 Signed-off-by: Neha Malcom Francis --- board/ti/j721e/board-cfg_j7200.yaml | 36 + board/ti/j721e/pm-cfg_j7200.yaml| 12 + board/ti/j721e/rm-cfg_j7200.yaml| 2065 +++ board/ti/j721e/sec-cfg_j7200.yaml | 380 + 4 files

[PATCH v7 05/23] j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img

2023-07-14 Thread Neha Malcom Francis
By providing entries in the binman node of the device tree, binman will be able to find and package board config artifacts generated by TIBoardConfig with sysfw.bin and generate the final image sysfw.itb. It will also pick out the R5 SPL and sign it with the help of TI signing entry and generate

[PATCH v7 02/23] binman: ti-secure: Add support for TI signing

2023-07-14 Thread Neha Malcom Francis
The ti-secure entry contains certificate for binaries that will be loaded or booted by system firmware whereas the ti-secure-rom entry contains certificate for binaries that will be booted by ROM. Support for both these types of certificates is necessary for booting of K3 devices. Signed-off-by:

[PATCH v7 03/23] arm: dts: k3: Add support for packaging sysfw.itb and tiboot3.bin

2023-07-14 Thread Neha Malcom Francis
Board config binary artifacts must be generated to be used by binman to package sysfw.itb and tiboot3.bin for all K3 devices. For devices that follow combined flow, these board configuration binaries must again be packaged into a combined board configuration blobs to be used by binman to package

[PATCH v7 01/23] binman: ti-board-config: Add support for TI board config binaries

2023-07-14 Thread Neha Malcom Francis
The ti-board-config entry loads and validates a given YAML config file against a given schema, and generates the board config binary. K3 devices require these binaries to be packed into the final system firmware images. Signed-off-by: Neha Malcom Francis Reviewed-by: Simon Glass ---

[PATCH v7 00/23] Migration to using binman for bootloader

2023-07-14 Thread Neha Malcom Francis
This series aims to eliminate the use of additional custom repositories such as k3-image-gen (K3 Image Generation) repo and core-secdev-k3 (K3 Security Development Tools) that was plumbed into the U-Boot build flow to generate boot images for TI K3 platform devices. And instead, we move towards

Re: [PATCH v2 1/6] efi_loader: add RAM disk device path

2023-07-14 Thread Heinrich Schuchardt
On 14.07.23 07:44, Masahisa Kojima wrote: This is a preparation to add the EFI_RAM_DISK_PROTOCOL. This commit adds the RAM disk device path structure and text conversion to Device Path to Text Protocol. Signed-off-by: Masahisa Kojima --- No update since v1 include/efi_api.h

[PATCH 1/2] Revert "lib: string: Fix strlcpy return value", fix callers

2023-07-14 Thread Matthias Schiffer
Both the Linux kernel and libbsd agree that strlcpy() should always return strlen(src) and not include the NUL termination. The incorrect U-Boot implementation makes it impossible to check the return value for truncation, and breaks code written with the usual implementation in mind (for example,

[PATCH 2/2] lib/charset: fix u16_strlcat() return value

2023-07-14 Thread Matthias Schiffer
strlcat returns min(strlen(dest), count)+strlen(src). Make u16_strlcat's behaviour the same for consistency. Fixes: eca08ce94ceb ("lib/charset: add u16_strlcat() function") Signed-off-by: Matthias Schiffer --- lib/charset.c | 8 test/unicode_ut.c | 8 2 files changed, 8

  1   2   >