[PATCH] arm: dts: k3-am62a-*-binman: Update ti-dm blob

2025-05-02 Thread Daniel Schultz
With [1], TI changed the Device Manager for the AM62Ax to an EdgeAI based firmware. Update all binman device-tree files to match the latest firmware name. 1: https://git.ti.com/cgit/arago-project/meta-ti/commit/?h=scarthgap&id=430bab80d46ed921e4d4dc8ecaad8a4903b514c3 Signed-off-by: Da

Re: [PATCH 1/3] arm: mach-k3: am62a: Fixup CPU core, DSS, CAN-FD and Video-codec nodes in fdt

2025-05-02 Thread Daniel Schultz
ve literally the same logic for AM62 and AM62Ax. I also have temperature fixup patches for the AM64 which are identical again. Would be nice to move most of this logic into a common part. Thanks for sending those patches! - Daniel

Re: [PATCH 3/3] arm: mach-k3: am62a: Fixup a53 max cpu frequency by speed-grade

2025-05-02 Thread Daniel Schultz
ICE_ID); + u32 speed_grade = (dev_id & JTAG_DEV_SPEED_MASK) >> + JTAG_DEV_SPEED_SHIFT; + + return 'A' - 1 + speed_grade; +} + +static inline int k3_get_a53_max_frequency(void) +{ + if (k3_get_speed_grade() <= 'N') + return 8; + ^ empty lin

Re: [PATCH v1] board: ti: common: Kconfig: add CMD_CACHE

2025-05-02 Thread Daniel Schultz
Reviewed-by: Daniel Schultz --- board/ti/common/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/board/ti/common/Kconfig b/board/ti/common/Kconfig index c03aa3a368f..d578ee44ae8 100644 --- a/board/ti/common/Kconfig +++ b/board/ti/common/Kconfig @@ -26,6 +26,7 @@ config

Re: [PATCH 3/3] board: phytec: phycore_am62ax: Update Environment

2025-04-29 Thread Daniel Schultz
On 4/28/25 18:10, Tom Rini wrote: On Mon, Apr 28, 2025 at 07:49:04AM -0700, Daniel Schultz wrote: Add fit_addr_r to the environment to allow us to boot from a FIT image. Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger

[PATCH] configs: phycore_am62x_a53_defconfig: Remove CONFIG_SYS_BOOTM_LEN

2025-04-29 Thread Daniel Schultz
This config was defined with the default value of 8 MiB. However, the default value is different when CONFIG_ARM64 is enabled and should be 64 MiB. Remove this config from the A53 defconfig and use the correct default config. Signed-off-by: Daniel Schultz --- configs

[PATCH 3/3] board: phytec: phycore_am62ax: Update Environment

2025-04-28 Thread Daniel Schultz
Add fit_addr_r to the environment to allow us to boot from a FIT image. Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger ranger to provide kernel images which are not stripped down too much. Signed-off-by: Daniel Schultz

[PATCH 2/3] include: env: phytec: k3_net: Use get_cmd

2025-04-28 Thread Daniel Schultz
'net_fetch_cmd' is not defined by the K3 board files. They use the more common 'get_cmd' from NXP products. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_net.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/env/phytec/k3_net.env

[PATCH 1/3] include: env: phytec: k3_net: Remove net_apply_extensions

2025-04-28 Thread Daniel Schultz
Extensions are now handled by the board-code. Remove this non-existing function to proper boot from network. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_net.env | 1 - 1 file changed, 1 deletion(-) diff --git a/include/env/phytec/k3_net.env b/include/env/phytec/k3_net.env index

SpacemiT K1x / Ky X1 DRAM init

2025-04-24 Thread Daniel Maslowski
Hey everyone, As discussed in the last community call, I have written a fully open source implementation of the full DRAM init for the K1x/X1 in Rust, based on the vendor U-Boot code. This would be trivial to translate to C. I would be happy if someone could pick this up for upstream SPL. Feel fre

Re: [PATCH] mips: octeon: remove unused middle expression

2025-04-24 Thread Daniel Schwierzeck
2 files changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Daniel Schwierzeck -- - Daniel

Re: [PATCH 1/1] configs: add UNIT_TESTS to big-endian Malta boards

2025-04-22 Thread Daniel Schwierzeck
(+) Reviewed-by: Daniel Schwierzeck -- - Daniel

Flashing Kernel + Bootloader to eMMC with Rollback Support Using Boot0/Boot1 (i.MX93 + U-Boot)

2025-04-22 Thread Daniel Thungren
t to work with boot0/boot1 on i.MX93? Any insight or guidance would be greatly appreciated! Thank you in advance. Best regards, Daniel

Re: [PATCH 1/1] net: phy: Add the Airoha EN8811H PHY driver

2025-04-19 Thread Daniel Golle
Hi Lucien, Hi Marek, On Fri, Apr 18, 2025 at 11:57:19PM +0800, Lucien.Jheng wrote: > Hi Marek Vasut > > Thanks for the review. > > The next commit will change the loading of the PHY firmware to the > filesystem on a block device. Please keep in mind that most systems using this PHY are (like th

Re: [PATCH] mach-k3: common_fdt: Fix Label Issue

2025-04-15 Thread Daniel Schultz
On 4/15/25 00:59, Tom Rini wrote: On Sun, Apr 06, 2025 at 11:07:11PM -0700, Daniel Schultz wrote: Labels are not allowed before declarations. Add a semicolon after the label to introduce an empty statement. This will fix following error: arch/arm/mach-k3/common_fdt.c: In function

[PATCH v3] mach-k3: common_fdt: Move carveout struct

2025-04-15 Thread Daniel Schultz
on_fdt: create a reserved memory node") Signed-off-by: Daniel Schultz Reviewed-by: Udit Kumar --- Changes in v2: * Moved carveout struct at the beginning instead of adding an dummy statement. Changes in v3: * Removed .end assignment from carveout definition. arch/arm/mach-k3/common_fdt.

[PATCH v2] mach-k3: common_fdt: Move carveout struct

2025-04-10 Thread Daniel Schultz
on_fdt: create a reserved memory node") Signed-off-by: Daniel Schultz --- Changes in v2: * Moved carveout struct at the beginning instead of adding an dummy statement. arch/arm/mach-k3/common_fdt.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-k3/c

Re: [PATCH] mach-k3: common_fdt: Fix Label Issue

2025-04-09 Thread Daniel Schultz
On 4/7/25 10:26, Neha Malcom Francis wrote: Hi Udit On 07/04/25 13:51, Kumar, Udit wrote: Hi Daniel. Thanks for patch On 4/7/2025 11:37 AM, Daniel Schultz wrote: Labels are not allowed before declarations. Add a semicolon after the label to introduce an empty statement. This will fix

[PATCH] mach-k3: common_fdt: Fix Label Issue

2025-04-06 Thread Daniel Schultz
ved memory node") Signed-off-by: Daniel Schultz --- I'm open to other suggestions! This is just the easiest way to fix this compile error. BTW, master is fine since 096aa229a9e is only on next. arch/arm/mach-k3/common_fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH 2/2] tools/fit_check_sign: make key optional

2025-03-28 Thread Daniel Golle
On Sat, Mar 29, 2025 at 03:13:01AM +, Daniel Golle wrote: > Allow invoking fit_check_sig without the key parameter, allowing to > validate only checksums and hashes for unsigned images. Sadly I've missed making the munmap() of the key_blob conditional as well, and while glibc

[PATCH 3/3] configs: phycore_am62x_a53_defconfig: Enable gpio

2025-03-27 Thread Daniel Schultz
The AM62x uses the DA8XX (DaVinci) GPIO controller. Enable CONFIG_DA8XX_GPIO to support GPIO access from the Cortex-A53. Also enable the 'gpio' command to allow users to interact with GPIOs from the U-Boot shell. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig |

[PATCH 1/3] configs: phycore_am64x_a53_defconfig: Enable remoteproc cmd

2025-03-27 Thread Daniel Schultz
This enables the 'rproc' command, allowing users to start, stop, and manage co-processors as well as load firmware images. Useful for systems with auxiliary cores, such as M4 or R5 cores in the AM64x soc. Signed-off-by: Daniel Schultz --- configs/phycore_am64x_a53_defconfig | 1

[PATCH 2/3] configs: phycore_am62x_a53_defconfig: Enable remoteproc cmd

2025-03-27 Thread Daniel Schultz
This enables the 'rproc' command, allowing users to start, stop, and manage co-processors as well as load firmware images. Useful for systems with auxiliary cores, such as the M4 core in the AM62x soc. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig | 1 + 1 fi

Re: [PATCH 1/8] arm: dts: k3-am625-phyboard-lyra-rdk: Add boot phase tag to phy_gmii_sel

2025-03-27 Thread Daniel Schultz
: Daniel Schultz --- .../arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi b/arch/arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi index 2bc5acbec23..253ca297e12

Has CVE-2024-42040 ever been addressed?

2025-03-25 Thread Daniel Leidert
Hello, CVE-2024-42040 was published last year. But I cannot find any response to it, nor does it seem that it has been addressed yet. Has it been missed? Will it be addressed in the future? Regards, Daniel signature.asc Description: This is a digitally signed message part

Re: [PATCH v2 2/2] arch: arm: dts: k3-am642-phycore-som-binman: Add custMpk to overlays

2025-02-27 Thread Daniel Schultz
Hi Tom, I don't know how strict you're with the upcoming release candidates, but would be great if these two patches still can make it into the next release. Best Regards, Daniel On 2/11/25 07:42, Daniel Schultz wrote: There are some device-tree overlays with missing entries for t

Re: [PATCH] Add 'bootsource' /chosen property

2025-02-20 Thread Daniel Golle
On Thu, Feb 20, 2025 at 04:04:27PM +0100, Quentin Schulz wrote: > Hi Daniel, > > On 2/15/25 4:13 PM, Daniel Golle wrote: > > Hi Quentin, > > > > On 10 February 2025 16:25:23 UTC, Quentin Schulz > > wrote: > > > [...] > > > What I can say fro

Re: [PATCH] Add 'bootsource' /chosen property

2025-02-15 Thread Daniel Golle
Hi Quentin, On 10 February 2025 16:25:23 UTC, Quentin Schulz wrote: > [...] >What I can say from glancing at the code is that for Rockchip they do the >following: > >Register a bootsource type (e.g. MMC, SPI, I2C, USB, etc...), a bootsource >instance of that type (e.g. MMC0, SPI3, I2C7, ...).

[PATCH v2 2/2] arch: arm: dts: k3-am642-phycore-som-binman: Add custMpk to overlays

2025-02-10 Thread Daniel Schultz
There are some device-tree overlays with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz --- Changes: v2: Removed keyfile definitions which are already defined in k3-binman.dtsi arch/arm/dts/k3-am642-phycore-som-binman.dtsi

[PATCH v2 1/2] arch: arm: dts: k3-am625-phycore-som-binman: Add custMpk to overlays

2025-02-10 Thread Daniel Schultz
There are some device-tree overlays with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz --- Changes: v2: Removed keyfile definitions which are already defined in k3-binman.dtsi arch/arm/dts/k3-am625-phycore-som-binman.dtsi

[PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH

2025-02-10 Thread Daniel Schultz
Enable ENV_IS_IN_SPI_FLASH to read the environment from the SPI flash when booting from it. The oftree, kernel and ramdisk sizes are located in this environment and therefore required to boot an initramfs. Signed-off-by: Daniel Schultz --- configs/phycore_am64x_a53_defconfig | 2 ++ 1 file

[PATCH 3/4] board: Phytec: phycore_am64x: Increase size for Image in SPI

2025-02-10 Thread Daniel Schultz
Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger ranger to provide kernel images which are not stripped down too much. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am64x/phycore_am64x.env | 2 +- 1 file changed, 1

[PATCH 4/4] board: Phytec: phycore_am62x: Increase size for Image in SPI

2025-02-10 Thread Daniel Schultz
Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger ranger to provide kernel images which are not stripped down too much. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am62x/phycore_am62x.env | 2 +- 1 file changed, 1

[PATCH 2/4] configs: phycore_am62x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH

2025-02-10 Thread Daniel Schultz
Enable ENV_IS_IN_SPI_FLASH to read the environment from the SPI flash when booting from it. The oftree, kernel and ramdisk sizes are located in this environment and therefore required to boot an initramfs. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig | 2 ++ 1 file

Re: [PATCH 1/4] board: phytec: common: k3: Introduce Configs to Sign Images

2025-02-09 Thread Daniel Schultz
On 07.02.25 18:07, Andrew Davis wrote: On 2/7/25 12:51 AM, Daniel Schultz wrote: Private keys to sign bootloader images shouldn't be commit or part of this repository. Add config entries to use keys located outside of U-Boot to sign images. The custMpk.pem was always a placeholder, we

[PATCH 2/2] arch: arm: dts: k3-am642-phycore-som-binman: Add custMpk to all images

2025-02-09 Thread Daniel Schultz
There are some device-tree overlays and firmwares with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz --- arch/arm/dts/k3-am642-phycore-som-binman.dtsi | 49 --- 1 file changed, 41 insertions(+), 8 deletions

[PATCH 1/2] arch: arm: dts: k3-am625-phycore-som-binman: Add custMpk to all images

2025-02-09 Thread Daniel Schultz
There are some device-tree overlays and firmwares with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz --- arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 49 --- 1 file changed, 41 insertions(+), 8 deletions

[PATCH v3 6/6] test/py: fs: Add fstest/rnfile test

2025-02-07 Thread Daniel Venzin
Extend the test_fs test suite with tests to verify operations related to FAT file renaming. Signed-off-by: Daniel Venzin --- Changes in v3: - Verify FAT file rename functionality with unit tests test/py/tests/test_fs/conftest.py| 75 ++ test/py/tests/test_fs

[PATCH v3 5/6] cmd: fat: Add fatrnfile command

2025-02-07 Thread Daniel Venzin
The FAT rename file command supports renaming of a file, used by fs_test test suite. Signed-off-by: Daniel Venzin --- Changes in v3: - Add fatrnfile command for renaming files in a FAT file system cmd/fat.c| 13 + fs/fs.c | 20 include/fs.h | 2

[PATCH v3 4/6] fs: fat: Support basic file rename

2025-02-07 Thread Daniel Venzin
This implementation currently does not support moving files between directories. Signed-off-by: Daniel Venzin --- Changes in v3: - Abort the rename if the destination is a path instead of a file Changes in v2: - Separate the rename implementation from changes in the filesystem layer

[PATCH v3 2/6] efi_loader: Support for file renaming

2025-02-07 Thread Daniel Venzin
File renaming is necessary for features like systemd-boot bootcounting. Signed-off-by: Daniel Venzin --- (no changes since v2) Changes in v2: - Use EFI_ACCESS_DENIED for unsuccessful renames - Avoid using of "== 0" - Move the call to set_blk_dev earlier in the sequence lib/

[PATCH v3 3/6] fs: fat: Refactor delete_dentry_long interface

2025-02-07 Thread Daniel Venzin
Directory entries cannot be deleted without also removing their corresponding FAT entries. This refactor allows for individual selection of deleting the directory entry and the FAT entry, facilitating better reuse of existing functionality. Signed-off-by: Daniel Venzin --- (no changes since v2

[PATCH v3 1/6] fs: Add unimplemented rename hook to FS layer

2025-02-07 Thread Daniel Venzin
The EFI API supports file renaming, which is required by systemd-stub for its bootcounting implementation. Signed-off-by: Daniel Venzin --- (no changes since v2) Changes in v2: - Adapt variable names for better consistency - Add missing rename hooks fs/fs.c | 30

[PATCH v3 0/6] FAT file renaming

2025-02-07 Thread Daniel Venzin
nitialized with fat_itr_root - Delete orphaned FAT entry after copying file metadata Daniel Venzin (6): fs: Add unimplemented rename hook to FS layer efi_loader: Support for file renaming fs: fat: Refactor delete_dentry_long interface fs: fat: Support basic file rename cmd: fat: Add fatrnfi

[PATCH 4/4] arch: arm: dts: k3-am642-phycore-som-binman: Add custMpk and ti-degenerate keys with CONFIG entries

2025-02-06 Thread Daniel Schultz
From: Nathan Morrisson Add the SMPK and ti-degenerate keys using CONFIG entries. These keys are set by the build system and are stored outside of u-boot. Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- arch/arm/dts/k3-am642-phycore-som-binman.dtsi | 70

[PATCH 3/4] arch: arm: dts: k3-am625-phycore-som-binman: Add custMpk and ti-degenerate keys with CONFIG entries

2025-02-06 Thread Daniel Schultz
From: Nathan Morrisson Add the SMPK and ti-degenerate keys using CONFIG entries. These keys are set by the build system and are stored outside of u-boot. Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 72

[PATCH 2/4] board: Phytec: phycore_am6*: Add k3 Kconfig to A53

2025-02-06 Thread Daniel Schultz
Add board/phytec/common/k3/Kconfig to the A53 builds to make the PHYTEC_K3_ configs visible for this defconfig. This patch also adds .../k3/Kconfig to the AM64x R5 build for the same reason. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am62ax/Kconfig | 1 + board/phytec/phycore_am62x

[PATCH 1/4] board: phytec: common: k3: Introduce Configs to Sign Images

2025-02-06 Thread Daniel Schultz
Private keys to sign bootloader images shouldn't be commit or part of this repository. Add config entries to use keys located outside of U-Boot to sign images. Signed-off-by: Maik Otto Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- board/phytec/common/k3/Kconfig

[PATCH 0/4] phyCORE-AM62x/AM64x: Sign Images with External Keys

2025-02-06 Thread Daniel Schultz
This patch series adds three new Kconfigs for PHYTEC's K3 boards to pass private keys from an external location. These keys are required to sign all bootloader images and device-trees to boot on High-Secure Secure-Enforced (HS-SE) hardware. Daniel Schultz (2): board: phytec: commo

Re: [PATCH 00/10] phyCORE-AM62x/AM64x: Add RAUC and Secure Boot

2025-02-06 Thread Daniel Schultz
On 06.02.25 18:07, Tom Rini wrote: On Thu, Feb 06, 2025 at 11:41:14AM +0100, Daniel Schultz wrote: Hi, On 05.02.25 15:51, Tom Rini wrote: On Wed, Feb 05, 2025 at 12:01:36AM -0800, Daniel Schultz wrote: This patch series adds support to boot PHYTEC's reference distros for RAUC and S

Re: [PATCH 00/10] phyCORE-AM62x/AM64x: Add RAUC and Secure Boot

2025-02-06 Thread Daniel Schultz
Hi, On 05.02.25 15:51, Tom Rini wrote: On Wed, Feb 05, 2025 at 12:01:36AM -0800, Daniel Schultz wrote: This patch series adds support to boot PHYTEC's reference distros for RAUC and Secure Boot. It adds a new Kconfig entry to embed the RAUC boot logic into the K3 MMC boot logic. The

[PATCH 03/10] board: phytec: common: k3: Introduce PHYTEC_K3_DOFITBOOT_DEFAULT

2025-02-05 Thread Daniel Schultz
From: Nathan Morrisson Provide a Kconfig entry to set the dofitboot variable during compile time. Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- board/phytec/common/k3/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/phytec/common/k3/Kconfig b/board

[PATCH 08/10] include: env: phytec: k3_mmc: Add support for FIT boot

2025-02-05 Thread Daniel Schultz
From: Nathan Morrisson Our Secure Boot implementation uses a fitimage while our normal boot flow doesn't. Load and boot a fitimage when PHYTEC_K3_DOFITBOOT_DEFAULT is enabled. Otherwise, use our normal k3 mmc boot flow. Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Sc

[PATCH 10/10] board: phytec: phycore_am64x: Update environment for fitboot

2025-02-05 Thread Daniel Schultz
From: Nathan Morrisson Add fit_addr_r to the environment to allow us to boot from a FIT image. Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- board/phytec/phycore_am64x/phycore_am64x.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/phytec/phycore_am64x

[PATCH 09/10] board: phytec: phycore_am62x: Update environment for fitboot

2025-02-05 Thread Daniel Schultz
From: Nathan Morrisson Add fit_addr_r to the environment to allow us to boot from a FIT image. Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- board/phytec/phycore_am62x/phycore_am62x.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/phytec/phycore_am62x

[PATCH 07/10] include: env: phytec: k3_mmc: Use PHYTEC_K3_EMBED_RAUC_ENV to enable RAUC

2025-02-05 Thread Daniel Schultz
There's no need to include RAUC logic if it isn't required. Use CONFIG_PHYTEC_K3_EMBED_RAUC_ENV to conditionally include RAUC. Additionally, include the test for raucboot only when this configuration is enabled. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_mmc.env | 8 +

[PATCH 06/10] arch: arm: dts: k3-am642-phycore-som-binman: Add custMpk and ti-degenerate keys with CONFIG entries

2025-02-05 Thread Daniel Schultz
From: Nathan Morrisson Add the SMPK and ti-degenerate keys using CONFIG entries. These keys are set by the build system and are stored outside of u-boot. Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- arch/arm/dts/k3-am642-phycore-som-binman.dtsi | 70

[PATCH 05/10] arch: arm: dts: k3-am625-phycore-som-binman: Add custMpk and ti-degenerate keys with CONFIG entries

2025-02-05 Thread Daniel Schultz
From: Nathan Morrisson Add the SMPK and ti-degenerate keys using CONFIG entries. These keys are set by the build system and are stored outside of u-boot. Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 72

[PATCH 04/10] board: Phytec: phycore_am6*: Add k3 Kconfig to A53

2025-02-05 Thread Daniel Schultz
Add board/phytec/common/k3/Kconfig to the A53 builds to make the PHYTEC_K3_EMBED_RAUC configuration visible for this defconfig. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am62ax/Kconfig | 1 + board/phytec/phycore_am62x/Kconfig | 1 + board/phytec/phycore_am64x/Kconfig | 2 ++ 3

[PATCH 02/10] board: phytec: common: k3: Introduce PHYTEC_K3_EMBED_RAUC_ENV

2025-02-05 Thread Daniel Schultz
This configuration enables external activation of RAUC boot. When enabled, the boot process incorporates the PHYTEC rauc.env file. Signed-off-by: Daniel Schultz --- board/phytec/common/k3/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/board/phytec/common/k3/Kconfig b/board

[PATCH 01/10] board: phytec: common: k3: Introduce Configs to Sign Images

2025-02-05 Thread Daniel Schultz
Private keys to sign bootloader images shouldn't be commit or part of this repository. Add config entries to use keys located outside of U-Boot to sign images. Signed-off-by: Maik Otto Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- board/phytec/common/k3/Kconfig

[PATCH 00/10] phyCORE-AM62x/AM64x: Add RAUC and Secure Boot

2025-02-05 Thread Daniel Schultz
from an external location to U-Boot to sign bootloader images. An additional config entries allows to enable FIT image, because our Secure Boot implementation uses fitimages instead of normal images. Daniel Schultz (4): board: phytec: common: k3: Introduce Configs to Sign Images board: p

[PATCH v2 4/4] fs: fat: Support basic file rename

2025-02-03 Thread Daniel Venzin
This implementation currently does not support moving files between directories. Signed-off-by: Daniel Venzin --- Changes in v2: - Separate the rename implementation from changes in the filesystem layer - Eliminate code duplication with delete_dentry_long(..) - Ensure that the source file

[PATCH v2 3/4] fs: fat: Refactor delete_dentry_long interface

2025-02-03 Thread Daniel Venzin
Directory entries cannot be deleted without also removing their corresponding FAT entries. This refactor allows for individual selection of deleting the directory entry and the FAT entry, facilitating better reuse of existing functionality. Signed-off-by: Daniel Venzin --- Changes in v2

[PATCH v2 2/4] efi_loader: Support for file renaming

2025-02-03 Thread Daniel Venzin
File renaming is necessary for features like systemd-boot bootcounting. Signed-off-by: Daniel Venzin --- Changes in v2: - Use EFI_ACCESS_DENIED for unsuccessful renames - Avoid using of "== 0" - Move the call to set_blk_dev earlier in the sequence lib/efi_loader/efi_f

[PATCH v2 1/4] fs: Add unimplemented rename hook to FS layer

2025-02-03 Thread Daniel Venzin
The EFI API supports file renaming, which is required by systemd-stub for its bootcounting implementation. Signed-off-by: Daniel Venzin --- Changes in v2: - Adapt variable names for better consistency - Add missing rename hooks fs/fs.c | 30 ++ include/fs.h

[PATCH v2 0/4] FAT file renaming

2025-02-03 Thread Daniel Venzin
- Free the fatbuf if it has been reinitialized with fat_itr_root - Delete orphaned FAT entry after copying file metadata Daniel Venzin (4): fs: Add unimplemented rename hook to FS layer efi_loader: Support for file renaming fs: fat: Refactor delete_dentry_long interface fs: fat: Support

Re: [PATCH 2/3] board: phytec: phycore_am64x: Add support for 1 GB RAM variant and ECC

2025-02-03 Thread Daniel Schultz
On 27.01.25 05:16, Wadim Egorov wrote: > Detect RAM size via EEPROM and adjust DDR size and banks accordingly. > Include necessary fixups to handle ECC-enabled configurations. > > Signed-off-by: Wadim Egorov Tested-by: Daniel Schultz > --- > board/phytec/phycore_am64x/Kco

Re: [PATCH 1/3] arch: arm: dts: phyboard-electra-uboot.dtsi: Add bootph props to i2c

2025-02-03 Thread Daniel Schultz
On 27.01.25 05:16, Wadim Egorov wrote: > Add bootph-all properties to I2C0 nodes to ensure the bus and EEPROM > are accessible across all stages. This enables reading the SoM > configuration at any point during the boot process. > > Signed-off-by: Wadim Egorov Tested-by:

Re: [PATCH 3/3] configs: phycore_am64x_r5_defconfig: Enable PHYTEC_SOM_DETECTION

2025-02-03 Thread Daniel Schultz
On 27.01.25 05:16, Wadim Egorov wrote: > Enable configs required for detecting and fixing up for different RAM > variants. > Also resync after savedefconfig. > > Signed-off-by: Wadim Egorov Tested-by: Daniel Schultz > --- > configs/phycore_am64x_r5_defconfig | 4 +++-

Re: [PATCH 1/4] remoteproc: k3-m4: Introduce K3 remote proc driver for M4 subsystem

2025-01-29 Thread Daniel Schultz
er to support this subsystem to be able to load > and boot the M4 core. > > Signed-off-by: Hari Nagalla > [Judith: Fixed comments explaining local resets] > Signed-off-by: Judith Mendez Tested-by: Daniel Schultz > --- > drivers/remoteproc/Kconfig | 10 + >

Re: [PATCH 2/4] remoteproc: k3-r5: Add support for R5F cores on AM64x SoCs

2025-01-29 Thread Daniel Schultz
On 23.01.25 02:07, Judith Mendez wrote: > From: Hari Nagalla > > AM64x SoCs have two R5F clusters in the main power domain. > Extend support for R5F remote proc driver on AM64x with compatible > strings. > > Signed-off-by: Hari Nagalla Reviewed-by: Daniel Schultz > --

[PATCH] include: env: phytec: Add optargs to K3 files

2025-01-29 Thread Daniel Schultz
From: Nathan Morrisson Add the optargs variable so that we can set optional arguments while booting. Signed-off-by: Nathan Morrisson Signed-off-by: Daniel Schultz --- include/env/phytec/k3_mmc.env | 1 + include/env/phytec/k3_net.env | 2 +- include/env/phytec/k3_spi.env | 2 +- 3 files

[PATCH v3 2/2] board: phytec: common: k3: Expose product infos to Linux

2025-01-23 Thread Daniel Schultz
Call 'phytec_ft_board_fixup' in the common K3 board code to expose the product name and part number to Linux. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- Changes in v2: * Removed 'return 0' right before leaving with the same return code anyways. * Added

[PATCH v3 1/2] board: phytec: common: Add product information to FTD

2025-01-23 Thread Daniel Schultz
-name This function can be called from the board code when those values should be exposed to Linux. This patch also updates the phytec_print_som_info function and changes the output. Signed-off-by: Daniel Schultz --- Changes in v2: * Removed 'struct bd_info' as argument i

Re: [Upstream] [PATCH v2 1/2] board: phytec: common: Add product information to FTD

2025-01-23 Thread Daniel Schultz
e added as follow-up patch because it's missing for all function right now. Same for 'const'. I'm not a fan of adding that now and making this module inconsistent about how we use it. On 16.01.25 09:06, Yannic Moog wrote: > Hello Daniel, > > On Wed, 2025-01-15 at 02:

[PATCH 4/4] configs: phycore_am64x_a53_defconfig: Fix environment

2025-01-16 Thread Daniel Schultz
Enable ENV_OVERWRITE to allow environment variables to be overwritten within the board code. This is required to add MAC addresses during SOM detection. Additionally, set ENV_IS_NOWHERE for boot sources other than MMC. Signed-off-by: Daniel Schultz --- configs/phycore_am64x_a53_defconfig | 2

[PATCH 3/4] configs: phycore_am64x_a53_defconfig: Enable GPIO command

2025-01-16 Thread Daniel Schultz
Enable the GPIO command to allow access to the GPIO pins. Signed-off-by: Daniel Schultz --- configs/phycore_am64x_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/phycore_am64x_a53_defconfig b/configs/phycore_am64x_a53_defconfig index 4b9dcceda45..4a91b72e700 100644

[PATCH 2/4] configs: phycore_am64x_a53_defconfig: Fix GPIO controllers

2025-01-16 Thread Daniel Schultz
The phyBOARD-Electra does not include a PCA953x I2C GPIO multiplexer. Remove this configuration as it is a remnant from another defconfig, and enable CONFIG_DA8XX_GPIO for the DA8XX DaVinci GPIO controller instead. Signed-off-by: Daniel Schultz --- configs/phycore_am64x_a53_defconfig | 4

[PATCH 1/4] board: phytec: common: k3: Add missing boot source to env

2025-01-16 Thread Daniel Schultz
We set the boot source as environment variable 'boot'. Also include 'uart' and 'usbdfu' as possible boot sources. Signed-off-by: Daniel Schultz --- board/phytec/common/k3/board.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/phytec/common/k3/bo

[PATCH] configs: phycore_am62x_r5_defconfig: Increase SPL Malloc Pool

2025-01-15 Thread Daniel Schultz
Increase the malloc pool size for the SPL by additional 4kB from 0x7000 to 0x8000. This fixes following error message: ... alloc space exhausted ptr 7028 limit 7000 DRAM init failed: -12 Signed-off-by: Daniel Schultz --- configs/phycore_am62x_r5_defconfig | 2 +- 1 file changed, 1

Re: [PATCH 1/2] board: phytec: common: Add product information to FTD

2025-01-15 Thread Daniel Schultz
Hi Wadim, On 11.11.24 09:35, Wadim Egorov wrote: > > > Am 08.11.24 um 19:19 schrieb Daniel Schultz: >> ft_board_setup inside the board code allows to alter >> device-tree during the boot process. >> >> Introduce a new function for the PHYTEC SOM detection >

[PATCH v2 2/2] board: phytec: common: k3: Expose product infos to Linux

2025-01-15 Thread Daniel Schultz
Call 'phytec_ft_board_fixup' in the common K3 board code to expose the product name and part number to Linux. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- Changes in v2: * Removed 'return 0' right before leaving with the same return code anyways. * Added

[PATCH v2 1/2] board: phytec: common: Add product information to FTD

2025-01-15 Thread Daniel Schultz
-name This function can be called from the board code when those values should be exposed to Linux. Signed-off-by: Daniel Schultz --- Changes in v2: * Removed 'struct bd_info' as argument in function phytec_ft_board_fixup board/phytec/common/phytec_som_detecti

[PATCH] board: theobroma-systems: Update TF-A setup steps for RK3588 boards

2024-11-26 Thread Daniel Semkowicz
-off-by: Daniel Semkowicz --- doc/board/theobroma-systems/jaguar_rk3588.rst | 6 +++--- doc/board/theobroma-systems/tiger_rk3588.rst | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/board/theobroma-systems/jaguar_rk3588.rst b/doc/board/theobroma-systems/jaguar_rk3588

[PATCH 2/2] board: phytec: common: k3: Expose product infos to Linux

2024-11-08 Thread Daniel Schultz
Call 'phytec_ft_board_fixup' in the common K3 board code to expose the product name and part number to Linux. Signed-off-by: Daniel Schultz --- board/phytec/common/k3/board.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/board/phytec/common/k3/board.c b/board/phy

[PATCH 1/2] board: phytec: common: Add product information to FTD

2024-11-08 Thread Daniel Schultz
-name This function can be called from the board code when those values should be exposed to Linux. Signed-off-by: Daniel Schultz --- board/phytec/common/phytec_som_detection.c | 204 - board/phytec/common/phytec_som_detection.h | 7 + 2 files changed, 168 insertions(+), 43

Re: [PATCH v2 1/3] menu: fix the logic checking whether ESC key is pressed

2024-11-02 Thread Daniel Golle
On Fri, Nov 01, 2024 at 03:20:11PM +0800, Weijie Gao wrote: > Hi Daniel, > > On Thu, 2024-10-31 at 19:16 +0000, Daniel Golle wrote: > > External email : Please do not click links or open attachments until > > you have verified the sender or the content. > > > >

Re: [PATCH v2 1/3] menu: fix the logic checking whether ESC key is pressed

2024-10-31 Thread Daniel Golle
he down array key sequence hasn't be fully received. > > But bootmenu_loop just did a mdelay(10), and then treated it as a > single ESC key press event. It didn't even try tstc() again after > the 10ms timeout. > > This patch fixes this issue by letting bootmenu_loop

Re: [PATCH v2 2/3] menu: add support to check if menu needs to be reprinted

2024-10-31 Thread Daniel Golle
if the menu was not changed. It can save time > for serial-based menu to handle more input data. > > Signed-off-by: Weijie Gao Reviewed-by: Daniel Golle Tested-by: Daniel Golle > --- > boot/pxe_utils.c | 2 +- > cmd/bootmenu.c | 2 +- > cmd/eficonfig

Re: [PATCH v2 3/3] bootmenu: add reprint check

2024-10-31 Thread Daniel Golle
On Tue, Oct 29, 2024 at 05:47:22PM +0800, Weijie Gao wrote: > Record the last active menu item and check if it equals to the > current selected item before reprint. > > Signed-off-by: Weijie Gao Reviewed-by: Daniel Golle Tested-by: Daniel Golle > --- > c

Re: [PATCH] menu: fix the logic checking whether ESC key is pressed

2024-10-26 Thread Daniel Golle
Hi! On Mon, Oct 21, 2024 at 08:56:42AM +0800, Weijie Gao wrote: > It's observed that the bootmenu on a serial console sometimes > incorrectly quitted with superfluous characters filled to command > line input: > > > *** U-Boot Boot Menu *** > > > > 1. Startup system (Default) > > 2. Up

Re: [PATCH] cmd: Make bootvx independent of bootelf

2024-10-11 Thread Daniel Palmer
hanges requested by Simon and send a follow up patch when I get a bit of time. Thanks, Daniel

[PATCH] cmd: Make bootvx independent of bootelf

2024-09-29 Thread Daniel Palmer
There are lots of usecases for running baremetal ELF binaries via bootelf but if you enable bootelf you get bootvx as well and you probably don't want or need it. Hide bootvx behind it's own configuration option. Signed-off-by: Daniel Palmer --- cmd/Kconfig | 11 +-- cmd/el

[PATCH] rockchip: rk3399: Weaken dependency on SPL serial

2024-09-20 Thread Daniel Semkowicz
Allow to disable serial console in SPL. Weak dependency is already used with TPL serial. Signed-off-by: Daniel Semkowicz --- arch/arm/mach-rockchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index

[PATCH] spl: spl_load: fix comparison between negative error code and unsigned size

2024-08-30 Thread Daniel Palmer
s in the caller to _spl_load() not seeing that an error happened as it should and continuing as if the load was completed when it might not have been. Check if read is negative and return it's value if it is before comparing against size in spl_image. Signed-off-by: Daniel Palmer --- in

[PATCH 13/13] configs: phycore_am62x_*_defconfig: Set PHYTEC as Manufacturer

2024-08-30 Thread Daniel Schultz
Commit 371b379edbf3 ("configs: Make USB_GADGET_MANUFACTURER consistent over all PHYTEC boards") made the USB_GADGET_MANUFACTURER value consistent over all PHYTEC boards. Update the phyCORE-AM62x defconfigs to make this config consistent as well. Signed-off-by: Daniel Schultz --

[PATCH 12/13] configs: phycore_am62x_a53_defconfig: Fix CONFIG_ENV_SIZE

2024-08-30 Thread Daniel Schultz
The environment should have a size of 0x2 instead 0x2000. Update to have the same environment size for all PHYTEC K3 products. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs

[PATCH 11/13] configs: Add phycore_am62x_r5_usbdfu_defconfig

2024-08-30 Thread Daniel Schultz
defconfig allows to boot from USB. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_r5_usbdfu_defconfig | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 configs/phycore_am62x_r5_usbdfu_defconfig diff --git a/configs/phycore_am62x_r5_usbdfu_defconfig b/configs

[PATCH 10/13] configs: phycore_am62x_a53_defconfig: Merge am62x_a53_usbdfu.config

2024-08-30 Thread Daniel Schultz
, CONFIG_USB_GADGET_MANUFACTURER was not merged to keep Phytec as manufacturer. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/phycore_am62x_a53_defconfig b/configs/phycore_am62x_a53_defconfig index 7bbd8011fa8

  1   2   3   4   5   6   7   8   9   10   >