Raspberry Pi Boot 1b / Uboot boot failure with large initramfs

2021-12-06 Thread Frederik Lotter
Hi, I am facing intermittend boot failures resulting in a data abort. Boot log and environment attached below. The uboot is built with rpi_defconfig with OF_BOARD to get uboot to pass through the FDT. Note: (1) If I boot this image directly using the RPI bootloader, the kernel (with initramfs

[PATCH] MAINTAINERS: Remove Anastasiia Lukianenko from Xen entry

2021-12-06 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Anastasiia Lukianenko's e-mail is now bouncing, so remove it from the maintainers list. Signed-off-by: Oleksandr Andrushchenko --- Cc: Anastasiia Lukianenko --- Anastasiia if instead of just removing your e-mail you still want to maintain Xen support in U-boot

Re: [PATCH v2 1/2] binman: Do not pollute source tree when build with `make O=...`

2021-12-06 Thread Andy Shevchenko
On Fri, Dec 03, 2021 at 10:29:10PM +0200, Andy Shevchenko wrote: > On Fri, Dec 03, 2021 at 01:13:12PM -0700, Simon Glass wrote: ... > Ah, you mean you run it manually and not via `make`. > > os.environ.get('srctree', '') > > should help I suppose. I haven't heard back from you, I

Re: [PATCH] MAINTAINERS: Remove Anastasiia Lukianenko from Xen entry

2021-12-06 Thread Nastya Vicodin
Hi all, I would like to maintain Xen part in U-boot, so I’ll update my email address with a patch soon. Regards, Anastasiia On Mon 6 Dec 2021 at 09:12, Oleksandr Andrushchenko < oleksandr_andrushche...@epam.com> wrote: > Hi, all! > > Anastasiia has left EPAM, so now her e-mail bounces. > I can

Add BOOT LED support for Cubieboard2

2021-12-06 Thread Javad Rahimi
Hello, I added LED boot support for my SUN7I based Cubieboard2. I want to send a patch for the changes. It is my first contribution and as It has been mentioned in the `Patches` pages, I'm asking you before for confirmation sending the patch. Best regards Javad

Re: [PATCH 2/3] efi_loader: check tcg2 protocol installation outside the TCG protocol

2021-12-06 Thread Ilias Apalodimas
On Fri, Dec 03, 2021 at 12:58:14PM +0900, Masahisa Kojima wrote: > There are functions that calls tcg2_agile_log_append() outside > of the TCG protocol invocation (e.g tcg2_measure_pe_image). > These functions must to check that TCG2 protocol is installed. > If not, measurement shall be skipped. >

Re: [PATCH 3/3] efi_loader: correctly handle tcg2_measure_pe_image() error

2021-12-06 Thread Ilias Apalodimas
Heinrich does this approach work for you till we fix the DM-EFI integration? At least it tries to cover some cases were the efi protocol is installed (which means the tpm was there in the beginning), but later on is removed On Fri, Dec 03, 2021 at 12:58:15PM +0900, Masahisa Kojima wrote: > When

Re: Please pull u-boot-dm (take 2)

2021-12-06 Thread Tom Rini
On Sun, Dec 05, 2021 at 08:17:56PM -0700, Simon Glass wrote: > Hi Tom, > > I left out another pending patch but completely forgot to drop the > timer patch last time. Here it is again. > > (next branch) > > > The following changes since commit f89615088fba1b1f33713ad26dbe3a3c82b692ec: > >

Re: [PATCH] MAINTAINERS: Remove Anastasiia Lukianenko from Xen entry

2021-12-06 Thread Oleksandr Andrushchenko
Great news! On 06.12.21 13:49, Nastya Vicodin wrote: > Hi all, > > I would like to maintain Xen part in U-boot, so I’ll update my email address > with a patch soon. > > Regards, > Anastasiia > > On Mon 6 Dec 2021 at 09:12, Oleksandr Andrushchenko > mailto:oleksandr_andrushche...@epam.com>> >

Re: [PATCH] clk: versaclock: Remove xlate function

2021-12-06 Thread Adam Ford
On Wed, Dec 1, 2021 at 2:13 PM Sean Anderson wrote: > > This function is the same as the default xlate. Remove it. > I compared 'clk dump' before and after this patch, and they both appear to show the same clock tree and rates for the versaclock and the USB scan appears to identify the attached

[PATCH v3 1/2] binman: Do not pollute source tree when build with `make O=...`

2021-12-06 Thread Andy Shevchenko
Importing libraries in Python caches the bytecode by default. Since we run scripts in source tree it ignores the current directory settings, which is $(srctree), and creates cache just in the middle of the source tree. Move cache to the current directory. Signed-off-by: Andy Shevchenko --- v3:

[PATCH v3 2/2] binman: Use less hard coded magic when inserting new PATH

2021-12-06 Thread Andy Shevchenko
Instead of joining hard coded '..' to the run-time path of the executable, take just a dirname out of it. Besides that, use $(srctree) where it makes sense. Signed-off-by: Andy Shevchenko --- v3: avoided crash (Simon), reused one level up folder variable tools/binman/main.py | 12 +++-

Re: [PATCH] net: zynq: Add support for mdio bus address decoding

2021-12-06 Thread Michal Simek
On 11/22/21 11:36, Ramon Fried wrote: On Mon, Nov 22, 2021 at 9:40 AM Michal Simek wrote: On 11/21/21 20:11, Ramon Fried wrote: On Thu, Nov 18, 2021 at 2:06 PM Michal Simek wrote: There are flying two configurations around. Can you rephrase ? I don't understand. The first

[PATCH v2] net: zynq: Add support for mdio bus address decoding

2021-12-06 Thread Michal Simek
Xilinx DTS files are using two way how to describe ethernet phy. The first (already supported) has phy as subnode of gem node. eth { phy-handle = <>; phy0: ethernet-phy@21 { ... }; }; The second has mdio subnode (with mdio name) which has phy subnode.

Re: [PATCH 1/3] efi_loader: efi_tcg2_register returns appropriate error

2021-12-06 Thread Ilias Apalodimas
On Fri, Dec 03, 2021 at 12:58:13PM +0900, Masahisa Kojima wrote: > This commit modify efi_tcg2_register() to return the > appropriate error. > With this fix, sandbox will not boot because efi_tcg2_register() > fails due to some missing feature in GetCapabilities. > So disable sandbox if

Re: [BUG] efi_loader: incorrect creation of device paths

2021-12-06 Thread Mark Kettenis
> Date: Mon, 6 Dec 2021 13:16:23 +0900 > From: AKASHI Takahiro > > On Fri, Dec 03, 2021 at 05:32:49PM +0100, Heinrich Schuchardt wrote: > > On 11/25/21 06:44, AKASHI Takahiro wrote: > > > Heinrich, > > > > > > On Wed, Nov 24, 2021 at 12:10:32PM +0900, AKASHI Takahiro wrote: > > > > On Sat, Nov

Re: [PATCH] net: zynq: Add support for GEM reset

2021-12-06 Thread Michal Simek
On 11/22/21 11:33, Ramon Fried wrote: On Mon, Nov 22, 2021 at 9:34 AM Michal Simek wrote: On 11/21/21 20:12, Ramon Fried wrote: On Thu, Nov 18, 2021 at 2:08 PM Michal Simek wrote: Perform reset before core initialization. Does it fix any apparent issue ? How did it work before that

RE: [External] - Raspberry Pi Boot 1b / Uboot boot failure with large initramfs

2021-12-06 Thread Vincent Fazio
Frederick > -Original Message- > From: U-Boot On Behalf Of Frederik Lotter > Sent: Monday, December 6, 2021 12:55 AM > To: u-boot@lists.denx.de > Subject: [External] - Raspberry Pi Boot 1b / Uboot boot failure with large > initramfs > > Hi, > > I am facing intermittend boot failures

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-06 Thread Simon Glass
Hi Tom, On Sun, 5 Dec 2021 at 06:32, Tom Rini wrote: > > On Sat, Dec 04, 2021 at 03:09:59PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Sat, 4 Dec 2021 at 11:03, Tom Rini wrote: > > > > > > On Sat, Dec 04, 2021 at 08:20:55AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Sat,

[PATCH v2] net: zynq: Add support for GEM reset

2021-12-06 Thread Michal Simek
Perform reset before core initialization. Standard flow which close to 99% users are using getting all IPs out of reset that there is no need to reset IP again. This is because of all low level initialization is done in previous bootloader stage. In SOM case these IPs are not touched by previous

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-06 Thread Tom Rini
On Mon, Dec 06, 2021 at 08:24:56AM -0700, Simon Glass wrote: > Hi Tom, > > On Sun, 5 Dec 2021 at 06:32, Tom Rini wrote: > > > > On Sat, Dec 04, 2021 at 03:09:59PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Sat, 4 Dec 2021 at 11:03, Tom Rini wrote: > > > > > > > > On Sat, Dec 04,

[PATCH] configs: am43xx_hs_evm: Add SPL_USB_STORAGE Support

2021-12-06 Thread Amjad Ouled-Ameur
Enable CONFIG_SPL_USB_STORAGE to support UBS MSC boot support. Signed-off-by: Faiz Abbas Signed-off-by: Amjad Ouled-Ameur --- configs/am43xx_hs_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am43xx_hs_evm_defconfig b/configs/am43xx_hs_evm_defconfig index

Re: Issue building flash.bin for imx8mq_evk

2021-12-06 Thread Angus Ainslie
Hi Fabio, On 2021-12-03 09:28, Fabio Estevam wrote: Hi Angus, On Tue, Nov 30, 2021 at 2:40 PM Angus Ainslie wrote: Are there binman updates for the imx8mq_evk ? Yes, Andrey has sent the following patch: https://lists.denx.de/pipermail/u-boot/2021-December/468983.html Thanks, I'll give

Re: [PATCH v6 01/25] doc: Add documentation about devicetree usage

2021-12-06 Thread Simon Glass
Hi François, On Sat, 4 Dec 2021 at 18:15, François Ozog wrote: > > Hi Simon > > Le sam. 4 déc. 2021 à 18:42, Simon Glass a écrit : >> >> Hi François, >> >> On Sat, 4 Dec 2021 at 04:06, François Ozog wrote: >> > >> > Hi Simon >> > >> > Le sam. 4 déc. 2021 à 02:02, Simon Glass a écrit : >> >>

Re: [PATCH v2 04/11] Convert CONFIG_PHYSMEM to Kconfig

2021-12-06 Thread Simon Glass
Hi Andy, On Fri, 26 Nov 2021 at 09:08, Andy Shevchenko wrote: > > On Thu, Nov 25, 2021 at 2:12 AM Simon Glass wrote: > > On Wed, 24 Nov 2021 at 09:33, Andy Shevchenko > > wrote: > > > > > > On Wed, Nov 24, 2021 at 6:28 PM Simon Glass wrote: > > > > > > > > This converts the following to

Re: [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option

2021-12-06 Thread Simon Glass
Hi Heinrich, On Fri, 3 Dec 2021 at 03:04, Heinrich Schuchardt wrote: > > On 12/2/21 17:50, Simon Glass wrote: > > Hi Heinrich, > > > > On Thu, 2 Dec 2021 at 09:47, Heinrich Schuchardt > > wrote: > >> > >> On 12/2/21 16:58, Simon Glass wrote: > >>> With Ilias' efforts we have dropped

[PATCH 4/5] ARM: rmobile: Fix rzg2_beacon_defconfig to address new aliases

2021-12-06 Thread Adam Ford
The resync of the device trees from Linux 5.16-rc3 caused aliases to appear on the MMC devices which changed the numbering. This broke the reading/writing of the environmental variables, so update the defconfig accordingly. Signed-off-by: Adam Ford --- configs/rzg2_beacon_defconfig | 1 - 1

[PATCH 2/5] arm: dts: beacon-rzg2: Resync device trees with Linux 5.16-rc3

2021-12-06 Thread Adam Ford
The device trees for the Beacon RZ/G2[MNH] boards have undergone some changes over time, so resync them now. Signed-off-by: Adam Ford --- arch/arm/dts/beacon-renesom-baseboard.dtsi | 16 ++-- arch/arm/dts/beacon-renesom-som.dtsi | 45 ++

[PATCH 3/5] arm: dts: Create common rz-g2-beacon-u-boot file

2021-12-06 Thread Adam Ford
The rzg2_beacon_defconfig creates an image for RZ/G2[MNH] and as such creates three different device trees and each of them have a corresponding -u-boot.dtsi file which are basically copies of each other. Create a common include file to be referenced by each of the respective board-u-boot.dtsi

[PATCH 1/5] net: ravb: Support multiple clocks

2021-12-06 Thread Adam Ford
The RZ/G2 series uses an external clock as a reference to the AVB. If this clock is controlled by an external programmable clock, it must be requested by the consumer or it will not turn on. In order to do this, update the driver to use bulk enable and disable functions to enable clocks for boards

[PATCH 0/5] Resync Devices trees with Linux 5.16-rc3 and fix breakages

2021-12-06 Thread Adam Ford
The device trees for the RZ/G2[MNH] boards at kernel.org have undergone some changes over time. Some of these changes are MMC aliases and others are AVB refernece clocks. This series attempts to re-sync the device trees with Kernel.org then address some minor driver, defconfig, and config.h

[PATCH 5/5] configs: beacon-rzg2m: Config to address new aliases

2021-12-06 Thread Adam Ford
The resync of the device trees from Linux 5.16-rc3 caused aliases to appear on the MMC devices which changed the numbering. This changed the default boot device and caused boot failure. Update the mmcdev variable to reflect the new aliases. Signed-off-by: Adam Ford ---

Re: [PATCH v2] imx8mq_evk: switch board to use binman for images

2021-12-06 Thread Fabio Estevam
Hi Tom, On Mon, Dec 6, 2021 at 6:26 PM Tom Rini wrote: > I believe this ends up being blocked on getting binman / CI happy with > the files being missing? This patch addresses the following build warning: = WARNING == This board uses

[PATCH 2/2] ARM: dts: stm32: Add DFU support for DHCOR recovery

2021-12-06 Thread Marek Vasut
This patch configures U-Boot SPL for DHCOR SoM to permit DFU upload of SPL and subsequent u-boot.itb for recovery or commissioning purposes. To start U-Boot on DHCOR based board, e.g. Avenger96, proceed as follows: - Install dfu-util on the host PC (in debian this is package 'dfu-util') - Power

[PATCH 1/2] arm: stm32mp: Fix USB boot device report

2021-12-06 Thread Marek Vasut
In case the SoC reports the boot device type is USB, it means the SPL was loaded via BootROM DFU mode. Currently the spl_boot_device() returns boot device as USB host, change it to DFU instead, so the SPL can continue the DFU boot and load U-Boot via DFU. Signed-off-by: Marek Vasut Cc: Patrice

Add BOOT LED support for Cubieboard2

2021-12-06 Thread Javad Rahimi
I'm still waiting for my email approval, Is something wrong with my message? Hello, I added LED boot support for my SUN7I based Cubieboard2. I want to send a patch for the changes. It is my first contribution and as It has been mentioned in the `Patches` pages, I'm asking you before for

Re: Add BOOT LED support for Cubieboard2

2021-12-06 Thread Alexander Dahl
Hello Javad, Am Mon, Dec 06, 2021 at 09:53:22PM +0330 schrieb Javad Rahimi: > I'm still waiting for my email approval, Is something wrong with my message? > > Hello, > I added LED boot support for my SUN7I based Cubieboard2. I want to send a > patch for the changes. It is my first contribution

[PATCH] imx8mq_evk: configs: add/cleanup variables for distro boot

2021-12-06 Thread Andrey Zhizhikin
Add fdt_addr_r fdtfile which used by distro boot, and cleanup legacy environment variables. Signed-off-by: Andrey Zhizhikin --- include/configs/imx8mq_evk.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/configs/imx8mq_evk.h b/include/configs/imx8mq_evk.h

Re: [PATCH v2] imx8mq_evk: switch board to use binman for images

2021-12-06 Thread Tom Rini
On Mon, Dec 06, 2021 at 06:38:00PM -0300, Fabio Estevam wrote: > Hi Tom, > > On Mon, Dec 6, 2021 at 6:26 PM Tom Rini wrote: > > > I believe this ends up being blocked on getting binman / CI happy with > > the files being missing? > > This patch addresses the following build warning: > >

Re: [PATCH v2] imx8mq_evk: switch board to use binman for images

2021-12-06 Thread Fabio Estevam
Hi Tom and Stefano, On Fri, Dec 3, 2021 at 1:27 PM Fabio Estevam wrote: > > Hi Andrey, > > On Fri, Dec 3, 2021 at 1:18 PM Andrey Zhizhikin > wrote: > > > > Currently i.MX8MQ EVK board still targeting the old image generation > > approach for image generation, which relies on the FIT generator

[PATCH 1/3] arm: dts: apple: Update Apple M1 device trees

2021-12-06 Thread Mark Kettenis
This synchronizes the device trees with those that are in the process of being upstreamed into Linux 5.16 or proposed for Linux 5.17. This includes device trees for machines that were still missing. There are still some differences that will hopefully be resolved soon. Signed-off-by: Mark

[PATCH 3/3] power: domain: Add Apple pmgr driver

2021-12-06 Thread Mark Kettenis
This driver supports power domains for the power management controller found on Apple SoCs. Signed-off-by: Mark Kettenis --- arch/arm/Kconfig | 3 + drivers/power/domain/Kconfig | 8 +++ drivers/power/domain/Makefile | 1 + drivers/power/domain/apple-pmgr.c | 113

[PATCH 2/3] arm: dts: apple: Add u-boot,dm-pre-reloc properties

2021-12-06 Thread Mark Kettenis
These are necessary to make sure the power domains needed for the serial console are availble in the pre-relocation phase. Signed-off-by: Mark Kettenis --- arch/arm/dts/t8103-j274-u-boot.dtsi | 1 + arch/arm/dts/t8103-j293-u-boot.dtsi | 1 + arch/arm/dts/t8103-j313-u-boot.dtsi | 1 +

[PATCH 0/3] Apple M1 power management controller support

2021-12-06 Thread Mark Kettenis
This series adds support for the power management controller found on Apple SoCs based on the device tree bindings submitted to upstream Linux. This is needed to enable power domains for devices that haven't been enabled by earlier boot stages. Mark Kettenis (3): arm: dts: apple: Update Apple

Re: [External] - Raspberry Pi Boot 1b / Uboot boot failure with large initramfs

2021-12-06 Thread Frederik Lotter
Hi Vincent! On Mon, 6 Dec 2021 at 16:36, Vincent Fazio wrote: > Frederick > > > > -Original Message- > > From: U-Boot On Behalf Of Frederik Lotter > > Sent: Monday, December 6, 2021 12:55 AM > > To: u-boot@lists.denx.de > > Subject: [External] - Raspberry Pi Boot 1b / Uboot boot

Re: [PATCH v2] imx8mq_evk: switch board to use binman for images

2021-12-06 Thread Tom Rini
On Mon, Dec 06, 2021 at 06:05:50PM -0300, Fabio Estevam wrote: > Hi Tom and Stefano, > > On Fri, Dec 3, 2021 at 1:27 PM Fabio Estevam wrote: > > > > Hi Andrey, > > > > On Fri, Dec 3, 2021 at 1:18 PM Andrey Zhizhikin > > wrote: > > > > > > Currently i.MX8MQ EVK board still targeting the old

[PATCH v7 01/31] doc: Add documentation about devicetree usage

2021-12-06 Thread Simon Glass
At present some of the ideas and techniques behind devicetree in U-Boot are assumed, implied or unsaid. Add some documentation to cover how devicetree is build, how it can be modified and the rules about using the various CONFIG_OF_... options. Signed-off-by: Simon Glass Reviewed-by: Marcel

[PATCH v7 00/31] fdt: Make OF_BOARD a boolean option

2021-12-06 Thread Simon Glass
With Ilias' efforts we have dropped OF_PRIOR_STAGE and OF_HOSTFILE so there are only three ways to obtain a devicetree: - OF_SEPARATE - the normal way, where the devicetree is built and appended to U-Boot - OF_EMBED - for development purposes, the devicetree is embedded in the

[PATCH v7 02/31] arm: qemu: Mention -nographic in the docs

2021-12-06 Thread Simon Glass
Without this option QEMU appears to hang. Add it to avoid confusion. Signed-off-by: Simon Glass --- (no changes since v1) doc/board/emulation/qemu-arm.rst | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/board/emulation/qemu-arm.rst

[PATCH v7 06/31] riscv: qemu: Split devicetree files for qemu_riscv32/64

2021-12-06 Thread Simon Glass
This uses QEMU virt which creates its own devicetree. Copy the existing empty version of this file, so splitting the existing qemu-virt into two, since anyone actually trying to use this will need a different devicetree for 32- and 64-bit machines. Tested-by: Heinrich Schuchardt Signed-off-by:

Re: [PATCH v7 01/31] doc: Add documentation about devicetree usage

2021-12-06 Thread Heinrich Schuchardt
On 12/6/21 16:11, Simon Glass wrote: At present some of the ideas and techniques behind devicetree in U-Boot are assumed, implied or unsaid. Add some documentation to cover how devicetree is build, how it can be modified and the rules about using the various CONFIG_OF_... options.

Re: [PATCH v7 08/31] arm: vexpress: Add a devicetree files for juno

2021-12-06 Thread Linus Walleij
On Tue, Dec 7, 2021 at 1:12 AM Simon Glass wrote: > Sync these file, obtained from Linux v5.15. > > Add a note for the maintainer, and SPDX lines where they are missing. > The added lines are: > >SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause > > Note, this matches the text in those files,

Re: [PATCH 1/3] efi_loader: efi_tcg2_register returns appropriate error

2021-12-06 Thread Masahisa Kojima
On Mon, 6 Dec 2021 at 23:08, Ilias Apalodimas wrote: > > On Fri, Dec 03, 2021 at 12:58:13PM +0900, Masahisa Kojima wrote: > > This commit modify efi_tcg2_register() to return the > > appropriate error. > > With this fix, sandbox will not boot because efi_tcg2_register() > > fails due to some

[PATCH v7 07/31] arm: rpi: Sync rpi dts files from Linux

2021-12-06 Thread Simon Glass
Sync these files, obtained from Linux v5.15. This adds a devicetree file for rpi_4 which was not there before. Testing shows no change so far as I can see: - boots to U-Boot prompt on rpi0, rpi2 - boots to distro on rpi3 - boots to distro on rpi4 I am assuming that syncing with Linux is safe,

[PATCH v7 16/31] Drop CONFIG_BINMAN_STANDALONE_FDT

2021-12-06 Thread Simon Glass
This was added as a hack to work around not having an in-tree devicetree. Now that this is fixed it is not needed. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) Makefile| 3 +-- dts/Kconfig | 18 -- tools/binman/binman.rst | 20

[PATCH v7 20/31] fdt: Drop CONFIG_SPL_BUILD check in fdtdec_setup()

2021-12-06 Thread Simon Glass
Move this to the header file to clean up the C code. Signed-off-by: Simon Glass --- (no changes since v1) include/fdtdec.h | 14 ++ lib/fdtdec.c | 6 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index

[PATCH v7 21/31] fdt: Drop #ifdef around board_fdt_blob_setup()

2021-12-06 Thread Simon Glass
This serves no purpose. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) lib/fdtdec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index fbdc92c0813..299a2c3a32f 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -1203,7 +1203,6 @@ static int

[PATCH v7 15/31] fdt: Make OF_BOARD a bool option

2021-12-06 Thread Simon Glass
This should not be a separate option from OF_SEPARATE. It is a run-time option to override the devicetree, even if present. Move the option out of the choice. Disable BINMAN_FDT for a few boards which don't actually use it. Signed-off-by: Simon Glass --- (no changes since v1)

[PATCH v7 18/31] fdt: Move MULTI_DTB_FIT handling out of fdtdec_setup()

2021-12-06 Thread Simon Glass
This logic is a bit convoluted for one function. Move the mulit-FIT part into its own function. Signed-off-by: Simon Glass Reviewed-by: Ilias Apalodimas --- (no changes since v1) lib/fdtdec.c | 62 1 file changed, 38 insertions(+), 24

Re: [BUG] efi_loader: incorrect creation of device paths

2021-12-06 Thread AKASHI Takahiro
Hi Mark, Thank you for the comment. On Mon, Dec 06, 2021 at 12:41:28PM +0100, Mark Kettenis wrote: > > Date: Mon, 6 Dec 2021 13:16:23 +0900 > > From: AKASHI Takahiro > > > > On Fri, Dec 03, 2021 at 05:32:49PM +0100, Heinrich Schuchardt wrote: > > > On 11/25/21 06:44, AKASHI Takahiro wrote: > >

[PATCH v7 17/31] doc: Update info on devicetree update

2021-12-06 Thread Simon Glass
Since OF_BOARD has been corrected to be a run-time option, we can drop the historical info from this documentation. Signed-off-by: Simon Glass --- (no changes since v1) doc/develop/devicetree/dt_update.rst | 74 +++- 1 file changed, 7 insertions(+), 67 deletions(-)

[PATCH v7 19/31] fdt: Drop #ifdefs with MULTI_DTB_FIT

2021-12-06 Thread Simon Glass
Refactor the code to drop the #ifdefs for this feature. Signed-off-by: Simon Glass --- (no changes since v1) dts/Kconfig | 1 - include/asm-generic/global_data.h | 8 lib/fdtdec.c | 31 +++ 3 files changed, 19

[PATCH v7 28/31] fdt: Report the devicetree source

2021-12-06 Thread Simon Glass
It can be confusing to figure out where the devicetree came from. It seems important enough to warrant a message during boot. Add information about the number of devices and uclasses too since it is helpful to have some idea what is going on with driver model. Report the devicetree source in

[PATCH v7 25/31] fdt: Don't call board_fdt_blob_setup() without OF_BOARD

2021-12-06 Thread Simon Glass
At present this override function is called even when OF_BOARD is not enabled. This makes it impossible to disable this feature and in fact makes the OF_BOARD option useless. Reinstate its intended purpose, so that it is possible to switch between the appended devicetree and one provided by the

[PATCH v7 24/31] fdt: Drop remaining preprocessor macros in fdtdec_setup()

2021-12-06 Thread Simon Glass
We only have two choices for obtaining the devicetree. Simplify the code to make that clear. Signed-off-by: Simon Glass --- (no changes since v1) lib/fdtdec.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index

[PATCH v7 23/31] fdt: Drop OF_CONTROL check in fdtdec_setup()

2021-12-06 Thread Simon Glass
This function should only be called when OF_CONTROL is enabled. It fails in fdtdec_prepare_fdt() anyway, since gd->fdt_blob stays as NULL if OF_CONTROL is not enabled. Drop this useless check. Signed-off-by: Simon Glass --- (no changes since v1) lib/fdtdec.c | 8 +++- 1 file changed, 3

[PATCH v7 22/31] fdt: Use if() for fdtcontroladdr check

2021-12-06 Thread Simon Glass
Change this to use if() instead of #if Signed-off-by: Simon Glass --- (no changes since v1) lib/fdtdec.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 299a2c3a32f..659aeffd82e 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@

Re: [PATCH v7 02/31] arm: qemu: Mention -nographic in the docs

2021-12-06 Thread Heinrich Schuchardt
On 12/6/21 16:11, Simon Glass wrote: Without this option QEMU appears to hang. Add it to avoid confusion. Signed-off-by: Simon Glass I think there was some work to get a virtio framebuffer working. But adding -nographic is ok. Reviewed-by: Heinrich Schuchardt --- (no changes since v1)

[PATCH v7 03/31] arm: riscv: qemu: Explain how to extract the generated dt

2021-12-06 Thread Simon Glass
QEMU currently generates a devicetree for use with U-Boot. Explain how to obtain it. Also explain how to merge it to produce a devicetree with the U-Boot features included. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Merge RISC-V and ARM patches since they are

[PATCH v7 05/31] arm: qemu: Add a devicetree file for qemu_arm64 virt

2021-12-06 Thread Simon Glass
This uses QEMU virt which creates its own devicetree. Add an empty version of this file, so that we can at least build this board when devicetrees are required. Tested-by: Heinrich Schuchardt Signed-off-by: Simon Glass --- Changes in v7: - Switch to using an empty file for qemu virt Changes

[PATCH v7 10/31] arm: octeontx: Add an empty devicetree file

2021-12-06 Thread Simon Glass
Add an empty file to prevent build errors when building with CONFIG_OF_SEPARATE enabled. Unfortunately there are no build instructions in the U-Boot tree to enable a real file to be created. Signed-off-by: Simon Glass --- Changes in v7: - Use 'empty' instead of 'fake' arch/arm/dts/Makefile

[PATCH v7 09/31] arm: xenguest_arm64: Add a empty devicetree file

2021-12-06 Thread Simon Glass
Add an empty file to prevent build errors when building with CONFIG_OF_SEPARATE enabled. The build instructions in U-Boot do not provide enough detail to build a useful devicetree, unfortunately. Signed-off-by: Simon Glass --- Changes in v7: - Use 'empty' instead of 'fake'

[PATCH v7 04/31] arm: qemu: Add a devicetree file for qemu_arm

2021-12-06 Thread Simon Glass
This uses QEMU virt which creates its own devicetree. Add an empty version of this file, so that we can at least build this board when devicetrees are required. Tested-by: Heinrich Schuchardt Signed-off-by: Simon Glass --- Changes in v7: - Switch to using an empty file for qemu virt Changes

[PATCH v7 29/31] fdt: Add a Kconfig for boards with a prior stage

2021-12-06 Thread Simon Glass
When U-Boot is started from another firmware program, not just a prior phase of U-Boot, special behaviour is typically used. In particular, the device tree may come from that prior stage. At present this is sort-of indicated by OF_BOARD, although the correlation is not 1:1, since that option

[PATCH v7 30/31] fdt: Avoid emitting an device tree when not needed

2021-12-06 Thread Simon Glass
U-Boot always needs some sort of a device tree. Some boards never actually use this, at least in production systems, since a prior firmware stage sets one up and passes it to U-Boot. At present the only mechanism to do that is with custom function (OF_BOARD), but future work will include a

[PATCH v7 26/31] dm: core: Allow getting some basic stats

2021-12-06 Thread Simon Glass
Add a function that returns some basic stats about driver model. For now we only have two. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/device.c| 11 ++ drivers/core/root.c | 7 ++ drivers/core/uclass.c| 13

[PATCH v7 27/31] fdt: Record where the devicetree came from

2021-12-06 Thread Simon Glass
Keep track of where the devicetree came from, so we can report this later. Signed-off-by: Simon Glass --- Changes in v7: - Drop FDTSRC_PASSAGE for now include/asm-generic/global_data.h | 4 include/fdtdec.h | 32 +++ lib/fdtdec.c

[PATCH v7 31/31] fdt: Show build/runtime warnings based on devicetree source

2021-12-06 Thread Simon Glass
Show a warning at build time if the devicetree is built for a board which normally should get it from a prior stage: Warning: Devicetree was built but is not normally used on this board When running, if the devicetree failed to come from the expected source, show a warning then also, e.g:

Bootargs received by a uImage but not by a FIT

2021-12-06 Thread Richard Thanki
Hi all, I’m reaching out on this list as my problem spans U-Boot and Openwrt. In essence the very same kernel (5.4 and 5.10 - built using latest Openwrt), packaged in a FIT, is not receiving bootlogs from latest U-Boot and it’s also not being informed of the presence of the location and

[PATCH v7 08/31] arm: vexpress: Add a devicetree files for juno

2021-12-06 Thread Simon Glass
Sync these file, obtained from Linux v5.15. Add a note for the maintainer, and SPDX lines where they are missing. The added lines are: SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause Note, this matches the text in those files, but is not the same as the GPL-2.0 of some files. [1]

[PATCH v7 12/31] arm: bcm7xxx: Add a devicetree file

2021-12-06 Thread Simon Glass
Add a dummy devicetree file for these boards. It seems to be possible to obtain a real one from another bootloader called 'bolt' but I will leave this to the maintainer. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/Makefile | 2 ++ arch/arm/dts/bcm7xxx.dts | 15

[PATCH v7 14/31] arm: highbank: Add devicetree files

2021-12-06 Thread Simon Glass
Sync these files, obtained from Linux v5.15. Signed-off-by: Simon Glass --- Changes in v7: - Bring in files from Linux instead arch/arm/dts/Makefile| 2 + arch/arm/dts/ecx-common.dtsi | 231 +++ arch/arm/dts/highbank.dts| 158

[PATCH v7 13/31] arm: qemu-ppce500: Add a devicetree file

2021-12-06 Thread Simon Glass
This uses QEMU virt which creates its own devicetree. Add an empty version of this file, so that we can at least build this board when devicetrees are required. Signed-off-by: Simon Glass --- Changes in v7: - Switch to using an empty file for qemu virt arch/powerpc/dts/Makefile | 1

[PATCH v7 11/31] arm: xilinx_versal_virt: Add a devicetree file

2021-12-06 Thread Simon Glass
Add an empty file to prevent build errors when building with CONFIG_OF_SEPARATE enabled. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/Makefile| 3 ++- arch/arm/dts/xilinx-versal-virt.dts | 11 +++ configs/xilinx_versal_virt_defconfig | 1 + 3

Re: [PATCH v7 14/31] arm: highbank: Add devicetree files

2021-12-06 Thread Andre Przywara
On Mon, 6 Dec 2021 17:11:52 -0700 Simon Glass wrote: > Sync these files, obtained from Linux v5.15. Sorry, but this would be wrong. How do you know which board it is? Highbank or Midway? We use the same binary for both, and decide either by the DT nodes we find in DRAM or by some autodetection

Re: [PATCH v6 24/25] fdt: Drop remaining preprocessor macros in fdtdec_setup()

2021-12-06 Thread Ilias Apalodimas
Hi Simon, On Thu, 2 Dec 2021 at 18:00, Simon Glass wrote: > > We only have two choices for obtaining the devicetree. Simplify the code > to make that clear. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > lib/fdtdec.c | 20 +++- > 1 file changed, 11

Re: [PATCH v2] imx8mq_evk: switch board to use binman for images

2021-12-06 Thread Fabio Estevam
On Mon, Dec 6, 2021 at 6:46 PM Tom Rini wrote: > So this platform doesn't run in to the HDMI blob problem or similar, in > CI? imx8mq can happily boot without the HDMI firmware. Please note that HDMI support for i.MX8MQ in mainline is still not available.

Re: [PATCH] imx8mq_evk: configs: add/cleanup variables for distro boot

2021-12-06 Thread Fabio Estevam
Hi Andrey, On Mon, Dec 6, 2021 at 6:03 PM Andrey Zhizhikin wrote: > > Add fdt_addr_r fdtfile which used by distro boot, and cleanup legacy > environment variables. > > Signed-off-by: Andrey Zhizhikin Reviewed-by: Fabio Estevam

RE: [PATCH 04/15] arm: ls1088a-qds: use Linux compatible string for RTC

2021-12-06 Thread Priyanka Jain
>-Original Message- >From: Vladimir Oltean >Sent: Thursday, December 2, 2021 8:24 PM >To: u-boot@lists.denx.de >Cc: Michael Walle ; Tom Rini ; >Priyanka Jain ; Leo Li >Subject: [PATCH 04/15] arm: ls1088a-qds: use Linux compatible string for RTC > >During the LS1028A-RDB sync with Linux

RE: [PATCH 08/15] rtc: pcf2127: remove U-Boot specific compatible string

2021-12-06 Thread Priyanka Jain
>-Original Message- >From: Vladimir Oltean >Sent: Thursday, December 2, 2021 8:24 PM >To: u-boot@lists.denx.de >Cc: Michael Walle ; Tom Rini ; >Priyanka Jain ; Leo Li ; Simon >Glass >Subject: [PATCH 08/15] rtc: pcf2127: remove U-Boot specific compatible string > >Now that all in-tree

Re: [PATCH v2 5/6] dts: sunxi: v3s: enable emac

2021-12-06 Thread Jagan Teki
On Sat, May 22, 2021 at 1:36 AM Andreas Rehn wrote: > > Enable emac for licheepi-zero-dock as it provides a ethernet port > > Signed-off-by: Andreas Rehn > --- > arch/arm/dts/sun8i-v3s-licheepi-zero-dock.dts | 9 + > 1 file changed, 9 insertions(+) > > diff --git

Re: [PATCH v2 4/6] net: sun8i-emac: add v3s variant

2021-12-06 Thread Jagan Teki
On Sun, May 23, 2021 at 4:52 AM Andreas Rehn wrote: > > Add variant V3S_EMAC. > Handle pinmux compile time error by skipping goio setup, because > V3s uses internal phy and don't expose pins. > > Signed-off-by: Andreas Rehn > --- > Changes in v2: > - skip pinmux and add proper

[PATCH] LED BOOT support added for Cubieboard2.

2021-12-06 Thread Javad Rahimi
PH20 and PH21 are two LED on the board which users can select to be turn on at boot time. Signed-off-by: Javad Rahimi --- board/sunxi/board.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index

[PATCH v7 14/15] PPC: Enable Job ring driver model in U-Boot

2021-12-06 Thread Gaurav Jain
removed sec_init() call and CONFIG_FSL_CAAM from defconfig. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 33 +++

[PATCH v7 13/15] PPC: Add crypto node in device tree

2021-12-06 Thread Gaurav Jain
device tree imported from linux kernel. c500bee1c5b2 (tag: v5.14-rc4) Linux 5.14-rc4 Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/dts/p2041si-post.dtsi | 1 + arch/powerpc/dts/p3041si-post.dtsi | 1 + arch/powerpc/dts/p4080si-post.dtsi | 1 +

[PATCH v7 15/15] update CAAM MAINTAINER

2021-12-06 Thread Gaurav Jain
updated CAAM driver files maintainer. Signed-off-by: Gaurav Jain --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6db5354322..c5bb2b861b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1296,3 +1296,9 @@ T:git

RE: [PATCH 01/15] i2c: muxes: pca954x: add PCA9847 variant

2021-12-06 Thread Priyanka Jain
>-Original Message- >From: Vladimir Oltean >Sent: Thursday, December 2, 2021 8:24 PM >To: u-boot@lists.denx.de >Cc: Michael Walle ; Tom Rini ; >Priyanka Jain ; Leo Li ; Heiko >Schocher >Subject: [PATCH 01/15] i2c: muxes: pca954x: add PCA9847 variant > >This seems to be very similar to

RE: [PATCH 03/15] arm: dts: ls1028a-qds: use Linux compatible string for RTC

2021-12-06 Thread Priyanka Jain
>-Original Message- >From: Vladimir Oltean >Sent: Thursday, December 2, 2021 8:24 PM >To: u-boot@lists.denx.de >Cc: Michael Walle ; Tom Rini ; >Priyanka Jain ; Leo Li >Subject: [PATCH 03/15] arm: dts: ls1028a-qds: use Linux compatible string for >RTC > >The LS1028A-QDS board won't be

RE: [PATCH 09/15] arm: dts: ls1028a-rdb: sort nodes alphabetically

2021-12-06 Thread Priyanka Jain
>-Original Message- >From: Vladimir Oltean >Sent: Thursday, December 2, 2021 8:24 PM >To: u-boot@lists.denx.de >Cc: Michael Walle ; Tom Rini ; >Priyanka Jain ; Leo Li >Subject: [PATCH 09/15] arm: dts: ls1028a-rdb: sort nodes alphabetically > >The nodes in the NXP LS1028A-RDB device

RE: [PATCH 14/15] arm: dts: ls1028a-rdb: sync device tree with Linux

2021-12-06 Thread Priyanka Jain
>-Original Message- >From: Vladimir Oltean >Sent: Thursday, December 2, 2021 8:24 PM >To: u-boot@lists.denx.de >Cc: Michael Walle ; Tom Rini ; >Priyanka Jain ; Leo Li >Subject: [PATCH 14/15] arm: dts: ls1028a-rdb: sync device tree with Linux > >Allow device trees to be reused between

  1   2   >