Re: [PATCH v4 1/3] Move bootorder and bootoption apis to lib

2023-05-26 Thread Heinrich Schuchardt
On 5/23/23 21:18, Raymond Mao wrote: Rename and move bootorder and bootoption apis from cmd to lib for re-use between eficonfig and bootmgr Signed-off-by: Raymond Mao The commit message says that this patch does not change the code! But there are code changes, e.g. < for (i = 0

Re: [PATCH v2] PCI: zynqmp: Add ZynqMP NWL PCIe root port driver

2023-05-26 Thread Stefan Roese
Hi Michal, On 5/25/23 17:53, Michal Simek wrote: On 5/25/23 11:49, Stefan Roese wrote: This patch adds the PCIe controller driver for the Xilinx / AMD ZynqMP NWL PCIe Bridge as root port. The driver source is partly copied from the Linux PCI driver and modified to enable usage in U-Boot (e.g.

Re: [PATCH v5 1/3] Move bootorder and bootoption apis to lib

2023-05-26 Thread Heinrich Schuchardt
On 5/26/23 00:04, Raymond Mao wrote: Rename and move bootorder and bootoption apis from cmd to lib for re-use between eficonfig and bootmgr Signed-off-by: Raymond Mao The commit message says that this patch does not change the code! But there are code changes, e.g. < for (i = 0

Re: [PATCH v5 3/3] Load option with short device path for boot vars

2023-05-26 Thread Heinrich Schuchardt
On 5/26/23 00:04, Raymond Mao wrote: The boot variables automatically generated for removable medias should be with short form of device path without device nodes. This is a requirement for the case that a removable media is plugged into a different port but is still able to work with the existin

Re: [PATCH v5 2/3] Boot var automatic management for removable medias

2023-05-26 Thread Heinrich Schuchardt
On 5/26/23 00:04, Raymond Mao wrote: Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Signed-off-by: Raymond Mao ---

Re: [PATCH v4 1/7] dt-bindings: clock: Add StarFive JH7110 PLL clock generator

2023-05-26 Thread Torsten Duwe
On Wed, 24 May 2023 11:19:48 +0100 Conor Dooley wrote: > On Wed, May 24, 2023 at 05:00:02PM +0800, Xingyu Wu wrote: > > On 2023/5/23 19:28, Conor Dooley wrote: > > > On Tue, May 23, 2023 at 01:10:06PM +0200, Torsten Duwe wrote: > > >> On Tue, 23 May 2023 09:28:39 +0100 > > >> Conor Dooley wrote:

Re: [PATCH v4 00/11] Add ethernet driver for StarFive JH7110 SoC

2023-05-26 Thread Torsten Duwe
On Thu, 25 May 2023 17:36:26 +0800 Yanhong Wang wrote: [...] > The main difference between StarFive VisionFive 2 1.2A and 1.3B is > gmac, but the difference in gmac is not defined in DT, but reads the > PCB version from EEPROM, and then dynamically configures the > difference of gmac according t

Re: [PATCH v4 3/3] Load option with short device path for boot vars

2023-05-26 Thread Ilias Apalodimas
On Fri, 26 May 2023 at 09:30, Heinrich Schuchardt wrote: > > On 5/25/23 09:12, Ilias Apalodimas wrote: > > Hi Raymond, > > > > On Tue, May 23, 2023 at 12:18:22PM -0700, Raymond Mao wrote: > >> The boot variables automatically generated for removable medias > >> should be with short form of device

Re: Fit Signature booting without public key

2023-05-26 Thread Manorit Chawdhry
Hi Tom, On 10:05-20230525, Tom Rini wrote: > On Thu, May 25, 2023 at 11:21:44AM +0530, Manorit Chawdhry wrote: > > Hi Tom, > > > > On 11:30-20230516, Tom Rini wrote: > > > On Tue, May 16, 2023 at 12:11:24PM +0530, Manorit Chawdhry wrote: > > > > > > > Hi All, > > > > > > > > I recently came upo

Re: [RFC PATCH 10/17] clk: sunxi: Add support for the D1 CCU

2023-05-26 Thread Andre Przywara
On Thu, 25 May 2023 18:34:45 -0600 Sam Edwards wrote: Hi Sam, thanks for staying on this! > On 12/5/22 17:45, Andre Przywara wrote: > > +static struct ccu_clk_gate d1_gates[] = { > > + [CLK_BUS_MMC0] = GATE(0x84c, BIT(0)), > > + [CLK_BUS_MMC1] = GATE(0x84c, BIT(1)), > > +

Re: [RFC PATCH 08/17] sunxi: introduce NCAT2 generation model

2023-05-26 Thread Andre Przywara
On Thu, 25 May 2023 21:25:57 +0300 Maksim Kiselev wrote: Hi Maksim, > Could you please include this fix for i2c in the next version of this > series. > > diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c > index 93bbc6916e..d088ea75b9 100644 > --- a/drivers/i2c/mvtwsi.c > +++ b/drivers/

[PATCH 0/4] riscv: Initial support for Lichee PI 4A board

2023-05-26 Thread Yixun Lan
Sipeed's Lichee PI 4A board is based on T-HEAD's TH1520 SoC which consists of quad core XuanTie C910 CPU, plus one C906 CPU and one E902 CPU. In this series, the UART, basic device tree, CPU, PLIC are enabled, making it capable of running in serial console mode. Please note that, we rely on pre s

rk3328: No partition table found issue

2023-05-26 Thread Belisko Marek
Hi, I'm using 2022.01 on rockpi-e and having an issue that some SDcards cannot seem to have issue with accessing partitions. I have the same image flashed on 2 SD cards. One boots fine and other one shows: ## Executing script at 0050 Saving Environment to MMC... Writing to redundant MMC(1)...

Re: [PATCH v4 1/7] dt-bindings: clock: Add StarFive JH7110 PLL clock generator

2023-05-26 Thread Conor Dooley
On Fri, May 26, 2023 at 09:34:32AM +0200, Torsten Duwe wrote: > On Wed, 24 May 2023 11:19:48 +0100 > Conor Dooley wrote: > > > On Wed, May 24, 2023 at 05:00:02PM +0800, Xingyu Wu wrote: > > > On 2023/5/23 19:28, Conor Dooley wrote: > > > > On Tue, May 23, 2023 at 01:10:06PM +0200, Torsten Duwe wr

Re: USB mass storage gadget on SAMA5D2

2023-05-26 Thread admin LI
Hi Cristian, > What are you trying to achieve ? If you want to just program the eMMC you can do it easily with SAM-BA[1]. On our board the MPU boot from the eMMC boot partition, by exposing the whole user partition as a block device we can modify the target system easily, like modifying the partit

[RESEND PATCH v1 0/4] riscv: Initial support for Lichee PI 4A board

2023-05-26 Thread Yixun Lan
Sipeed's Lichee PI 4A board is based on T-HEAD's TH1520 SoC which consists of quad core XuanTie C910 CPU, plus one C906 CPU and one E902 CPU. In this series, the UART, basic device tree, CPU, PLIC are enabled, making it capable of running in serial console mode. Please note that, we rely on pre s

[RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-05-26 Thread Yixun Lan
Add support for Sipeed's Lichee Pi 4A board which based on T-HEAD's TH1520 SoC, only minimal device tree and serial onsole are enabled, so it's capable of chain booting from T-HEAD's vendor u-boot. Reviewed-by: Wei Fu Signed-off-by: Yixun Lan --- arch/riscv/Kconfig | 5

[RESEND PATCH v1 3/4] configs: th1520_lpi4a_defconfig: Add initial config

2023-05-26 Thread Yixun Lan
Add basic config for Sipeed Lichee PI 4A board which make it capable of booting into serial console. Reviewed-by: Wei Fu Signed-off-by: Yixun Lan --- configs/th1520_lpi4a_defconfig | 82 ++ 1 file changed, 82 insertions(+) create mode 100644 configs/th1520_lpi4a

[RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-26 Thread Yixun Lan
Only add basic support for CPU, PLIC UART and Timer. Reviewed-by: Wei Fu Signed-off-by: Yixun Lan --- arch/riscv/dts/Makefile | 1 + arch/riscv/dts/th1520-lichee-module-4a.dtsi | 34 ++ arch/riscv/dts/th1520-lichee-pi-4a.dts | 32 ++ arch/riscv/dts/th1520.dtsi

[RESEND PATCH v1 4/4] doc: t-head: lpi4a: document Lichee PI 4A board

2023-05-26 Thread Yixun Lan
Reviewed-by: Wei Fu Signed-off-by: Yixun Lan --- doc/board/index.rst | 1 + doc/board/thead/index.rst | 9 +++ doc/board/thead/lpi4a.rst | 112 ++ 3 files changed, 122 insertions(+) create mode 100644 doc/board/thead/index.rst create mode 100644 do

Re: Fit Signature booting without public key

2023-05-26 Thread Tom Rini
On Fri, May 26, 2023 at 02:22:38PM +0530, Manorit Chawdhry wrote: > Hi Tom, > > On 10:05-20230525, Tom Rini wrote: > > On Thu, May 25, 2023 at 11:21:44AM +0530, Manorit Chawdhry wrote: > > > Hi Tom, > > > > > > On 11:30-20230516, Tom Rini wrote: > > > > On Tue, May 16, 2023 at 12:11:24PM +0530, M

Re: USB mass storage gadget on SAMA5D2

2023-05-26 Thread Mihai.Sain
Hi Zixun, I recommend to use sam-ba in order to flash the eMMC partitions: boot1, boot2, user0. sam-ba download links: https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocuments/SoftwareLibraries/Firmware/sam-ba_v3.7-linux_x86_64.tar.gz https://ww1.microchip.com/downloads/a

Re: [PATCH v4 00/23] Migration to using binman for bootloader

2023-05-26 Thread Neha Malcom Francis
Hi Simon, Tom Please keep this series on hold for v5, for a few board configuration fixes. On 18/05/23 19:56, Neha Malcom Francis wrote: This series aims to eliminate the use of additional custom repositories such as k3-image-gen (K3 Image Generation) repo and core-secdev-k3 (K3 Security Develo

Re: USB mass storage gadget on SAMA5D2

2023-05-26 Thread admin LI
Hi Mihai, Thanks for your reply, although it's meaningless. As I said, what we need is block level access to eMMC, in order to modify partition table or access files of rootfs, SAM-BA can't do it. Besides SAM-BA can only be launched when eMMC is empty, no way to launch SAM-BA from u-Boot unless

[PATCH] I2C: cdns: Fix broken retry mechanism on arbitration lost.

2023-05-26 Thread Andrea Merello
In the current implementation, in case of I2C arbitration lost, a retry is attempted; the message counter and pointer are reset to the original values and the I2C xfer process is restart from the beginning. However the message counter and message pointer are respectively decremented and incremente

Re: [PATCH v4 1/3] Move bootorder and bootoption apis to lib

2023-05-26 Thread Raymond Mao
Hi Heinrich, On Fri, 26 May 2023 at 03:07, Heinrich Schuchardt wrote: > On 5/23/23 21:18, Raymond Mao wrote: > > Rename and move bootorder and bootoption apis from cmd to lib > > for re-use between eficonfig and bootmgr > > > > Signed-off-by: Raymond Mao > > The commit message says that this pa

Re: [PATCH v5 2/3] Boot var automatic management for removable medias

2023-05-26 Thread Raymond Mao
Hi Heinrich, On Fri, 26 May 2023 at 03:17, Heinrich Schuchardt wrote: > On 5/26/23 00:04, Raymond Mao wrote: > > Changes for complying to EFI spec §3.5.1.1 > > 'Removable Media Boot Behavior'. > > Boot variables can be automatically generated during a removable > > media is probed. At the same t

Re: [PATCH v5 3/3] Load option with short device path for boot vars

2023-05-26 Thread Raymond Mao
Hi Heinrich, Will keep the device path as-is if no short-term returns in v6 patch On Fri, 26 May 2023 at 03:14, Heinrich Schuchardt wrote: > On 5/26/23 00:04, Raymond Mao wrote: > > The boot variables automatically generated for removable medias > > should be with short form of device path with

Re: [PATCH v1] common/memsize.c: Fix get_ram_size() when cache is enabled

2023-05-26 Thread Tom Rini
On Thu, May 25, 2023 at 03:01:13PM +0200, Francesco Dolcini wrote: > From: Emanuele Ghidoli > > Ensure that every write is flushed to memory and afterward reads are > from memory. > Since the algorithm rely on the fact that accessing to not existent > memory lead to write at addr / 2 without thi

Re: [RFC PATCH 10/17] clk: sunxi: Add support for the D1 CCU

2023-05-26 Thread Maksim Kiselev
Hi Sam, Andre, On Thu, 25 May 2023 18:34:45 -0600 Sam Edwards wrote: PS: Do you have any plans for PSCI support, so we can get the second core up too? I'd like to patch that in and include it in your series once my available time permits. Just thought I'd check that you/someone wasn't working

Re: [RFC PATCH 10/17] clk: sunxi: Add support for the D1 CCU

2023-05-26 Thread Sam Edwards
Hi folks, On 5/26/23 13:27, Maksim Kiselev wrote: There is a Linux patch that allows to bring up the second core. https://github.com/szemzoa/awboot/blob/6ea4ae4ad7a558ad952fefee1942e260aea1a69f/linux/second_core_support_in_platsmp.patch#L10 I think this could be useful for adding PSCI support

[PATCH v6 0/3] Boot variables management for removable media

2023-05-26 Thread Raymond Mao
Major changes: 1.Rename and move bootorder and bootoption apis from cmd to lib for re-use between eficonfig and bootmgr 2.Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same

[PATCH v6 1/3] Move bootorder and bootoption apis to lib

2023-05-26 Thread Raymond Mao
Rename and move bootorder and bootoption apis from cmd to lib for re-use between eficonfig and bootmgr Signed-off-by: Raymond Mao --- Changes in v3 - Split the patch into moving and renaming functions and individual patches for each changed functionality Changes in v6 - Revert v3 changes in fun

[PATCH v6 2/3] Boot var automatic management for removable medias

2023-05-26 Thread Raymond Mao
Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Signed-off-by: Raymond Mao --- Changes in v3 - Split the patch into m

[PATCH v6 3/3] Load option with short device path for boot vars

2023-05-26 Thread Raymond Mao
The boot variables automatically generated for removable medias should be with short form of device path without device nodes. This is a requirement for the case that a removable media is plugged into a different port but is still able to work with the existing boot variables. Signed-off-by: Raymo

Re: [RFC PATCH 10/17] clk: sunxi: Add support for the D1 CCU

2023-05-26 Thread Andre Przywara
On Fri, 26 May 2023 14:22:29 -0600 Sam Edwards wrote: Hi Sam, > On 5/26/23 13:27, Maksim Kiselev wrote: > > > > There is a Linux patch that allows to bring up the second core. > > https://github.com/szemzoa/awboot/blob/6ea4ae4ad7a558ad952fefee1942e260aea1a69f/linux/second_core_support_in_platsm

Re: [PATCH v5 1/3] Move bootorder and bootoption apis to lib

2023-05-26 Thread Raymond Mao
Hi Heinrich, On Fri, 26 May 2023 at 03:18, Heinrich Schuchardt wrote: > On 5/26/23 00:04, Raymond Mao wrote: > > Rename and move bootorder and bootoption apis from cmd to lib > > for re-use between eficonfig and bootmgr > > > > Signed-off-by: Raymond Mao > > The commit message says that this pa

[PATCH 1/1] am65x_gp_evm: Support for ECC DDR with DMA priming

2023-05-26 Thread Ben Roytburd
>From e019ed98623c8c8388bef3082002d27d5ec9de40 Mon Sep 17 00:00:00 2001 From: broytburd Date: Fri, 26 May 2023 09:14:14 -0700 Subject: [PATCH 1/1] am65x_gp_evm: Support for ECC DDR with DMA priming Add support for configuring DDR4 memory on AM65x_GP_EVM SR1.0 with ECC. Add register writes and mem

Re: [RFC PATCH 10/17] clk: sunxi: Add support for the D1 CCU

2023-05-26 Thread Sam Edwards
Hey Andre, On 5/26/23 16:07, Andre Przywara wrote: So with "no success" you are referring to the patch below? Which is the Linux patch ported to U-Boot? And does that mean that the Linux patch works, but the U-Boot version doesn't? Yes, the diff below is what I've been trying to use. It's not

Re: [RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-26 Thread Guo Ren
Sorry, why we need dts here? If we put dts here, we could delete the one in Linux. We shouldn't put it with two places, that would be bad for maintanice. On Fri, May 26, 2023 at 8:41 PM Yixun Lan wrote: > > Only add basic support for CPU, PLIC UART and Timer. > > Reviewed-by: Wei Fu > Signed-of

Re: [RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-05-26 Thread Guo Ren
On Fri, May 26, 2023 at 8:41 PM Yixun Lan wrote: > > Add support for Sipeed's Lichee Pi 4A board which based on > T-HEAD's TH1520 SoC, only minimal device tree and serial onsole are enabled, > so it's capable of chain booting from T-HEAD's vendor u-boot. > > Reviewed-by: Wei Fu > Signed-off-by: Y

[PATCH 1/1] efi_loader: check return value of part_get_info()

2023-05-26 Thread Heinrich Schuchardt
part_get_info() may return an error code. Check it. Update function description of dp_part_node(). Addresses-Coverity-ID: 184067 ("Unchecked return value") Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --