Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-21 Thread Pali Rohár
On Wednesday 21 December 2022 21:54:15 Tom Rini wrote: > On Fri, Dec 16, 2022 at 10:56:39PM +0100, Pali Rohár wrote: > > On Friday 05 August 2022 16:21:24 Pali Rohár wrote: > > > Broken is also commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2. Seems > > > that all kconfig migration changes done

Re: [PATCH] riscv: ae350: Support openSBI 1.0+ which enable FW_PIC

2022-12-21 Thread Bin Meng
On Thu, Dec 22, 2022 at 1:23 PM Rick Chen wrote: > > Hi Bin, > > > On Wed, Dec 21, 2022 at 10:29 AM Rick Chen wrote: > > > > > > Change openSBI load address from 0x100 to 0x0 and it > > > > nits: OpenSBI > > OK, will fix it. > > > > > > will start to run at 0x0 directly without relocation. >

[PATCH] riscv: bypass malloc when spl fit boots from ram

2022-12-21 Thread Rick Chen
When fit image boots from ram, the payload will be prepared in the address of SPL_LOAD_FIT_ADDRESS. In spl fit generic flow, it will malloc another memory address and copy whole fit image to this malloc address. But it is un-necessary for booting from RAM. This patch improves this flow by

Re: [PATCH] Makefile: add -W for BINMAN_ALLOW_MISSING

2022-12-21 Thread Nikita Shubin
Hello Tom! On Mon, 19 Dec 2022 08:36:30 -0500 Tom Rini wrote: > On Mon, Dec 19, 2022 at 11:21:45AM +0300, Nikita Shubin wrote: > > Hello Tom and Simon! > > > > On Sat, 17 Dec 2022 14:38:30 -0700 > > Simon Glass wrote: > > > > > +Tom Rini > > > > > > We do actually want to report the

Re: [PATCH v1 01/17] riscv: cpu: jh7110: Add support for jh7110 SoC

2022-12-21 Thread Rick Chen
> From: Yanhong Wang > Sent: Monday, December 12, 2022 10:50 AM > To: u-boot@lists.denx.de; Rick Jian-Zhi Chen(陳建志) ; Leo > Yu-Chi Liang(梁育齊) ; Lukasz Majewski ; > Sean Anderson > Cc: Lee Kuan Lim ; Jianlong Huang > ; Emil Renner Berthing ; > Yanhong Wang > Subject: [PATCH v1 01/17] riscv:

Re: [PATCH] riscv: ae350: Support openSBI 1.0+ which enable FW_PIC

2022-12-21 Thread Rick Chen
Hi Bin, > On Wed, Dec 21, 2022 at 10:29 AM Rick Chen wrote: > > > > Change openSBI load address from 0x100 to 0x0 and it > > nits: OpenSBI OK, will fix it. > > > will start to run at 0x0 directly without relocation. > > > > Signed-off-by: Rick Chen > > --- > >

[PATCH] cmd: mmc: Expand bkops handling

2022-12-21 Thread Marek Vasut
Add more capable "bkops" command which allows enabling and disabling both manual and automatic bkops. The existing 'mmc bkops-enable' subcommand is poorly named to cover all the possibilities, hence the new-ish subcommand. Note that both commands are wrappers around the same common code.

Re: [PATCH 10/10] arm: imx: imx8m: Add basic PSCI provider implementation

2022-12-21 Thread Marek Vasut
On 12/22/22 04:05, Adam Ford wrote: On Wed, Dec 21, 2022 at 6:47 PM Marek Vasut wrote: Implement basic PSCI provider to let OS turn CPU cores off and on, power off and restart the system and determine PSCI version. This is sufficient to remove the need for the ATF BL31 blob altogether. To

Re: [PATCH 10/10] arm: imx: imx8m: Add basic PSCI provider implementation

2022-12-21 Thread Adam Ford
On Wed, Dec 21, 2022 at 6:47 PM Marek Vasut wrote: > > Implement basic PSCI provider to let OS turn CPU cores off and on, > power off and restart the system and determine PSCI version. This > is sufficient to remove the need for the ATF BL31 blob altogether. > > To make use of this functionality,

Re: [PATCH] riscv: ae350: Enable CCTL_SUEN

2022-12-21 Thread Rick Chen
Hi Bin > On Wed, Dec 21, 2022 at 11:00 AM Rick Chen wrote: > > > > CCTL operations are available to Supervisor/User-mode > > software under the control of the mcache_ctl.CCTL_SUEN > > control bit. Enable it to support Superviosr(and User) > > typo: Supervisor OK, will fix it. > > > CCTL

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-21 Thread Tom Rini
On Fri, Dec 16, 2022 at 10:56:39PM +0100, Pali Rohár wrote: > On Friday 05 August 2022 16:21:24 Pali Rohár wrote: > > Broken is also commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2. Seems > > that all kconfig migration changes done after that commit are broken. > > > > I really do not have energy

Re: [PATCH u-boot] doc: board: qemu-ppce500: Update supported and unsupported

2022-12-21 Thread Bin Meng
On Thu, Dec 22, 2022 at 6:43 AM Pali Rohár wrote: > > On Wednesday 21 December 2022 17:01:37 Bin Meng wrote: > > On Wed, Dec 21, 2022 at 3:49 PM Pali Rohár wrote: > > > > > > On Wednesday 21 December 2022 09:15:41 Bin Meng wrote: > > > > On Wed, Dec 21, 2022 at 4:06 AM Pali Rohár wrote: > > > >

[PATCH 10/10] arm: imx: imx8m: Add basic PSCI provider implementation

2022-12-21 Thread Marek Vasut
Implement basic PSCI provider to let OS turn CPU cores off and on, power off and restart the system and determine PSCI version. This is sufficient to remove the need for the ATF BL31 blob altogether. To make use of this functionality, active the following Kconfig options: # CONFIG_PSCI_RESET is

[PATCH 09/10] arm: imx: imx8m: Program CSU and TZASC if PSCI provider

2022-12-21 Thread Marek Vasut
In case U-Boot is the PSCI provider, it is necessary to correctly program CSU and TZASC registers. Those are poorly documented, so push in the correct values. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: "Ying-Chun Liu (PaulLiu)" Cc: Adam Ford Cc:

[PATCH 08/10] arm: imx: imx8m: Define trampoline location if PSCI provider

2022-12-21 Thread Marek Vasut
The common code used to bring up secondary cores requires a final jump location to be stored in some sort of memory location, define this memory location to be the start of OCRAM, since it is available. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc:

[PATCH 07/10] arm: imx: imx8m: Map RAM as NS if PSCI provider

2022-12-21 Thread Marek Vasut
In case U-Boot is a PSCI provider, map RAM explicitly as NS, otherwise secondary cores crash with SError when attempting to access RAM mapped as secure in EL2. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: "Ying-Chun Liu (PaulLiu)" Cc: Adam Ford Cc:

[PATCH 06/10] arm: imx: imx8m: Enable GICv3 support if PSCI provider

2022-12-21 Thread Marek Vasut
In case U-Boot is a PSCI provider, enable GICv3 support as this is necessary to bring up secondary cores. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: "Ying-Chun Liu (PaulLiu)" Cc: Adam Ford Cc: Andrejs Cainikovs Cc: Fabio Estevam Cc: Manoj Sai

[PATCH 05/10] arm: imx: imx8m: Only use ROM pointers if not PSCI provider

2022-12-21 Thread Marek Vasut
The ROM pointers are in fact populated by the ATF BL31 blob, in case U-Boot itself if the PSCI provider, there is no ATF BL31 blob, hence ignore the ROM pointers. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: "Ying-Chun Liu (PaulLiu)" Cc: Adam Ford

[PATCH 04/10] arm: dts: imx8m: Require ATF BL31 blob only if not PSCI provider

2022-12-21 Thread Marek Vasut
In case U-Boot itself if the PSCI provider on i.MX8M, do not require the ATF BL31 blob, as at that point the blob is useless and would interfere with U-Boot operation. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: "Ying-Chun Liu (PaulLiu)" Cc: Adam

[PATCH 03/10] arm: imx: Drop custom lowlevel_init

2022-12-21 Thread Marek Vasut
The custom lowlevel_init implementation is no longer necessary, since it is responsible for routing and trapping SErrors in U-Boot in EL2, which is implemented in common code since commit: 6c7691edd55 ("armv8: Always unmask SErrors") Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc:

[PATCH 02/10] arm: psci: Fix RESET2 hook

2022-12-21 Thread Marek Vasut
The RESET2 hook is a PSCI v1.1 functionality, rename the macro accordinly. Add missing handler for the RESET2 hook, so it can be implemented by U-Boot. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: "Ying-Chun Liu (PaulLiu)" Cc: Adam Ford Cc: Andrejs

[PATCH 01/10] arm: psci: Add PSCI v1.1 macro

2022-12-21 Thread Marek Vasut
Add macro representing the PSCI v1.1 . Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: "Ying-Chun Liu (PaulLiu)" Cc: Adam Ford Cc: Andrejs Cainikovs Cc: Fabio Estevam Cc: Manoj Sai Cc: Marcel Ziswiler Cc: Michael Trimarchi Cc: Peng Fan Cc: Ricardo

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Tom Rini
On Thu, Dec 22, 2022 at 12:20:01AM +0100, Mark Kettenis wrote: > > Date: Wed, 21 Dec 2022 18:09:10 -0500 > > From: Tom Rini > > > > On Wed, Dec 21, 2022 at 11:42:56PM +0100, Mark Kettenis wrote: > > > > Date: Wed, 21 Dec 2022 16:56:37 -0500 > > > > From: Tom Rini > > > > > > > > On Sat, Dec

Re: [PATCH v7 06/12] binman: Support new op-tee binary format

2022-12-21 Thread Simon Glass
Hi Jerome, On Wed, 21 Dec 2022 at 07:39, Jerome Forissier wrote: > > Hi Simon, > > On 12/17/22 22:28, Simon Glass wrote: > > OP-TEE has a format with a binary header that can be used instead of the > > ELF file. With newer versions of OP-TEE this may be required on some > > platforms. > > > >

Re: [PATCH v1 1/1] makefile: add multi_dtb_fit dep

2022-12-21 Thread Simon Glass
Hi Neil, On Wed, 21 Dec 2022 at 07:07, Neal Frager wrote: > > With certain gcc compilers, the u-boot.itb is built immediately after dtb > generation. If CONFIG_MULTI_DTB_FIT is used, it is possible that the > fit-dtb.blob is not finished in time. > > This patch adds a necessary dependency to

Re: [PATCH v3] video: ti: am335x: restore driver-model code

2022-12-21 Thread Simon Glass
On Wed, 21 Dec 2022 at 04:25, Dario Binacchi wrote: > > The commit 82f7b869f5d7a ("video: Drop CONFIG_AM335X_LCD") removed not > only the LCD legacy implementation but also the code with driver model > support. The patch restores the code with driver model support. > > Signed-off-by: Dario

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Mark Kettenis
> Date: Wed, 21 Dec 2022 18:09:10 -0500 > From: Tom Rini > > On Wed, Dec 21, 2022 at 11:42:56PM +0100, Mark Kettenis wrote: > > > Date: Wed, 21 Dec 2022 16:56:37 -0500 > > > From: Tom Rini > > > > > > On Sat, Dec 17, 2022 at 11:14:41PM +0100, Mark Kettenis wrote: > > > > > From: Eugen Hristev

[PATCH 00/14] fdt: Improvements for fdt and tracing

2022-12-21 Thread Simon Glass
This series aims to make it easier to measure boot performance, particularly aimed at rockpro64. It includes the following: - enabling bootstage on rockpro64 (TPL, SPL, U-Boot proper) - minor fixes and tidy-ups for tracing - minor FDT code tidy-ups It also reverts a patch which slows down the

Re: [PATCH 13/14] rockchip: Enable bootstage on rockpro64

2022-12-21 Thread Pali Rohár
On Wednesday 21 December 2022 16:08:27 Simon Glass wrote: > This board is useful for benchmarking overall U-Boot performance. Enable > the bootstage feature so we get a report. > > Since this returns to the boot rom before finishing executing > board_init_r() in SPL, add a few bootstage calls so

Re: [PATCH v8 13/13] treewide: Disable USE_SPL_FIT_GENERATOR by default

2022-12-21 Thread Tom Rini
On Wed, Dec 21, 2022 at 04:07:26PM -0700, Simon Glass wrote: > This option is deprecated and only used by two boards. Enable it for just > those two boards, so others don't accidentally enable it. > > Signed-off-by: Simon Glass Wait, is this right? I thought when I had looked at this before the

Re: [PATCH 03/14] tpm: Add a proper Kconfig option for crc8 in SPL

2022-12-21 Thread Pali Rohár
On Wednesday 21 December 2022 16:08:17 Simon Glass wrote: > The current approach is a bit of a hack and only works for the tpm > subsystem. Add a Kconfig so that crc8 can be enabled in SPL for other > purposes. > > Signed-off-by: Simon Glass > --- > > lib/Kconfig | 17 + >

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Tom Rini
On Wed, Dec 21, 2022 at 11:42:56PM +0100, Mark Kettenis wrote: > > Date: Wed, 21 Dec 2022 16:56:37 -0500 > > From: Tom Rini > > > > On Sat, Dec 17, 2022 at 11:14:41PM +0100, Mark Kettenis wrote: > > > > From: Eugen Hristev > > > > Date: Thu, 15 Dec 2022 13:58:25 +0200 > > > > > > > > Newer DTC

[PATCH 13/14] rockchip: Enable bootstage on rockpro64

2022-12-21 Thread Simon Glass
This board is useful for benchmarking overall U-Boot performance. Enable the bootstage feature so we get a report. Since this returns to the boot rom before finishing executing board_init_r() in SPL, add a few bootstage calls so that we can collect timing from TPL. For the stash region, use a

[PATCH 10/14] trace: Adjust flags in proftool

2022-12-21 Thread Simon Glass
The flags in this tool don't match the comments or help. Also the variable names are quite confusing. Update them for consistency. Signed-off-by: Simon Glass --- tools/proftool.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/proftool.c

[PATCH 14/14] Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"

2022-12-21 Thread Simon Glass
The fdt_path_offset() function is slow since it must scan the tree. This substantial overhead now applies to all boards. The original code may not be ideal but it is fit for purpose and is only needed on a few boards. Reverting this reduces time to set up driver model by about 30ms. Before

[PATCH 12/14] trace: Don't require TIMER_EARLY

2022-12-21 Thread Simon Glass
Some platforms cannot honour this and don't need trace before relocation. Use 'imply' instead, so boards can disable this. Signed-off-by: Simon Glass --- lib/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index b51455a5f77..1643f7d878a

[PATCH 09/14] mkimage: Add a few more messages for FIT failures

2022-12-21 Thread Simon Glass
Add messages to make it clearer which part of the FIT creation is failing. This can happen when an invalid 'algo' property is provided in the .its file. Signed-off-by: Simon Glass --- tools/fit_image.c | 4 +++- tools/image-host.c | 6 +- 2 files changed, 8 insertions(+), 2 deletions(-)

[PATCH 11/14] trace: Update trace-format generator for newer version

2022-12-21 Thread Simon Glass
This now includes flags and the layout has changed slightly in recent versions of Linux. Update the generator accordingly. Signed-off-by: Simon Glass --- tools/proftool.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/tools/proftool.c

[PATCH 08/14] trace: Move trace pointer to data section

2022-12-21 Thread Simon Glass
This can be written before relocation. Move it to the data section, since accessing BSS before relocation is not permitted. Signed-off-by: Simon Glass --- lib/trace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/trace.c b/lib/trace.c index 880d90ebd5c..b9dc6d2e4b5

[PATCH 05/14] fdt: Drop ifdefs in fdtdec_prepare_fdt()

2022-12-21 Thread Simon Glass
This function is a bit messy with several #ifdefs. Convert them to use C for the conditions. Rewrite the function comment since most of it is stale. Signed-off-by: Simon Glass --- lib/fdtdec.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git

[PATCH 07/14] fdt: Check for overlapping data and FDT

2022-12-21 Thread Simon Glass
If the FDT overlaps with the data region of the image, or with the stack, it can become corrupted before relocation. Add a check for this, behind a debug flag, as it can be very confusing and time-consuming to debug. Signed-off-by: Simon Glass --- lib/fdtdec.c | 23 +++ 1

[PATCH 06/14] fdt: Pass the device tree to fdtdec_prepare_fdt()

2022-12-21 Thread Simon Glass
This function uses gd->fdt_blob a lot and cannot be used to check any other device tree. Use a parameter instead. Signed-off-by: Simon Glass --- lib/fdtdec.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index

[PATCH 03/14] tpm: Add a proper Kconfig option for crc8 in SPL

2022-12-21 Thread Simon Glass
The current approach is a bit of a hack and only works for the tpm subsystem. Add a Kconfig so that crc8 can be enabled in SPL for other purposes. Signed-off-by: Simon Glass --- lib/Kconfig | 17 + lib/Makefile | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff

[PATCH 04/14] fdt: Avoid exporting fdtdec_prepare_fdt()

2022-12-21 Thread Simon Glass
This function is not used outside this file. Make it static. Signed-off-by: Simon Glass --- include/fdtdec.h | 9 - lib/fdtdec.c | 26 +- 2 files changed, 13 insertions(+), 22 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index

[PATCH 01/14] trace: Use notrace for short

2022-12-21 Thread Simon Glass
The attribute syntax is quite verbose. Use the macro provided for this purpose. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/s5p-common/timer.c | 2 +- arch/arm/mach-exynos/include/mach/cpu.h | 6 +++--- arch/x86/include/asm/global_data.h | 2 +- arch/x86/include/asm/msr.h

[PATCH 02/14] arm: Support trace on armv8

2022-12-21 Thread Simon Glass
Use the notrace attribute so that timer functions can be used when tracing. This is required to avoid infinite loops when recording a trace. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/generic_timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v8 13/13] treewide: Disable USE_SPL_FIT_GENERATOR by default

2022-12-21 Thread Simon Glass
This option is deprecated and only used by two boards. Enable it for just those two boards, so others don't accidentally enable it. Signed-off-by: Simon Glass --- (no changes since v6) Changes in v6: - Add new patch to disable USE_SPL_FIT_GENERATOR by default - Add new patch to allow a binman

[PATCH v8 12/13] rockchip: Drop the FIT generator script

2022-12-21 Thread Simon Glass
This is not used anymore. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 3 - arch/arm/mach-rockchip/make_fit_atf.py | 267 - boot/Kconfig | 1 - 3 files changed, 271 deletions(-)

[PATCH v8 10/13] rockchip: Support building the all output files in binman

2022-12-21 Thread Simon Glass
Add the required binman images to replace the Makefile rules which are currently used. This includes subsuming: - tpl/u-boot-tpl-rockchip.bin if TPL is enabled - idbloader.img if either or both of SPL and TPL are enabled - u-boot.itb if SPL_FIT is enabled - u-boot-rockchip.bin if SPL

[PATCH v8 11/13] rockchip: Convert all boards to use binman

2022-12-21 Thread Simon Glass
Instead of the bash script, use binman to generate the FIT for arm64. For 32-bit boards, use binman for all images, dropping the intermediate files. With this change, only Zynq is now using SPL_FIT_GENERATOR so update the Kconfig rule accordingly. Clean up the Makefile to the extent possible.

[PATCH v8 07/13] binman: Support optional external blobs

2022-12-21 Thread Simon Glass
Some blobs are actually not necessary for the board to work correctly. Add a property to allow this to be indicated. Missing optional blobs do not cause a build failure. Signed-off-by: Simon Glass --- Changes in v8: - Move support for optional external blobs into this series - Support optional

[PATCH v8 09/13] rockchip: Use multiple-images for rk3399

2022-12-21 Thread Simon Glass
Enable multiple-images so we can generate more than one image. Also add a comment for the end of the #if block. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Rename from 'Include binman script in 64-bit boards' - Drop duplicate #include in rk3368-u-boot.dtsi - Keep the

[PATCH v8 08/13] rockchip: evb-rk3288: Drop raw-image support

2022-12-21 Thread Simon Glass
This boards uses SPL_FIT so does not need to support loading a raw image. Drop it to avoid binman trying to insert a symbol which has no value. Signed-off-by: Simon Glass --- (no changes since v1) configs/evb-rk3288_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v8 06/13] binman: Support new op-tee binary format

2022-12-21 Thread Simon Glass
OP-TEE has a format with a binary header that can be used instead of the ELF file. With newer versions of OP-TEE this may be required on some platforms. Add support for this in binman. First, add a method to obtain the ELF sections from an entry, then use that in the FIT support. We then end up

[PATCH v8 03/13] binman: Update entry docs

2022-12-21 Thread Simon Glass
These have got out of data recently. Regenerate them. Signed-off-by: Simon Glass --- (no changes since v7) Changes in v7: - Correct an rST formatting error Changes in v6: - Add new patch to update entry docs tools/binman/entries.rst | 171 ++

[PATCH v8 04/13] binman: Support optional entries

2022-12-21 Thread Simon Glass
Support entries which can be optional depending on their contents. This allows special entry types which appear in the image only when needed. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/binman.rst | 22 ++ tools/binman/control.py |

[PATCH v8 05/13] binman: Add a way to check for a valid ELF file

2022-12-21 Thread Simon Glass
Add a function which checks whether data is in ELF format or not. This will be used by binman to check this for entries. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/elf.py | 16 tools/binman/elf_test.py | 10 ++ 2 files changed, 26

[PATCH v8 02/13] binman: Tidy up comment in fit _gen_node

2022-12-21 Thread Simon Glass
Expand this comment to cover both cases that are supported. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/fit.py | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index

[PATCH v8 01/13] binman: Allow writing section contents to a file

2022-12-21 Thread Simon Glass
At present only the image (which is a section) has a filename. Move this implementation to the entry_Section class so that any section can have a filename. With this, the section data is written to a file. This allows parts of an image to be written, along with the entire image. Make a note that

[PATCH v8 00/13] binman: rockchip: Migrate from rockchip SPL_FIT_GENERATOR script

2022-12-21 Thread Simon Glass
At present rockchip 64-bit boards make use of a FIT-generator script written in Python. The script supports splitting an ELF file into several 'loadable' nodes in the FIT. Binman does not current support this feature. This series adds binman support for ELF splitting. This works by adding a new

[PATCH] doc: Use "changesets" not "csets" in statistics pages

2022-12-21 Thread Tom Rini
To make things more human readable, say "changesets from" rather than "csets from" in all our historical pages here. Moving forward this has been changed in our gitdm with b034e399e31a ("gitdm: fix typo csets"). Signed-off-by: Tom Rini --- doc/develop/statistics/u-boot-stats-v1.3.0.rst | 2 +-

Re: [PATCH v2 1/1] gitdm: fix typo csets

2022-12-21 Thread Tom Rini
On Sun, 17 Jul 2022 17:50:21 +0200, Heinrich Schuchardt wrote: > The output should be human readable. > > %s/csets/changesets/ > > Applied, thanks! [1/1] gitdm: fix typo csets commit: b034e399e31ae98d3ceae358ce5ae0141b3a3052 Best regards, -- Tom

Re: [PATCH] dm: pinctrl: Revert "pinctrl: probe pinctrl drivers during post-bind"

2022-12-21 Thread Pali Rohár
On Wednesday 21 December 2022 07:27:39 Simon Glass wrote: > This breaks chromebook_coral and it is also not how things should work. If > a board needs to bind GPIOs as part of a pinctrl driver this can be done > during the bind step, if needed. > > We cannot probe pinctrl devices when binding as

Re: [PATCH] timer: orion-timer: Fix problem with early static variable

2022-12-21 Thread Tony Dinh
Hi Stefan, On Wed, Dec 21, 2022 at 1:18 AM Stefan Roese wrote: > > We've noticed that at least one Kirkwood board (Pogo v4) has problems > with the new orion DM timer implementation. Debugging revealed that this > issue is related with the static variable "early_init_done" which does > not work

Re: [PATCH u-boot] doc: board: qemu-ppce500: Update supported and unsupported

2022-12-21 Thread Pali Rohár
On Wednesday 21 December 2022 17:01:37 Bin Meng wrote: > On Wed, Dec 21, 2022 at 3:49 PM Pali Rohár wrote: > > > > On Wednesday 21 December 2022 09:15:41 Bin Meng wrote: > > > On Wed, Dec 21, 2022 at 4:06 AM Pali Rohár wrote: > > > > > > > > qemu can emulate also e500v1 core but cannot emulate

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Mark Kettenis
> Date: Wed, 21 Dec 2022 16:56:37 -0500 > From: Tom Rini > > On Sat, Dec 17, 2022 at 11:14:41PM +0100, Mark Kettenis wrote: > > > From: Eugen Hristev > > > Date: Thu, 15 Dec 2022 13:58:25 +0200 > > > > > > Newer DTC require that the DTB start address is aligned at 8 bytes. > > > In the

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Pali Rohár
On Wednesday 21 December 2022 14:47:48 eugen.hris...@microchip.com wrote: > On the other hand , what you are saying Pali, that objcopy trims > trailing zeros, and your platform is broken, hence you are aligning to 4 > bytes, I do not think that alignment to 4 bytes is the solution. Yes, it is

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Tom Rini
On Sat, Dec 17, 2022 at 11:14:41PM +0100, Mark Kettenis wrote: > > From: Eugen Hristev > > Date: Thu, 15 Dec 2022 13:58:25 +0200 > > > > Newer DTC require that the DTB start address is aligned at 8 bytes. > > In the u-boot.bin case, the u-boot-nodtb.bin is concatenated with the > > DTB, but

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Tom Rini
On Thu, Dec 15, 2022 at 07:00:51AM -0800, Simon Glass wrote: > Hi Eugen, > > On Thu, 15 Dec 2022 at 06:37, wrote: > > > > On 12/15/22 16:24, Simon Glass wrote: > > > Hi Eugen, > > > > > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > > > wrote: > > >> > > >> Newer DTC require that the DTB

Re: Converting to DM SERIAL for Kirkwood boards

2022-12-21 Thread Tony Dinh
Hi Stefan, On Wed, Dec 21, 2022 at 1:29 AM Stefan Roese wrote: > > Hi Pali, > > On 12/20/22 09:07, Pali Rohár wrote: > > On Tuesday 20 December 2022 07:20:15 Stefan Roese wrote: > >> Hi Tony, > >> > >> On 12/20/22 02:36, Tony Dinh wrote: > >>> Hi Stefan, > >>> > >>> On Mon, Dec 19, 2022 at 4:06

Re: [u-boot][PATCH v2 8/8] mtd: rawnand: omap_elm: u-boot driver model support

2022-12-21 Thread Michael Nazzareno Trimarchi
Hi On Wed, Dec 21, 2022 at 8:57 PM Roger Quadros wrote: > > Hi Michael, > > On 21/12/2022 19:56, Michael Nazzareno Trimarchi wrote: > > Hi Roger > > > > On Tue, Dec 20, 2022 at 11:22 AM Roger Quadros wrote: > >> > >> Support u-boot driver model. We still retain > >> support legacy way of doing

Re: [u-boot][PATCH v2 8/8] mtd: rawnand: omap_elm: u-boot driver model support

2022-12-21 Thread Roger Quadros
Hi Michael, On 21/12/2022 19:56, Michael Nazzareno Trimarchi wrote: > Hi Roger > > On Tue, Dec 20, 2022 at 11:22 AM Roger Quadros wrote: >> >> Support u-boot driver model. We still retain >> support legacy way of doing things if ELM_BASE >> is defined in >> >> We could completely get rid of

Re: [PATCH] arm: mach-k3: j721e: Add platform data for main_uart2

2022-12-21 Thread Bryan Brattlof
Hi Bhavya! On December 19, 2022 thus sayeth Bhavya Kapoor: > Add platform clock and powerdomain data for main_uart2 in J721e. This > data is used by the driver to register main_uart2 device clocks and > powerdomains for J721e. > > Signed-off-by: Bhavya Kapoor > --- >

Re: [u-boot][PATCH v2 8/8] mtd: rawnand: omap_elm: u-boot driver model support

2022-12-21 Thread Michael Nazzareno Trimarchi
Hi Roger On Tue, Dec 20, 2022 at 11:22 AM Roger Quadros wrote: > > Support u-boot driver model. We still retain > support legacy way of doing things if ELM_BASE > is defined in > > We could completely get rid of that if all > platforms defining ELM_BASE get rid of that definition > and enable

Re: Pull request for efi-2023-01-rc5

2022-12-21 Thread Tom Rini
On Tue, Dec 20, 2022 at 05:21:29PM +0100, Heinrich Schuchardt wrote: > The following changes since commit 2243922edca9f56a9d5519b9d6e36f5d7a18434d: > > Prepare v2023.01-rc4 (2022-12-19 08:45:26 -0500) > > are available in the Git repository at: > >

Re: Pull request for tpm-20122022

2022-12-21 Thread Tom Rini
On Tue, Dec 20, 2022 at 09:45:53AM +0200, Ilias Apalodimas wrote: > Hi Tom, > > The following changes since commit 2243922edca9f56a9d5519b9d6e36f5d7a18434d: > > Prepare v2023.01-rc4 (2022-12-19 08:45:26 -0500) > > are available in the Git repository at: > >

Re: [PATCH 0/2] Enable distroboot as a boot option for am62x

2022-12-21 Thread Bryan Brattlof
Hi Martyn! On December 20, 2022 thus sayeth Martyn Welch: > The am62x config currently doesn't enable distroboot as an option for > booting. Add this as a further option after the existing mechanisms have > failed. > > Whilst working on this it was found that boot detection was failing on > the

Re: [PATCH 1/3] dt-bindings: mfd: add at91-usart.h from Linux

2022-12-21 Thread Eugen.Hristev
On 11/25/22 10:29, Claudiu Beznea - M18063 wrote: > On 25.11.2022 09:54, Eugen Hristev wrote: >> Copy include file dt-bindings/mfd/at91-usart.h from Linux >> >> Signed-off-by: Eugen Hristev > > Reviewed-by: Claudiu Beznea > Applied series to u-boot-at91/next , thanks !

Re: [PATCH] ARM: dts: at91: sama5d2: fix wrong interrupt-cells property

2022-12-21 Thread Eugen.Hristev
On 12/12/22 12:07, Claudiu Beznea - M18063 wrote: > On 12.12.2022 11:59, Eugen Hristev wrote: >> The PMC node is not an interrupt provider, so it must not have >> interrupt-cells. >> >> This fixes the warning (on newer DTC): >> arch/arm/dts/sama5d2.dtsi:82.22-602.6: Warning (interrupt_provider):

Re: [PATCH] ARM: mach-at91: add support for sama7g5 chip id and extended id definition

2022-12-21 Thread Eugen.Hristev
On 12/2/22 09:47, Mihai Sain wrote: > Add SAMA7G5 series chip id definitions to align with linux SoC driver. > Add support for SAMA7G5 System-In-Package (SIP): > SAMA7G54D1G, SAMA7G54D2G, SAMA7G54D4G. > > Signed-off-by: Mihai Sain > --- Applied to u-boot-at91/next , thanks !

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Eugen.Hristev
On 12/18/22 01:59, Pali Rohár wrote: > On Saturday 17 December 2022 23:54:40 Pali Rohár wrote: >> On Saturday 17 December 2022 23:04:08 Pali Rohár wrote: >>> On Saturday 17 December 2022 14:40:44 Simon Glass wrote: Hi Pali, On Thu, 15 Dec 2022 at 16:13, Pali Rohár wrote: >

Re: [PATCH v7 06/12] binman: Support new op-tee binary format

2022-12-21 Thread Jerome Forissier
Hi Simon, On 12/17/22 22:28, Simon Glass wrote: > OP-TEE has a format with a binary header that can be used instead of the > ELF file. With newer versions of OP-TEE this may be required on some > platforms. > > Add support for this in binman. First, add a method to obtain the ELF > sections from

[PATCH] dm: pinctrl: Revert "pinctrl: probe pinctrl drivers during post-bind"

2022-12-21 Thread Simon Glass
This breaks chromebook_coral and it is also not how things should work. If a board needs to bind GPIOs as part of a pinctrl driver this can be done during the bind step, if needed. We cannot probe pinctrl devices when binding as a rule, since it cannot be supported on some platforms. The bind

Bootargs in RPI not working

2022-12-21 Thread Sai Kiran Kumar Reddy Y
Hi, I have U-Boot 2022.10 version. I am trying to boot Raspberry Pi(Model 3B+) using U-Boot. In the U-Boot terminal when I set kernel command-line arguments, using "setenv bootargs root=/dev/mmblk0p3 ro rootwait console=serial0,115200 console=tty1", the Kernel is not loaded. Following are the

[PATCH v1 1/1] makefile: add multi_dtb_fit dep

2022-12-21 Thread Neal Frager
With certain gcc compilers, the u-boot.itb is built immediately after dtb generation. If CONFIG_MULTI_DTB_FIT is used, it is possible that the fit-dtb.blob is not finished in time. This patch adds a necessary dependency to guarantee that the fit-dtb.blob is built before attempting to build the

[PATCH V2 12/12] include: configs: Update env for selecting right dtb

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja Now that single defconfig shall be used for booting J721S2 EVM and AM68 SK, the default device tree will not work for selecting dtb for kernel. Update the findfdt env to select right dtb based on board_name env variable. Signed-off-by: Sinthu Raja ---

[PATCH V2 11/12] arm: dts: k3-am68-sk: Add r5 specific dt support

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja Add initial support for AM68 SK device tree that runs on R5. Signed-off-by: Sinthu Raja --- arch/arm/dts/Makefile | 1 + arch/arm/dts/k3-am68-sk-r5-base-board.dts | 194 ++ 2 files changed, 195 insertions(+) create mode 100644

[PATCH V2 10/12] arm: dts: Add support for A72 specific AM68 Starter Kit Base Board

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja The SK architecture comprises of baseboard and a SOM board. The AM68 Starter Kit's baseboard contains most of the actual connectors, power supply etc. The System on Module (SoM) is plugged on to the base board. Therefore, add support for peripherals brought out in the base

[PATCH V2 08/12] board: ti: j721s2: Add board_init and support for selecting DT based on EEPROM

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja Add the board_init_f API for SPL and run the platform-required SoC initialization. Add the functionality for board name-based DTB selection from FIT within SPL. This will make it easier to utilise one defconfig for both the EVM and the SK. Signed-off-by: Sinthu Raja ---

[PATCH V2 09/12] arm: dts: Add initial support for AM68 Starter Kit System on Module

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja AM68 Starter Kit (SK) is a low cost, small form factor board designed for TI’s AM68 SoC. TI’s AM68 SoC comprises of dual core A72, high performance vision accelerators, hardware accelerators, latest C71x DSP, high bandwidth real-time IPs for capture and display. The SoC is

[PATCH V2 07/12] arch: mach-k3: Update board specific API name to K3 generic API name

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja Although the board_init_f API initialises the SoC, the API name is incorrectly specified and misleads the functionality. This file should only include k3-specific functionality. Change the API's name to something more K3-specific and separate the function to make it more

[PATCH V2 06/12] oboard: ti: j721s2: Add support for detecting multiple device trees

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja Update the board_fit_config_name_match() to choose the right dtb based on the board name read from EEPROM. Also restrict multpile EEPROM reads by verifying if EEPROM is already read Signed-off-by: Sinthu Raja --- Address review comments: - Remove support for detecting

[PATCH V2 05/12] board: ti: j721s2: Enable support for reading EEPROM at next alternate address

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja J721S2 EVM has EEPROM populated at 0x50. AM68 SK has EEPROM populated at next address 0x51 in order to be compatible with RPi. So start looking for TI specific EEPROM at 0x50, if not found look for EEPROM at 0x51. Signed-off-by: Sinthu Raja --- board/ti/j721s2/evm.c | 12

[PATCH V2 04/12] board: ti: j721s2: Add support to update board_name for am68-sk

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja Update setup_board_eeprom_env() to choose the right board name for am68-sk. Signed-off-by: Sinthu Raja --- Changes in V2: = Address review comments: - Move board_is_xxx within CONFIG_TI_I2C_BOARD_DETECT block to maintain the "mini" U-Boot concept for this SoC.

[PATCH V2 03/12] configs: j721s2_evm: Enable configs to store env in MMC FAT partition

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja J721S2 EVM used to store env on eMMC, since EVM and SK uses same defconfig and there is no eMMC on SK, we need to keep env in an interface which available on both EVM and SK. So, save env in FAT partition of MMC SD Card. Enable defconfigs relevant for storing env on FAT

[PATCH V2 01/12] configs: j721s2_evm_r5: Enable support for building multiple dtbs into FIT

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja Enable configs for building multiple dtbs into a single fit image and load the right dtb for next stage. This will help to use same defconfig for both EVM and SK. Signed-off-by: Sinthu Raja --- configs/j721s2_evm_r5_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH V2 02/12] configs: j721s2_evm_a72: Enable support for building multiple dtbs into FIT

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja Enable configs for building multiple dtbs into a single fit image and load the right dtb for next stage. Add k3-am68-sk-base-board dtb along with evm dtb inside DTB FIT image. This helps to use same defconfig for both EVM and SK Signed-off-by: Sinthu Raja ---

[PATCH V2 00/12] AM68: Add support for AM68 Starter Kit

2022-12-21 Thread Sinthu Raja
From: Sinthu Raja Hi All, This series of patch add initial support for AM68 starter kit. Design files can be referrred from https://www.ti.com/lit/zip/SPRR463 Refer below link to J721S2/AM68 Technical Reference Manual for further details: http://www.ti.com/lit/pdf/spruj28 Link to kerenl

[PATCH 3/3] eficonfig: add vertical scroll support

2022-12-21 Thread Masahisa Kojima
The current eficonfig menu does not support vertical scroll, so it can not display the menu entries greater than the console row size. This commit add the vertial scroll support. The console size is retrieved by SIMPLE_TEXT_OUTPUT_PROTOCOL.QueryMode() service, then calculates the row size for

[PATCH 2/3] eficonfig: refactor change boot order implementation

2022-12-21 Thread Masahisa Kojima
This commit removes the change boot order specific menu implementation. The change boot order implementation calls eficonfig_process_common() same as other menus. The change boot order menu requires own item_data_print and item_choice implementation, but display_statusline function can be a same

  1   2   >