Re: [PATCH v5 3/3] board: Add new Broadcom Northstar board

2023-04-24 Thread Heinrich Schuchardt
On 4/24/23 09:38, Linus Walleij wrote: This adds a simple Northstar "BRCMNS" board to be used with the BCM4708x and BCM5301x chips. The main intention is to use this with the D-Link DIR-890L and DIR-885L routers for loading the kernel into RAM from NAND memory using the BCH-1 ECC and using the

[PATCH v3 11/13] smegw01: Read the second MAC address

2023-04-24 Thread Fabio Estevam
From: Fabio Estevam Currently, only the first MAC address is read from the fuses. The second MAC address is not read and Linux assigns a random one. To prevent this behavior, read the second MAC address from the fuses and store it into the eth1addr environment variable so that it can be passed

[PATCH v3 13/13] smegw01: Fix fallback to altbootcmd

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau The bootcmd/altbootcmd mechanism is not invoked for bootmenus. Manually compare bootcount and bootlimit to implement fallback on all codepaths. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None configs/smegw01_defconfig | 2 +- 1

[PATCH v3 12/13] smegw01: Disable additional boot menu options

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau Defaults have changed, we do not want the bootmenu to contain EFI options. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None configs/smegw01_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/smegw01_defconfig

Re: [PATCH v2 1/2] mtd: cfi: respect reg address length

2023-04-24 Thread Nuno Sá
On Mon, 2023-04-24 at 09:36 +0200, Stefan Roese wrote: > On 4/24/23 09:13, Nuno Sá wrote: > > On Mon, 2023-04-24 at 08:54 +0200, Stefan Roese wrote: > > > > Hi Stefan, > > > > > > > Hi Nuno Sá > > > > > > On 4/18/23 15:07, Nuno Sá wrote: > > > > flash_get_size() will get the flash size from

Re: [PATCH v2 1/2] mtd: cfi: respect reg address length

2023-04-24 Thread Nuno Sá
On Mon, 2023-04-24 at 08:54 +0200, Stefan Roese wrote: Hi Stefan, > Hi Nuno Sá > > On 4/18/23 15:07, Nuno Sá wrote: > > flash_get_size() will get the flash size from the device itself and go > > through all erase regions to read protection status. However, the device > > mappable region (eg:

How can I boot into the kernel in EL1 mode as easily as possible?

2023-04-24 Thread forDream
Hello all. I have an ARM64-v8a device (Cortex-A55) that by default boots into the kernel at EL2, but for some reason I want to boot into the kernel in EL1 mode. Is there a relatively easy way to do this? Thank you all.

Re: [PATCH] configs: stm32f746-disco: remove a useless comment

2023-04-24 Thread Patrick DELAUNAY
Hi, On 4/22/23 16:01, Dario Binacchi wrote: Commit 8fc78fc73b7f9d ("configs: migrate CONFIG_BMP_16/24/32BPP to defconfigs") made the comment useless. Signed-off-by: Dario Binacchi --- include/configs/stm32f746-disco.h | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [PATCH v4 3/3] test: eth: IPv6 network discovery unit test

2023-04-24 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-04-21 at 17:08 -0700, emohand...@linux.microsoft.com wrote: > «Внимание! Данное письмо от внешнего адресата!» > > From: Ehsan Mohandesi > > Test router advertisement validation and processing functions. > > Signed-off-by: Ehsan Mohandesi > --- > test/dm/eth.c | 88 >

[PATCH v3 04/13] smegw01: Add altbootcmd

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau Add an altbootcmd script, which is convenient way to integrate with swupdate and perform a roll back of the previous working version in the case of update failure. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None

[PATCH v3 05/13] smegw01: Run altbootcmd in the case of failure

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau Run the altbootcmd script if any step of bootcmd fails. This ensures that always a valid image can be run. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None configs/smegw01_defconfig | 2 +- include/configs/smegw01.h | 8 +++-

[PATCH v3 10/13] smegw01: Add lockdown U-Boot env support

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau Add lockdown U-Boot env support so that only certain U-Boot environment variables are allowed to be modified. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None board/storopack/smegw01/Kconfig | 7 +

[PATCH v3 07/13] smegw01: Enable EMMC boot from multiple partitions

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau GPT Partition labels are used for determining the right root filesystem to boot from. The U-Boot environment is configured to reside in the eMMC hardware boot partition we are currently booted from. This should enable a dual copy approach for upgrading the bootloader. One

[PATCH v3 09/13] smegw01: Switch to fitImage

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau Instead of loading the zImage kernel and the devicetree separately, switch to the fitImage format, which is more convenient when working with secure boot, for example. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None

[PATCH v3 08/13] smegw01: Change default boot device to eMMC

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau Let eMMC be the default boot medium. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None include/configs/smegw01.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/smegw01.h

[PATCH v3 06/13] smegw01: Only commit to new partition if update was successful

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau When performing rootfs update via swupdate, it is convenient to check the 'ustate' variable to decide whether the update succeeded or not. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None include/configs/smegw01.h | 16

[PATCH v5 1/3] arm: dts: Import device tree for Broadcom Northstar

2023-04-24 Thread Linus Walleij
This brings in the main SoC device tree used by the Broadcom Northstar chipset, i.e. BCM4709x and BCM5301x. This is taken from the v6.3 Linux kernel. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- ChangeLog v4->v5: - Rebase on the U-Boot master branch ChangeLog v3->v4: - No changes

[PATCH v5 3/3] board: Add new Broadcom Northstar board

2023-04-24 Thread Linus Walleij
This adds a simple Northstar "BRCMNS" board to be used with the BCM4708x and BCM5301x chips. The main intention is to use this with the D-Link DIR-890L and DIR-885L routers for loading the kernel into RAM from NAND memory using the BCH-1 ECC and using the separately submitted SEAMA load command,

[PATCH v5 2/3] arm: Add support for the Broadcom Northstar SoCs

2023-04-24 Thread Linus Walleij
The original Northstar is an ARM SoC series that comprise BCM4709x and BCM5301x and uses a dual-core Cortex A9, the global timer and a few other things. This series should not be confused with North Star Plus (NSP) which is partly supported by U-Boot already. The SoC is well supported by the

[PATCH v5 0/3] Add Broadcom Northstar basic support

2023-04-24 Thread Linus Walleij
This adds the device trees and minimal code needed to run U-Boot on Broadcom Northstar SoCs. This is needed to properly boot the D-Link DIR-890L router as it refuse to directly boot compressed kernels bigger than 2MB, and well our compressed kernel is bigger than 2MB so let's put in U-Boot.

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-04-24 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-04-21 at 17:08 -0700, emohand...@linux.microsoft.com wrote: > > From: Ehsan Mohandesi > > In IPv6, the default gateway and prefix length are determined by > receiving > a router advertisement as defined in - > https://www.rfc-editor.org/rfc/rfc4861. > > Add support for sending

Re: [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M

2023-04-24 Thread Peng Fan
On 4/15/2022 12:36 AM, fedorr...@gmail.com wrote: From: Fedor Ross It seems like the ROM log events for the iMX8M are not fully covered by AN12853 i.MX ROMs Log Events, Rev. 0, May 2020. On iMX8M the ROM event ID 0x82 seems to use parameter0 which stops the parsing because the end of list

[PATCH v3 03/13] smegw01: Select bootcount support

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau Add automatic boot counter that increases after every reset. After a power-on reset, it will be initialized with 1, and each reboot will increment the value by 1. By default it is disabled if bootlimit isn't set. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam

[PATCH v3 01/13] smegw01: Enable setting additional boot params

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau Introduce EXTRA_BOOTPARAMS to allow passing additional parameters to kernel command line. This is useful for debugging purposes. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None include/configs/smegw01.h | 8 +++- 1 file

[PATCH v3 02/13] smegw01: Select CONFIG_CMD_SQUASHFS

2023-04-24 Thread Fabio Estevam
From: Eduard Strehlau Select CONFIG_CMD_SQUASHFS so that the SquashFS U-Boot commands are available. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v2: - None configs/smegw01_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v2 1/2] mtd: cfi: respect reg address length

2023-04-24 Thread Stefan Roese
On 4/24/23 09:13, Nuno Sá wrote: On Mon, 2023-04-24 at 08:54 +0200, Stefan Roese wrote: Hi Stefan, Hi Nuno Sá On 4/18/23 15:07, Nuno Sá wrote: flash_get_size() will get the flash size from the device itself and go through all erase regions to read protection status. However, the device

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-04-24 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-04-21 at 17:08 -0700, emohand...@linux.microsoft.com wrote: > > From: Ehsan Mohandesi > > In IPv6, the default gateway and prefix length are determined by > receiving > a router advertisement as defined in - > https://www.rfc-editor.org/rfc/rfc4861. > > Add support for sending

Re: [PATCH v2 7/7] smegw01: Enable EMMC boot from multiple partitions

2023-04-24 Thread Fabio Estevam
Hi Pali, On Fri, Apr 21, 2023 at 3:11 PM Pali Rohár wrote: > This does not look to be correct. Return type of the function is uint > but here you are trying to return negative number. > > I think that there is some layering or API issue. Caller of this > function probably does not expect any

Re: [PATCH v4 2/3] test/py: IPv6 network discovery test

2023-04-24 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-04-21 at 17:08 -0700, emohand...@linux.microsoft.com wrote: > «Внимание! Данное письмо от внешнего адресата!» > > From: Ehsan Mohandesi > > Test the IPv6 network discovery feature if indicated by boardenv > file. > > Signed-off-by: Ehsan Mohandesi > --- >

Re: [PATCH v3 01/13] smegw01: Enable setting additional boot params

2023-04-24 Thread Tom Rini
On Mon, Apr 24, 2023 at 08:11:54AM -0300, Fabio Estevam wrote: > From: Eduard Strehlau > > Introduce EXTRA_BOOTPARAMS to allow passing additional parameters > to kernel command line. This is useful for debugging purposes. > > Signed-off-by: Eduard Strehlau > Signed-off-by: Fabio Estevam > ---

Re: [PATCH v2 10/18] pci: Check region ranges are addressable

2023-04-24 Thread Stefan Agner
Hi Andrew, On 2022-03-29 18:58, Andrew Scull wrote: > When parsing the `ranges` DT node, check that both extremes of the > regions are addressable without overflow. This assumption can then be > safely made when processing the regions. I've bisected this patch to break USB support on 32-bit

Re: [PATCH 2/2] .mailmap: Map all Xilinx users mail ids to AMD

2023-04-24 Thread Michal Simek
On 4/24/23 08:44, Ashok Reddy Soma wrote: From: Algapally Santosh Sagar The mail ids of all the current Xilinx users are to be mapped to AMD following the merger with AMD. The mailmap file is updated accordingly. The ids of Marek Behún and Michal Simek are taken as reference.

[PATCH] imx: fix get_boot_device() for imx8

2023-04-24 Thread Tim Harvey
commit 787f04bb6a0a ("imx: add USB2_BOOT type") broke get_boot_device() for IMX8 which affects booting from SDP due to boot_instance being non-zero. Fix this by only using boot_instance for imx8ulp and imx9. Fixes: 787f04bb6a0a ("imx: add USB2_BOOT type") Signed-off-by: Tim Harvey ---

Re: [Uboot-stm32] [PATCH] ARM: dts: stm32f769-disco: remove the dsi_host node

2023-04-24 Thread Patrick DELAUNAY
Hi, On 4/22/23 16:02, Dario Binacchi wrote: The node has become useless, as described in the commit 754815b854258 ("video: stm32: remove the compatible "synopsys, dw-mipi-dsi" support") Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f769-disco-u-boot.dtsi | 5 - 1 file changed,

[PATCH v2 2/2] ARM: dts: stm32mp: alignment with v6.3

2023-04-24 Thread Patrick Delaunay
Device tree alignment with Linux kernel v6.3: - f5a058023239 - ARM: dts: stm32: add i2c nodes into stm32mp131.dtsi - 8539ebb435a5 - ARM: dts: stm32: enable i2c1 and i2c5 on stm32mp135f-dk.dts - 8539ebb435a5 - ARM: dts: stm32: add spi nodes into stm32mp131.dtsi - 15f72e0da4da - ARM: dts: stm32:

[PATCH v2 0/2] ARM: dts: stm32mp: alignment with v6.3

2023-04-24 Thread Patrick Delaunay
Alignment with Linux device tree v6.3 for STM32MP13x and STM32MP15x STMicroelectronics board and common files, SoC and pincontrol dtsi. I also include the new dt-bindings files video-interfaces.h as it is done in Linux kernel. Changes in v2: - change commit message and title with v6.3; no

Re: [PATCH v3 02/19] binman: ti-secure: Add support for TI signing

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > 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

Re: [PATCH v3 01/19] binman: ti-board-config: Add support for TI board config binaries

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > 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.

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

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > 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

Re: [PATCH v3 1/3] dm: extcom: add an uclass for extcon

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 01:05, Svyatoslav Ryhel wrote: > > Add a new simple uclass for extcon. Currently all setup is done > in the probe. Uclass struct and ops are empty for now. > > Signed-off-by: Svyatoslav Ryhel > --- > drivers/Kconfig| 2 ++ > drivers/Makefile

[RFC PATCH v1 5/5] board: amlogic: add support for AD401 board

2023-04-24 Thread Igor Prusov
The AD401 board is the Amlogic A1 SoC reference board Signed-off-by: Igor Prusov --- MAINTAINERS | 1 + arch/arm/mach-meson/Kconfig | 1 + board/amlogic/ad401/Makefile | 4 +++ board/amlogic/ad401/ad401.c | 15 ++ configs/ad401_defconfig | 54

Re: [PATCH 4/4] test: bdinfo: Add test for command bdinfo

2023-04-24 Thread Simon Glass
Hi Marek, On Sat, 22 Apr 2023 at 07:01, Marek Vasut wrote: > > Add test for command bdinfo . > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu > Cc: Michal Simek > Cc: Ovidiu Panait > Cc: Simon Glass > --- > include/test/suites.h | 1 + > test/cmd/Makefile | 1 + >

Re: [PATCH v3 19/19] doc: board: ti: Update documentation for binman flow

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > 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 >

Re: [PATCH] tools: Fall back to importlib_resources on Python 3.6

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 08:42, Jan Kiszka wrote: > > From: Jan Kiszka > > importlib.resources became part of 3.7 only. Allow using distros with > 3.6 and the importlib_resources backport. > > Signed-off-by: Jan Kiszka > --- > > Tested on OpenSUSE 15.4 with importlib_resources 1.1.0. > >

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

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for AM65x. > > tiboot3.bin, sysfw.itb, tispl.bin and u-boot.img: For HS devices > tiboot3.bin_unsigned, sysfw.itb, tispl.bin_unsigned, > u-boot.img_unsigned: For GP devices > > Note

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

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for J721S2. > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned,

Re: [PATCH v3 3/3] extcon: add MAX14526 MUIC support

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 01:05, Svyatoslav Ryhel wrote: > > MAX14526 is a powerful extcon chip which allows detection of various > plugs like usb, mhl, uart, headset etc. This version of driver > implements support of AP-usb and CP-usb/uart paths. > > Tested-by: Andreas Westman Dorcsak # LG P880

Re: [PATCH 1/4] cmd: bdinfo: Map fdt_blob and new_fdt to sysmem

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 07:01, Marek Vasut wrote: > > Map fdt_blob and new_fdt to sysmem, otherwise $fdtcontroladdr > and bdinfo output do not match and the bdinfo output address > is not a valid address accessible via sandbox memory accessors. > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu

Re: [PATCH v3 18/19] k3: tools: config.mk: Update makefile and remove scripts

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > 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. > > config.mk has been edited to only have binman required make commands. > > Scripts that

Re: [PATCH v5 4/4] test/py: efi_capsule: test for FMP versioning

2023-04-24 Thread Simon Glass
Hi Masahisa, On Wed, 19 Apr 2023 at 23:17, Masahisa Kojima wrote: > > Hi Simon, > > On Wed, 19 Apr 2023 at 10:47, Simon Glass wrote: > > > > Hi Masahisa, > > > > On Mon, 10 Apr 2023 at 03:07, Masahisa Kojima > > wrote: > > > > > > This test covers FMP versioning for both raw and FIT image, > >

Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE

2023-04-24 Thread Simon Glass
Hi Heinrich, On Thu, 20 Apr 2023 at 01:34, Heinrich Schuchardt wrote: > > On 4/20/23 09:12, AKASHI Takahiro wrote: > > On Thu, Apr 20, 2023 at 09:30:24AM +0300, Ilias Apalodimas wrote: > >> Hi Simon, > >> > >> On Thu, 20 Apr 2023 at 01:41, Simon Glass wrote: > >>> > >>> Hi Ilias, > >>> > >>> On

Re: [PATCH v3 2/3] test: Add tests for the extcon

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 01:05, Svyatoslav Ryhel wrote: > > Provide tests to the simple extcon device. > > Signed-off-by: Svyatoslav Ryhel > --- > arch/sandbox/dts/test.dts | 4 > drivers/extcon/Kconfig | 7 +++ > drivers/extcon/Makefile | 1 + >

Re: [PATCH v3 19/19] doc: board: ti: Update documentation for binman flow

2023-04-24 Thread Tom Rini
On Mon, Apr 24, 2023 at 01:42:17PM -0600, Simon Glass wrote: > Hi Neha, > > On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > > > Earlier documentation specified builds for generating bootloader images > > using an external TI repository k3-image-gen and core-secdev-k3. Modify > >

[RFC PATCH v1 4/5] pinctrl: meson: add pinctrl driver for Amlogic A1

2023-04-24 Thread Igor Prusov
Based on Linux kernel commit: dabad1ff85611 (pinctrl: meson: add pinctrl driver support for Meson-A1 SoC) Signed-off-by: Igor Prusov --- drivers/pinctrl/meson/Kconfig| 4 + drivers/pinctrl/meson/Makefile | 1 + drivers/pinctrl/meson/pinctrl-meson-a1.c | 867

[RFC PATCH v1 2/5] ARM: dts: sync meson-a1-ad401 from Linux 6.3-rc7

2023-04-24 Thread Igor Prusov
Add meson-a1-ad401.dts file from Linux 6.3-rc7 Signed-off-by: Igor Prusov --- arch/arm/dts/Makefile | 1 + arch/arm/dts/meson-a1-ad401.dts | 30 ++ 2 files changed, 31 insertions(+) create mode 100644 arch/arm/dts/meson-a1-ad401.dts diff --git

[RFC PATCH v1 3/5] ARM: meson: add A1 support

2023-04-24 Thread Igor Prusov
Add support for Amlogic A1 SoC family. Signed-off-by: Igor Prusov Signed-off-by: Evgeny Bachinin --- arch/arm/include/asm/arch-meson/a1.h | 20 ++ arch/arm/mach-meson/Kconfig | 6 +++ arch/arm/mach-meson/Makefile | 1 + arch/arm/mach-meson/board-a1.c | 59

[RFC PATCH v1 0/5] Amlogic A1 SoC Family Support

2023-04-24 Thread Igor Prusov
This patch series adds basic support for Amlogic AD401 development board based on Amlogic A1 SoC family Igor Prusov (5): ARM: dts: Add Amlogic Meson A1 DT from Linux 6.3-rc7 ARM: dts: sync meson-a1-ad401 from Linux 6.3-rc7 ARM: meson: add A1 support pinctrl: meson: add pinctrl driver for

[RFC PATCH v1 1/5] ARM: dts: Add Amlogic Meson A1 DT from Linux 6.3-rc7

2023-04-24 Thread Igor Prusov
Import Linux 6.3-rc7 Device tree and necessary bindings for Amlogic A1 board from 6a8f57ae2eb0 ("Linux 6.3-rc7"). Signed-off-by: Igor Prusov --- arch/arm/dts/meson-a1.dtsi | 161 +++ include/dt-bindings/gpio/meson-a1-gpio.h | 73 ++ 2 files changed,

Re: [PATCH] fdt_support: fix comments syntax error

2023-04-24 Thread Simon Glass
On Mon, 24 Apr 2023 at 14:51, Hugo Villeneuve wrote: > > From: Hugo Villeneuve > > Fix comments syntax error in fdt_node_offset_by_compat_reg() > description: > compatiable -> compatible > > Signed-off-by: Hugo Villeneuve > --- > common/fdt_support.c | 4 ++-- > 1 file changed, 2

Re: [PATCH] boot/Kconfig: fix comments syntax error

2023-04-24 Thread Simon Glass
On Mon, 24 Apr 2023 at 14:53, Hugo Villeneuve wrote: > > From: Hugo Villeneuve > > Fix comments syntax error in SPL_LOAD_FIT_APPLY_OVERLAY description. > > Signed-off-by: Hugo Villeneuve > --- > boot/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH] test: fdt: Fix copyright message

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 07:00, Marek Vasut wrote: > > Drop the map_to_sysmem() copy paste error. No functional change. > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu > Cc: Michal Simek > Cc: Ovidiu Panait > Cc: Simon Glass > --- > test/cmd/fdt.c | 2 +- > 1 file changed, 1

Re: [PATCH v3 07/19] j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for J7200. > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned and

Re: [PATCH v3 08/25] menu: Make use of CLI character processing

2023-04-24 Thread Simon Glass
Hi, On Sun, 23 Apr 2023 at 19:49, Tom Rini wrote: > > On Tue, Apr 18, 2023 at 07:49:34PM -0600, Simon Glass wrote: > > Hi Daniel, > > > > On Tue, 11 Apr 2023 at 14:19, Daniel Golle wrote: > > > > > > On Fri, Jan 06, 2023 at 08:52:26AM -0600, Simon Glass wrote: > > > > Avoid duplicating some of

Re: [PATCH v3 17/19] am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for AM62ax. > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned and

Re: [PATCH v9] core: fdtaddr: use map_sysmem() as cast for the return

2023-04-24 Thread Simon Glass
On Sun, 23 Apr 2023 at 03:19, Johan Jonker wrote: > > For the devfdt_get_addr_index_ptr() and devfdt_get_addr_size_index_ptr() > function use map_sysmem() function as cast for the return for use in > sandbox. Also fix sandbox test. > > Signed-off-by: Johan Jonker > --- > > Apply after: > [PATCH

Re: [PATCH 3/4] cmd: bdinfo: Print ethaddr of current MAC

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 07:01, Marek Vasut wrote: > > Instead of always printing ethaddr of MAC 0, print eth%daddr of the current > MAC. > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu > Cc: Michal Simek > Cc: Ovidiu Panait > Cc: Simon Glass > --- > cmd/bdinfo.c | 20

Re: [BUG] issues with new bootflow, uefi and virtio

2023-04-24 Thread Simon Glass
Hi Vincent, On Tue, 11 Apr 2023 at 06:00, Vincent Stehlé wrote: > > On Fri, Apr 07, 2023 at 05:31:06PM +1200, Simon Glass wrote: > .. > > > When combined with the patch from Mathew[1], it does indeed repair the > > > case of > > > efi boot with two virtio disks, specifically when the first

Re: [PATCH] Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"

2023-04-24 Thread Simon Glass
Hi Rasmus, On Tue, 18 Apr 2023 at 23:30, Rasmus Villemoes wrote: > > On 19/04/2023 03.49, Simon Glass wrote: > > Hi Rasmus, > > > > Returning to this old thread... > > > >> > >> There's no problematic device tree, having two nodes with the same > >> (base)name is perfectly fine and in fact

Re: distro_boot vs. env-based bootmenu

2023-04-24 Thread Simon Glass
Hi Frank, On Fri, 21 Apr 2023 at 10:03, Frank Wunderlich wrote: > > Maybe you have an idea because your patch removes distro-boot > > https://patchwork.ozlabs.org/project/uboot/patch/20230409084454.v9.8.I4cf7708a1ba953b9abd81375d93af34665c7b251@changeid/ > > For missing linebreak for autoboot

[PATCH] fdt_support: fix comments syntax error

2023-04-24 Thread Hugo Villeneuve
From: Hugo Villeneuve Fix comments syntax error in fdt_node_offset_by_compat_reg() description: compatiable -> compatible Signed-off-by: Hugo Villeneuve --- common/fdt_support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/fdt_support.c

Unable to implement board fdt-fixup for imx8m CPU

2023-04-24 Thread Hugo Villeneuve
Hi, according to this document: doc/develop/driver-model/fdt-fixup.rst it is suggested that boards implement the board_fix_fdt() function to tweak the device tree. I am trying to do just that, but unfortunately I cannot because the following source file already has an implementation of

[PATCH] boot/Kconfig: fix comments syntax error

2023-04-24 Thread Hugo Villeneuve
From: Hugo Villeneuve Fix comments syntax error in SPL_LOAD_FIT_APPLY_OVERLAY description. Signed-off-by: Hugo Villeneuve --- boot/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/Kconfig b/boot/Kconfig index ad035695a4..9cb7a14628 100644 --- a/boot/Kconfig +++

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

2023-04-24 Thread Simon Glass
On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for AM62 > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned,

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-24 Thread Simon Glass
Hi Tony, On Wed, 19 Apr 2023 at 21:55, Tony Dinh wrote: > > On Wed, Apr 19, 2023 at 6:22 PM Tony Dinh wrote: > > > > HI Simon, > > > > On Tue, Apr 18, 2023 at 6:46 PM Simon Glass wrote: > > > > > > Hi Tony, > > > > > > On Mon, 3 Apr 2023 at 15:42, Tony Dinh wrote: > > > > > > > > Use

Re: [PATCH v3 03/19] ti: sysfw: tiboot3: Add support for packaging sysfw.itb and tiboot3.bin

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Board config binary artifacts must be populated in the R5 output > directory to be used by binman to package sysfw.itb and tiboot3.bin. > > For devices that follow combined flow, these board configuration > binaries must again

Re: [PATCH 2/4] cmd: bdinfo: Wrap network information printing into print_eth()

2023-04-24 Thread Simon Glass
On Sat, 22 Apr 2023 at 07:01, Marek Vasut wrote: > > Move all the network information printing into print_eth(), > no functional change. > > Signed-off-by: Marek Vasut > --- > Cc: Jason Liu > Cc: Michal Simek > Cc: Ovidiu Panait > Cc: Simon Glass > --- > cmd/bdinfo.c | 8 > 1 file

Re: [PATCH v3 11/19] am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img

2023-04-24 Thread Simon Glass
Hi Neha, On Fri, 21 Apr 2023 at 06:32, Neha Malcom Francis wrote: > > Support added for HS and GP boot binaries for AM64x. > > tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices > tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices > tiboot3.bin_unsigned, tispl.bin_unsigned,

Re: Unable to implement board fdt-fixup for imx8m CPU

2023-04-24 Thread Simon Glass
Hi Hugo, On Mon, 24 Apr 2023 at 14:53, Hugo Villeneuve wrote: > > Hi, > according to this document: > > doc/develop/driver-model/fdt-fixup.rst > > it is suggested that boards implement the board_fix_fdt() function to tweak > the device tree. I am trying to do just that, but unfortunately I

Re: [PATCH v4 01/12] arm: mach-k3: Move MSMC fixup to SoC level

2023-04-24 Thread Tom Rini
On Thu, Apr 06, 2023 at 11:38:10AM -0500, Andrew Davis wrote: > The MSMC fixup is something we do based on SoC, not based on the board. > So this fixup does not belong in the board files. Move this to the > mach-k3 common file so that it does not have to be done in each board > that uses these

Re: [PATCH v2 01/10] arm: dts: k3-j721s2-r5: add a72 cluster power domain node

2023-04-24 Thread Tom Rini
On Fri, Apr 14, 2023 at 09:47:52AM +0530, Manorit Chawdhry wrote: > adds a72 cluster to control from the rproc driver > > Signed-off-by: Manorit Chawdhry For the series, applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] include: configs: j721e_evm: Fix name_fdt for J7200

2023-04-24 Thread Tom Rini
On Fri, Apr 14, 2023 at 04:33:52PM +0530, Neha Malcom Francis wrote: > Currently, name_fdt is not set for J7200, fix this so right DTB is > picked during boot. > > Signed-off-by: Neha Malcom Francis Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 01/17] arm: dts: am3x: Update devicetree header comments to sync with v6.3-rc6

2023-04-24 Thread Tom Rini
On Tue, Apr 11, 2023 at 01:24:54PM -0500, Andrew Davis wrote: > Signed-off-by: Andrew Davis For the series, applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH 02/31] u_boot_pylib: Correct name of readme

2023-04-24 Thread Simon Glass
This has an rst prefix rather than md. Fix it. Signed-off-by: Simon Glass --- tools/u_boot_pylib/README.rst | 2 +- tools/u_boot_pylib/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/u_boot_pylib/README.rst b/tools/u_boot_pylib/README.rst index

[PATCH 03/31] u_boot_pylib: Make pty optional

2023-04-24 Thread Simon Glass
This library is not available on Windows. Detect this and work around it by using a normal pipe. Signed-off-by: Simon Glass --- scripts/make_pip.sh | 9 +++-- tools/u_boot_pylib/cros_subprocess.py | 28 ++- 2 files changed, 30 insertions(+), 7

[PATCH 04/31] binman: Avoid using a symlink

2023-04-24 Thread Simon Glass
Use a small Python script instead of a symlink to avoid problems with Windows. Signed-off-by: Simon Glass --- tools/binman/binman | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) mode change 12 => 100755 tools/binman/binman diff --git a/tools/binman/binman

[PATCH 01/31] patman: Declare the future Series memory

2023-04-24 Thread Simon Glass
This member is used in series.MakeCcFile() so should be declared in the Series class. Add a declaration to silence the warning. Signed-off-by: Simon Glass --- tools/patman/commit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/patman/commit.py b/tools/patman/commit.py index

[PATCH 17/31] sandbox: Allow weak symbols to be dropped

2023-04-24 Thread Simon Glass
The sandbox build makes use of a small number of weak symbols. Allow these to be dropped when building for the PE format, since its support for weak symbols is poor. Signed-off-by: Simon Glass --- cmd/bootefi.c | 3 ++- cmd/bootz.c | 3 +++

[PATCH 24/31] build: Disable weak symbols for MSYS2

2023-04-24 Thread Simon Glass
Weak symbols are not well supported by the PE format, so disable them. We need to manually ensure that only one function is present in the source code. Add a Kconfig option to control this and enable it when building for Windows. Signed-off-by: Simon Glass --- Kconfig

[PATCH 18/31] sections: Drop use of linux/types.h

2023-04-24 Thread Simon Glass
Use 'unsigned long' instead of 'ulong' so this file does not need to include the linux/types.h header file. This allows it to be built with MSYS2. Signed-off-by: Simon Glass --- include/asm-generic/sections.h | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

[PATCH 19/31] sandbox: Drop incorrect inclusion of linux/types.h

2023-04-24 Thread Simon Glass
This header file should only be included in U-Boot standalone files, not those built in the Linux environment. When not building for Linux, the header file does not exist, except in the U-Boot tree. In any case, it should not be used. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 1 -

[PATCH 22/31] sandbox: Fix up setting of monitor_len on MSYS2

2023-04-24 Thread Simon Glass
The required linker symbols are not present. For now just return 0 in this case. Signed-off-by: Simon Glass --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 1688e27071fc..4f380d7c82c8 100644 ---

[PATCH 23/31] ctype: Avoid using a symlink

2023-04-24 Thread Simon Glass
Windows doesn't really support symlinks so fails to build this file. Use a single-line #include instead. Signed-off-by: Simon Glass --- include/ctype.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) mode change 12 => 100644 include/ctype.h diff --git a/include/ctype.h

[PATCH 27/31] Makefile: Disable LTO when building with MSYS2

2023-04-24 Thread Simon Glass
This creates a lot of errors of the form: `__stack_chk_fail' referenced in section `.text' of ...ltrans.o: defined in discarded section `.text' of common/stackprot.o (symbol from plugin) Drop LTO for now. Signed-off-by: Simon Glass --- Makefile | 2 ++ 1 file changed, 2 insertions(+)

[PATCH 21/31] test: Avoid strange symbols in the assembler file

2023-04-24 Thread Simon Glass
This works correctly on Linux with ELF but not on Windows with PE, since it creates assembly symbols with invalid names. Use the lowest/highest valid characters instead. This should still work correctly, since we have no tests starting with $ and none starting with 'z' at present. Signed-off-by:

[PATCH 29/31] doc: Show how to build sandbox for MSYS2

2023-04-24 Thread Simon Glass
Add instructions for building u-boot.exe to run on Windows. Signed-off-by: Simon Glass --- doc/build/gcc.rst | 35 +++ 1 file changed, 35 insertions(+) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index a0650a51db4b..40d0bde52413 100644 ---

[PATCH 25/31] Makefile: Disable unsupported compiler options with PE

2023-04-24 Thread Simon Glass
The MSYS2 compiler does not support some of these options. Drop them to avoid build errors. Signed-off-by: Simon Glass --- Makefile | 2 ++ scripts/Makefile.lib | 5 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index

Re: Unable to implement board fdt-fixup for imx8m CPU

2023-04-24 Thread Adam Ford
On Mon, Apr 24, 2023 at 4:57 PM Hugo Villeneuve wrote: > > On Mon, 24 Apr 2023 15:01:35 -0600 > Simon Glass wrote: > > > Hi Hugo, > > > > On Mon, 24 Apr 2023 at 14:53, Hugo Villeneuve wrote: > > > > > > Hi, > > > according to this document: > > > > > > doc/develop/driver-model/fdt-fixup.rst

[PATCH 06/31] pylibfdt: Allow building on Windows

2023-04-24 Thread Simon Glass
Handle the different shared-object extension with MSYS2 by creating a new SOEXT variable. Signed-off-by: Simon Glass --- Makefile | 11 +++ scripts/dtc/pylibfdt/Makefile | 16 +--- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/Makefile

[PATCH 05/31] binman: Don't require a HOME directory

2023-04-24 Thread Simon Glass
This doesn't exist on Windows, so use os.expanduser() instead. Signed-off-by: Simon Glass --- tools/binman/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/cmdline.py b/tools/binman/cmdline.py index 4b875a9dcda3..fafccab06012 100644 ---

[PATCH 11/31] sandbox: Provide an EFI link script for PE

2023-04-24 Thread Simon Glass
Add another case for sandbox, when it is built on Windows. Signed-off-by: Simon Glass --- arch/sandbox/config.mk | 4 +- arch/x86/lib/crt0_x86_64_efi.S | 2 + arch/x86/lib/pe_x86_64_efi.lds | 83 ++ 3 files changed, 88 insertions(+), 1 deletion(-)

  1   2   >