RE: [EXTERNAL] Re: Device Tree Overlays and FIT Images - Are they supported together fully?

2022-02-11 Thread Westermann, Oliver
Hey, On Fri, 11 Feb 2022 at 08:54, Heinrich Schuchardt wrote: > You can pass the name of a configuration and overlays to apply to the > bootm command. See doc/uImage.FIT/overlay-fdt-boot.txt > > Here are examples of usage: > > * configs/am65x_hs_evm_a53_defconfig > * include/configs/ti_armv7_co

RE: [EXT] Re: [PATCH v8 01/15] crypto/fsl: Add support for CAAM Job ring driver model

2022-02-11 Thread Gaurav Jain
Hello Marek A gentle reminder!! Please help to check if some feature can be dropped in SPL from imx6dl_mamoj board so that CAAM driver model patches can be accepted. Regards Gaurav Jain > -Original Message- > From: Gaurav Jain > Sent: Monday, February 7, 2022 12:43 PM > To: Stefano Babi

RE: [EXT] RE: [PATCH v10 02/14] i.MX8M: crypto: updated device tree for supporting DM in SPL

2022-02-11 Thread Gaurav Jain
Hello Andrey I responded to your comments on this patch. If you are good, can this patch series merged? Regards Gaurav Jain > -Original Message- > From: Gaurav Jain > Sent: Thursday, February 3, 2022 10:58 AM > To: ZHIZHIKIN Andrey ; u- > b...@lists.denx.de > Cc: Stefano Babic ; Fabio Es

Re: [PATCH v4 07/11] FWU: Add boot time checks as highlighted by the FWU specification

2022-02-11 Thread Sughosh Ganu
On Tue, 8 Feb 2022 at 16:23, Michal Simek wrote: > > po 7. 2. 2022 v 19:22 odesílatel Sughosh Ganu > napsal: > > > > The FWU Multi Bank Update specification requires the Update Agent to > > carry out certain checks at the time of platform boot. The Update > > Agent is the component which is resp

Re: [PATCH v3] power: zynqmp: Add power domain driver for ZynqMP

2022-02-11 Thread Jaehoon Chung
On 2/7/22 18:27, Michal Simek wrote: > Driver should be enabled by CONFIG_POWER_DOMAIN=y and > CONFIG_ZYNQMP_POWER_DOMAIN=y. Power domain driver doesn't have own DT node > but it uses zynqmp firmware DT node that's why there is a need to bind > driver when firmware node is found. > > Driver itself

[PATCH v2 0/6] armv8: fixes and cleanups

2022-02-11 Thread Andre Przywara
Hi, revamping this small series, just small changes: - rebasing on top of origin/master, there was a trivial conflict - checking for FEAT_LSE2 before trying unaligned accesses (patch 1/6) Michael Walle tested the whole of v1 successfully, and the changes should not affect this result. Mark Ketten

[PATCH v2 1/6] cmd: exception: arm64: fix undefined, add faults

2022-02-11 Thread Andre Przywara
The arm64 version of the exception command was just defining the undefined exception, but actually copied the AArch32 instruction. Replace that with an encoding that is guaranteed to be and stay undefined. Also add instructions to trigger unaligned access faults and a breakpoint. This brings ARM64

[PATCH v2 2/6] armv8: Always unmask SErrors

2022-02-11 Thread Andre Przywara
The ARMv8 architecture describes the "SError interrupt" as the fourth kind of exception, next to synchronous exceptions, IRQs, and FIQs. Those SErrors signal exceptional conditions from which the system might not easily recover, and are normally generated by the interconnect as a response to some b

[PATCH v2 3/6] armv8: Force SP_ELx stack pointer usage

2022-02-11 Thread Andre Przywara
In ARMv8 we have the choice between two stack pointers to use: SP_EL0 or SP_ELx, which is banked per exception level. This choice is stored in the SP field of PState, and can be read and set via the SPSel special register. When the CPU takes an exception, it automatically switches to the SP_ELx sta

[PATCH v2 4/6] arm: Clean up asm/io.h

2022-02-11 Thread Andre Przywara
asm/io.h is the header file containing the central MMIO accessor macros. Judging by the header and the comments, it was apparently once copied from the Linux kernel, but has deviated since then *heavily*. There is absolutely no point in staying close to the original Linux code anymore, so just remo

[PATCH v2 5/6] armv8: Simplify switch_el macro

2022-02-11 Thread Andre Przywara
The switch_el macro is a neat contraption to handle cases where we need different code depending on the current exception level, but its implementation was longer than needed. Simplify it by doing just one comparison, then using the different condition codes to branch to the desired target. PState

[PATCH v2 6/6] armv8: Fix and simplify branch_if_master/branch_if_slave

2022-02-11 Thread Andre Przywara
The branch_if_master macro jumps to a label if the CPU is the "master" core, which we define as having all affinity levels set to 0. To check for this condition, we need to mask off some bits from the MPIDR register, then compare the remaining register value against zero. The implementation of thi

[PATCH 1/3] mmc: fsl_esdhc_imx: use VENDORSPEC_FRC_SDCLK_ON when necessary

2022-02-11 Thread haibo . chen
From: Haibo Chen After commit f132aab40327 ("Revert "mmc: fsl_esdhc_imx: use VENDORSPEC_FRC_SDCLK_ON to control card clock output""), it involve issue in mmc_switch_voltage(), because of the special design of usdhc. For FSL_USDHC, it do not implement VENDORSPEC_CKEN/PEREN/HCKEN/IPGEN, these are

[PATCH 3/3] mmc: fsl_esdhc_imx: correct the actual card clock

2022-02-11 Thread haibo . chen
From: Haibo Chen The original code logic can not show the correct card clock, and also has one risk when the div is 0. Because there is div -=1 before. So move the operation before div -=1, and also involve ddr_pre_div to get the correct value. Signed-off-by: Haibo Chen --- drivers/mmc/fsl_es

[PATCH 2/3] mmc: fsl_esdhc_imx: remove redundant ARCH_MXC

2022-02-11 Thread haibo . chen
From: Haibo Chen Now original fsl_esdhc.c are split as fsl_esdhc.c and fsl_esdhc_imx.c. fsl_esdhc_imx.c only cover i.MX SoC. So ARCH_MXC is redundant. Signed-off-by: Haibo Chen --- drivers/mmc/fsl_esdhc_imx.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/

[PATCH 1/5] doc: binding: scmi: link to latest Linux kernel binding

2022-02-11 Thread Etienne Carriere
Changes SCMI bindings documentation to relate to Linux kernel source tree that recently changed the bindings description to YAML format. Signed-off-by: Etienne Carriere --- doc/device-tree-bindings/arm/arm,scmi.txt | 236 +- 1 file changed, 2 insertions(+), 234 deletions(-)

[PATCH 2/5] sandbox: scmi: test against a single scmi agent

2022-02-11 Thread Etienne Carriere
As per DT bindings since Linux kernel v5.14, the device tree can define only 1 SCMI agent node that is named scmi [1]. As a consequence, change implementation of the SCMI driver test through sandbox architecture to reflect that. This change updates sandbox test DT and sandbox SCMI driver according

[PATCH 4/5] firmware: scmi: fix sandbox and related tests for clock discovery

2022-02-11 Thread Etienne Carriere
Updates sandbox SCMI clock driver and tests since enabling CCF will mandate clock discovery that is all exposed SCMI clocks shall be discovered at initialization. For this reason, sandbox SCMI clock driver must emulate all clocks exposed by SCMI server, not only those effectively consumed by some o

[PATCH 3/5] scmi: change parameter dev in devm_scmi_process_msg

2022-02-11 Thread Etienne Carriere
Changes devm_scmi_process_msg() first argument from target parent device to current SCMI device and lookup the SCMI agent device among SCMI device parents for find the SCMI agent operator needed for communication with the firmware. This change is needed in order to support CCF in clk_scmi driver u

[PATCH 5/5] clk: scmi: register scmi clocks with CCF

2022-02-11 Thread Etienne Carriere
Implements SCMI APIs to retrieve the number exposed SCMI clocks using SCMI_PROTOCOL_ATTRIBUTES messages and the names of the clocks using SCMI_CLOCK_ATTRIBUTES messages. This change updates sandbox SCMI clock test driver to manage these 2 new message IDs. Series-links: 246809 Cc: Lukasz Majewski

[PULL] u-boot-usb/master

2022-02-11 Thread Marek Vasut
The following changes since commit 2ccd2bc8c3580e00c51094c5cc2b3e2ead8d35c3: Merge tag 'dm-pull-8feb22-take3' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm (2022-02-10 09:19:44 -0500) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to f

Re: [RFC] CI: enforce packages upgrade for Msys2 on Windows

2022-02-11 Thread Heinrich Schuchardt
On 2/9/22 13:28, Tom Rini wrote: On Wed, Feb 09, 2022 at 05:24:23PM +0900, AKASHI Takahiro wrote: We need to install libgnutls-devel package to build the host tool, mkeficapsule, and as of now, there seems to be a depencency conflict in the current msys2 installer; :: installing libp11-kit

Re: [PATCH v4 10/11] mkeficapsule: Add support for generating empty capsules

2022-02-11 Thread Sughosh Ganu
hi Takahiro, On Wed, 9 Feb 2022 at 08:35, AKASHI Takahiro wrote: > > Hi Sughosh, > > On Mon, Feb 07, 2022 at 11:50:00PM +0530, Sughosh Ganu wrote: > > The Dependable Boot specification describes the structure of the > > What is this specification? Please specify the link to the doc. > > > firmwar

Re: [PATCH v4 10/11] mkeficapsule: Add support for generating empty capsules

2022-02-11 Thread Sughosh Ganu
On Thu, 10 Feb 2022 at 06:57, AKASHI Takahiro wrote: > > On Wed, Feb 09, 2022 at 12:05:06PM +0900, AKASHI Takahiro wrote: > > Hi Sughosh, > > > > On Mon, Feb 07, 2022 at 11:50:00PM +0530, Sughosh Ganu wrote: > > > The Dependable Boot specification describes the structure of the > > > > What is thi

Re: [PATCH 1/5] doc: binding: scmi: link to latest Linux kernel binding

2022-02-11 Thread Patrick DELAUNAY
Hi Etienne, On 2/11/22 13:07, Etienne Carriere wrote: Changes SCMI bindings documentation to relate to Linux kernel source tree that recently changed the bindings description to YAML format. Signed-off-by: Etienne Carriere --- doc/device-tree-bindings/arm/arm,scmi.txt | 236 +

Re: [PATCH 2/5] sandbox: scmi: test against a single scmi agent

2022-02-11 Thread Patrick DELAUNAY
Hi Etienne, On 2/11/22 13:07, Etienne Carriere wrote: As per DT bindings since Linux kernel v5.14, the device tree can define only 1 SCMI agent node that is named scmi [1]. As a consequence, change implementation of the SCMI driver test through sandbox architecture to reflect that. This change

Re: [PATCH 3/5] scmi: change parameter dev in devm_scmi_process_msg

2022-02-11 Thread Patrick DELAUNAY
Hi On 2/11/22 13:07, Etienne Carriere wrote: Changes devm_scmi_process_msg() first argument from target parent device to current SCMI device and lookup the SCMI agent device among SCMI device parents for find the SCMI agent operator needed for communication with the firmware. This change is nee

Re: [PATCH 4/5] firmware: scmi: fix sandbox and related tests for clock discovery

2022-02-11 Thread Patrick DELAUNAY
Hi, On 2/11/22 13:07, Etienne Carriere wrote: Updates sandbox SCMI clock driver and tests since enabling CCF will mandate clock discovery that is all exposed SCMI clocks shall be discovered at initialization. For this reason, sandbox SCMI clock driver must emulate all clocks exposed by SCMI serv

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-11 Thread Joakim Tjernlund
On Fri, 2022-02-11 at 01:26 +, Andre Przywara wrote: > On Fri, 11 Feb 2022 00:22:25 + > Joakim Tjernlund wrote: > > > On Thu, 2022-02-10 at 22:43 +, Andre Przywara wrote: > > > On Thu, 10 Feb 2022 21:58:30 + > > > Joakim Tjernlund wrote: > > > > > > Hi, > > > > > > > On Thu,

STM32MP: Can't lock PHK fuses through U-Boot cmd's "stm32key" or "fuse"

2022-02-11 Thread Johann Neuhauser
Hello Patrick, Patrice and other devs, I'm trying to roll out secure boot with U-Boot v2022.01 only. The boot flow should be like: BootROM -(signed STM32 image)-> U-Boot SPL -(signed fit)-> U-Boot -(signed fit)-> Linux Everything except the first part in the chain is working as expected. I've us

Re: [PATCH 5/5] clk: scmi: register scmi clocks with CCF

2022-02-11 Thread Patrick DELAUNAY
Hi, On 2/11/22 13:07, Etienne Carriere wrote: Implements SCMI APIs to retrieve the number exposed SCMI clocks using SCMI_PROTOCOL_ATTRIBUTES messages and the names of the clocks using SCMI_CLOCK_ATTRIBUTES messages. This change updates sandbox SCMI clock test driver to manage these 2 new messag

Re: [PATCH v2 0/2] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-02-11 Thread Ariel D'Alessandro
Ping :-) Can we get this merged? On 1/31/22 10:39, Ariel D'Alessandro wrote: > Hi Tom, > > Any reason why this is still pending? > Please let me know. > > Thanks in advance, > Ariel > > On 1/26/22 08:08, Michael Nazzareno Trimarchi wrote: >> Hi Fabio >> >> On Sat, Jan 15, 2022 at 3:11 PM Fabio

Re: [PATCH 1/1] cmd: add serial console support for the cls command

2022-02-11 Thread Simon Glass
Hi Heinrich, On Sat, 29 Jan 2022 at 13:32, Heinrich Schuchardt wrote: > > Currently the cls command does not support the serial console > > The screen can be cleared in the video uclass, the colored frame buffer > console, and the serial console by sending the same escape sequence. > The cls comm

Re: [PATCH 2/2] test: test UTF-16 truncation in sprintf()

2022-02-11 Thread Simon Glass
On Sat, 29 Jan 2022 at 10:40, Heinrich Schuchardt wrote: > > Check that snprintf() returns the correct required buffer length and prints > the correct string for UTF-16 strings. > > Signed-off-by: Heinrich Schuchardt > --- > test/unicode_ut.c | 31 +++ > 1 file change

Re: [PATCH] dm: core: Check flags before removing devices

2022-02-11 Thread Simon Glass
Hi Marek, On Thu, 27 Jan 2022 at 20:41, Marek Vasut wrote: > > Calling device_chld_remove() before flags_remove() means all devices > get removed no matter whether they should be removed late or not. This > breaks teardown of eMMC when booting and other critical boot paths. > > Fixes: c51d2e704a1

Re: [PATCH v3] gpio: Enable hogging support in SPL

2022-02-11 Thread Simon Glass
On Mon, 7 Feb 2022 at 16:09, Eddie James wrote: > > Use the CONFIG macros to conditionally build the GPIO hogging support in > either the SPL or U-Boot, or both, depending on the configuration. Also > call the GPIO hog probe function in the common SPL board initialization > as an equivalent to add

Re: [PATCH 1/1] test: test field truncation in snprint()

2022-02-11 Thread Simon Glass
On Sat, 29 Jan 2022 at 08:33, Heinrich Schuchardt wrote: > > The output size for snprint() should not only be respected for whole fields > but also with fields. Add more tests. > > Signed-off-by: Heinrich Schuchardt > --- > test/print_ut.c | 12 > 1 file changed, 12 insertions(+) >

Re: [PATCH 04/14] video: nexell: Drop unused and invalid code

2022-02-11 Thread Simon Glass
Hi Stefan, On Mon, 31 Jan 2022 at 09:58, Stefan Bosch wrote: > > Hi Simon, > > please find below the patch of your patch 04/14 (diff after applying > your hole patch-series and my changes). > > OK, let's see where this all goes. Once it is applied it will be clearer. Regards, Simon

Re: [PATCH v2 1/1] timer: npcm: Add driver for Nuvoton NPCM SoCs

2022-02-11 Thread Simon Glass
Hi Stanley, On Mon, 7 Feb 2022 at 17:22, Stanley Chu wrote: > > This driver enables a periodic timer on NPCM SoCs and > implements the get_count timer ops. > > Signed-off-by: Stanley Chu > --- > Changes in v2: > calculate the prescale value, not hardcode. > --- > drivers/timer/Kconfig |

Re: [PATCH] rockchip: Set default LNX_KRNL_IMG_TEXT_OFFSET_BASE to SYS_TEXT_BASE

2022-02-11 Thread Simon Glass
On Sat, 29 Jan 2022 at 08:28, Alper Nebi Yasak wrote: > > U-Boot can be chainloaded from vendor firmware on ARM64 chromebooks from > a GPT partition (roughly the same as in doc/chromium/chainload.rst), but > an appropriate image header must be built-in to the U-Boot binary by > enabling LINUX_KERN

Re: [PATCH] scripts: dtc: libfdt: fdt_ro.c: always define fdt_check_full

2022-02-11 Thread Simon Glass
On Wed, 9 Feb 2022 at 10:01, Philippe Reynes wrote: > > On some configs (like stm32mp15_dhcom_basic_defconfig), if configs > SPL_LOAD_FIT_FULL and SPL_FIT_FULL_CHECK are enabled. Then the compilatio > fails with the following error: > > arm-linux-gnueabi-ld.bfd: boot/image-fit.o: in function `fit_

Re: [PATCH v2] binman: Skip processing "hash" subnodes of FIT subsections

2022-02-11 Thread Simon Glass
On Wed, 9 Feb 2022 at 12:02, Alper Nebi Yasak wrote: > > Binman's FIT entry type can have image subentries with "hash" subnodes > intended to be processed by mkimage, but not binman. However, the Entry > class and any subclass that reuses its implementation tries to process > these unconditionally

Re: Re: [PATCH v1 1/1] env: fat: Allow overriding interface, device and partition

2022-02-11 Thread Simon Glass
Hi, On Sat, 29 Jan 2022 at 01:26, 何勇 wrote: > > Hi: > Override the env_fat_get_dev_part function in the board file, you can > load env from sdcard or emmc without modifying any configuration > of u-boot, it is very useful for building wic firmware by yocto. > > it has been done under env/ext4.c

Re: [PATCH] dm: core: Check flags before removing devices

2022-02-11 Thread Marek Vasut
On 2/11/22 16:05, Simon Glass wrote: Hi Marek, Hi, Calling device_chld_remove() before flags_remove() means all devices get removed no matter whether they should be removed late or not. This breaks teardown of eMMC when booting and other critical boot paths. Fixes: c51d2e704a1 ("dm: core: Av

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Adam Ford
On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > > On Thu, Feb 10, 2022 at 07:56:52AM -0600, Adam Ford wrote: > > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: > > > > > > Hi, > > > > > > On Wed, 9 Feb 2022 at 05:32, Tom Rini wrote: > > > > > > > > On Wed, Feb 09, 2022 at 05:40:03AM -0600,

Re: [PATCH v2 0/2] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 11:15:22AM -0300, Ariel D'Alessandro wrote: > Ping :-) Can we get this merged? Stefano, are you working on a follow-up PR with more platforms? Thanks! > > On 1/31/22 10:39, Ariel D'Alessandro wrote: > > Hi Tom, > > > > Any reason why this is still pending? > > Please l

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam Ford wrote: > On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > > > > On Thu, Feb 10, 2022 at 07:56:52AM -0600, Adam Ford wrote: > > > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: > > > > > > > > Hi, > > > > > > > > On Wed, 9 Feb 2022 at 05:32,

Re: [PATCH v3] board: gateworks: venice: add imx8mn-gw7902 support

2022-02-11 Thread Tim Harvey
On Thu, Feb 10, 2022 at 5:51 PM Fabio Estevam wrote: > > Hi Tim, > > Your patch looks good. > > On Wed, Feb 2, 2022 at 7:00 PM Tim Harvey wrote: > > > +/* Initial environment variables */ > > +#define CONFIG_EXTRA_ENV_SETTINGS \ > > + BOOTENV \ > > + MEM_LAYOUT_ENV_SETTINGS \ > > +

Re: [PATCH v2 0/2] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-02-11 Thread Stefano Babic
On 11.02.22 16:55, Tom Rini wrote: On Fri, Feb 11, 2022 at 11:15:22AM -0300, Ariel D'Alessandro wrote: Ping :-) Can we get this merged? Stefano, are you working on a follow-up PR with more platforms? Thanks! Yes, I will apply missing patches in the WE. Regards, Stefano On 1/31/22 10:

RE: [EXT] RE: [PATCH v10 02/14] i.MX8M: crypto: updated device tree for supporting DM in SPL

2022-02-11 Thread ZHIZHIKIN Andrey
Hello Gaurav, Sorry, I somehow missed you last reply here. Cc: Rouven > -Original Message- > From: U-Boot On Behalf Of Gaurav Jain > Sent: Friday, February 11, 2022 10:48 AM > To: ZHIZHIKIN Andrey ; u- > b...@lists.denx.de > Cc: Stefano Babic ; Fabio Estevam ; Peng > Fan > ; Simon Glas

Re: [PATCH 00/24] binman: rockchip: Migrate from rockchip SPL_FIT_GENERATOR script

2022-02-11 Thread Alper Nebi Yasak
Hi, On 08/02/2022 21:49, Simon Glass wrote: > 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 s

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Adam Ford
On Fri, Feb 11, 2022 at 10:12 AM Tom Rini wrote: > > On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam Ford wrote: > > On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > > > > > > On Thu, Feb 10, 2022 at 07:56:52AM -0600, Adam Ford wrote: > > > > On Wed, Feb 9, 2022 at 11:16 AM Simon Glass wrote: >

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 10:39:30AM -0600, Adam Ford wrote: > On Fri, Feb 11, 2022 at 10:12 AM Tom Rini wrote: > > > > On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam Ford wrote: > > > On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > > > > > > > > On Thu, Feb 10, 2022 at 07:56:52AM -0600, Adam For

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-11 Thread Joakim Tjernlund
On Fri, 2022-02-11 at 15:00 +0100, Joakim Tjernlund wrote: > On Fri, 2022-02-11 at 01:26 +, Andre Przywara wrote: > > On Fri, 11 Feb 2022 00:22:25 + > > Joakim Tjernlund wrote: > > > > > On Thu, 2022-02-10 at 22:43 +, Andre Przywara wrote: > > > > On Thu, 10 Feb 2022 21:58:30 + >

Re: [PULL] u-boot-usb/master

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 01:22:01PM +0100, Marek Vasut wrote: > The following changes since commit 2ccd2bc8c3580e00c51094c5cc2b3e2ead8d35c3: > > Merge tag 'dm-pull-8feb22-take3' of > https://gitlab.denx.de/u-boot/custodians/u-boot-dm (2022-02-10 09:19:44 > -0500) > > are available in the Git re

Re: [PATCH] test/py: Add test case for mkimage -o argument

2022-02-11 Thread Tom Rini
On Thu, Feb 03, 2022 at 09:43:50PM +0100, Jan Kiszka wrote: > From: Jan Kiszka > > Stress the '-o algo_name' argument of mkimage by expanding the vboot > test. > > Signed-off-by: Jan Kiszka > Reviewed-by: Simon Glass First, this is now applied to u-boot/master. Second, I updated scripts/pyl

Re: [PATCH V3 1/2] fw_env: make flash_io() take buffer as an argument

2022-02-11 Thread Tom Rini
On Wed, Jan 12, 2022 at 12:47:05PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > It's usually easier to understand code & follow it if all arguments are > passed explicitly. Many coding styles also discourage using global > variables. > > Behaviour of flash_io() was a bit unintuitive as

Re: [PATCH V3 2/2] fw_env: simplify logic & code paths in the fw_env_open()

2022-02-11 Thread Tom Rini
On Wed, Jan 12, 2022 at 12:47:06PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > Environment variables can be stored in two formats: > 1. Single entry with header containing CRC32 > 2. Two entries with extra flags field in each entry header > > For that reason fw_env_open() has two main

Re: [PATCH V4] phy: nop-phy: Enable reset-gpios support

2022-02-11 Thread Tom Rini
On Sat, Jan 29, 2022 at 07:27:47AM -0600, Adam Ford wrote: > Some usb-nop-xceiv devices use a gpio take them out > of reset. Add a reset function to put them into that > state. This is similar to how Linux handles the > usb-nop-xceiv driver. > > Signed-off-by: Adam Ford Applied to u-boot/mast

Re: [PATCH 1/1] test: test field truncation in snprint()

2022-02-11 Thread Tom Rini
On Sat, Jan 29, 2022 at 04:33:16PM +0100, Heinrich Schuchardt wrote: > The output size for snprint() should not only be respected for whole fields > but also with fields. Add more tests. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Descriptio

Re: [PATCH] acpi: Move acpi_write_tables() to a generic header

2022-02-11 Thread Tom Rini
On Sat, Jan 29, 2022 at 02:30:52PM -0700, Simon Glass wrote: > This function is used by both x86 and sandbox. Put it in a common header > file. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 1/5] DFU: Do not copy the entity name over the buffer size

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:20AM +0900, Masami Hiramatsu wrote: > Use strlcpy() instead of strcpy() to prevent copying the > entity name over the name buffer size. > > Signed-off-by: Masami Hiramatsu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 2/5] DFU: Accept redundant spaces and tabs in dfu_alt_info

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:29AM +0900, Masami Hiramatsu wrote: > If dfu_alt_info has repeated spaces or tab (for indentation or > readability), the dfu fails to parse it. For example, if > dfu_alt_info="mtd nor1=image raw 10 20" (double spaces > after "raw"), the image entity start add

Re: [PATCH v2 3/5] DFU: Check the number of arguments and argument string strictly

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:37AM +0900, Masami Hiramatsu wrote: > When parsing the dfu_alt_info, check the number of arguments > and argument string strictly. If there is any garbage data > (which is not able to be parsed correctly) in dfu_alt_info, > that means something wrong and user may make

Re: [PATCH v2 4/5] doc: usage: DFU: Fix dfu_alt_info document

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:46AM +0900, Masami Hiramatsu wrote: > Fix some typo and wrong information about dfu_alt_info. > - Add the parameter format, decimal only or hexadecimal. > - Use same parameter name for the same kind of parameters. > (e.g. dev -> dev_id) > > Signed-off-by: Masami Hi

Re: [PATCH v2 5/5] cmd/dfu: Enable 'dfu list' command without DFU_OVER_USB

2022-02-11 Thread Tom Rini
On Mon, Jan 31, 2022 at 11:52:54AM +0900, Masami Hiramatsu wrote: > Since dfu is not only used for USB, and some platform only > supports DFU_OVER_TFTP or EFI capsule update, dfu_alt_info > is defined on such platforms too. > > For such platform, 'dfu list' command is useful to check > how the cu

Re: [PATCH] [v4] cmd: pxe_utils: sysboot: add kaslr-seed generation support

2022-02-11 Thread Tom Rini
On Tue, Feb 01, 2022 at 08:33:37AM +0800, Zhang Ning wrote: > this will add kaslrseed keyword to sysboot lable, > when it set, it will request to genarate random number > from hwrng as kaslr-seed. > > with this patch exlinux.conf label looks like > > label l0 > menu testing > lin

Re: [PATCH] button: adc: set state to pressed when the voltage is closest to nominal

2022-02-11 Thread Tom Rini
On Wed, Feb 02, 2022 at 01:04:04PM -0500, Peter Cai wrote: > In the Linux implementation of adc-keys > (drivers/input/keyboard/adc-keys.c), `press-threshold-microvolt` is not > really interpreted as a threshold, but rather as the "nominal voltage" > of the button. When the voltage read from the AD

Re: [PATCH] common: fdt_support: add support for "partitions" subnode to fdt_fixup_mtdparts()

2022-02-11 Thread Tom Rini
On Thu, Feb 03, 2022 at 03:14:47PM +0100, Matthias Schiffer wrote: > Listing MTD partitions directly in the flash mode has been deprecated > for a while for kernel Device Trees. Look for a node "partitions" in the > found flash nodes and use it instead of the flash node itself for the > partition

Re: [PATCH] malloc_simple: Remove usage of unsupported %zx format string

2022-02-11 Thread Tom Rini
On Thu, Feb 03, 2022 at 07:51:37PM +0100, Pali Rohár wrote: > Replace %zx by %lx and cast size_t to ulong. > > U-Boot currently prints garbage debug output: > size=x, ptr=18, limit=18: 4002a000 > > With this change it prints correct debug data: > size=18, ptr=18, limit=2000: 4002a000 > > Signed

Re: [PATCH 1/1] cmd: wrong printf() code in do_test_stackprot_fail()

2022-02-11 Thread Tom Rini
On Fri, Feb 04, 2022 at 10:50:04AM +0100, Heinrich Schuchardt wrote: > strlen() returns size_t. So we should use %zu to print it. > This avoids incorrect output on 32bit systems. > > Fixes: 2fc62f299174 ("stackprot: Make our test a bit more complex") > Signed-off-by: Heinrich Schuchardt Applied

Re: [PATCH] Replace echo -n's used in environment processing with touch

2022-02-11 Thread Tom Rini
On Sat, Feb 05, 2022 at 10:25:16AM +, qthedev wrote: > echo -n does not give the intended effect when invoked in macOS through > /bin/sh, which is the shell make uses by default, see > "https://stackoverflow.com/questions/11675070/makefile-echo-n-not-working"; > for a detailed explanation.

Re: [PATCH v2] mkimage: Improve documentation of algo-name parameter

2022-02-11 Thread Tom Rini
On Sat, Feb 05, 2022 at 01:19:36PM +0100, Jan Kiszka wrote: > From: Jan Kiszka > > Addresses the feedback provided on 5902a397d029 which raced with the > merge. > > Signed-off-by: Jan Kiszka > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PG

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Adam Ford
On Fri, Feb 11, 2022 at 10:44 AM Tom Rini wrote: > > On Fri, Feb 11, 2022 at 10:39:30AM -0600, Adam Ford wrote: > > On Fri, Feb 11, 2022 at 10:12 AM Tom Rini wrote: > > > > > > On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam Ford wrote: > > > > On Thu, Feb 10, 2022 at 8:57 AM Tom Rini wrote: > >

[PATCH v2 1/1] cmd: add serial console support for the cls command

2022-02-11 Thread Heinrich Schuchardt
Currently the cls command does not support the serial console The screen can be cleared in the video uclass, the colored frame buffer console, and the serial console by sending the same escape sequence. This reduces the cls command to a single printf() statement on most boards. Signed-off-by: Hei

Re: [PATCH v3 07/18] pxe: Move pxe_utils files

2022-02-11 Thread Tom Rini
On Fri, Feb 11, 2022 at 11:10:43AM -0600, Adam Ford wrote: > On Fri, Feb 11, 2022 at 10:44 AM Tom Rini wrote: > > > > On Fri, Feb 11, 2022 at 10:39:30AM -0600, Adam Ford wrote: > > > On Fri, Feb 11, 2022 at 10:12 AM Tom Rini wrote: > > > > > > > > On Fri, Feb 11, 2022 at 09:50:32AM -0600, Adam Fo

Pull request for efi-2022-04-rc2-3

2022-02-11 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit fe203a05fb663fa9bc42a9ef9ae51a6ed01a4a90: Merge branch '2022-02-10-platform-updates' (2022-02-10 17:38:04 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-04-rc2-3 for you to f

[PATCH 1/5] bcm6753: add initial support

2022-02-11 Thread Philippe Reynes
This add the initial support of the broadcom bcm6753 SoC family. Signed-off-by: Philippe Reynes --- arch/arm/Kconfig | 7 ++ arch/arm/dts/bcm6753.dtsi | 201 ++ 2 files changed, 208 insertions(+) create mode 100644 arch/arm/dts/bcm6753.dtsi diff -

[PATCH 5/5] bcm96753ref: add initial support

2022-02-11 Thread Philippe Reynes
This add the initial support of the broadcom reference board bcm96753ref with a bcm6753 SoC. This board has 1 GB of RAM, 256 MB of flash (nand), 2 USB port, 1 UART, and 4 ethernet ports. Signed-off-by: Philippe Reynes --- arch/arm/Kconfig | 1 + arch/arm/dts/Makefile

[PATCH 2/5] gpio: bcm6345: allow to use this driver on arm bcm6753

2022-02-11 Thread Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm6753 too. Signed-off-by: Philippe Reynes --- drivers/gpio/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 8d0e47c67d..1c963c2c53 100644 --- a/driv

[PATCH 4/5] watchdog: bcm6345: allow to use this driver on arm bcm6753

2022-02-11 Thread Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm6753 too. Signed-off-by: Philippe Reynes --- drivers/watchdog/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index cabac29053..1f3ca99f9a 10064

[PATCH 3/5] nand: brcmnand: add bcm6753 support

2022-02-11 Thread Philippe Reynes
This adds the nand support for chipset bcm6753. Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/Kconfig | 6 + drivers/mtd/nand/raw/brcmnand/Makefile | 1 + drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c | 124 +++ 3 files changed, 131 insertions(+

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > Hey all, > > It's release day and so here's v2022.04-rc1. While there's much in here > that needed to come in, there's a few big things outstanding, including > but not limited to i.MX and layerscape syncs and further sunxi changes. > >

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 8:31 PM Andy Shevchenko wrote: > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > > Hey all, > > > > It's release day and so here's v2022.04-rc1. While there's much in here > > that needed to come in, there's a few big things outstanding, including > > but not

[PATCH v4] board: gateworks: venice: add imx8mn-gw7902 support

2022-02-11 Thread Tim Harvey
The GW7902 is based on the i.MX 8M Mini / Nano SoC featuring: - LPDDR4 DRAM - eMMC FLASH - Gateworks System Controller - LTE CAT M1 modem - USB 2.0 HUB - M.2 Socket with USB2.0, PCIe, and dual-SIM - IMX8M FEC - PCIe based GbE - RS232/RS485/RS422 serial transceiver - GPS - CAN bus - WiFi

[PATCH] board: gateworks: venice: config file cleanups

2022-02-11 Thread Tim Harvey
Clean up config file: - remove unnecessary IMX_FEC_BASE - remove unnecessary comment - remove ipaddr/serverip from env Signed-off-by: Tim Harvey --- include/configs/imx8mm_venice.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/imx8mm_venice.h b/include/configs/imx8mm

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 8:46 PM Andy Shevchenko wrote: > > On Fri, Feb 11, 2022 at 8:31 PM Andy Shevchenko > wrote: > > > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > > > Hey all, > > > > > > It's release day and so here's v2022.04-rc1. While there's much in here > > > that need

Re: [PATCH v11 2/9] tools: mkeficapsule: add firmware image signing

2022-02-11 Thread Heinrich Schuchardt
On 2/9/22 11:10, AKASHI Takahiro wrote: With this enhancement, mkeficapsule will be able to sign a capsule file when it is created. A signature added will be used later in the verification at FMP's SetImage() call. To do that, we need specify additional command parameters: -monotonic-cout :

Re: [PATCH v11 5/9] test/py: efi_capsule: add image authentication test

2022-02-11 Thread Heinrich Schuchardt
On 2/9/22 11:10, AKASHI Takahiro wrote: Add a couple of test cases against capsule image authentication for capsule-on-disk, where only a signed capsule file with the verified signature will be applied to the system. Due to the difficulty of embedding a public key (esl file) in U-Boot binary dur

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Simon Glass
Hi Andy, On Fri, 11 Feb 2022 at 11:28, Andy Shevchenko wrote: > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > > Hey all, > > > > It's release day and so here's v2022.04-rc1. While there's much in here > > that needed to come in, there's a few big things outstanding, including > >

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: > On Fri, 11 Feb 2022 at 11:28, Andy Shevchenko > wrote: > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: ... > FWIW here is my tboot flash script for Edison: This is rather unbriking script, DFU (luckily) works > def flash_e

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Simon Glass
Hi Andy, On Fri, 11 Feb 2022 at 12:29, Andy Shevchenko wrote: > > On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: > > On Fri, 11 Feb 2022 at 11:28, Andy Shevchenko > > wrote: > > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rini wrote: > > ... > > > FWIW here is my tboot flash script for

Re: [PATCH] board: gateworks: venice: config file cleanups

2022-02-11 Thread Fabio Estevam
On Fri, Feb 11, 2022 at 3:52 PM Tim Harvey wrote: > > Clean up config file: > - remove unnecessary IMX_FEC_BASE > - remove unnecessary comment > - remove ipaddr/serverip from env > > Signed-off-by: Tim Harvey Reviewed-by: Fabio Estevam

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 12:31:46PM -0700, Simon Glass wrote: > On Fri, 11 Feb 2022 at 12:29, Andy Shevchenko > wrote: > > On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: > > > On Fri, 11 Feb 2022 at 11:28, Andy Shevchenko > > > wrote: > > > > On Mon, Jan 31, 2022 at 05:59:30PM -0500, Tom Rin

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 09:47:52PM +0200, Andy Shevchenko wrote: > On Fri, Feb 11, 2022 at 12:31:46PM -0700, Simon Glass wrote: > > On Fri, 11 Feb 2022 at 12:29, Andy Shevchenko > > wrote: > > > On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: > > > > On Fri, 11 Feb 2022 at 11:28, Andy Shevche

Re: [ANN] U-Boot v2022.04-rc1 released

2022-02-11 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 09:47:52PM +0200, Andy Shevchenko wrote: > On Fri, Feb 11, 2022 at 12:31:46PM -0700, Simon Glass wrote: > > On Fri, 11 Feb 2022 at 12:29, Andy Shevchenko > > wrote: > > > On Fri, Feb 11, 2022 at 9:26 PM Simon Glass wrote: ... > > > To the topic, any suggestions on how t

Pull request for efi-2022-04-rc2-4

2022-02-11 Thread Heinrich Schuchardt
Dear Tom, thanks for catching the build warnings with clang. The changes relative to Pull request for efi-2022-04-rc2-3 are described in https://lists.denx.de/pipermail/u-boot/2022-February/475051.html The following changes since commit fe203a05fb663fa9bc42a9ef9ae51a6ed01a4a90: Merge branch

[PATCH] arm: apple: Disable debug UART

2022-02-11 Thread Mark Kettenis
The address of the debug UART varies differs between the M1 and the M1 Pro/Max SoCs. So we have to disable it to make a single U-Boot binary that works on all SoC generations. Leave the settings for the base address and clock rate of the M1 in place to make it easier to re-enable the debug UART w

[PATCH 0/9] Enable the pylint checker in CI

2022-02-11 Thread Simon Glass
This series adds a new errors-only pylint check and adds it to the CI systems. It also fixes the current errors in the U-Boot Python code, disabling errors where it seems necessary. A small patch to buildman allows it to build sandbox without any changes to the default config file. Simon Glass

[PATCH 2/9] buildman: Correct pylint errors

2022-02-11 Thread Simon Glass
Fix pylint errors that can be fixed and mask those that seem to be incorrect. Signed-off-by: Simon Glass --- tools/buildman/builder.py| 2 +- tools/buildman/cfgutil.py| 6 +++--- tools/buildman/func_test.py | 6 -- tools/buildman/kconfiglib.py | 1 + tools/buildman/main.py |

  1   2   >