Re: [PATCH 0/4] fs: ubifs: Fix crash and add safeguards

2024-07-31 Thread Heiko Schocher
Hello Alexander, On 01.08.24 08:50, Alexander Dahl wrote: Hei, Am Thu, Jul 04, 2024 at 10:18:55AM +0200 schrieb Alexander Dahl: Hello Heiko, Am Thu, Jul 04, 2024 at 06:28:31AM +0200 schrieb Heiko Schocher: Hello Alexander, On 03.07.24 12:12, Alexander Dahl wrote: Hei hei, filesystem handl

Re: [PATCH 0/4] fs: ubifs: Fix crash and add safeguards

2024-07-31 Thread Michael Nazzareno Trimarchi
Hi all On Thu, Aug 1, 2024 at 8:50 AM Alexander Dahl wrote: > > Hei, > > Am Thu, Jul 04, 2024 at 10:18:55AM +0200 schrieb Alexander Dahl: > > Hello Heiko, > > > > Am Thu, Jul 04, 2024 at 06:28:31AM +0200 schrieb Heiko Schocher: > > > Hello Alexander, > > > > > > On 03.07.24 12:12, Alexander Dahl

Re: [PATCH 0/4] fs: ubifs: Fix crash and add safeguards

2024-07-31 Thread Alexander Dahl
Hei, Am Thu, Jul 04, 2024 at 10:18:55AM +0200 schrieb Alexander Dahl: > Hello Heiko, > > Am Thu, Jul 04, 2024 at 06:28:31AM +0200 schrieb Heiko Schocher: > > Hello Alexander, > > > > On 03.07.24 12:12, Alexander Dahl wrote: > > > Hei hei, > > > > > > filesystem handling is different in U-Boot a

Re: [PATCH v2] cmd: led: fix led command usage for the LED_SW_BLINK enabled case

2024-07-31 Thread Alexander Dahl
Hello Mikhail, Am Wed, Jul 31, 2024 at 06:56:13PM +0400 schrieb Mikhail Kshevetskiy: > CONFIG_LED_BLINK and CONFIG_LED_SW_BLINK can be defined independently. > Led blinking works if any (or both) of them is enabled. Unfortunately > the led command help does not display blinking option if only > CO

[PATCH v1 1/1] board: tegra: convert tegra-based boards to text env

2024-07-31 Thread Svyatoslav Ryhel
Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next. Signed-off-by: Svyatoslav Ryhel --- board/asus/grouper/grouper.env| 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 .../transformer-t30/config

[PATCH v1 0/1] board: tegra: convert boards to text env

2024-07-31 Thread Svyatoslav Ryhel
Move env stuff into dedicated files in boards (1st stage). U-Boot CI passed, boards I own work fine, tests are welcomed. Svyatoslav Ryhel (1): board: tegra: convert tegra-based boards to text env board/asus/grouper/grouper.env| 15 +++ .../asus/transformer-t20/transformer-t20.

[PATCH v1 0/1] disk: add TegraPT support

2024-07-31 Thread Svyatoslav Ryhel
Production Tegra20/30/114/124/132 devices use Nvidia's own partition table, which makes them a bit complicated to deal with. Luckily, it is compatible with the existing EFI partition already available in U-Boot, apart from the fact that it cannot pass Protective MBR check. In order to address this

[PATCH v1 1/1] disk: add TegraPT support

2024-07-31 Thread Svyatoslav Ryhel
TegraPT is compatible with EFI part but it can't pass Protective MBR check. Skip this check if CONFIG_TEGRA_PARTITION is enabled, storage uclass is MMC and devnum is 0. Note, eMMC on supported devices MUST be aliased to mmc0. Signed-off-by: Svyatoslav Ryhel --- disk/Kconfig| 8 dis

[PATCH v1 3/3] video: panel: add Sharp LQ101R1SX01 MIPI DSI panel driver

2024-07-31 Thread Svyatoslav Ryhel
This module is a color active matrix LCD module incorporating Oxide TFT (Thin Film Transistor). It is composed of a color TFT-LCD panel, driver ICs, a control circuit and power supply circuit, and a backlight unit. Graphics and texts can be displayed on a 2560×1600 dots panel with (16,777,216) colo

[PATCH v1 2/3] video: tegra20: dsi: add ganged mode support

2024-07-31 Thread Svyatoslav Ryhel
Implement ganged mode support for the Tegra DSI driver. The DSI host controller to gang up with is specified via a phandle in the device tree and the resolved DSI host controller used for the programming of the ganged-mode registers. Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegr

[PATCH v1 1/3] video: tegra20: dc: remove DECLARE_GLOBAL_DATA_PTR use

2024-07-31 Thread Svyatoslav Ryhel
It seems that DECLARE_GLOBAL_DATA_PTR use is not needed and video system works perfectly fine without it. Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegra-dc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/tegra20/tegra-dc.c b/drivers/video/tegra20/tegra-dc.c

[PATCH v1 0/3] video: tegra: implement ganged dsi mode

2024-07-31 Thread Svyatoslav Ryhel
This patchset implements DSI ganged mode and basically implements the same ideas introduced by Thierry Reding for Linux Tegra DSI driver. The Sharp LQ101R1SX01 driver is both an example of a panel that supports ganged mode and a preparation for upstreaming the ASUS Transformer TF701T which uses bot

[PATCHv5 14/14] configs: imx93: enable the 'cpu' command

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the 'cpu' command to display the CPU info and release CPU core to run baremetal or RTOS applications. Signed-off-by: Hou Zhiqiang --- V5: - No change. configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_11x11_evk_defco

[PATCHv5 13/14] configs: imx8m: enable the 'cpu' command

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the 'cpu' command and the depended imx CPU driver to display the CPU info and release CPU core to run baremetal or RTOS applications. Signed-off-by: Hou Zhiqiang --- V5: - No change. configs/imx8mm_evk_defconfig | 3 +++ configs/imx8mn_evk_defconfig | 3 +++ configs

[PATCHv5 12/14] MAINTAINERS: add entry for cpu command

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Added the original author Simon and myself. Signed-off-by: Hou Zhiqiang Reviewed-by: Simon Glass --- V5: - No change. MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c2832345ab..ddcb7128db 100644 --- a/MAINTAINERS +++

[PATCHv5 11/14] doc: cmd: add documentation for cpu command

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Add documentation for the 'cpu' command, taking NXP i.MX 8M Plus as a example. Signed-off-by: Hou Zhiqiang Reviewed-by: Simon Glass --- V5: - Added cmd/cpu to doc/usage/index.rst to fix doc build failure. doc/usage/cmd/cpu.rst | 101 +++

[PATCHv5 10/14] cmd: cpu: add release subcommand

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Add a new subcommand 'release' to bring up a core to run baremetal and RTOS applications. For example on i.MX8M Plus EVK, release the LAST core to run a RTOS application, passing the sequence number of the CPU core to release, here it is 3: u-boot=> cpu list 0: cpu@0

[PATCHv5 09/14] cpu: imx: implement release_core callback

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Release the secondary cores through the PSCI request. Signed-off-by: Hou Zhiqiang --- V5: - No change. drivers/cpu/imx8_cpu.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index a35147b72a..60d

[PATCHv5 08/14] cpu: imx: Add i.MX 8M series SoCs

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Add i.MX 8M Mini, Nano and Plus SoCs support. Signed-off-by: Hou Zhiqiang --- V5: - No change. drivers/cpu/imx8_cpu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index b633a2c73a..a35147b72a 100644 --- a/drivers

[PATCHv5 07/14] cpu: imx: removed the tail '\n' of the CPU description

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Return CPU description string without newline character in the end. Signed-off-by: Hou Zhiqiang --- V5: - No change. drivers/cpu/imx8_cpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 6a97b7b9ad..b633a2c73a 100

[PATCHv5 06/14] cpu: imx: fix the CPU type field width

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Increase one more bit to cover all CPU types. Otherwise it shows wrong CPU info on some platforms, such as i.MX8M Plus: U-Boot 2024.04+g674440bc73e+p0 (Jun 06 2024 - 10:05:34 +) CPU: NXP i.MX8MM Rev1.1 A53 at 4154504685 MHz at 30C Model: NXP i.MX8MPlus LPDD

[PATCHv5 05/14] cpu: imx: fix the CPU frequency in cpu_imx_get_info()

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang The cpu_freq stores the current CPU frequency in Hz. Signed-off-by: Hou Zhiqiang Reviewed-by: Michael Trimarchi --- V5: - No change. drivers/cpu/imx8_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cp

[PATCHv5 04/14] test: cpu: add test for release CPU core.

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Add test for API cpu_release_core(). Signed-off-by: Hou Zhiqiang Reviewed-by: Simon Glass --- V5: - No change. test/dm/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/dm/cpu.c b/test/dm/cpu.c index acba810599..8af25316ce 100644 --- a/test/dm/cpu.c +++ b/t

[PATCHv5 03/14] cpu: sandbox: implement release_core callback

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Add empty release CPU core function for testing. Signed-off-by: Hou Zhiqiang Reviewed-by: Simon Glass --- V5: - No change. drivers/cpu/cpu_sandbox.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/cpu/cpu_sandbox.c b/drivers/cpu/cpu_sandbox.c index e65e1

[PATCHv5 02/14] cpu: add release_core callback

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Add a new callback release_core to the cpu_ops, which is used to release a CPU core to run baremetal or RTOS application on a SoC with multiple CPU cores. Signed-off-by: Hou Zhiqiang Reviewed-by: Simon Glass --- V5: - No change. drivers/cpu/cpu-uclass.c | 10 ++ i

[PATCHv5 01/14] clk: imx8m: register ARM A53 core clock

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Register ARM A53 core clock for i.MX 8M Mini, Nano and Plus, preparing for enabling the 'cpu' command, which depends on this to print CPU core frequency. Signed-off-by: Hou Zhiqiang --- V5: - Made the i.MX8M core clock CLK_IS_CRITICAL. drivers/clk/imx/clk-imx8mm.c | 8

[PATCHv5 00/14] Add a subcommand 'release' to cmd/cpu.c

2024-07-31 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch set is to add a subcommand 'release' to the 'cpu' command in cmd/cpu.c, making the command is able to release a core to run baremetal and RTOS applications. Fixed some problems of the imx8_cpu.c and added i.MX 8M series SoCs support. Added ARM A53 core clock regist

RE: [PATCHv4 11/14] doc: cmd: add documentation for cpu command

2024-07-31 Thread Z.Q. Hou
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Wednesday, July 31, 2024 10:40 PM > To: Z.Q. Hou > Cc: u-boot@lists.denx.de; tr...@konsulko.com; Peng Fan > ; feste...@gmail.com; ma...@denx.de; > lu...@denx.de; sean...@gmail.com; xypron.g...@gmx.de > Subject: Re: [PATCHv4 11/14

RE: [PATCHv4 10/14] cmd: cpu: add release subcommand

2024-07-31 Thread Z.Q. Hou
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Wednesday, July 31, 2024 10:39 PM > To: Z.Q. Hou > Cc: u-boot@lists.denx.de; tr...@konsulko.com; Peng Fan > ; feste...@gmail.com; ma...@denx.de; > lu...@denx.de; sean...@gmail.com; xypron.g...@gmx.de > Subject: Re: [PATCHv4 10/14

[PATCH] tools: imagetool: Remove unnecessary check from toc0_verify_cert_item()

2024-07-31 Thread Seung-Woo Kim
Remove unnecessary null check from toc0_verify_cert_item() because the array digest is always not null. Signed-off-by: Seung-Woo Kim --- tools/sunxi_toc0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sunxi_toc0.c b/tools/sunxi_toc0.c index 292649fe90f1..76693647a095

Re: [PATCH 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-07-31 Thread Marek Vasut
On 7/29/24 1:55 PM, Svyatoslav Ryhel wrote: [...] What is the problem you observe on tegra 3 ? i2c line fails since it probes in spl with your patch, but it does not relocate and then probes once more after relocation. Probe fails along with all devices on same line. Could it be that you eit

RE: [PATCHv4 11/14] doc: cmd: add documentation for cpu command

2024-07-31 Thread Z.Q. Hou
Hi Fabio, > -Original Message- > From: Fabio Estevam > Sent: Wednesday, July 31, 2024 9:36 PM > To: Z.Q. Hou > Cc: u-boot@lists.denx.de; tr...@konsulko.com; Peng Fan > ; s...@chromium.org; ma...@denx.de; lu...@denx.de; > sean...@gmail.com; xypron.g...@gmx.de > Subject: Re: [PATCHv4 11/14

Re: [GIT PULL] u-boot-video/video-20240731

2024-07-31 Thread Tom Rini
following changes since commit 8877bc51a8a4d921ba2f163208b8b1a57ba47c18: > > Merge patch series "led: implement software blinking" (2024-07-30 14:31:24 > -0600) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-video.g

Re: [PATCH v8 8/8] rockchip: Avoid #ifdefs in RK3399 SPL

2024-07-31 Thread Jonas Karlman
Hi Simon, On 2024-07-31 23:58, Simon Glass wrote: > The code here is confusing due to large blocks which are #ifdefed out. > Add a function phase_sdram_init() which returns whether SDRAM init > should happen in the current phase, using that as needed to control the > code flow. > > This increases

Re: [PATCH 5/5] board: rockchip: Add Radxa ZERO 3W/3E

2024-07-31 Thread FUKAUMI Naoki
Hi, On 7/31/24 15:50, Jonas Karlman wrote: The Radxa ZERO 3W/3E is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor and rich interfaces. Implement rk_board_late_init() to set correct fdtfile env var and board_fit_config_name_match()

Re: [PATCH v4] board: rockchip: add Radxa ROCK 3 Model C

2024-07-31 Thread FUKAUMI Naoki
Hi, please cherry-pick below too https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/commit/src/arm64/rockchip/rk3566-rock-3c.dts?h=v6.11-rc1-dts&id=dd40945a1d0e28ae6eaf9da04f8e2dcebf8233ea On 7/22/24 19:56, Maxim Moskalets wrote: Based on rock-3a-rk3568_defconfig

Re: [PATCH v7 8/8] rockchip: Avoid #ifdefs in RK3399 SPL

2024-07-31 Thread Jonas Karlman
Hi Simon, On 2024-07-31 23:52, Simon Glass wrote: > Hi Jonas, > > On Wed, 31 Jul 2024 at 09:03, Jonas Karlman wrote: >> >> Hi Simon, >> >> On 2024-07-31 16:49, Simon Glass wrote: >>> The code here is confusing due to large blocks which are #ifdefed out. >>> Add a function phase_sdram_init() whic

[PATCH v8 8/8] rockchip: Avoid #ifdefs in RK3399 SPL

2024-07-31 Thread Simon Glass
The code here is confusing due to large blocks which are #ifdefed out. Add a function phase_sdram_init() which returns whether SDRAM init should happen in the current phase, using that as needed to control the code flow. This increases code size by about 500 bytes in SPL when the cache is on, sinc

Re: [PATCH v7 8/8] rockchip: Avoid #ifdefs in RK3399 SPL

2024-07-31 Thread Simon Glass
Hi Jonas, On Wed, 31 Jul 2024 at 09:03, Jonas Karlman wrote: > > Hi Simon, > > On 2024-07-31 16:49, Simon Glass wrote: > > The code here is confusing due to large blocks which are #ifdefed out. > > Add a function phase_sdram_init() which returns whether SDRAM init > > should happen in the current

Re: [PATCH 5/9] fdt: Correct condition for bloblist existing

2024-07-31 Thread Simon Glass
Hi Ilias, On Wed, 31 Jul 2024 at 14:09, Ilias Apalodimas wrote: > > Hi Simon, > > On Wed, 31 Jul 2024 at 01:35, Simon Glass wrote: > > > > Hi all, > > > > On Fri, 21 Jun 2024 at 12:16, Simon Glass wrote: > > > > > > Hi Raymond, > > > > > > On Fri, 21 Jun 2024 at 10:40, Raymond Mao wrote: > > >

Re: [PATCH 5/9] fdt: Correct condition for bloblist existing

2024-07-31 Thread Simon Glass
Hi Raymond, On Wed, 31 Jul 2024 at 07:59, Raymond Mao wrote: > > Hi Simon, > > On Tue, 30 Jul 2024 at 18:35, Simon Glass wrote: >> >> Hi all, >> >> On Fri, 21 Jun 2024 at 12:16, Simon Glass wrote: >> > >> > Hi Raymond, >> > >> > On Fri, 21 Jun 2024 at 10:40, Raymond Mao wrote: >> > > >> > > Hi

[PATCH 2/2] board: rockchip: Add FriendlyElec CM3588 NAS

2024-07-31 Thread Jonas Karlman
The CM3588 NAS by FriendlyElec pairs the CM3588 compute module, based on the Rockchip RK3588 SoC, with the CM3588 NAS Kit carrier board. Features tested on a CM3588 NAS Kit with 8GB RAM 64GB eMMC module: - SD-card boot - eMMC boot - Ethernet - PCIe/NVMe - USB gadget - USB host Signed-off-by: Jona

[PATCH 1/2] arm64: dts: rockchip: Add FriendlyElec CM3588 NAS board

2024-07-31 Thread Jonas Karlman
From: Sebastian Kropatsch The CM3588 NAS by FriendlyElec pairs the CM3588 compute module, based on the Rockchip RK3588 SoC, with the CM3588 NAS Kit carrier board. To reflect the hardware setup, add device tree sources for the SoM and the NAS daughter board as separate files. Hardware features:

[PATCH 0/2] board: rockchip: Add FriendlyElec CM3588 NAS

2024-07-31 Thread Jonas Karlman
This series add support for the RK3588 based FriendlyElec CM3588 NAS board. Features tested on a CM3588 NAS Kit with 8GB RAM 64GB eMMC module: - SD-card boot - eMMC boot - Ethernet - PCIe/NVMe - USB gadget - USB host Jonas Karlman (1): board: rockchip: Add FriendlyElec CM3588 NAS Sebastian Kro

[RFC PATCH 4/4] usb: gadget: udc: Fix duplicate uclass name

2024-07-31 Thread Zixun LI
Currently both USB host uclass and USB gadget uclass are using the same name "usb" which break uclass functions like uclass_get_by_name(). Rename the uclass to "usb_gadget" while using "usb" as sequence alias naming to keep the alias function working. Signed-off-by: Zixun LI --- drivers/usb/gad

[RFC PATCH 3/4] cmd: bind: Use device sequence instead for driver bind/unbind

2024-07-31 Thread Zixun LI
Currently uclass index is used for bind/unbind which ignores alias sequence numbering. Use device sequence number instead as it's the number explicitly set in the DT. Signed-off-by: Zixun LI --- cmd/bind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/bind.c b/cmd/b

[RFC PATCH 2/4] dm: core: Show device sequence instead in dm_dump_tree()

2024-07-31 Thread Zixun LI
Currently uclass index is shown in DM tree dump which ignores alias sequence numbering. The result could be confusing since these 2 numbers could be different. Show device sequence number instead. Signed-off-by: Zixun LI --- drivers/core/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[RFC PATCH 0/4] dm: Duplicate uclass name fix and alias improvements

2024-07-31 Thread Zixun LI
Patch 1 is a tentative fix for duplicate uclass name issue met in https://lists.denx.de/pipermail/u-boot/2024-July/560189.html The idea is to use orignal class name only for sequence alias to keep this alias function working and rename the class something else. Patch 2 and 3 make "dm tree", "bind

[RFC PATCH 1/4] dm: core: Add a way to specify an alt name for alias sequence numbering

2024-07-31 Thread Zixun LI
A new field name_seq_alias is added to uclass_driver structure, which allows an uclass driver to use an alternate name for alias sequence numbering. For example an uclass named "usb_gadget" can share alias with "usb" uclass : UCLASS_DRIVER(usb_gadget_generic) = { .id = UCLASS_USB_G

Re: [PATCH 5/9] fdt: Correct condition for bloblist existing

2024-07-31 Thread Ilias Apalodimas
Hi Simon, On Wed, 31 Jul 2024 at 01:35, Simon Glass wrote: > > Hi all, > > On Fri, 21 Jun 2024 at 12:16, Simon Glass wrote: > > > > Hi Raymond, > > > > On Fri, 21 Jun 2024 at 10:40, Raymond Mao wrote: > > > > > > Hi Simon, > > > > > > On Fri, 21 Jun 2024 at 10:58, Simon Glass wrote: > > >> > >

Re: [PATCH] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present

2024-07-31 Thread Sam Protsenko
On Thu, Jul 25, 2024 at 3:57 PM Sam Protsenko wrote: > > [snip] > > >> > >> If anything, that shows there is a rising need in this propagation > >> feature. I'd like to encourage the maintainers to take a look at both > >> implementations, and maybe at least comment on why there is hesitance > >>

Re: [PATCH 4/4] board: rockchip: Add Radxa ROCK 5 ITX

2024-07-31 Thread Jonas Karlman
Hi Heiko, On 2024-07-31 12:26, Heiko Stuebner wrote: > The Rock 5 ITX is board in ITX form factor using the RK358 SoC > > It can be powered either by 12V, ATX power-supply or PoE. > > Notable peripherals are the 4 SATA ports, M.2 M-Key slot, M.2 E-key slot, > 2*2.5Gb PCIe-connected Ethernet NICs

Re: [PATCH] usb: bootm: Drop old USB-device-removal code

2024-07-31 Thread Tom Rini
On Fri, 26 Jul 2024 06:36:09 -0600, Simon Glass wrote: > USB is stopped using driver model now, in dm_remove_devices_flags() in > announce_and_cleanup() at the top of this file. > > The usb_stop() call actually unbinds devices. > > When a USB device is unbound, it causes any bootflows attached t

Re: [PATCH v3] tools: Add script to update git subtree projects

2024-07-31 Thread Tom Rini
On Thu, 25 Jul 2024 06:57:51 -0700, Raymond Mao wrote: > Recently we are introducing multiple git subtree projects and > it is the right time to have a universal script to update > various subtrees and replace the dts/update-dts-subtree.sh. > > update-subtree.sh is a wrapper of git subtree comman

Re: [PATCH] env: mmc: Fix env loading with CONFIG_SYS_MMC_ENV_PART

2024-07-31 Thread Tom Rini
On Fri, 19 Jul 2024 17:38:54 +0200, Mattijs Korpershoek wrote: > When CONFIG_SYS_MMC_ENV_PART=2, the environment is loaded from > the USER partition (hwpart=0) instead of from the > BOOT1 partition (hwpart=2). > > IS_ENABLED() cannot be used for non-boolean KConfig options. > Its documentation st

Re: [PATCH 0/2] Endian Kconfig improvements

2024-07-31 Thread Tom Rini
On Wed, 17 Jul 2024 16:07:01 +0800, Jiaxun Yang wrote: > This is a subset of my previous arm64_be work. > > I wish this could be merged first so it would be easier to work > against xtensa and arm64 be support. > > Thanks > > [...] Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v4 0/5] video: Improve syncing performance with cyclic

2024-07-31 Thread Anatolij Gustschin
Hi Simon, On Wed, 31 Jul 2024 08:44:07 -0600 Simon Glass s...@chromium.org wrote: ... > Simon Glass (5): > cyclic: Add a symbol for SPL > video: Move last_sync to private data > video: Use cyclic to handle video sync > sandbox: Increase cyclic CPU-time limit > sandbox: Drop video-sync in

[GIT PULL] u-boot-video/video-20240731

2024-07-31 Thread Anatolij Gustschin
0 14:31:24 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-video.git tags/video-20240731 for you to fetch changes up to 521d377f7852c037e338c66756982084b1cb0132: sandbox: Drop video-sync in serial driver (2024-07-31 16:5

Re: [PATCH v1 2/4] cmd: ab: introduce 'ab_dump' command to print BCB block content

2024-07-31 Thread Dmitry Rokosov
On Wed, Jul 31, 2024 at 08:38:49AM -0600, Simon Glass wrote: > Hi Mattijs, > > On Tue, 30 Jul 2024 at 02:19, Mattijs Korpershoek > wrote: > > > > Hi Dmitry, > > > > Thank you for the patch. > > > > Hi Simon, > > > > On dim., juil. 28, 2024 at 13:36, Simon Glass wrote: > > > > > Hi Dmitry, > > >

Re: [PATCH RFC] gpio: Fix probing of gpio-hogs

2024-07-31 Thread Chris Webb
Hi Simon, Simon Glass wrote: On Wed, 31 Jul 2024 at 04:14, Chris Webb wrote: Alas I don't have any boards to test on for either of these platforms. If you have the inclination it is still worth sending a patch. The maintainer can check it. These sorts of counter-examples can be copied and

Re: [PATCHv2 1/3] i2c: imx_lpi2c: Fix a typo in bus_i2c_receive

2024-07-31 Thread Fedor Ross
On Wed, Jul 31, 2024 at 5:41 AM Heiko Schocher wrote: > > Hello Fedor, Hello Heiko, > On 30.07.24 17:25, fedorr...@gmail.com wrote: > > From: Fedor Ross > > > > Fix a typo in a debug message. It should be 'for' not 'fot' . > > > > Signed-off-by: Fedor Ross > > --- > > Cc: Heiko Schocher > > C

Re: [PATCH v4 00/38] mmc: dw_mmc: Enable eMMC on E850-96 board

2024-07-31 Thread Sam Protsenko
Hi Minkyu, Have you by chance checked this series? Don't mean to push, but it's been pending for a while now. And further E850-96 platform enablement depends on this series, so I'd really appreciate it if you can look at it and possibly apply it. Thanks! On Thu, Jul 25, 2024 at 3:45 PM Sam Prots

[PATCH v5 27/27] configs: enable MbedTLS as default setting

2024-07-31 Thread Raymond Mao
Enable MbedTLS as default setting for qemu arm64 Signed-off-by: Raymond Mao --- Changes in v2 - None. Changes in v3 - None. Changes in v4 - None. Changes in v5 - Remove unused config MBEDTLS_LIB_TLS. - Remove EFI_SECURE_BOOT from the default config. configs/qemu_arm64_defconfig | 3 +++ configs

[PATCH v5 26/27] test: Remove ASN1 library test

2024-07-31 Thread Raymond Mao
With MBEDTLS_LIB_X509 enabled, we don't build the original ASN1 lib, So remove it from test. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v2 - Initial patch. Changes in v3 - None. Changes in v4 - None. Changes in v5 - None. test/Kconfig | 2 +- 1 file changed, 1 inse

[PATCH v5 25/27] asn1_decoder: add build options for ASN1 decoder

2024-07-31 Thread Raymond Mao
When building with MbedTLS, we are using MbedTLS to decode ASN1 data for x509, pkcs7 and mscode. Introduce _LEGACY and _MBEDTLS kconfigs for ASN1 decoder legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch. Changes in v3 - None. Changes in

[PATCH v5 24/27] lib/rypto: Adapt rsa_helper to MbedTLS

2024-07-31 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for RSA helper, here to adjust the makefile accordingly. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v2 - Initial patch. Changes in v3 - Update commit message. Changes in v4 - Control building legacy library via '_LE

[PATCH v5 23/27] mbedtls: add RSA helper layer on MbedTLS

2024-07-31 Thread Raymond Mao
Add RSA helper layer on top on MbedTLS PK and RSA library. Introduce _LEGACY and _MBEDTLS kconfigs for RSA helper legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch. Changes in v3 - None. Changes in v4 - Introduce _LEGACY and _MBEDTLS kco

[PATCH v5 22/27] lib/crypto: Adapt mscode_parser to MbedTLS

2024-07-31 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for mscode parser, here to adjust the header and makefiles accordingly. Adding _LEGACY Kconfig for legacy mscode implementation. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - Update commit

[PATCH v5 21/27] mbedtls: add MSCode parser porting layer

2024-07-31 Thread Raymond Mao
Add porting layer for MSCode on top of MbedTLS ASN1 library. Introduce _MBEDTLS kconfigs for MSCode MbedTLS implementation. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - None. Changes in v4 - Introduce _LEGACY and _MBEDTLS kconfigs for MSCod

[PATCH v5 20/27] lib/crypto: Adapt PKCS7 parser to MbedTLS

2024-07-31 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for PKCS7 parser, here to adjust the header and makefiles accordingly. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - Update commit message. Changes in v4 - Control building legacy library v

[PATCH v5 19/27] mbedtls: add PKCS7 parser porting layer

2024-07-31 Thread Raymond Mao
Add porting layer for PKCS7 parser on top of MbedTLS PKCS7 library. Introduce _LEGACY and _MBEDTLS kconfigs for PKCS7 parser legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. - Fix EFI Capsule CI test failures. C

[PATCH v5 18/27] lib/crypto: Adapt x509_cert_parser to MbedTLS

2024-07-31 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for x509 cert parser, here to adjust the header and makefiles accordingly. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - Update commit message. Changes in v4 - Control building legacy libra

[PATCH v5 17/27] mbedtls: add X509 cert parser porting layer

2024-07-31 Thread Raymond Mao
Add porting layer for X509 cert parser on top of MbedTLS X509 library. Introduce _LEGACY and _MBEDTLS kconfigs for X509 cert parser legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - None. Changes

[PATCH v5 16/27] lib/crypto: Adapt public_key header with MbedTLS

2024-07-31 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for public key, here to adjust the header and makefiles accordingly. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - Update commit message. Changes in v4 - Control building legacy library via

[PATCH v5 15/27] mbedtls: add public key porting layer

2024-07-31 Thread Raymond Mao
Add porting layer for public key on top of MbedTLS X509 library. Introduce _LEGACY and _MBEDTLS kconfigs for public key legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - None. Changes in v4 - Intr

[PATCH v5 14/27] pkcs7: move common functions to PKCS7 helper

2024-07-31 Thread Raymond Mao
Move pkcs7_get_content_data as a helper function that can be shared by legacy crypto lib and MbedTLS implementation. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v4 - Initial patch. Changes in v5 - Remove authorship. lib/crypto/Makefile | 1 + lib/crypto/pkcs7

[PATCH v5 13/27] x509: move common functions to x509 helper

2024-07-31 Thread Raymond Mao
Move x509_check_for_self_signed as a common helper function that can be shared by legacy crypto lib and MbedTLS implementation. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v4 - Initial patch. Changes in v5 - Removed authorship. lib/crypto/Makefile | 1 + l

[PATCH v5 12/27] public_key: move common functions to public key helper

2024-07-31 Thread Raymond Mao
Move public_key_free and public_key_signature_free as helper functions that can be shared by legacy crypto lib and MbedTLS implementation. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v4 - Initial patch. Changes in v5 - Removed authorship. lib/crypto/Makefile

[PATCH v5 11/27] mbedtls/external: update MbedTLS PKCS7 test suites

2024-07-31 Thread Raymond Mao
Update the PKCS7 test suites for multiple certs. The PR for this patch is at: https://github.com/Mbed-TLS/mbedtls/pull/9001 For enabling EFI loader PKCS7 features with MbedTLS build, we need this patch on top of MbedTLS v3.6.0 before it is merged into the next MbedTLS LTS release. Signed-off-by:

[PATCH v5 10/27] mbedtls/external: support decoding multiple signer's cert

2024-07-31 Thread Raymond Mao
Support decoding multiple signer's cert in the signed data within a PKCS7 message. The PR for this patch is at: https://github.com/Mbed-TLS/mbedtls/pull/9001 For enabling EFI loader PKCS7 features with MbedTLS build, we need this patch on top of MbedTLS v3.6.0 before it is merged into the next Mb

[PATCH v5 09/27] mbedtls/external: support PKCS9 Authenticate Attributes

2024-07-31 Thread Raymond Mao
Populate PKCS9 Authenticate Attributes from signer info if it exists in a PKCS7 message. Add OIDs for describing objects using for Authenticate Attributes. The PR for this patch is at: https://github.com/Mbed-TLS/mbedtls/pull/9001 For enabling EFI loader PKCS7 features with MbedTLS build, we need

[PATCH v5 08/27] mbedtls/external: support Microsoft Authentication Code

2024-07-31 Thread Raymond Mao
Populate Microsoft Authentication Code from the content data into PKCS7 decoding context if it exists in a PKCS7 message. Add OIDs for describing objects using for Microsoft Authentication Code. The PR for this patch is at: https://github.com/Mbed-TLS/mbedtls/pull/9001 For enabling EFI loader PKC

[PATCH v5 07/27] hash: integrate hash on mbedtls

2024-07-31 Thread Raymond Mao
Integrate common/hash.c on the hash shim layer so that hash APIs from mbedtls can be leveraged by boot/image and efi_loader. Signed-off-by: Raymond Mao --- Changes in v2 - Use the original head files instead of creating new ones. Changes in v3 - Add handle checkers for malloc. Changes in v4 - Non

[PATCH v5 06/27] mbedtls: add digest shim layer for MbedTLS

2024-07-31 Thread Raymond Mao
Implement digest shim layer on top of MbedTLS crypto library. Introduce _MBEDTLS kconfig for MbedTLS crypto implementations. Signed-off-by: Raymond Mao --- Changes in v2 - Split the shim layer into separated files and use the original head files instead of creating new ones. Changes in v3 - Ref

[PATCH v5 05/27] sha1: Remove sha1 non-watchdog API

2024-07-31 Thread Raymond Mao
We don't need an API specially for non-watchdog since sha1_csum_wd supports it by disabling CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG. Set 0x1 as default chunk size for SHA1. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v4 - Initial patch. Changes in v5 - None. boar

[PATCH v5 04/27] md5: Remove md5 non-watchdog API

2024-07-31 Thread Raymond Mao
We don't need an API specially for non-watchdog since md5_wd supports it by disabling CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG. Set 0x1 as default chunk size for MD5. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas Reviewed-by: Michal Simek --- Changes in v3 - Initial patch. Changes

[PATCH v5 03/27] lib: Adapt digest header files to MbedTLS

2024-07-31 Thread Raymond Mao
Adapt digest header files to support both original libs and MbedTLS by switching on/off MBEDTLS_LIB_CRYPTO. Introduce _LEGACY kconfig for legacy hash implementations. FIXME: `IS_ENABLED` or `CONFIG_IS_ENABLED` is not applicable here, since including causes undefined reference on schedule() with s

[PATCH v5 02/27] mbedtls: add mbedtls into the build system

2024-07-31 Thread Raymond Mao
Port mbedtls with adapted libc header files. Add mbedtls default config header file. Optimize mbedtls default config by disabling unused features to reduce the target size. Add mbedtls kbuild makefile. Add Kconfig skeleton and config submenu entry for selecting crypto libraries between mbedtls and

[PATCH v5 01/27] CI: Exclude MbedTLS subtree for CONFIG checks

2024-07-31 Thread Raymond Mao
Since MbedTLS is an external repo with its own coding style, exclude it from Azure and gitlab CI CONFIG checks. Signed-off-by: Raymond Mao Reviewed-by: Tom Rini Reviewed-by: Ilias Apalodimas --- Changes in v2 - Initial patch. Changes in v3 - None. Changes in v4 - None. Changes in v5 - None. .

[PATCH v5 00/27] Integrate MbedTLS v3.6 LTS with U-Boot

2024-07-31 Thread Raymond Mao
Integrate MbedTLS v3.6 LTS (currently v3.6.0) with U-Boot. Motivations: 1. MbedTLS is well maintained with LTS versions. 2. LWIP is integrated with MbedTLS and easily to enable HTTPS. 3. MbedTLS recently switched license back to GPLv2. Prerequisite: - This patch series

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-31 Thread Tom Rini
On Wed, Jul 31, 2024 at 08:39:23AM -0600, Simon Glass wrote: [snip] > > > > so that > > > > step three can be seeing what tweaks may be needed in where things > > > > allocate memory. > > > > > > So my series is step 3? > > > > Or at least understanding what the problems may still be, yes. > > In

Re: [PATCH 13/14] Update u-boot.cfg to include CFG also

2024-07-31 Thread Tom Rini
On Wed, Jul 31, 2024 at 08:39:30AM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 29 Jul 2024 at 12:17, Tom Rini wrote: > > > > On Sun, Jul 28, 2024 at 01:36:09PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 28 Jun 2024 at 01:33, Simon Glass wrote: > > > > > > > > Hi Tom, > > > >

Re: Pull request efi-2024-10-rc2

2024-07-31 Thread Tom Rini
On Wed, Jul 31, 2024 at 10:42:27AM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 8877bc51a8a4d921ba2f163208b8b1a57ba47c18: > > Merge patch series "led: implement software blinking" (2024-07-30 > 14:31:24 -0600) > > are available in the Git repository at:

Re: [PATCH 2/3] doc: stm32mp1: fix literal block markers (::)

2024-07-31 Thread Grzegorz Szymaszek
Hi Heinrich, thank you for comprehensive review. I'll respond to the specific points later, but there's one thing I feel I should explain. In this series I intended to only fix/improve the reStructuredText/HTML syntax and then, if the changes were approved, I would go with making the actual text e

[PATCH v2] bootstage: Fix out-of-bounds read in reloc_bootstage()

2024-07-31 Thread Richard Weinberger
bootstage_get_size() returns the total size of the data structure including associated records. When copying from gd->bootstage, only the allocation size of gd->bootstage must be used. Otherwise too much memory is copied. This bug caused no harm so far because gd->new_bootstage is always large eno

Re: [PATCH] arm: dts: orangepi: Fix Orange Pi R1 and Plus LTS boot issue

2024-07-31 Thread Jonas Karlman
Hi, On 2024-07-31 13:49, Pugemon wrote: > Orange Pi R1 Plus and LTS don't have eMMC > (default mmc0 in rk3328-u-boot.dtsi). > The device is equipped with SPI flash memory, which U-Boot tries to use for > reading configuration. However, the manufacturer has not provided any means > to utilize SPI f

Re: [PATCH v2] boot: android: fix booting without a ramdisk

2024-07-31 Thread Michael Walle
Hi, > > > - if (ret) > > > + if (ret == -ENOENT) > > > + return -ENOPKG; > > We normally use -ENOENT for this sort of thing. That's the way select_ramdisk() is documented. It was actually introduced by yourself in commit e4c92879

Re: [PATCH v3 0/5] video: Improve syncing performance with cyclic

2024-07-31 Thread Anatolij Gustschin
Hi Simon, On Wed, 31 Jul 2024 08:38:35 -0600 Simon Glass s...@chromium.org wrote: > Hi Anatolij, > > On Tue, 30 Jul 2024 at 17:05, Anatolij Gustschin wrote: > > > > Hi Simon, > > > > On Thu, 4 Jul 2024 08:48:54 +0100 > > Simon Glass s...@chromium.org wrote: > > > > > Now that U-Boot has a ba

Re: [PATCH 33/40] test: cedit: use allocated address for reading file

2024-07-31 Thread Sughosh Ganu
On Wed, 31 Jul 2024 at 20:08, Simon Glass wrote: > > Hi Sughosh, > > On Wed, 31 Jul 2024 at 01:26, Sughosh Ganu wrote: > > > > On Mon, 29 Jul 2024 at 20:58, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Mon, 29 Jul 2024 at 02:53, Sughosh Ganu > > > wrote: > > > > > > > > On Fri, 26

Re: [PATCH v7 8/8] rockchip: Avoid #ifdefs in RK3399 SPL

2024-07-31 Thread Jonas Karlman
Hi Simon, On 2024-07-31 16:49, Simon Glass wrote: > The code here is confusing due to large blocks which are #ifdefed out. > Add a function phase_sdram_init() which returns whether SDRAM init > should happen in the current phase, using that as needed to control the > code flow. > > This increases

  1   2   3   >