[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

[PATCH 09/13] configs: phycore_am64x_a53_defconfig: Make BOOTCMD generic

2024-08-30 Thread Daniel Schultz
The phyCORE-AM64x board code sets an environment variable 'boot' with the device U-Boot booted from. Use this variable in CONFIG_BOOTCOMMAND to boot Linux from the same boot device by default. Signed-off-by: Daniel Schultz --- configs/phycore_am64x_a53_defconfig | 2 +- 1 file

[PATCH 08/13] configs: phycore_am62x_a53_defconfig: Make BOOTCMD generic

2024-08-30 Thread Daniel Schultz
The phyCORE-AM62x board code sets an environment variable 'boot' with the device U-Boot booted from. Use this variable in CONFIG_BOOTCOMMAND to boot Linux from the same boot device by default. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig | 2 +- 1 file

[PATCH 07/13] board: phytec: phycore_am64x: Add Network/SPI Boot

2024-08-30 Thread Daniel Schultz
ff-by: Daniel Schultz --- board/phytec/phycore_am64x/phycore_am64x.env | 8 1 file changed, 8 insertions(+) diff --git a/board/phytec/phycore_am64x/phycore_am64x.env b/board/phytec/phycore_am64x/phycore_am64x.env index 18f0fa5b4c3..3032b518e0b 100644 --- a/board/phytec/phycore_

[PATCH 06/13] board: phytec: phycore_am62x: Add Network/SPI Boot

2024-08-30 Thread Daniel Schultz
Include the boot logic to boot via Network or from a OSPI/QSPI NOR flash. Moreover, set all required variables to both boot methods to the environment. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am62x/phycore_am62x.env | 8 1 file changed, 8 insertions(+) diff --git a

[PATCH 05/13] include: env: phytec: Add K3 boot logic for OSPI/QSPI flashes

2024-08-30 Thread Daniel Schultz
This boot logic allows to boot a Kernel image, Device-Tree blob and a initramfs from an external OSPI/QSPI NOR flash. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_spi.env | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 include/env/phytec/k3_spi.env diff

[PATCH 04/13] include: net: phytec: Add K3 network boot logic

2024-08-30 Thread Daniel Schultz
This boot logic allows to boot a Kernel image, Device-Tree blob and overlays via tftp/dhcp (configurable with 'net_fetch_cmd'). Additionally, it loads a rootfs via NFS. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_net.env | 22 ++ 1 file changed, 22

[PATCH 03/13] include: env: phytec: Add raucinit to k3_mmc environment

2024-08-30 Thread Daniel Schultz
Initialize the environment for booting an RAUC image when 'doraucboot' is set to 1. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_mmc.env | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc

[PATCH 02/13] include: env: phytec: k3_mmc: Rename variables

2024-08-30 Thread Daniel Schultz
Add a mmc prefix to 'loadimage' and 'loadfdt' because we need similar variables for other boot sources. This will prevent name clashes and allows to implement similar boot logic. Also switch from loadaddr to kernel_addr_r. Signed-off-by: Daniel Schultz --- include/env/ph

[PATCH 01/13] configs: phycore_am64x_a53_defconfig: Enable CONFIG_OF_BOARD_SETUP

2024-08-30 Thread Daniel Schultz
From: Wadim Egorov Enable CONFIG_OF_BOARD_SETUP to fixup kernel device tree with mtd partitions. Signed-off-by: Wadim Egorov 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

[PATCH 00/13] phycore-am62/4: Add more boot sources

2024-08-30 Thread Daniel Schultz
and includes some minor fixes. Daniel Schultz (12): include: env: phytec: k3_mmc: Rename variables include: env: phytec: Add raucinit to k3_mmc environment include: net: phytec: Add K3 network boot logic include: env: phytec: Add K3 boot logic for OSPI/QSPI flashes board: phytec

[PATCH v2 9/9] board: phytec: phycore_am64x: Use k3_mmc.env logic

2024-07-16 Thread Daniel Schultz
Use our common environment file to implement MMC boot. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- board/phytec/phycore_am64x/phycore_am64x.env | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/board/phytec/phycore_am64x/phycore_am64x.env b

[PATCH v2 8/9] board: phytec: phycore_am62x: Use k3_mmc.env logic

2024-07-16 Thread Daniel Schultz
Use our common environment file to implement MMC boot. Signed-off-by: Daniel Schultz Reviewed-by: Dhruva Gole Reviewed-by: Wadim Egorov --- board/phytec/phycore_am62x/phycore_am62x.env | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/board/phytec/phycore_am62x

[PATCH v2 7/9] include: env: phytec: k3_mmc: Apply overlays during boot

2024-07-16 Thread Daniel Schultz
Include the overlays.env file and run the apply routine before booting the Kernel. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- include/env/phytec/k3_mmc.env | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env

[PATCH v2 6/9] include: env: phytec: Add common mmc boot for K3 SoMs

2024-07-16 Thread Daniel Schultz
This environment include can be used to boot from a MMC device for PHYTEC's K3-based SoMs. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- include/env/phytec/k3_mmc.env | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 include/env/phytec/k3_mmc.env

[PATCH v2 5/9] include: env: phytec: renaming of variables according to bootstd doc

2024-07-16 Thread Daniel Schultz
From: Benjamin Hahn Rename existing environment variables according to the bootstd doc. Renamed variables are fdto_addr, bootenv_addr, fdt_addr. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- include/env/phytec/overlays.env | 19

[PATCH v2 4/9] board: phytec: renaming of variables according to bootstd doc

2024-07-16 Thread Daniel Schultz
From: Benjamin Hahn Rename existing environment variables according to the bootstd doc. Renamed variables are fdto_addr, bootenv_addr, fdt_addr and fdt_file. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- .../phytec/phycore_imx8mp/phycore_imx8mp.env

[PATCH v2 3/9] phycore_imx93: include common overlays.env

2024-07-16 Thread Daniel Schultz
From: Benjamin Hahn Include the common overlays env file for phycore_imx93. The common overlays env file supports disabling loading overlays by setting the no_overlays variable. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- board/phytec

[PATCH v2 2/9] phycore-imx8mp: Add overlay and bootenv.txt support

2024-07-16 Thread Daniel Schultz
overlays defined in ${overlays} variable. Overlays loaded over the extension command are still being applied. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz Reviewed-by: Teresa Remmet Reviewed-by: Wadim Egorov --- board/phytec/phycore_imx8mp

[PATCH v2 1/9] include: env: phytec: Create env file for loading and applying overlays

2024-07-16 Thread Daniel Schultz
needs to be set in board specific files and can be set to tftp or dhcp. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz Reviewed-by: Teresa Remmet Reviewed-by: Wadim Egorov --- include/env/phytec/overlays.env | 37 + 1 file changed, 37 insertions

[PATCH v2 0/9] Generalize PHYTEC Overlay Handling

2024-07-16 Thread Daniel Schultz
according to bootstd doc include: env: phytec: renaming of variables according to bootstd doc Daniel Schultz (4): include: env: phytec: Add common mmc boot for K3 SoMs include: env: phytec: k3_mmc: Apply overlays during boot board: phytec: phycore_am62x: Use k3_mmc.env logic board: phytec

Re: [PATCH 1/6] include: env: phytec: overlays: Add extension command

2024-07-09 Thread Daniel Schultz
Hi Yannic, On 09.07.24 08:49, Yannic Moog wrote: Hello Daniel, On Sun, 2024-07-07 at 23:07 -0700, Daniel Schultz wrote: Add a new environment routine to apply extensions. Our SOM detection adds overlays via the extension framework to alter the kernel device-tree according to the flashed

Re: [PATCH 0/6] Extend SOM detection

2024-07-09 Thread Daniel Schultz
Hey, please don't apply these patches. We just found an issue while working on another task. Sorry! Best Regards, Daniel On 08.07.24 08:07, Daniel Schultz wrote: This patchset extends PHYTEC's SOM detection for the K3 platforms. It adds generic support to apply overlays via the

[PATCH 6/6] configs: phycore_am64x_a53_defconfig: Enable SOM detection

2024-07-07 Thread Daniel Schultz
Enable SOM detection for the phyCORE-AM64x and also set CONFIG_CMD_EXTENSION as requirement for this feature. Signed-off-by: Daniel Schultz --- configs/phycore_am64x_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/phycore_am64x_a53_defconfig b/configs

[PATCH 5/6] configs: phytec_am62x_a53_defconfig: Set CONFIG_CMD_EXTENSION

2024-07-07 Thread Daniel Schultz
CONFIG_CMD_EXTENSION is required to load SOM detection overlays. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/phycore_am62x_a53_defconfig b/configs/phycore_am62x_a53_defconfig index 06b8834e074..ec75b1a424d

[PATCH 4/6] board: phytec: common: Kconfig: Enable SUPPORT_EXTENSION_SCAN

2024-07-07 Thread Daniel Schultz
Enable SUPPORT_EXTENSION_SCAN for the phyCORE-AM62x and -AM64x boards. Signed-off-by: Daniel Schultz --- board/phytec/common/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/phytec/common/Kconfig b/board/phytec/common/Kconfig index f394ace786a..120f58b6ec6 100644 --- a/board

[PATCH 3/6] board: phytec: common: k3: Add SOM detection overlays

2024-07-07 Thread Daniel Schultz
Add overlays to disable or alter SOM features according to the EEPROM image content. Signed-off-by: Daniel Schultz --- board/phytec/common/k3/board.c | 45 ++ 1 file changed, 45 insertions(+) diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3

[PATCH 2/6] include: env: phytec: k3_mmc: Apply extension overlays

2024-07-07 Thread Daniel Schultz
Run the mmc_apply_extensions routine to apply overlays added by the extension framework. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_mmc.env | 1 + 1 file changed, 1 insertion(+) diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env index 3d3595ceb7e

[PATCH 1/6] include: env: phytec: overlays: Add extension command

2024-07-07 Thread Daniel Schultz
Add a new environment routine to apply extensions. Our SOM detection adds overlays via the extension framework to alter the kernel device-tree according to the flashed EEPROM image. Signed-off-by: Daniel Schultz --- include/env/phytec/overlays.env | 20 1 file changed, 20

[PATCH 0/6] Extend SOM detection

2024-07-07 Thread Daniel Schultz
hook to the K3 board code and adds all missing configs in the phyCORE-AM62x and -AM64x A53 defconfigs. Daniel Schultz (6): include: env: phytec: overlays: Add extension command include: env: phytec: k3_mmc: Apply extension overlays board: phytec: common: k3: Add SOM detection overlays board:

Re: Missing eth1addr for Banana Pi BPI-R3

2024-07-04 Thread Daniel Golle
On Fri, Jul 05, 2024 at 11:05:31AM +1000, Leith Bade wrote: > Hi, > > I have been investigating how to stop the MAC addresses on my Banana > Pi BPI-R3 from changing on every boot. > > It appears the ethaddr and eth1addr environment variables are used for > this purpose as they are randomly genera

[PATCH 9/9] board: phytec: phycore_am64x: Use k3_mmc.env logic

2024-07-03 Thread Daniel Schultz
Use our common environment file to implement MMC boot. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am64x/phycore_am64x.env | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/board/phytec/phycore_am64x/phycore_am64x.env b/board/phytec/phycore_am64x

[PATCH 8/9] board: phytec: phycore_am62x: Use k3_mmc.env logic

2024-07-03 Thread Daniel Schultz
Use our common environment file to implement MMC boot. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am62x/phycore_am62x.env | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/board/phytec/phycore_am62x/phycore_am62x.env b/board/phytec/phycore_am62x

[PATCH 7/9] include: env: phytec: k3_mmc: Apply overlays during boot

2024-07-03 Thread Daniel Schultz
Include the overlays.env file and run the apply routine before booting the Kernel. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_mmc.env | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env index e1208a6eea1..3d3595ceb7e

[PATCH 6/9] include: env: phytec: Add common mmc boot for K3 SoMs

2024-07-03 Thread Daniel Schultz
This environment include can be used to boot from a MMC device for PHYTEC's K3-based SoMs. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_mmc.env | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 include/env/phytec/k3_mmc.env diff --git a/include/env/p

[PATCH 5/9] include: env: phytec: renaming of variables according to bootstd doc

2024-07-03 Thread Daniel Schultz
From: Benjamin Hahn Rename existing environment variables according to the bootstd doc. Renamed variables are fdto_addr, bootenv_addr, fdt_addr. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz --- include/env/phytec/overlays.env | 19 ++- 1 file changed, 10

[PATCH 4/9] board: phytec: renaming of variables according to bootstd doc

2024-07-03 Thread Daniel Schultz
From: Benjamin Hahn Rename existing environment variables according to the bootstd doc. Renamed variables are fdto_addr, bootenv_addr, fdt_addr and fdt_file. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz --- .../phytec/phycore_imx8mp/phycore_imx8mp.env | 20

[PATCH 3/9] phycore_imx93: include common overlays.env

2024-07-03 Thread Daniel Schultz
From: Benjamin Hahn Include the common overlays env file for phycore_imx93. The common overlays env file supports disabling loading overlays by setting the no_overlays variable. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz --- board/phytec/phycore_imx93/phycore_imx93.env | 25

[PATCH 2/9] phycore-imx8mp: Add overlay and bootenv.txt support

2024-07-03 Thread Daniel Schultz
overlays defined in ${overlays} variable. Overlays loaded over the extension command are still being applied. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz --- board/phytec/phycore_imx8mp/phycore_imx8mp.env | 15 +++ configs/phycore

[PATCH 1/9] include: env: phytec: Create env file for loading and applying overlays

2024-07-03 Thread Daniel Schultz
needs to be set in board specific files and can be set to tftp or dhcp. Signed-off-by: Benjamin Hahn Signed-off-by: Daniel Schultz --- include/env/phytec/overlays.env | 37 + 1 file changed, 37 insertions(+) create mode 100644 include/env/phytec/overlays.env diff

[PATCH 0/9] Generalize PHYTEC Overlay Handling

2024-07-03 Thread Daniel Schultz
: Create env file for loading and applying overlays phycore-imx8mp: Add overlay and bootenv.txt support phycore_imx93: include common overlays.env board: phytec: renaming of variables according to bootstd doc include: env: phytec: renaming of variables according to bootstd doc Daniel

[PATCH 4/4] board: phytec: phycore_am64x: Move earlycon into own variable

2024-07-01 Thread Daniel Schultz
By moving the earlycon definition into a dedicated variable, it's easier to change these values in case the kernel should print on a different serial interface. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am64x/phycore_am64x.env | 3 ++- 1 file changed, 2 insertions(+), 1 del

[PATCH 3/4] board: phytec: phycore_am62x: Move earlycon into own variable

2024-07-01 Thread Daniel Schultz
By moving the earlycon definition into a dedicated variable, it's easier to change these values in case the kernel should print on a different serial interface. Signed-off-by: Daniel Schultz --- board/phytec/phycore_am62x/phycore_am62x.env | 3 ++- 1 file changed, 2 insertions(+), 1 del

[PATCH 2/4] configs: phycore_am64x_a53: Add more commands

2024-07-01 Thread Daniel Schultz
Add the rtc command for testing this device. Additionally, add smc and cache commands to boot non-Linux firmwares on the A53. Signed-off-by: Daniel Schultz --- configs/phycore_am64x_a53_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/phycore_am64x_a53_defconfig b

[PATCH 1/4] configs: phycore_am62x_a53: Add more commands

2024-07-01 Thread Daniel Schultz
Add i2c and rtc commands with all dependencies which are required for testing. Additionally, add smc and cache commands to boot Zephyr on the A53. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs

[PATCH 2/3] doc: board: phytec: phycore-am64x: Fix Link to Documentation

2024-06-12 Thread Daniel Schultz
We moved our documentation to another hoster and therefore the URL changed. Point to the latest documentation instead of release versions to not link out-dated documentation. Signed-off-by: Daniel Schultz --- doc/board/phytec/phycore-am64x.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 3/3] doc: board: phytec: phycore-am64: Fix phyBOARD Name

2024-06-12 Thread Daniel Schultz
The Carrier-Board for the pyhCORE-AM64x is called phyBOARD-Electra. Signed-off-by: Daniel Schultz --- doc/board/phytec/phycore-am64x.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/board/phytec/phycore-am64x.rst b/doc/board/phytec/phycore-am64x.rst index c99d8f6dd58

[PATCH 1/3] doc: board: phytec: phycore-am62x: Fix Link to Documentation

2024-06-12 Thread Daniel Schultz
We moved our documentation to another hoster and therefore the URL changed. Point to the latest documentation instead of release versions to not link out-dated documentation. Signed-off-by: Daniel Schultz --- doc/board/phytec/phycore-am62x.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH 00/13] *** Various fixes & improvements for phycore-AM6* SoMs ***

2024-06-12 Thread Daniel Schultz
For all 13 patches, Reviewed-by: Daniel Schultz On 10.06.24 15:33, Wadim Egorov wrote: This patch set is for u-boot/next. It includes various fixes and improvements for phyCORE-AM62x and phyCORE-AM64x SoMs. Notable is the last patch which prepares for use with future ECC memory fixups

Re: [Upstream] [PATCH 6/6] configs: phycore_am62x_a53_defconfig: Enable CONFIG_ENV_OVERWRITE

2024-05-22 Thread Daniel Schultz
Hi, On 22.05.24 10:30, Wadim Egorov wrote: Hi Daniel, Am 22.05.24 um 08:18 schrieb Daniel Schultz: Enable CONFIG_ENV_OVERWRITE to overwrite ethaddr in the environment. This is required because our environment is not located in the boot partition. Signed-off-by: Daniel Schultz ---   configs

[PATCH] include: extension_board: Increase overlay file name size

2024-05-22 Thread Daniel Schultz
Upstream overlays like the ARM64 TI k3-am625-beagleplay-csi2-tevi-ov5640.dtso can easily have more then 32 characters. Increase the overlay length to 64 characters to apply overlays with longer names. Signed-off-by: Daniel Schultz --- include/extension_board.h | 2 +- 1 file changed, 1

[PATCH 6/6] configs: phycore_am62x_a53_defconfig: Enable CONFIG_ENV_OVERWRITE

2024-05-22 Thread Daniel Schultz
Enable CONFIG_ENV_OVERWRITE to overwrite ethaddr in the environment. This is required because our environment is not located in the boot partition. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATCH 5/6] board: phytec: common: k3: Set MAC

2024-05-22 Thread Daniel Schultz
Read the EEPROM API v3 content and set all available MAC-Addresses to the environment. Signed-off-by: Daniel Schultz --- board/phytec/common/k3/board.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c

[PATCH 4/6] board: phytec: common: Add API v3

2024-05-22 Thread Daniel Schultz
number, a MAC address and a CRC checksum over the MAC payload. Signed-off-by: Daniel Schultz --- board/phytec/common/Kconfig | 9 ++ board/phytec/common/Makefile | 2 +- board/phytec/common/phytec_som_detection.c| 153 ++ board/phytec

[PATCH 3/6] board: phytec: common: Move API v2 init to new function

2024-05-22 Thread Daniel Schultz
Move the entire initialization code for API v2 into a dedicated function. This rework will allow to easily integrate the API v3 as next step during init. Signed-off-by: Daniel Schultz --- board/phytec/common/phytec_som_detection.c | 38 +- 1 file changed, 23 insertions

[PATCH 2/6] board: phytec: common: Define PHYTEC_API2_DATA_LEN

2024-05-22 Thread Daniel Schultz
The EEPROM image length for API v2 is fixed to 32 bytes. No need to use sizeof while this value won't change. This value is also be required for API v3 to know where the API v3 header starts. Signed-off-by: Daniel Schultz --- board/phytec/common/phytec_som_detection.c | 9 -

[PATCH 1/6] board: phytec: common: Move eeprom read to new function

2024-05-22 Thread Daniel Schultz
We need to read multiple times from different offsets in API v3. Move the EEPROM read logic into a dedicated function to make it usable multiple times. Signed-off-by: Daniel Schultz --- board/phytec/common/phytec_som_detection.c | 38 ++ 1 file changed, 24 insertions(+), 14

[PATCH 0/6] PHYTEC SOM Detection API v3

2024-05-22 Thread Daniel Schultz
(6 x u8) and a CRC8 checksum. Daniel Schultz (6): board: phytec: common: Move eeprom read to new function board: phytec: common: Define PHYTEC_API2_DATA_LEN board: phytec: common: Move API v2 init to new function board: phytec: common: Add API v3 board: phytec: common: k3: Set MAC

Re: [PATCH v3 12/12] mailmap: Update email for Paul Burton

2024-05-19 Thread Daniel Schwierzeck
| 3 ++- board/imgtec/boston/MAINTAINERS | 2 +- board/imgtec/malta/MAINTAINERS | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) Reviewed-by: Daniel Schwierzeck

Re: [PATCH v3 11/12] MIPS: boston: Migrate to OF_UPSTREAM

2024-05-19 Thread Daniel Schwierzeck
/boston64r2_defconfig | 2 +- configs/boston64r2el_defconfig | 2 +- configs/boston64r6_defconfig | 2 +- configs/boston64r6el_defconfig | 2 +- 13 files changed, 20 insertions(+), 231 deletions(-) Reviewed-by: Daniel Schwierzeck diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index

Re: [PATCH v3 10/12] dts/upstream: Add Makefile for MIPS

2024-05-19 Thread Daniel Schwierzeck
On 5/17/24 20:14, Jiaxun Yang wrote: It is required to make OF_UPSTREAM work. Reviewed-by: Sumit Garg Signed-off-by: Jiaxun Yang --- dts/upstream/src/mips/Makefile | 14 ++ 1 file changed, 14 insertions(+) Reviewed-by: Daniel Schwierzeck

Re: [PATCH v3 09/12] clk: boston: Allow to get regmap from parent device

2024-05-19 Thread Daniel Schwierzeck
ove syscon detection code to probe to ensure parent is probbed before syscon_get_regmap. --- drivers/clk/clk_boston.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) Reviewed-by: Daniel Schwierzeck

Re: [PATCH v3 08/12] MIPS: boston: Provide default env vars

2024-05-19 Thread Daniel Schwierzeck
(+) Reviewed-by: Daniel Schwierzeck

Re: [PATCH v3 07/12] MIPS: boston: Imply various options

2024-05-19 Thread Daniel Schwierzeck
On 5/17/24 20:14, Jiaxun Yang wrote: This is a PC-like platform board. Enable drivers for most on-board devices to make it useful. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 27 +++ 1 file changed, 27 insertions(+) Reviewed-by: Daniel Schwierzeck

Re: [PATCH v3 06/12] MIPS: Provide dummy acpi_table.h

2024-05-19 Thread Daniel Schwierzeck
On 5/17/24 20:14, Jiaxun Yang wrote: Some drivers need this header. Provide this dummy header as riscv did. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/acpi_table.h | 10 ++ 1 file changed, 10 insertions(+) Reviewed-by: Daniel Schwierzeck

Re: [PATCH v3 03/12] pci: Enable PCI_MAP_SYSTEM_MEMORY when ARCH_MAP_SYSMEM is not set

2024-05-19 Thread Daniel Schwierzeck
1 file changed, 1 insertion(+) Reviewed-by: Daniel Schwierzeck

Re: [PATCH v3 02/12] pci: auto: Reduce bridge mem alignment boundary for boston

2024-05-19 Thread Daniel Schwierzeck
s/pci/Kconfig| 9 + drivers/pci/pci_auto.c | 16 2 files changed, 17 insertions(+), 8 deletions(-) Reviewed-by: Daniel Schwierzeck

Re: [PATCH v3 01/12] pci: xilinx: Handle size of ecam region properly

2024-05-19 Thread Daniel Schwierzeck
Yang --- drivers/pci/pcie_xilinx.c | 53 +++ 1 file changed, 40 insertions(+), 13 deletions(-) Reviewed-by: Daniel Schwierzeck

Re: [PATCH 5/5] board: phytec: am62x: Add support for 1 & 4 GB RAM variants

2024-05-07 Thread Daniel Schultz
NABLED(CONFIG_PHYCORE_AM62X_RAM_SIZE_4GB)) + return EEPROM_RAM_SIZE_4GB; + } Please define these configs in board/phytec/phycore_am62x/Kconfig. - Daniel + + ret = phytec_eeprom_data_setup(&data, 0, EEPROM_ADDR); + if (!ret && data.valid) + return phytec_ge

Re: RISC-V u-boot unable to boot QEMU using '-cpu max'

2024-04-23 Thread Daniel Henrique Barboza
On 4/23/24 09:41, Conor Dooley wrote: On Tue, Apr 23, 2024 at 01:34:42PM +0800, Leo Liang wrote: On Mon, Apr 22, 2024 at 04:43:59PM -0300, Daniel Henrique Barboza wrote: [EXTERNAL MAIL] Hi, In QEMU we have a 'max' type CPU that implements (almost) all extensions that QEMU

RISC-V u-boot unable to boot QEMU using '-cpu max'

2024-04-22 Thread Daniel Henrique Barboza
ug? Up to this point I was assuming that u-boot would silently ignore hart extensions that it doesn't support. Thanks, Daniel

[PATCH 5/5] board: phytec: Add SOM detection for AM6x

2024-04-19 Thread Daniel Schultz
Add all functions to read each SOM option from the EEPROM image and detect whether it's the correct product for this image. Signed-off-by: Daniel Schultz --- board/phytec/common/Kconfig | 18 +++ board/phytec/common/Makefile| 1 + board/phytec/c

[PATCH 4/5] board: phytec: common: Fix eepom is empty check

2024-04-19 Thread Daniel Schultz
. Therefore, the init function will detect an empty EEPROM as API0 and return with the valid flag set to True. Fixes: dc22188cdc8 ("board: phytec: Add common PHYTEC SoM detection") Signed-off-by: Daniel Schultz --- board/phytec/common/phytec_som_detection.c | 4 ++-- 1 file changed, 2

[PATCH 3/5] board: phytec: check eeprom_data validity

2024-04-19 Thread Daniel Schultz
before, but phytec_get_imx8m_eth would still happily access the data. Fixes: dc22188cdc8 ("board: phytec: Add common PHYTEC SoM detection") Signed-off-by: Yannic Moog Signed-off-by: Daniel Schultz --- board/phytec/common/imx8m_som_detection.c | 11 +++ board/phy

[PATCH 2/5] board: phytec: introduce eeprom struct member 'valid'

2024-04-19 Thread Daniel Schultz
the eeprom. Signed-off-by: Yannic Moog Signed-off-by: Daniel Schultz --- board/phytec/common/imx8m_som_detection.c | 10 ++-- board/phytec/common/phytec_som_detection.c | 56 -- board/phytec/common/phytec_som_detection.h | 11 +++-- 3 files changed, 45 insertions(+), 32

[PATCH 1/5] board: phytec: common: Generic "add extension" function

2024-04-19 Thread Daniel Schultz
Add a generic function to apply overlays in our board code to not implement the same logic in different PHYTEC products. Signed-off-by: Daniel Schultz --- board/phytec/common/phytec_som_detection.c | 33 ++ board/phytec/common/phytec_som_detection.h | 5 2 files

[PATCH 0/5] Update PHYTEC SOM Detection

2024-04-19 Thread Daniel Schultz
This patch series extends PHYTEC's SOM detection by minor fixes, a generic helper function and a new valid flag. Moreover, it adds a module to provide access to the SOM detection for our TI AM6 products. Daniel Schultz (3): board: phytec: common: Generic "add extension" f

[PULL] u-boot-mips fixes for v2024.04

2024-03-13 Thread Daniel Schwierzeck
: implement __udivdi3 to fix building of SquashFS - mips: fix bug in cache init on MIPS32r2 or later Daniel Schwierzeck (1): mips: fix change_k0_cca() Linus Walleij (1): mips: implement __udivdi3 arch/mips/lib/Makefile

Re: [PATCH 1/2] board: phytec: am64x: Add PHYTEC phyCORE-AM64x SoM

2024-02-02 Thread Daniel Schultz
Hey Wadim, just trying to give you feedback through the archived mail. (That's why the content is missing). The R5 config has 0x800 as value for CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR. This offset wasn't changed upstream and the TI EVM still uses 0x400. Regards, Daniel

Re: Passing boot logs to Linux?

2023-12-20 Thread Daniel Golle
On Thu, Dec 21, 2023 at 12:55:20AM +0100, Dragan Simic wrote: > On 2023-12-21 00:27, Csókás Bence wrote: > > Not every system has eMMC/uSD, and as you said, these arguments don't > > hold for a 4 MB SPI NAND, for example, one you might find in an OpenWrt > > router for example. Whereas RAM is quite

Re: Passing boot logs to Linux?

2023-12-19 Thread Daniel Golle
hen ever we want the output to also become part of the log buffer or we could somehow filter the recorded console, eliminating all terminal control sequences. Cheers Daniel

Re: [PATCH 00/21] Qualcomm generic board support

2023-12-05 Thread Daniel Thompson
> should be two (at least) conformance tests. I don't follow this, for two reasons. 1. DT describes the hardware, not how it is driven. Having a relationship between u-boot and linux DTs with different representation would imply that the hardware changes between u-boot and the kernel. 2. Even if we were to accept that there must be two device tree instances (beyond transient workarounds for missing features), why would there need to be two conformance tests rather than one conformance test run on the two DTs? Daniel.

Re: [PATCH 00/21] Qualcomm generic board support

2023-12-04 Thread Daniel Thompson
a versioned > release package of DT bindings which one should use to validate DTS > files. The kernel is regularly released in multiple forms (including git tags and tarball). Why isn't the kernel itself sufficient to be a versioned release of the DT bindings directory? Daniel.

[PATCH] mips: fix change_k0_cca()

2023-11-06 Thread Daniel Schwierzeck
value of the $t0 register. Fix the MIPS32 R1 code path to also store the updated value in $t0. Reported by user ddqxy138 on Github. https://github.com/u-boot/u-boot/commit/b838586086af3278bcaead3720c7a18813cf4619 Signed-off-by: Daniel Schwierzeck --- arch/mips/lib/cache_init.S | 4 ++-- 1 file

[PATCH] mips: implement __udivdi3

2023-11-06 Thread Daniel Schwierzeck
From: Linus Walleij Squashfs wasn't compiling because the lldiv() directives turn into __udivdi3 and we are using private libgcc. After this squashfs compiles for MIPS. Signed-off-by: Linus Walleij Signed-off-by: Daniel Schwierzeck --- Linus, this is the updated and optimized versi

Re: [PATCH] bmips: Add Inteno XG6846 board

2023-09-21 Thread Daniel Schwierzeck
On 9/20/23 09:42, Linus Walleij wrote: This adds support for the Inteno XG6846 board based on the Broadcom MIPS 6328 SoC. The default boot will read a uImage from flash and boot it. Cc: Daniel Schwierzeck Signed-off-by: Linus Walleij --- arch/mips/dts/Makefile | 1 + arch

Re: [PATCH] bmips: Add Inteno XG6846 board

2023-09-21 Thread Daniel Schwierzeck
u take a peek, we can just live with it. I just tested it, you can simply add an empty board/inteno/xg6846/Makefile and remove board/inteno/xg6846/xg6846.c. But you can also remove the Makefile. Just the Kconfig and MAINTAINERS file are needed. -- - Daniel

Re: [PATCH] RFT: mips: implement __udivdi3

2023-09-21 Thread Daniel Schwierzeck
ashfs compiles for MIPS. Cc: Daniel Schwierzeck Cc: Mauro Condarelli Cc: Ralf Baechle Signed-off-by: Linus Walleij --- I can't test this because it didn't work for MTD devices as I had expected, but I saw Mauro had this problem before so I think I might have fixed it. I better put the

[PATCH] configs: set CONFIG_LMB_MAX_REGIONS=64 for MT7988 boards

2023-08-21 Thread Daniel Golle
bytes below 0x8000. device tree - allocation error Fixes: bc4adc97cfb ("board: mediatek: add MT7988 reference boards") Reported-by: Lorenzo Bianconi Signed-off-by: Daniel Golle --- configs/mt7988_rfb_defconfig| 1 + configs/mt7988_sd_rfb_defconfig | 1 + 2 files changed, 2

Re: [PATCH] arm: dts: medaitek: convert gmac link mode to 2500base-x for mt7986a-bpi-r3-sd

2023-08-04 Thread Daniel Golle
On Fri, Aug 04, 2023 at 09:01:55AM +0800, Weijie Gao wrote: > The mt7531 of bpi-r3 is connected to mt7986 with 2.5Gbps HSGMII, not the > regular 1Gbps SGMII. > > Signed-off-by: Weijie Gao Reviewed-by: Daniel Golle > --- > This is a supplement to commit: > aef54ea1 (arm: d

[PATCH] ram: mediatek: mt7629: include

2023-07-31 Thread Daniel Golle
e so SZ_* is defined. Reported-by: Tianling Shen Signed-off-by: Daniel Golle --- drivers/ram/mediatek/ddr3-mt7629.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ram/mediatek/ddr3-mt7629.c b/drivers/ram/mediatek/ddr3-mt7629.c index 1737fdac970..f65fcf179cf 100644 --- a/driv

[PATCH] pinctrl: mediatek: set R1/R0 in case pullen/pullsel succeeded

2023-04-12 Thread Daniel Golle
ore the originally intended and correct behavior and also change the descriptive comment accordingly. Fixes: dafe0fbfb0f3 ("pinctrl: mediatek: rewrite mtk_pinconf_set and related functions") Signed-off-by: Daniel Golle --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 4 ++-- 1 file

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

2023-04-11 Thread Daniel Golle
On Fri, Jan 06, 2023 at 08:52:26AM -0600, Simon Glass wrote: > Avoid duplicating some of the escape-sequence processing here and use the > CLI function instead. > > Signed-off-by: Simon Glass > --- > > [...] > diff --git a/common/menu.c b/common/menu.c > index 7db98942a61..45f36ae3ede 100644 > -

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

2023-01-27 Thread Daniel Schwierzeck
bool "Little endian" - depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE + depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE || (CPU_LITTLE_ENDIAN && ARC) endchoice A *make savedefconfig* should than automatically add *CONFIG_SYS_LITTLE_ENDIAN=y* or *CONFIG_SYS_BIG_ENDIAN=y* to the ARC board defconfig's. -- - Daniel

Re: DDR timing for vendor board

2022-12-09 Thread Daniel Schwierzeck
gle channel RAM boards are particularly difficult to get working as the majority if not all mainlined board use dual channel RAM. Sorry I can't be more help, but trying to use the DDR blob is a good starting point to get you going on mainline. Good Luck! -- Jack Mitchell, Consultant https://www.tuxable.co.uk -- - Daniel

  1   2   3   4   5   6   7   8   9   10   >