Re: [PATCH v2 0/4] FMP versioning support

2023-03-05 Thread Masahisa Kojima
On Mon, 6 Mar 2023 at 15:32, Takahiro Akashi wrote: > > On Mon, Mar 06, 2023 at 03:08:55PM +0900, Masahisa Kojima wrote: > > Hi Akashi-san, > > > > On Sat, 4 Mar 2023 at 10:28, Takahiro Akashi > > wrote: > > > > > > Kojima-san, > > > > > > On Wed, Mar 01, 2023 at 06:15:18PM +0900, Masahisa Kojim

Re: [RESEND PATCH] arm: mvebu: Set common SPI flash default speed and mode

2023-03-05 Thread Stefan Roese
On 3/3/23 04:27, Tony Dinh wrote: CONFIG_SF_DEFAULT_SPEED is used in SPL SPI to configure and probe the flash device during DM SPI uclass probing process, if the spi-max-frequency is not available in the DTB. Currently the max frequency is not available, because of the probing mechanism in SPI uc

Re: [PATCH v8 0/6] tpm: Support boot measurements

2023-03-05 Thread Ilias Apalodimas
Hi Eddie, This has a few failures on the CI [0]. Please have a look and let me know if you can't understand the failures [0] https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/15471 Regards /Ilias On Fri, Mar 03, 2023 at 01:25:00PM -0600, Eddie James wrote: > This series adds suppor

Re: [PATCH v2 0/4] FMP versioning support

2023-03-05 Thread Takahiro Akashi
On Mon, Mar 06, 2023 at 03:08:55PM +0900, Masahisa Kojima wrote: > Hi Akashi-san, > > On Sat, 4 Mar 2023 at 10:28, Takahiro Akashi > wrote: > > > > Kojima-san, > > > > On Wed, Mar 01, 2023 at 06:15:18PM +0900, Masahisa Kojima wrote: > > > Firmware version management is not implemented in the cur

Re: [PATCH 4/4] arm: mvebu: clearfog: Detect MMC vs SDHC and fixup fdt

2023-03-05 Thread Martin Rowe
On Sun, 5 Mar 2023 at 12:43, Pali Rohár wrote: > On Sunday 05 March 2023 21:31:00 Martin Rowe wrote: > > [upstream of vendor commit 19a96f7c40a8fc1d0a6546ac2418d966e5840a99] > > > > The Clearfog devices have only one SDHC device. This is either eMMC if > > it is populated on the SOM or SDHC if no

Re: [PATCH u-boot-mvebu] ddr: marvell: a38x: Remove unused file seq_exec.h

2023-03-05 Thread Stefan Roese
On 3/4/23 13:26, Pali Rohár wrote: DDR code does not use seq_exec.h, so remove it. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/ddr/marvell/a38x/ddr3_init.h | 1 - drivers/ddr/marvell/a38x/seq_exec.h | 64 2 files change

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-05 Thread Stefan Roese
Hi Pali, On 3/4/23 11:50, Pali Rohár wrote: Improve code for checking strapping pins which specifies boot mode source. Martin, could you test if Clearfog can be still configured into UART booting mode via HW switches and if it still works correctly? First patch is reverting UART related commit

Re: [PATCH 3/4] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-03-05 Thread Martin Rowe
On Sun, 5 Mar 2023 at 12:29, Pali Rohár wrote: > On Sunday 05 March 2023 21:30:59 Martin Rowe wrote: > > This new clearfog_spi_defconfig file is a copy of existing > > clearfog_defconfig file modified to instruct build system to generate > > final kwbimage for SPI booting and to store the environ

Re: [PATCH v2 0/4] FMP versioning support

2023-03-05 Thread Masahisa Kojima
Hi Akashi-san, On Sat, 4 Mar 2023 at 10:28, Takahiro Akashi wrote: > > Kojima-san, > > On Wed, Mar 01, 2023 at 06:15:18PM +0900, Masahisa Kojima wrote: > > Firmware version management is not implemented in the current > > FMP implementation. This series aims to add the versioning support > > in F

Re: [PATCH 2/4] arm: mvebu: clearfog: Align defconfigs

2023-03-05 Thread Martin Rowe
On Sun, 5 Mar 2023 at 12:27, Pali Rohár wrote: > On Sunday 05 March 2023 21:30:58 Martin Rowe wrote: > > Ensure that functionality of generated configs is identical between SATA > > and MMC defconfigs for Clearfog boards. The only expected difference is > > the boot mode and environment location.

[PATCH v4 3/4] Kconfig: j721e: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region

2023-03-05 Thread Manorit Chawdhry
In non-combined boot flow for K3, all the firewalls are locked by default until sysfw comes up. Rom configures some of the firewall for its usage along with the SRAM for R5 but the PSRAM region is still locked. The K3 MCU Scratchpad for j721e was set to a PSRAM region triggering the firewall excep

[PATCH v4 4/4] arm: mach-k3: Increase SYSFW max image size

2023-03-05 Thread Manorit Chawdhry
From: Dave Gerlach When booting with HS silicon, the system firmware image is 278270, which is slightly larger than currently allocated amount. This can cause unexpected behavior if this overlap interferes with other things in memory, so increase this with a slightly margin added as well to avoi

[PATCH v4 2/4] configs: j721e: Merge the HS and non-HS defconfigs

2023-03-05 Thread Manorit Chawdhry
K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config. Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS devices

[PATCH v4 1/4] arm: k3: config.mk: Add missing dependencies on tispl.bin HS

2023-03-05 Thread Manorit Chawdhry
From: Andrew Davis When building for secure devices using non-buildman based image generation the signed tispl.bin file is called tispl.bin_HS. Also build the unsigned tispl.bin file as expected. Signed-off-by: Andrew Davis Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/config.mk | 2 ++

[PATCH v4 0/4] J721E HS Fixes

2023-03-05 Thread Manorit Chawdhry
This series fixes the support for J721E board along with some maintainance for it. v4: - Fix docs - applied reviewed-by v3: - drop fixes related to other boards ( make series j721e specific ) - memory map added in docs - applied reviewed-by v2: - Merge two series - Include some more commits that

Re: [PATCH 1/4] arm: mvebu: clearfog: Fix MMC detection

2023-03-05 Thread Martin Rowe
On Sun, 5 Mar 2023 at 12:19, Pali Rohár wrote: > On Sunday 05 March 2023 21:30:57 Martin Rowe wrote: > > A388 Clearfog MMC is either SD Card or eMMC with different behaviour for > > both. Setting MMC_BROKEN_CD allows both to correctly detect MMC. > > When you are sending defconfig changes, please

Re: [PATCH v3 3/4] Kconfig: j721e: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region

2023-03-05 Thread Manorit Chawdhry
On 12:34-20230303, Tom Rini wrote: > On Fri, Mar 03, 2023 at 03:59:35PM +0530, Manorit Chawdhry wrote: > > > In non-combined boot flow for K3, all the firewalls are locked by default > > until sysfw comes up. Rom configures some of the firewall for its usage > > along with the SRAM for R5 but the

Re: [PATCH v3 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-03-05 Thread yanhong wang
On 2023/3/4 5:08, Conor Dooley wrote: > Hey Yanhong, > > On Fri, Mar 03, 2023 at 11:24:15AM +0800, Yanhong Wang wrote: >> This series of patches base on the latest branch/master, and add support >> for the StarFive JH7110 RISC-V SoC and VisionFive V2 board. In order for >> this to be achieved,

Re: [PATCH v3 16/17] riscv: dts: jh7110: Add initial StarFive VisionFive v2 board device tree

2023-03-05 Thread yanhong wang
On 2023/3/4 5:20, Conor Dooley wrote: > On Fri, Mar 03, 2023 at 11:24:31AM +0800, Yanhong Wang wrote: >> Add initial device tree for StarFive VisionFive v2 board. >> >> Signed-off-by: Yanhong Wang >> --- >> arch/riscv/dts/Makefile | 3 +- >> ...10-starfive-visionfive-2

Re: [PATCH v3 02/17] cache: starfive: Add StarFive JH7110 support

2023-03-05 Thread yanhong wang
On 2023/3/4 5:07, Conor Dooley wrote: > On Fri, Mar 03, 2023 at 11:24:17AM +0800, Yanhong Wang wrote: >> This adds support for the StarFive JH7110 SoC which also >> feature this SiFive cache controller. >> >> Signed-off-by: Yanhong Wang >> --- >> drivers/cache/cache-sifive-ccache.c | 1 + >>

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-05 Thread Tony Dinh
Hi Pali, On Sun, Mar 5, 2023 at 2:54 PM Pali Rohár wrote: > > On Sunday 05 March 2023 14:46:55 Tony Dinh wrote: > > On Sun, Mar 5, 2023 at 2:44 PM Tony Dinh wrote: > > > > > > Hi Pali, > > > > > > On Sun, Mar 5, 2023 at 3:55 AM Pali Rohár wrote: > > > > > > > > On Sunday 05 March 2023 04:21:42

[PATCH] ARM: imx: Include on-SoM microSD in list of i.MX6 DHCOM boot devices

2023-03-05 Thread Marek Vasut
Add mmc1, which is mapped to optional on-SoM microSD socket, to the list of distro boot command boot devices. Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: u-b...@dh-electronics.com --- include/configs/dh

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-05 Thread Pali Rohár
On Sunday 05 March 2023 14:46:55 Tony Dinh wrote: > On Sun, Mar 5, 2023 at 2:44 PM Tony Dinh wrote: > > > > Hi Pali, > > > > On Sun, Mar 5, 2023 at 3:55 AM Pali Rohár wrote: > > > > > > On Sunday 05 March 2023 04:21:42 Martin Rowe wrote: > > > > On Sat, 4 Mar 2023 at 10:51, Pali Rohár wrote: > >

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-05 Thread Tony Dinh
On Sun, Mar 5, 2023 at 2:44 PM Tony Dinh wrote: > > Hi Pali, > > On Sun, Mar 5, 2023 at 3:55 AM Pali Rohár wrote: > > > > On Sunday 05 March 2023 04:21:42 Martin Rowe wrote: > > > On Sat, 4 Mar 2023 at 10:51, Pali Rohár wrote: > > > > > > > Improve code for checking strapping pins which specifie

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-05 Thread Tony Dinh
Hi Pali, On Sun, Mar 5, 2023 at 3:55 AM Pali Rohár wrote: > > On Sunday 05 March 2023 04:21:42 Martin Rowe wrote: > > On Sat, 4 Mar 2023 at 10:51, Pali Rohár wrote: > > > > > Improve code for checking strapping pins which specifies boot mode source. > > > > > > Martin, could you test if Clearfog

[PATCH] ARM: dts: imx: Add WDT bindings on DH i.MX6 DHSOM

2023-03-05 Thread Marek Vasut
Add WDT reboot bindings on DH i.MX6 DHSOM to permit the platform to reboot via WDT in U-Boot. These are custom U-Boot bindings, hence they are placed in -u-boot.dtsi . Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Ba

[PATCH] ARM: imx: Convert DH i.MX6 DHSOM to DM_SERIAL

2023-03-05 Thread Marek Vasut
Enable CONFIG_DM_SERIAL on DH i.MX6 DHSOM to convert it to DM serial . Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: u-b...@dh-electronics.com --- configs/dh_imx6_defconfig | 1 + 1 file changed, 1 insert

[PATCH 4/5] microblaze: drop CONFIG_NEEDS_MANUAL_RELOC

2023-03-05 Thread Ovidiu Panait
Microblaze and m68k are the only remaining architectures that still enable CONFIG_NEEDS_MANUAL_RELOC by default. Microblaze has had runtime relocation support using CONFIG_STATIC_RELA for quite some time, since commit d58c007498 ("microblaze: Add support for run time relocation"). Drop support for

[PATCH 5/5] microblaze: drop remnants of manual reloc

2023-03-05 Thread Ovidiu Panait
Runtime relocation has been made the default for microblaze, so do the following cleanups: - drop all manual reloc codepaths in start.S - drop all STATIC_RELA ifdefs, as it is now enabled unconditionally in Kconfig Signed-off-by: Ovidiu Panait --- arch/microblaze/config.mk| 4 arch/mi

[PATCH 3/5] tools: relocate-rela: add support for handling 32-bit big endian files

2023-03-05 Thread Ovidiu Panait
Currently, a microblaze build with CONFIG_SYS_BIG_ENDIAN=y and CONFIG_STATIC_RELA=y fails with: tools/relocate-rela: Not supported machine type ELF decoding failed make[2]: *** [u-boot/Makefile:1306: u-boot-nodtb.bin] Error 1 To fix this, convert the 32-bit codepath to use the previously added elf

[PATCH 2/5] tools: relocate-rela: introduce elf16_to_cpu() and elf32_to_cpu()

2023-03-05 Thread Ovidiu Panait
Add elf16_to_cpu() and elf32_to_cpu() functions that allow to read data in both big-endian and little-endian formats. Signed-off-by: Ovidiu Panait --- tools/relocate-rela.c | 20 1 file changed, 20 insertions(+) diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c in

[PATCH 1/5] tools: relocate-rela: adjust le64_to_cpu -> le32_to_cpu in decode_elf32()

2023-03-05 Thread Ovidiu Panait
The sh_addr/sh_offset/sh_size fields in Elf32_Shdr are 32-bits wide, so use le32_to_cpu() instead of the 64-bit variant. Fixes: 5e0e1a86d327 ("tools: relocate-rela: Fix ELF decoding on big-endian hosts") Signed-off-by: Ovidiu Panait --- tools/relocate-rela.c | 6 +++--- 1 file changed, 3 inser

Re: [PATCH RFC u-boot-mvebu 0/2] arm: mvebu: Fix eMMC boot

2023-03-05 Thread Pali Rohár
On Sunday 05 March 2023 12:46:34 Pali Rohár wrote: > On Sunday 05 March 2023 02:24:27 Martin Rowe wrote: > > On Sat, 4 Mar 2023 at 10:40, Pali Rohár wrote: > > > > > Boot configuration stored in EXT_CSC register is completely ignored by > > > BootROM: > > > > > > https://lore.kernel.org/u-boot/CA

Re: [PATCH 4/4] arm: mvebu: clearfog: Detect MMC vs SDHC and fixup fdt

2023-03-05 Thread Pali Rohár
On Sunday 05 March 2023 21:31:00 Martin Rowe wrote: > [upstream of vendor commit 19a96f7c40a8fc1d0a6546ac2418d966e5840a99] > > The Clearfog devices have only one SDHC device. This is either eMMC if > it is populated on the SOM or SDHC if not. The Linux device tree assumes > the SDHC case. Detect i

Re: [PATCH 3/4] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-03-05 Thread Pali Rohár
On Sunday 05 March 2023 21:30:59 Martin Rowe wrote: > This new clearfog_spi_defconfig file is a copy of existing > clearfog_defconfig file modified to instruct build system to generate > final kwbimage for SPI booting and to store the environment in SPI. > > Signed-off-by: Martin Rowe > --- > co

Re: [PATCH 2/4] arm: mvebu: clearfog: Align defconfigs

2023-03-05 Thread Pali Rohár
On Sunday 05 March 2023 21:30:58 Martin Rowe wrote: > Ensure that functionality of generated configs is identical between SATA > and MMC defconfigs for Clearfog boards. The only expected difference is > the boot mode and environment location. > > Signed-off-by: Martin Rowe > --- > configs/clearf

Re: [PATCH 1/4] arm: mvebu: clearfog: Fix MMC detection

2023-03-05 Thread Pali Rohár
On Sunday 05 March 2023 21:30:57 Martin Rowe wrote: > A388 Clearfog MMC is either SD Card or eMMC with different behaviour for > both. Setting MMC_BROKEN_CD allows both to correctly detect MMC. When you are sending defconfig changes, please do not put there unrelated canonicalization changes. Cano

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-05 Thread Pali Rohár
On Sunday 05 March 2023 04:21:42 Martin Rowe wrote: > On Sat, 4 Mar 2023 at 10:51, Pali Rohár wrote: > > > Improve code for checking strapping pins which specifies boot mode source. > > > > Martin, could you test if Clearfog can be still configured into UART > > booting mode via HW switches and i

Re: [PATCH RFC u-boot-mvebu 3/6] arm: mvebu: Convert BOOT_FROM_* constants to function macros

2023-03-05 Thread Pali Rohár
On Sunday 05 March 2023 03:11:20 Martin Rowe wrote: > On Sat, 4 Mar 2023 at 10:51, Pali Rohár wrote: > > > This allows to merge BOOT_FROM_MMC and BOOT_FROM_MMC_ALT constants to one > > macro. And also allows to extend other BOOT_FROM_* macros for other > > variants. > > > > Signed-off-by: Pali Ro

Re: [PATCH RFC u-boot-mvebu 0/2] arm: mvebu: Fix eMMC boot

2023-03-05 Thread Pali Rohár
On Sunday 05 March 2023 02:24:27 Martin Rowe wrote: > On Sat, 4 Mar 2023 at 10:40, Pali Rohár wrote: > > > Boot configuration stored in EXT_CSC register is completely ignored by > > BootROM: > > > > https://lore.kernel.org/u-boot/CAOAjy5SYPPzWKok-BSGYwZwcKOQt_aZPgh6FTbrFd3F=8dm...@mail.gmail.com/

Re: [PATCH 2/2] net: dhcp6: pxe: Add DHCP/PXE commands for IPv6

2023-03-05 Thread Vyacheslav V. Mitrofanov
> From: Sean Edmond > > Adds commands to support DHCP and PXE with IPv6. > > New commands added (when IPv6 is enabled): > - dhcp6 > - pxe get -ipv6 > - pxe boot -ipv6 > > Signed-off-by: Sean Edmond > --- > boot/bootmeth_distro.c | 2 +- > boot/bootmeth_pxe.c| 4 +- > boot/pxe_utils.c

Re: [PATCH 1/2] net: dhcp6: Add DHCPv6 (DHCP for IPv6)

2023-03-05 Thread Vyacheslav V. Mitrofanov
> From: Sean Edmond > > Adds DHCPv6 protocol to u-boot. > > Allows for address assignement with DHCPv6 4-message exchange > (SOLICIT->ADVERTISE->REQUEST->REPLY). Includes DHCPv6 options > required by RFC 8415. Also adds DHCPv6 options required > for PXE boot. > > New configs added: > - CMD_DH

Re: [PATCH 0/2] net: DHCPv6 protocol and commands

2023-03-05 Thread Vyacheslav V. Mitrofanov
> From: Sean Edmond > > The recently integrated IPv6 patch series relies on the link-local > address, > or a statically assigned IPv6 address for network operations. This > patch > series adds IPv6 address assignment through DHCPv6. > > The implementation meets the requirements in RFC 8415 for

[PATCH 4/4] arm: mvebu: clearfog: Detect MMC vs SDHC and fixup fdt

2023-03-05 Thread Martin Rowe
[upstream of vendor commit 19a96f7c40a8fc1d0a6546ac2418d966e5840a99] The Clearfog devices have only one SDHC device. This is either eMMC if it is populated on the SOM or SDHC if not. The Linux device tree assumes the SDHC case. Detect if the device is an eMMC and fixup the device-tree so it will b

[PATCH 3/4] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-03-05 Thread Martin Rowe
This new clearfog_spi_defconfig file is a copy of existing clearfog_defconfig file modified to instruct build system to generate final kwbimage for SPI booting and to store the environment in SPI. Signed-off-by: Martin Rowe --- configs/{clearfog_sata_defconfig => clearfog_spi_defconfig} | 4 +++-

[PATCH 2/4] arm: mvebu: clearfog: Align defconfigs

2023-03-05 Thread Martin Rowe
Ensure that functionality of generated configs is identical between SATA and MMC defconfigs for Clearfog boards. The only expected difference is the boot mode and environment location. Signed-off-by: Martin Rowe --- configs/clearfog_defconfig | 1 + configs/clearfog_sata_defconfig | 11 +++

[PATCH 1/4] arm: mvebu: clearfog: Fix MMC detection

2023-03-05 Thread Martin Rowe
A388 Clearfog MMC is either SD Card or eMMC with different behaviour for both. Setting MMC_BROKEN_CD allows both to correctly detect MMC. Signed-off-by: Martin Rowe --- configs/clearfog_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/clearfog_defconfig b/c

[PATCH 0/4] arm: mvebu: clearfog: defconfig and eMMC updates

2023-03-05 Thread Martin Rowe
Minor defconfig and eMMC updates for SolidRun's A388 Clearfog devices. Changes since initial discussion: https://lists.denx.de/pipermail/u-boot/2023-February/510492.html - CONFIG_SPL_SPI selected for SPI defconfig - Runtime patching of kernel FDT added for eMMC detection Note that this patch de