[PATCH] arm: mach-k3: am625: Relax emmc boot condition

2023-12-07 Thread Michael Trimarchi
spl_mmc_emmc_boot_partition return a number different from 0 if the partition is a boot one. We can have the uboot img for instance in a raw offset in emmc partition 0 so we would like to continue to load the next stage. If the user want to use EMMC as boot device allow him to use any part of the e

Re: [PATCH v2 02/12] cmd: bootefi: re-organize do_bootefi()

2023-12-07 Thread AKASHI Takahiro
Hi Ilias, On Fri, Dec 08, 2023 at 08:33:11AM +0200, Ilias Apalodimas wrote: > Akashi-san, > > [...] > > > > > > > help > > > > > > This compiles a standard EFI hello world application with > > > > > > U-Boot so > > > > > > @@ -395,6 +405,7 @@ config CMD_BOOTEFI_HELLO > > > > > >

Re: [PATCH v2 02/12] cmd: bootefi: re-organize do_bootefi()

2023-12-07 Thread Ilias Apalodimas
Akashi-san, [...] > > > > > help > > > > > This compiles a standard EFI hello world application with > > > > > U-Boot so > > > > > @@ -395,6 +405,7 @@ config CMD_BOOTEFI_HELLO > > > > > up EFI support on a new architecture. > > > > > > > > > > source lib/efi_selftest/Kconfig >

[PATCH] efi_loader: fix iteration of FMP protocols

2023-12-07 Thread Masahisa Kojima
If one of the FMP protocols fails when calling GetImageInfo(), populating the ESRT ends up with failure and other FMP protocols are not added to the ESRT. We should still add all other FMP protocols to the ESRT. With this commit, iteration of all FMP protocols continues even though one of the FMP

Re: [PATCH v3 1/2] arm: mach-k3: j72xx: add new 'virtual' mux

2023-12-07 Thread Kumar, Udit
Thanks Reid On 12/7/2023 10:22 PM, Reid Tonking wrote: From: Bryan Brattlof In order for the Cortex-A72s to operate at different frequencies other than the default 2GHz, add in a new 'virtual' mux (a mux that does not physically exist in the clock tree) that can be selected. CC: Vishal Mahave

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

2023-12-07 Thread ff
Le 7 déc. 2023 à 19:51, Rob Herring a écrit : On Thu, Dec 7, 2023 at 2:08 AM ff wrote: Le 6 déc. 2023 à 21:42, Rob Herring a écrit : On Tue, Dec 5, 2023 at 11:05 PM Sumit Garg wrote: On Tue, 5 Dec 2023 at 15:39, Krzysztof Kozlowski wrote: On 05/12/2023 10:45, Sumit Garg wrote: + U-b

Re: [PATCH v2 15/18] fdt: Allow the devicetree to come from a bloblist

2023-12-07 Thread Simon Glass
Hi Raymond, On Wed, 6 Dec 2023 at 13:35, Raymond Mao wrote: > > Hi Simon, > > > The other thing missing here is SPL. The bloblist is designed such > > that it can be set up in any phase of U-Boot, then is passed to > > following phases. So using IS_ENABLED(BLOBLIST) doesn't do what we > > need. A

Re: [PATCH v2 02/18] bloblist: Adjust API to align in powers of 2

2023-12-07 Thread Simon Glass
Hi Raymond, On Wed, 6 Dec 2023 at 13:08, Raymond Mao wrote: > > Hi Simon, > > I am wondering if I shall put in your review tag as you are one of the > authors of many patches... > What is the best approach under this situation in the U-Boot community? Well, where it is modified by you, I think

Re: [PATCH v3 3/4] sunxi: binman: Support FIT generation for 32-bit SoCs

2023-12-07 Thread Andre Przywara
On Tue, 31 Oct 2023 00:17:40 -0500 Samuel Holland wrote: Hi, > Some 32-bit SoCs can use SCP firmware to implement additional PSCI > functionality, such as system suspend. In order to load this firmware > from SPL, we need to generate and use a FIT instead of a legacy image. > > Adjust the binma

Re: [PATCH v3 1/4] sunxi: spl: Disable padding from SPL_PAD_TO

2023-12-07 Thread Andre Przywara
On Tue, 31 Oct 2023 00:17:38 -0500 Samuel Holland wrote: Hi Samuel, > Starting with H6, Allwinner removed the artificial 32 KiB SPL size limit > from the boot ROM. Now SPL size is only limited by the available SRAM. > This limit ranges from 152 KiB on H6 to a whopping 2052 KiB on R329. To > take

Re: [PATCH v3 4/4] sunxi: Enable SPL FIT loading for 32-bit SoCs

2023-12-07 Thread Andre Przywara
On Tue, 31 Oct 2023 00:17:41 -0500 Samuel Holland wrote: Hi, > Now that 32-bit SoCs can load U-Boot proper (and possibly other > firmware) from a FIT, use this method by default. SPL_FIT_IMAGE_TINY is > required to stay within the 24 or 32 KiB SPL size limit on early SoCs; > for consistency, ena

Re: [PATCH v3 2/4] sunxi: binman: Move BL31 and SCP firmware addresses to Kconfig

2023-12-07 Thread Andre Przywara
On Tue, 31 Oct 2023 00:17:39 -0500 Samuel Holland wrote: Hi Samuel, > This is easier to read than the #ifdef staircase, provides better > visibility into the memory map (alongside the other Kconfig > definitions), and allows these addresses to be reused from code. This is indeed much nicer, and

Re: [PATCH] common: usb-hub: Reset hub port before scanning

2023-12-07 Thread Shantur Rathore
Hi Marek, On Tue, Dec 5, 2023 at 5:40 AM Marek Vasut wrote: > > On 12/4/23 13:10, Shantur Rathore wrote: > > On Mon, Dec 4, 2023 at 11:05 AM Marek Vasut wrote: > >> > >> On 12/4/23 11:59, Shantur Rathore wrote: > >>> Hi Marek, > >>> > >>> On Sun, Dec 3, 2023 at 10:37 PM Marek Vasut wrote: > >>>

[PATCH v2 0/2] usb: Fix USB3 detection

2023-12-07 Thread Shantur Rathore
This patch series implements USB 3.0 port reset requirement before scanning port. Changes in v2: - As requested, added fix for regulator-always-on in RockPro64 Shantur Rathore (2): common: usb-hub: Reset hub port before scanning dts: rockpro64: Disable usb regulators-always-on arch/arm/d

[PATCH v2 2/2] dts: rockpro64: Disable usb regulators-always-on

2023-12-07 Thread Shantur Rathore
USB port regulators should be controlled by phys so we remove always-on property and let phy manage the regulator. Typec port has misconfugred phy-supply in upstream and now that we are removing always-on, we need to fix the phy-supply until its fixed upstream. Signed-off-by: Shantur Rathore --

[PATCH v2 1/2] common: usb-hub: Reset hub port before scanning

2023-12-07 Thread Shantur Rathore
Currently when a hub is turned on, all the ports are powered on. This works well for hubs which have individual power control. For the hubs without individual power control this has no effect. Mostly in these scenarios the hub port is powered before the USB controller is enabled, this can lead to

Re: [PATCH 18/21] dts: msm8916: import DT from Linux

2023-12-07 Thread Stephan Gerhold
On Thu, Dec 07, 2023 at 07:11:02PM +, Caleb Connolly wrote: > On 21/11/2023 19:21, Stephan Gerhold wrote: > > On Tue, Nov 21, 2023 at 05:09:41PM +, Caleb Connolly wrote: > >> Import the msm8916 devicetree from Linux and adjust the dragonboard410c > >> devicetree to use it. > >> > > > > Can

Re: [PATCH v9 2/2] arm64: boot: Support Flat Image Tree

2023-12-07 Thread Laurent Pinchart
On Thu, Dec 07, 2023 at 01:52:53PM -0700, Simon Glass wrote: > On Thu, 7 Dec 2023 at 07:38, Laurent Pinchart wrote: > > On Thu, Dec 07, 2023 at 10:27:23PM +0800, Chen-Yu Tsai wrote: > > > On Sun, Dec 03, 2023 at 05:34:01PM +0200, Laurent Pinchart wrote: > > > > Hi Simon, > > > > > > > > Thank you f

Re: [PATCH v9 2/2] arm64: boot: Support Flat Image Tree

2023-12-07 Thread Simon Glass
Hi, On Thu, 7 Dec 2023 at 07:38, Laurent Pinchart wrote: > > On Thu, Dec 07, 2023 at 10:27:23PM +0800, Chen-Yu Tsai wrote: > > On Sun, Dec 03, 2023 at 05:34:01PM +0200, Laurent Pinchart wrote: > > > Hi Simon, > > > > > > Thank you for the patch. > > > > > > On Fri, Dec 01, 2023 at 08:54:42PM -070

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

2023-12-07 Thread Conor Dooley
What on earth has happened here with quoting? Please fix your mail client man, this mail is a mess to read. On Thu, Dec 07, 2023 at 08:24:01PM +, ff wrote: > > > Le 7 déc. 2023 à 19:51, Rob Herring a écrit : > > On Thu, Dec 7, 2023 at 2:08 AM ff wrote: > > > > Le 6 déc. 2023 à 21:42,

Re: [PATCH 18/21] dts: msm8916: import DT from Linux

2023-12-07 Thread Caleb Connolly
On 21/11/2023 19:21, Stephan Gerhold wrote: > On Tue, Nov 21, 2023 at 05:09:41PM +, Caleb Connolly wrote: >> Import the msm8916 devicetree from Linux and adjust the dragonboard410c >> devicetree to use it. >> > > Can you add a note here from which Linux version you took the DT? > > It seem

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

2023-12-07 Thread Rob Herring
On Thu, Dec 7, 2023 at 2:08 AM ff wrote: > > > > > Le 6 déc. 2023 à 21:42, Rob Herring a écrit : > > > > On Tue, Dec 5, 2023 at 11:05 PM Sumit Garg wrote: > >> > >>> On Tue, 5 Dec 2023 at 15:39, Krzysztof Kozlowski > >>> wrote: > >>> > >>> On 05/12/2023 10:45, Sumit Garg wrote: > + U-boot

[PATCH 2/2] ARM: imx: Update DRAM timings with inline ECC on Data Modul i.MX8M Plus eDM SBC

2023-12-07 Thread Marek Vasut
Import DRAM timings generated by the DDR tool 3.31 which introduce assorted tweaks to the DRAM controller settings. Furthermore, enable DBI to improve noise resilience of the DRAM bus by reducing the number of bit changes on the bus. Reduce the DRAM rate to 3600 MTps to remove all remaining correc

[PATCH 1/2] ARM: imx: Force DRAM regulators into FPWM mode on Data Modul i.MX8M Plus eDM SBC

2023-12-07 Thread Marek Vasut
In case the Buck5 and Buck6 regulators which supply DRAM Vdd1 and Vdd2/Vddq respectively operate in automatic PWM/PFM mode, the DRAM EDAC detects more correctable errors than if the regulators operate in forced PWM only mode. Force DRAM regulators to forced PWM mode only to stop tempting the DRAM.

[PATCH 1/1] ARM: dts: chameleonv3: Update handoffs

2023-12-07 Thread Paweł Anikiel
Update the chameleonv3 handoffs with the ones generated from the final FPGA design. Signed-off-by: Paweł Anikiel --- ...ocfpga_arria10_chameleonv3_480_2_handoff.h | 22 +-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm/dts/socfpga_arria10_chameleonv3_48

Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-12-07 Thread Milan Zamazal
Peng Fan writes: > On 5/24/2023 3:21 AM, Gilles Talis wrote: >> Add support for the Polyhex Debix Model A SBC board. >> It is an industrial grade single board computer based on >> NXP's i.MX 8M Plus. >> Currently supported interfaces are: >> - Serial console >> - Micro SD >> - eQOS and FEC Ethern

Re: [PATCH v2] bootstd: Fix a memory leak in the efi manager bootflow

2023-12-07 Thread Mark Kettenis
> From: Ilias Apalodimas > Date: Thu, 7 Dec 2023 14:36:36 +0200 > > efi_get_var() allocates memory which has to be freed after the value of > the variable is consumed. Free the memory properly > > Fixes: f2bfa0cb1794 ("bootstd: Make efi_mgr bootmeth work for non-sandbox > setups") > Signed-off

[PATCH v3 0/2] Fix J7200 kernel boot when using upstream u-boot

2023-12-07 Thread Reid Tonking
Since the 09.01.00.002 release of ti-linux-firmware [0] upstream uboot has led to the kernel hanging during boot [1] for the TI J7200 S0C. The issue was found to be a few patches that had be added to ti-u-boot, but not yet upstreamed. This series adds the missing two patches to allow upstream u-boo

[PATCH v3 1/2] arm: mach-k3: j72xx: add new 'virtual' mux

2023-12-07 Thread Reid Tonking
From: Bryan Brattlof In order for the Cortex-A72s to operate at different frequencies other than the default 2GHz, add in a new 'virtual' mux (a mux that does not physically exist in the clock tree) that can be selected. CC: Vishal Mahaveer Signed-off-by: Bryan Brattlof Signed-off-by: Apurva N

[PATCH v3 2/2] arm: dts: k3-j7200-r5-common-proc-board: Set parent clock for clock ID 323

2023-12-07 Thread Reid Tonking
Previously, dynamic frequency scaling supported rates only through fixed divison. This virtual clock mux configuration enables more varied rates on A72 clock ID 202 by setting up the required register. Reviewed-by: Udit Kumar Signed-off-by: Apurva Nandan Signed-off-by: Reid Tonking --- arch/a

Re: [PATCH v2 1/2] arm: mach-k3: j72xx: add new 'virtual' mux

2023-12-07 Thread reidt
On 10:11-20231207, Kumar, Udit wrote: > > On 12/7/2023 2:47 AM, Reid Tonking wrote: > > From: Bryan Brattlof > > > > In order for the Cortex-A72s to operate at different frequencies other > > than the default 2GHz, add in a new 'virtual' mux (a mux t

[PATCH] mtd: rawnand: omap_elm: Fix elm_init definition

2023-12-07 Thread Roger Quadros
The macro ELM_BASE is defined in mach/hardware.h and is not visible at the omap_elm.h header file. Avoid using it in omap_elm.h. Reported-by: Hong Guan Fixes: 7363cf0581a3 ("mtd: rawnand: omap_elm: u-boot driver model support") Signed-off-by: Roger Quadros --- drivers/mtd/nand/raw/omap_elm.c |

[GIT PULL] Please pull u-boot-amlogic-20231207

2023-12-07 Thread Neil Armstrong
-12-04 13:46:56 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-20231207 for you to fetch changes up to 4005729c0de234ffcf36465f6471755617b42375: configs: meson: enable missing DM_USB_GADGET (2023-12-07 09:36:19

Re: [PATCH v9 2/2] arm64: boot: Support Flat Image Tree

2023-12-07 Thread Chen-Yu Tsai
On Sun, Dec 03, 2023 at 05:34:01PM +0200, Laurent Pinchart wrote: > Hi Simon, > > Thank you for the patch. > > On Fri, Dec 01, 2023 at 08:54:42PM -0700, Simon Glass wrote: > > Add a script which produces a Flat Image Tree (FIT), a single file > > containing the built kernel and associated devicet

Re: [PATCH v9 2/2] arm64: boot: Support Flat Image Tree

2023-12-07 Thread Laurent Pinchart
On Thu, Dec 07, 2023 at 10:27:23PM +0800, Chen-Yu Tsai wrote: > On Sun, Dec 03, 2023 at 05:34:01PM +0200, Laurent Pinchart wrote: > > Hi Simon, > > > > Thank you for the patch. > > > > On Fri, Dec 01, 2023 at 08:54:42PM -0700, Simon Glass wrote: > > > Add a script which produces a Flat Image Tree

[PATCH] pxe_utils: Increase feedback to user when fdt file is not found

2023-12-07 Thread Michael Trimarchi
extlinux.conf can set fdtdir. fdtdir look for fdt file using information found in the enviroment variable. The function does not report any error in the case the file is not found Scanning for bootflows in all bootdevs Seq Method State UclassPart Name Filename --

Re: [PATCH v2] bootstd: Fix a memory leak in the efi manager bootflow

2023-12-07 Thread Heinrich Schuchardt
On 07.12.23 13:36, Ilias Apalodimas wrote: efi_get_var() allocates memory which has to be freed after the value of the variable is consumed. Free the memory properly Fixes: f2bfa0cb1794 ("bootstd: Make efi_mgr bootmeth work for non-sandbox setups") Signed-off-by: Ilias Apalodimas Reviewed-by

Re: [PATCH] mtd: nand: omap_gpmc: Fix NAND in SPL for AM335x

2023-12-07 Thread Roger Quadros
Hi Tom, On 26/11/2023 19:35, Tom Rini wrote: > On Sat, Nov 25, 2023 at 01:16:05PM +0200, Roger Quadros wrote: > >> AM335x uses a special driver "am335x_spl_bch.c" as SPL >> NAND loader. This driver expects 1 sector at a time ECC >> and doesn't work well with multi-sector ECC that was implemented

Pull request: u-boot-sunxi/master for v2024.01

2023-12-07 Thread Andre Przywara
Hi Tom, please pull the hopefully final sunxi changes for this cycle: the first four patches are actual fixes. The last three patches add support for the apparently popular OrangePi Zero 3 board: multiple people seem to be champing at the bit, so I'd rather give them something real instead of peo

[GIT PULL] u-boot-riscv/master

2023-12-07 Thread Leo Liang
Hi Tom, The following changes since commit 2f0282922b2c458eea7f85c500a948a587437b63: Prepare v2024.01-rc4 (2023-12-04 13:46:56 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-riscv.git for you to fetch changes up to 94533cd9c15a60b74420e53a72

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

2023-12-07 Thread Sumit Garg
On Thu, 7 Dec 2023 at 02:12, Rob Herring wrote: > > On Tue, Dec 5, 2023 at 11:05 PM Sumit Garg wrote: > > > > On Tue, 5 Dec 2023 at 15:39, Krzysztof Kozlowski > > wrote: > > > > > > On 05/12/2023 10:45, Sumit Garg wrote: > > > > + U-boot custodians list > > > > > > > > On Tue, 5 Dec 2023 at 12:5

Fw: Upgrade u-boot to use a redundant environment

2023-12-07 Thread Hernot, Adrien
Hi, We are using u-boot and until now we are using a single env storage on the eMMC. We want to change to using a redundant environment, and the way to do that is well documented (thanks for that). The problem we are facing is transitioning from one single to redundant, as the format of the

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

2023-12-07 Thread ff
> Le 6 déc. 2023 à 21:42, Rob Herring a écrit : > > On Tue, Dec 5, 2023 at 11:05 PM Sumit Garg wrote: >> >>> On Tue, 5 Dec 2023 at 15:39, Krzysztof Kozlowski >>> wrote: >>> >>> On 05/12/2023 10:45, Sumit Garg wrote: + U-boot custodians list On Tue, 5 Dec 2023 at 12:58, Krzy

[PATCH v2] bootstd: Fix a memory leak in the efi manager bootflow

2023-12-07 Thread Ilias Apalodimas
efi_get_var() allocates memory which has to be freed after the value of the variable is consumed. Free the memory properly Fixes: f2bfa0cb1794 ("bootstd: Make efi_mgr bootmeth work for non-sandbox setups") Signed-off-by: Ilias Apalodimas --- Apologies for the quick resend but the previous patche

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-12-07 Thread Sören Moch
On 06.12.23 11:40, Maxim Uvarov wrote: On Wed, 6 Dec 2023 at 13:06, Soeren Moch wrote: On 05.12.23 21:00, Maxim Uvarov wrote: On Wed, 6 Dec 2023 at 00:25, Soeren Moch wrote: On 05.12.23 17:25, Maxim Uvarov wrote: On Tue, 5 Dec 2023 at 21:49, Soeren Moch wrote:

Re: [PATCH] bootstd: Fix a memory leak in the efi manager bootflow

2023-12-07 Thread Ilias Apalodimas
The patch is needed, but I forgot to include malloc.h, I'll send a v2 later Thanks /Ilias On Thu, 7 Dec 2023 at 11:20, Ilias Apalodimas wrote: > > efi_get_var() allocates memory which has to be freed after the value of > the variable is consumed. Free the memory properly > > Fixes: f2bfa0cb1794

[PATCH] bootstd: Fix a memory leak in the efi manager bootflow

2023-12-07 Thread Ilias Apalodimas
efi_get_var() allocates memory which has to be freed after the value of the variable is consumed. Free the memory properly Fixes: f2bfa0cb1794 ("bootstd: Make efi_mgr bootmeth work for non-sandbox setups") Signed-off-by: Ilias Apalodimas --- boot/bootmeth_efi_mgr.c | 1 + 1 file changed, 1 inse

[PATCH 2/2 v3] smbios: Fallback to the default DT if sysinfo nodes are missing

2023-12-07 Thread Ilias Apalodimas
In order to fill in the SMBIOS tables U-Boot currently relies on a "u-boot,sysinfo-smbios" compatible node. This is fine for the boards that already include such nodes. However with some recent EFI changes, the majority of boards can boot up distros, which usually rely on things like dmidecode et

[PATCH 1/2 v3] smbios: Simplify reporting of unknown values

2023-12-07 Thread Ilias Apalodimas
If a value is not valid during the DT or SYSINFO parsing, we explicitly set that to "Unknown Product" and "Unknown" for the product and manufacturer respectively. It's cleaner if we move the checks insisde smbios_add_prop_si() and provide an alternative string in case the primary is NULL or empty

[PATCH 0/2 v3] Provide a fallback to smbios tables

2023-12-07 Thread Ilias Apalodimas
Hi, This is v3 of the smbios series [0]. v3 has a bigger cleanup in the existing smbios code, folding in smbios_add_string() that were sprinkled around to smbios_add_prop(). The latter is now the only caller of smbios_add_string(). Simon asked for a selftest which makes sense, but we plan to re

Re: [PATCH] configs: meson: enable missing DM_USB_GADGET

2023-12-07 Thread Neil Armstrong
Hi, On Wed, 06 Dec 2023 10:04:21 +0100, Neil Armstrong wrote: > Since commit b96640cbfb ("ARM: meson: g12a: switch dwc2 otg to DM") > and commit e327e2affd ("ARM: meson: switch AXG & GX dwc2 otg to DM") > Amlogic boards now requires DM_USB_GADGET to have USB Gadget to work. > > Add it to the boar