Re: [PATCH v3 2/2] serial: mxc: Speed-up character transmission

2023-01-10 Thread Loic Poulain
On Wed, 11 Jan 2023 at 00:55, Pali Rohár wrote: > > On Tuesday 10 January 2023 20:24:07 Loic Poulain wrote: > > Instead of waiting for empty FIFO condition before writing a > > character, wait for non-full FIFO condition. > > > > This helps in saving several tens of milliseconds during boot > > (d

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
On Wed, 11 Jan 2023 at 00:53, Pali Rohár wrote: > > On Tuesday 10 January 2023 20:24:06 Loic Poulain wrote: > > The u-boot console may show some corrupted characters when > > printing in board_init() due to reset of the UART (probe) > > before the TX FIFO has been completely drained. > > > > To fi

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-10 Thread Heinrich Schuchardt
On 1/11/23 01:15, Simon Glass wrote: Hi Heinrich, On Mon, 9 Jan 2023 at 13:53, Heinrich Schuchardt wrote: On 1/9/23 21:31, Simon Glass wrote: Hi Mark, On Mon, 9 Jan 2023 at 13:20, Mark Kettenis wrote: From: Simon Glass Date: Mon, 9 Jan 2023 13:11:01 -0700 Hi Heinrich, We need t

Re: [PATCH] i2c: mxc_i2c: Use hex notation for the base address

2023-01-10 Thread Heiko Schocher
Hello Fabio, On 03.01.23 20:03, Fabio Estevam wrote: > Printing the I2C controller base address in decimal notation > is not helpful. > > Change it to hex notation, which is the standard format found > in the Reference Manual and devicetree. > > Signed-off-by: Fabio Estevam > --- > drivers/i2c

Re: [PATCH v2 1/1] i2c:aspeed:support ast2600 i2c new register mode driver

2023-01-10 Thread Heiko Schocher
Hello Ryan, On 11.01.23 07:52, ryan_chen wrote: > Add i2c new register mode driver to support AST2600 i2c > new register mode. AST2600 i2c controller have legacy and > new register mode. The new register mode have global register > support 4 base clock for scl clock selection, and new clock > divi

[PATCH V2 6/6] nvmem: u-boot-env: post process "ethaddr" env variable

2023-01-10 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot environment variables are stored in ASCII format so "ethaddr" requires parsing into binary to make it work with Ethernet interfaces. This includes support for indexes to support #nvmem-cell-cells = <1>. Signed-off-by: Rafał Miłecki --- drivers/nvmem/layouts/Kconfig

[PATCH V2 4/6] nvmem: u-boot-env: convert to layout driver

2023-01-10 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot environment variables can be found on various NVMEM devices (not just MTD) so convert this driver to a generic layout one. This way - thanks to using NVMEM generic API - this driver can be reused in other scenarios. For backward DT compatibility we need to support the

[PATCH V2 5/6] dt-bindings: nvmem: u-boot, env: add MAC's #nvmem-cell-cells

2023-01-10 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot's "ethaddr" environment variable is very often used to store *base* MAC address. It's used as a base for calculating addresses for multiple interfaces. It's done by adding proper values. Actual offsets are picked by manufacturers and vary across devices. Signed-off-by:

[PATCH V2 3/6] dt-bindings: nvmem: convert U-Boot env vars to NVMEM layout

2023-01-10 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot environment variables can be found of various underlaying storage entities. This binding should be defined as a layout on top on NVMEM device not a NVMEM device itself. Signed-off-by: Rafał Miłecki --- .../bindings/nvmem/layouts/nvmem-layout.yaml | 1 + .../nvmem/{

[PATCH V2 2/6] nvmem: core: allow .read_post_process() callbacks to adjust buffer

2023-01-10 Thread Rafał Miłecki
From: Rafał Miłecki Sometimes reading NVMEM cell value involves some data reformatting. it may require resizing available buffer. Support that. It's required e.g. to provide properly formatted MAC address in case it's stored in a non-binary format (e.g. using ASCII). Signed-off-by: Rafał Miłeck

[PATCH V2 1/6] nvmem: core: add nvmem_dev_size() helper

2023-01-10 Thread Rafał Miłecki
From: Rafał Miłecki This is required by layouts that need to read whole NVMEM space. It applies to NVMEM devices without hardcoded layout (like U-Boot environment data block). Signed-off-by: Rafał Miłecki --- V2: Drop "const" from "const size_t" --- drivers/nvmem/core.c | 13

[PATCH] net: zynq_gem: Add a 10ms delay in zynq_gem_init()

2023-01-10 Thread Stefan Roese
In our system using ZynqMP with an external SGMII PHY it's necessary to wait a short while after the configuration in zynq_gem_init() before the xfer starts. Otherwise the first packet(s) might get dropped, resulting in a delay at the start of the ethernet transfers. This patch adds a minimal dela

Re: [PATCH] net: zynq_gem: Wait for SGMII PCS link in zynq_gem_init()

2023-01-10 Thread Stefan Roese
On 1/10/23 19:28, Sean Anderson wrote: On 1/10/23 05:38, Stefan Roese wrote: In our system using ZynqMP with an external SGMII PHY it's necessary to wait for the PCS link and auto negotiation to finish before the xfer starts. Otherwise the first packet(s) might get dropped, resulting in a delay

[PATCH v2 1/1] i2c:aspeed:support ast2600 i2c new register mode driver

2023-01-10 Thread ryan_chen
Add i2c new register mode driver to support AST2600 i2c new register mode. AST2600 i2c controller have legacy and new register mode. The new register mode have global register support 4 base clock for scl clock selection, and new clock divider mode. Signed-off-by: ryan_chen --- MAINTAINERS

[PATCH v2 0/1] Add ASPEED AST2600 I2C new controller driver

2023-01-10 Thread ryan_chen
This series add AST2600 i2c new register set driver. The i2c new register set have new clock divider option for more flexiable generation. v2: add speed support desciption in Kconfig. modify include header ordering. separate include register define header. modify wording reserver to reserved.

Re: [PATCH 1/6] nvmem: core: add nvmem_dev_size() helper

2023-01-10 Thread Ahmad Fatoum
On 10.01.23 11:54, Rafał Miłecki wrote: > From: Rafał Miłecki > > This is required by layouts that need to read whole NVMEM space. It > applies to NVMEM devices without hardcoded layout (like U-Boot > environment data block). > > Signed-off-by: Rafał Miłecki > --- > drivers/nvmem/core.c

[PATCH 1/1] i2c:aspeed:support ast2600 i2c new register mode driver

2023-01-10 Thread ryan_chen
Add i2c new register mode driver to support AST2600 i2c new register mode. AST2600 i2c controller have legacy and new register mode. The new register mode have global register support 4 base clock for scl clock selection, and new clock divider mode. Signed-off-by: ryan_chen --- MAINTAINERS

[PATCHv2 0/1] Add ASPEED AST2600 I2C new controller driver

2023-01-10 Thread ryan_chen
This series add AST2600 i2c new register set driver. The i2c new register set have new clock divider option for more flexiable generation. v2: add speed support desciption in Kconfig. modify include header ordering. separate include register define header. modify wording reserver to reserved.

[PATCH 1/1] configs: remove SDL2 dependency in tools-only_defconfig

2023-01-10 Thread Heinrich Schuchardt
When building tools only there is no point in requiring the SDL2 library. Signed-off-by: Heinrich Schuchardt --- configs/tools-only_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/tools-only_defconfig b/configs/tools-only_defconfig index de99f3857c..8b6d85c3f0 100644 --- a/

Re: u-boot: signature check for u-boot scripts

2023-01-10 Thread Heiko Schocher
Hello Sean, Thanks for your answer! On 10.01.23 17:27, Sean Anderson wrote: > On 1/10/23 08:18, Heiko Schocher wrote: >> Hello Simon, [...] >> While writting this email ... in [3] the line >> >> require = "conf" >> >> poped into my eyes and in fit_image_verify_required_sigs() there is >> c

[PATCH] configs: Increase malloc size after relocation

2023-01-10 Thread Neha Malcom Francis
Current default size of 0x10 is not capable of getting the FIT buffer during boot when transitioning to using binman generated boot images for certain K3 devices, so increase it to 0x40. Since A72 SPL is coming after relocation to DDR this should not be an issue for any K3 device, so make i

Re: kwboot: UART booting with bin_hdr u-boot (Marvell Armada 385)

2023-01-10 Thread Tony Dinh
Hi Pali, On Mon, Jan 9, 2023 at 5:44 PM Tony Dinh wrote: > > On Mon, Jan 9, 2023 at 5:38 PM Pali Rohár wrote: > > > > On Monday 09 January 2023 17:35:24 Tony Dinh wrote: > > > Hi Pali, > > > > > > On Mon, Jan 9, 2023 at 5:02 PM Pali Rohár wrote: > > > > > > > > On Monday 09 January 2023 16:55:5

Re: [PATCH] SoC: sdm845: find and save KASLR to env variables

2023-01-10 Thread Peter Robinson
On Tue, Dec 27, 2022 at 7:47 PM Dzmitry Sankouski wrote: > > KASLR address is needed to boot fully functional Android. > KASLR is set by primary bootloader, and since u-boot is used > as a secondary bootloader(replacing kernel) on sdm845 platform, > KASLR may be found by comparing memory chunks at

Re: [PATCH v2] ARM: omap3: evm: Name this directory omap3evm

2023-01-10 Thread Tom Rini
On Fri, Jan 06, 2023 at 01:05:14PM -0600, Andrew Davis wrote: > Before this was named just evm, which doesn't match the naming > of the other TI board file directory and makes it look like a > common directory for evms. Name this omap3evm. > > Signed-off-by: Andrew Davis > Reviewed-by: Derald Wo

Re: [PATCH 3/3] powerpc/mpc85xx: Unset CONFIG_SPL_TARGET="u-boot-with-spl.bin"

2023-01-10 Thread Tom Rini
On Thu, Dec 29, 2022 at 02:39:21AM +0100, Pali Rohár wrote: > CONFIG_SPL_TARGET should specify additional SPL make target. But > u-boot-with-spl.bin is final U-Boot binary, not SPL binary in some custom > format. Moreover u-boot-with-spl.bin is already set in CONFIG_BUILD_TARGET, > so make will bu

Re: [PATCH 2/3] powerpc/mpc85xx: Set default CONFIG_BUILD_TARGET

2023-01-10 Thread Tom Rini
On Thu, Dec 29, 2022 at 02:39:20AM +0100, Pali Rohár wrote: > Final U-Boot binary for mpc85xx boards which use SPL and are not PBL-based > based is u-boot-with-spl.bin. PBL is not used only on boards with e500v1 > and e500v2 cores. Apparently CONFIG_E500 is set not only for e500 cores, > but also

Re: [PATCH 1/3] arm: mvebu: Fix default CONFIG_BUILD_TARGET

2023-01-10 Thread Tom Rini
On Thu, Dec 29, 2022 at 02:39:19AM +0100, Pali Rohár wrote: > u-boot-with-spl.kwb is built only for SPL enabled 32-bit armada boards. > u-boot.kwb is built for 32-bit armada and kirkwood boards but only for > non-SPL targets. > > So replace CONFIG_ARCH_MVEBU by CONFIG_ARMADA_32BIT (it implies > C

Re: [PATCH] SoC: sdm845: find and save KASLR to env variables

2023-01-10 Thread Tom Rini
On Tue, Dec 27, 2022 at 10:47:09PM +0300, Dzmitry Sankouski wrote: > KASLR address is needed to boot fully functional Android. > KASLR is set by primary bootloader, and since u-boot is used > as a secondary bootloader(replacing kernel) on sdm845 platform, > KASLR may be found by comparing memory c

Re: [PATCH] board: starqltechn: enable serial console

2023-01-10 Thread Tom Rini
On Tue, Dec 27, 2022 at 10:47:08PM +0300, Dzmitry Sankouski wrote: > It was temporary disabled due to problem with boot. > Issue was fixed in > commit f5ed6c9ccf3e ("uart: sdm845: Fix debug UART pinmux") > > Signed-off-by: Dzmitry Sankouski Applied to u-boot/master, thanks! -- Tom signature

Re: [PATCH 5/5] configs: am62a: use kernel fitImage when using secure bootflow

2023-01-10 Thread Tom Rini
On Fri, Dec 23, 2022 at 07:15:25PM -0600, Bryan Brattlof wrote: > In order to maintain the chain of trust, each stage of the boot process > will first authenticate each binary it loads before continuing. To > extend this to the kernal and its dtbs we can package the kernal and > its dtbs into anot

Re: [PATCH 4/5] configs: am62a: convert bootcmd to distro_bootcmd

2023-01-10 Thread Tom Rini
On Fri, Dec 23, 2022 at 07:15:24PM -0600, Bryan Brattlof wrote: > We're currently using CONFIG_BOOTCOMMAND to run custom boot scripts to > jump into linux. While this works, let's begin the transition to more > distribution friendly jumps to linux by enabling distro_bootcmd. > > Convert the custo

Re: [PATCH 3/5] arm: mach-k3: copy bootindex to OCRAM for main domain SPL

2023-01-10 Thread Tom Rini
On Fri, Dec 23, 2022 at 07:15:23PM -0600, Bryan Brattlof wrote: > Texas Instruments has begun enabling security settings on the SoCs it > produces to instruct ROM and TIFS to begin protecting the Security > Management Subsystem (SMS) from other binaries we load into the chip by > default. > > One

Re: [PATCH 2/5] configs: am62a: move stack and heap to HSM RAM

2023-01-10 Thread Tom Rini
On Fri, Dec 23, 2022 at 07:15:22PM -0600, Bryan Brattlof wrote: > Texas Instruments has begun enabling security setting on the SoCs they > produce to instruct ROM and TIFS to begin protecting the Security > Management Subsystem (SMS) from other binaries we load into the chip by > default. > > One

Re: [PATCH 1/5] configs: restrict am62ax wakup SPL size

2023-01-10 Thread Tom Rini
On Fri, Dec 23, 2022 at 07:15:21PM -0600, Bryan Brattlof wrote: > In its current form, the am62a's wakeup SPL is fairly small, however > this will not remain as more boot modes are eventually added. To protect > us from overflowing our ~256k of HSM SRAM, add limits and check during > the wakeup SP

Re: [PATCH 2/2] configs: Enable distroboot on am625

2023-01-10 Thread Tom Rini
On Tue, Dec 20, 2022 at 06:38:19PM +, Martyn Welch wrote: > TI boards use a custom (though faily common to TI boards) mechanism for > booting Linux. We would like to use the "distroboot" approach. > > Enable distroboot as a further option to use for booting on am625 should > the existing opti

Re: [PATCH 1/2] arm64:mach-k3 am625_init: Correct boot mode detection

2023-01-10 Thread Tom Rini
On Tue, Dec 20, 2022 at 06:38:18PM +, Martyn Welch wrote: > The boot mode detection assumes that BOOT_DEVICE_MMC2 should always > result in MMCSD_MODE_FS, but MMCSD_MODE_RAW is also a valid option for > this port. > > The current logic also avoids looking at the bootmode pin strapping, > whic

Re: [PATCH v2 4/4] configs: am62x_evm_a53: Enable ethernet

2023-01-10 Thread Tom Rini
On Tue, Dec 20, 2022 at 04:21:46PM +0100, Sjoerd Simons wrote: > Enable ethernet support for u-boot on am62x evm > > Signed-off-by: Sjoerd Simons Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 3/4] arm: dts: k3-am625-sk: Enable first ethernet port

2023-01-10 Thread Tom Rini
On Tue, Dec 20, 2022 at 04:21:45PM +0100, Sjoerd Simons wrote: > The K3 am625 sk EVM has two ethernet ports; Enable the first one for > usage in u-boot. > > Signed-off-by: Sjoerd Simons Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 2/4] configs: am62x_evm_*: Run savedefconfig

2023-01-10 Thread Tom Rini
On Tue, Dec 20, 2022 at 04:21:44PM +0100, Sjoerd Simons wrote: > Clean configuration for am62x_evm using savedefconfig > > Signed-off-by: Sjoerd Simons > Tested-by: Dhruva Gole Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 1/4] configs: am62x_evm_*: Correct SPI configuration option

2023-01-10 Thread Tom Rini
On Tue, Dec 20, 2022 at 04:21:43PM +0100, Sjoerd Simons wrote: > In f422c4bec the configuration option to support s28hs512t SPI flashes > was changed from CONFIG_SPI_FLASH_S28HS512T to CONFIG_SPI_FLASH_S28HX_T > to support the wider family. Follow this change in the AM62x EVM > configurations. >

Re: [PATCH v1] pinctrl: nuvoton: add NPCM7xx/NPCM8xx reset type detect

2023-01-10 Thread Tom Rini
On Tue, Dec 20, 2022 at 04:49:31PM +0800, Jim Liu wrote: > add reset type detect and persist setting. > > Signed-off-by: Jim Liu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [RFC PATCH] disk: Don't loop over MAX_SEARCH_PARTITIONS in part_create_block_devices()

2023-01-10 Thread AKASHI Takahiro
Hi, Thank you for catching this issue. On Tue, Jan 10, 2023 at 09:00:38AM +0100, Stefan Roese wrote: > I've noticed that the first ext4 file loading from a MMC partition for > ZynqMP takes quite some time (~ 1 second). Debugging showed, that the > MMC driver reads the partition info 128 time (MAX

Re: [PATCH 05/19] dm: ns16550: Change how we get UART_REG to be defined

2023-01-10 Thread Simon Glass
On Tue, 10 Jan 2023 at 09:19, Tom Rini wrote: > > In the case of DM_SERIAL and not having CONFIG_SYS_NS16550_REG_SIZE > defined, we would set CONFIG_SYS_NS16550_REG_SIZE to -1 with a comment > that this isn't really needed. This implies that the reason we set > something here is so that we have U

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-10 Thread Simon Glass
Hi Heinrich, On Mon, 9 Jan 2023 at 13:53, Heinrich Schuchardt wrote: > > > > On 1/9/23 21:31, Simon Glass wrote: > > Hi Mark, > > > > On Mon, 9 Jan 2023 at 13:20, Mark Kettenis wrote: > >> > >>> From: Simon Glass > >>> Date: Mon, 9 Jan 2023 13:11:01 -0700 > >>> > >>> Hi Heinrich, > >>> > >>> >

Re: [PATCH v2 4/5] tpm: sandbox: Update for needed TPM2 capabilities

2023-01-10 Thread Simon Glass
On Mon, 9 Jan 2023 at 14:55, Eddie James wrote: > > The driver needs to support getting the PCRs in the capabilities > command. Fix various other things and support the max number > of PCRs for TPM2. > > Signed-off-by: Eddie James > --- > drivers/tpm/tpm2_tis_sandbox.c | 100

Re: [PATCH 18/19] global: Finish CONFIG -> CFG migration

2023-01-10 Thread Simon Glass
On Tue, 10 Jan 2023 at 09:25, Tom Rini wrote: > > At this point, the remaining places where we have a symbol that is > defined as CONFIG_... are in fairly odd locations. While as much dead > code has been removed as possible, some of these locations are simply > less obvious at first. In other cas

Re: [PATCH 19/19] CI: Make check for new defined CONFIG symbols even more robust

2023-01-10 Thread Simon Glass
On Tue, 10 Jan 2023 at 09:23, Tom Rini wrote: > > Now that all remaining in-tree cases where we define or undef a CONFIG > symbol have been migrated to Kconfig or renamed to CFG we can make the > CI check more robust. We will exclude the doc, tools and arch/arm/dts > directories from this check as

Re: [PATCH v2 2/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Simon Glass
Hi, On Tue, 10 Jan 2023 at 05:42, Loic Poulain wrote: > > The u-boot console may show some corrupted characters when > printing in board_init() due to reset of the UART (probe) > before the TX FIFO has been completely drained. > > To fix this issue, and in case UART is still running, we now > try

Re: dt-schema u-boot,config node

2023-01-10 Thread Simon Glass
Hi Michal, On Tue, 10 Jan 2023 at 06:42, Michal Simek wrote: > > Hi, > > On 1/9/23 21:11, Simon Glass wrote: > > Hi Michal, > > > > On Mon, 9 Jan 2023 at 01:02, Michal Simek wrote: > >> > >> Hi Simon, > >> > >> We just got a request to setup bootscript address via DT that's why I am > >> trying

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2023-01-10 Thread Pali Rohár
On Friday 06 January 2023 17:13:41 Simon Glass wrote: > Hi Pali, > > On Tue, 3 Jan 2023 at 10:05, Pali Rohár wrote: > > > > On Tuesday 03 January 2023 11:02:17 Simon Glass wrote: > > > > > > > 3. Add a common binman image for u-boot.bin (used by every board) > > > > > > > > > > > > It should be u

Re: [PATCH u-boot] powerpc/mpc85xx: socrates: Re-enable building u-boot-socrates.bin

2023-01-10 Thread Pali Rohár
On Monday 02 January 2023 09:29:10 Heiko Schocher wrote: > Hello Pali > > On 01.01.23 07:57, Heiko Schocher wrote: > > Hello Pali, > > > > On 31.12.22 16:37, Pali Rohár wrote: > >> On Saturday 31 December 2022 16:31:57 Heiko Schocher wrote: > >>> Hello Pali, > >>> > >>> On 31.12.22 14:36, Heiko S

Re: [PATCH v3 2/2] serial: mxc: Speed-up character transmission

2023-01-10 Thread Pali Rohár
On Tuesday 10 January 2023 20:24:07 Loic Poulain wrote: > Instead of waiting for empty FIFO condition before writing a > character, wait for non-full FIFO condition. > > This helps in saving several tens of milliseconds during boot > (depending verbosity). > > Signed-off-by: Loic Poulain > Teste

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Pali Rohár
On Tuesday 10 January 2023 20:24:06 Loic Poulain wrote: > The u-boot console may show some corrupted characters when > printing in board_init() due to reset of the UART (probe) > before the TX FIFO has been completely drained. > > To fix this issue, and in case UART is still running, we now > try

Re: kernel doesn't start on Odroid U2 unless setting initrd_high

2023-01-10 Thread Tom Rini
On Wed, Jan 11, 2023 at 12:10:42AM +0100, Joost van Zwieten wrote: > > > On Tue, Jan 10, 2023 at 18:08, Tom Rini wrote: > > On Wed, Jan 11, 2023 at 12:01:46AM +0100, Joost van Zwieten wrote: > > > > > > > > > On Tue, Jan 10, 2023 at 13:41, Tom Rini wrote: > > > > On Tue, Jan 10, 2023 at 09:

Re: kernel doesn't start on Odroid U2 unless setting initrd_high

2023-01-10 Thread Joost van Zwieten
On Tue, Jan 10, 2023 at 18:08, Tom Rini wrote: On Wed, Jan 11, 2023 at 12:01:46AM +0100, Joost van Zwieten wrote: On Tue, Jan 10, 2023 at 13:41, Tom Rini wrote: > On Tue, Jan 10, 2023 at 09:13:32AM +0100, Joost van Zwieten wrote: > > > Dear maintainers, > > > > As of commit 4963f6

Re: kernel doesn't start on Odroid U2 unless setting initrd_high

2023-01-10 Thread Joost van Zwieten
On Tue, Jan 10, 2023 at 13:41, Tom Rini wrote: On Tue, Jan 10, 2023 at 09:13:32AM +0100, Joost van Zwieten wrote: Dear maintainers, As of commit 4963f63fe61f15329d77472a762b1d8bf754d24b U-Boot fails to start a kernel (with `bootz`) on my Odroid U2 unless I force `initrd_high`, e.g. t

Re: kernel doesn't start on Odroid U2 unless setting initrd_high

2023-01-10 Thread Tom Rini
On Wed, Jan 11, 2023 at 12:01:46AM +0100, Joost van Zwieten wrote: > > > On Tue, Jan 10, 2023 at 13:41, Tom Rini wrote: > > On Tue, Jan 10, 2023 at 09:13:32AM +0100, Joost van Zwieten wrote: > > > > > Dear maintainers, > > > > > > As of commit 4963f63fe61f15329d77472a762b1d8bf754d24b U-Boot

Re: [PATCH] doc: ti: Add switch setting for boot modes on AM62 SK

2023-01-10 Thread Andrew Davis
On 1/10/23 3:25 PM, Judith Mendez wrote: List some common boot modes and their corresponding switch settings for AM62 SK. Signed-off-by: Judith Mendez --- Acked-by: Andrew Davis doc/board/ti/am62x_sk.rst | 29 + 1 file changed, 29 insertions(+) diff --git a/

Re: [PATCH v2 5/5] test: Add sandbox TPM boot measurement

2023-01-10 Thread Heinrich Schuchardt
On 1/10/23 23:32, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: Use the sandbox TPM driver to measure some boot images in a unit test case. $ ./u-boot -T -c "ut measurement" Running 1 measurement tests Test: measure: measurement.c Failures: 0 Signed-off-by: Eddie James ---  

Re: [PATCH v2 5/5] test: Add sandbox TPM boot measurement

2023-01-10 Thread Heinrich Schuchardt
On 1/9/23 22:55, Eddie James wrote: Use the sandbox TPM driver to measure some boot images in a unit test case. $ ./u-boot -T -c "ut measurement" Running 1 measurement tests Test: measure: measurement.c Failures: 0 Signed-off-by: Eddie James --- arch/sandbox/dts/test.dts | 12 +++ confi

Re: [PATCH v2 5/5] test: Add sandbox TPM boot measurement

2023-01-10 Thread Eddie James
On 1/10/23 16:02, Heinrich Schuchardt wrote: On 1/10/23 17:38, Eddie James wrote: On 1/9/23 17:26, Heinrich Schuchardt wrote: On 1/10/23 00:13, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: Use the sandbox TPM driver to measure some boot images in a unit test case. $ ./u-

Re: [PATCH v2 0/5] tpm: Support boot measurements

2023-01-10 Thread Heinrich Schuchardt
On 1/10/23 22:42, Eddie James wrote: On 1/9/23 17:35, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: This series adds support for measuring the boot images more generically than the existing EFI support. Several EFI functions have been moved to the TPM layer. The series include

Re: [PATCH v2 5/5] test: Add sandbox TPM boot measurement

2023-01-10 Thread Heinrich Schuchardt
On 1/10/23 17:38, Eddie James wrote: On 1/9/23 17:26, Heinrich Schuchardt wrote: On 1/10/23 00:13, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: Use the sandbox TPM driver to measure some boot images in a unit test case. $ ./u-boot -T -c "ut measurement" Running 1 measuremen

Re: [PATCH v2 0/5] tpm: Support boot measurements

2023-01-10 Thread Eddie James
On 1/9/23 17:35, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: This series adds support for measuring the boot images more generically than the existing EFI support. Several EFI functions have been moved to the TPM layer. The series includes optional measurement from the bootm

Re: [PATCH v3 2/2] serial: mxc: Speed-up character transmission

2023-01-10 Thread Fabio Estevam
On Tue, Jan 10, 2023 at 4:24 PM Loic Poulain wrote: > > Instead of waiting for empty FIFO condition before writing a > character, wait for non-full FIFO condition. > > This helps in saving several tens of milliseconds during boot > (depending verbosity). > > Signed-off-by: Loic Poulain > Tested-b

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Fabio Estevam
[Adding Johannes and Tim] On Tue, Jan 10, 2023 at 4:24 PM Loic Poulain wrote: > > The u-boot console may show some corrupted characters when > printing in board_init() due to reset of the UART (probe) > before the TX FIFO has been completely drained. > > To fix this issue, and in case UART is sti

Re: [PATCH v3] imx8mm-phg: Add board support

2023-01-10 Thread Tom Rini
On Tue, Jan 10, 2023 at 05:18:08PM -0300, Fabio Estevam wrote: > Add the board support for the i.MX8MM Cloos PHG board. > > This board uses a imx8mm-tqma8mqml SoM from TQ-Group. > > imx8mm-phg.dts and imx8mm-tqma8mqml.dtsi are taken > directly from Linux 6.2-rc3. > > Signed-off-by: Fabio Es

[PATCH v3] imx8mm-phg: Add board support

2023-01-10 Thread Fabio Estevam
Add the board support for the i.MX8MM Cloos PHG board. This board uses a imx8mm-tqma8mqml SoM from TQ-Group. imx8mm-phg.dts and imx8mm-tqma8mqml.dtsi are taken directly from Linux 6.2-rc3. Signed-off-by: Fabio Estevam --- Changes since v2: - Convert to a text environment file (Tom). arch/

Re: [PATCH 0/8] env: mmc: improvements and corrections

2023-01-10 Thread Tom Rini
On Thu, 10 Nov 2022 11:48:57 +0100, Patrick Delaunay wrote: > Update in U-Boot env mmc backend with several cosmetic changes or > corrections and 2 new features: > > 1/ CONFIG_ENV_MMC_USE_DT = no more use CONFIG_ENV_OFFSET >in the mmc ENV backend when this config is activated. > >Request

[PATCH v3 2/2] serial: mxc: Speed-up character transmission

2023-01-10 Thread Loic Poulain
Instead of waiting for empty FIFO condition before writing a character, wait for non-full FIFO condition. This helps in saving several tens of milliseconds during boot (depending verbosity). Signed-off-by: Loic Poulain Tested-by: Lothar Waßmann --- v2: fixing transfert abort & char corruption

[PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
The u-boot console may show some corrupted characters when printing in board_init() due to reset of the UART (probe) before the TX FIFO has been completely drained. To fix this issue, and in case UART is still running, we now try to flush the FIFO before proceeding to UART reinitialization. For th

[PATCH v2 2/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
The u-boot console may show some corrupted characters when printing in board_init() due to reset of the UART (probe) before the TX FIFO has been completely drained. To fix this issue, and in case UART is still running, we now try to flush the FIFO before proceding to UART reinitialization. For thi

[PATCH v2 1/2] serial: mxc: Speed-up character transmission

2023-01-10 Thread Loic Poulain
Instead of waiting for empty FIFO condition before writing a character, wait for non-full FIFO condition. This helps in saving several tens of milliseconds during boot (depending verbosity). Signed-off-by: Loic Poulain --- v2: Add 2/2 fixing transfert abort & char corruption drivers/serial/se

Re: [PATCH v2 2/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
On Tue, 10 Jan 2023 at 13:57, Fabio Estevam wrote: > > > For this we're waiting for Transmitter Complete bit, indicating > > that the FIFO and the shift register are empty. > > > > flushing has a 4ms timeout guard, which is normally more than > > enough to consume the FIFO @ low baudrate (9600bps)

Re: kernel doesn't start on Odroid U2 unless setting initrd_high

2023-01-10 Thread Tom Rini
On Tue, Jan 10, 2023 at 09:13:32AM +0100, Joost van Zwieten wrote: > Dear maintainers, > > As of commit 4963f63fe61f15329d77472a762b1d8bf754d24b U-Boot fails to start > a kernel (with `bootz`) on my Odroid U2 unless I force `initrd_high`, e.g. > to `0x5000`. With commit 4963f63f and `initrd_h

Re: [PATCH] net: zynq_gem: Wait for SGMII PCS link in zynq_gem_init()

2023-01-10 Thread Sean Anderson
On 1/10/23 05:38, Stefan Roese wrote: > In our system using ZynqMP with an external SGMII PHY it's necessary > to wait for the PCS link and auto negotiation to finish before the xfer > starts. Otherwise the first packet(s) might get dropped, resulting in a > delay at the start of the ethernet trans

[PATCH] firmware: ti_sci: fix typo in boot authentication message name

2023-01-10 Thread Jorge Ramirez-Ortiz
Fix AUTH_BOOT message identifier (s/IMIAGE/IMAGE) Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Oleksandr Suvorov Acked-by: Andrew Davis --- drivers/firmware/ti_sci.c | 2 +- drivers/firmware/ti_sci.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/ti_

Re: [PATCH] firmware: ti_sci: fix typo in boot authentication message name

2023-01-10 Thread Jorge Ramirez-Ortiz, Foundries
On 10/01/23, Andrew Davis wrote: > On 1/10/23 6:30 AM, Jorge Ramirez-Ortiz wrote: > > Fix AUTH_BOOT message identifier (s/IMIAGE/IMAGE) > > > > Signed-off-by: Jorge Ramirez-Ortiz > > --- > > Looks like this typo got copy/pasted over to ATF also[0].. > I'll add your reported-by and go fix it over

Re: [PATCH v2] usb: gadget: dwc2_udc_otg: implement pullup()

2023-01-10 Thread Marek Vasut
On 1/10/23 17:29, Mattijs Korpershoek wrote: [...] diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index 77988f78ab30..d0a9be49ad9c 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@ -236,6 +236,14 @@ static int udc_enab

Re: [PATCH 11/19] usb: musb: Rename CONFIG_USB_MUSB_TIMEOUT to MUSB_TIMEOUT

2023-01-10 Thread Marek Vasut
On 1/10/23 17:19, Tom Rini wrote: This variable has never been configured to another value at present, and was not converted to Kconfig. Opt instead to rename this to MUSB_TIMEOUT. Reviewed-by: Marek Vasut

Re: [PATCH] SoC: sdm845: find and save KASLR to env variables

2023-01-10 Thread Ramon Fried
On Tue, Dec 27, 2022 at 9:47 PM Dzmitry Sankouski wrote: > > KASLR address is needed to boot fully functional Android. > KASLR is set by primary bootloader, and since u-boot is used > as a secondary bootloader(replacing kernel) on sdm845 platform, > KASLR may be found by comparing memory chunks at

Re: [PATCH 3/3] net: ftmac100: add mii read and write callbacks

2023-01-10 Thread Ramon Fried
On Wed, Dec 28, 2022 at 1:55 PM Sergei Antonov wrote: > > Register mii_bus with read and write callbacks tp allow the 'mii' > command to work. Use a timeout of 10 ms to wait for the R/W > operations to complete. > > Signed-off-by: Sergei Antonov > --- > drivers/net/ftmac100.c | 103 +

Re: [PATCH v2] imx8mm-phg: Add board support

2023-01-10 Thread Tom Rini
On Tue, Jan 10, 2023 at 01:45:31PM -0300, Fabio Estevam wrote: > Hi Tom, > > On Tue, Jan 10, 2023 at 1:33 PM Tom Rini wrote: > > > We're not yet to the point of nak'ing new boards over this, but if you > > look at something like board/kontron/sl-mx8mm/sl-mx8mm.env the above > > is trivially done

Re: [PATCH 2/3] net: ftmac100: simplify priv->iobase casting

2023-01-10 Thread Ramon Fried
On Wed, Dec 28, 2022 at 1:55 PM Sergei Antonov wrote: > > Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' > in order to cast once on assignment and remove casting in a > number of other places. > > Signed-off-by: Sergei Antonov > --- > drivers/net/ftmac100.c | 14 +++--- >

Re: [PATCH 1/3] net: ftmac100: change driver name from nds32_mac to ftmac100

2023-01-10 Thread Ramon Fried
On Wed, Dec 28, 2022 at 1:55 PM Sergei Antonov wrote: > > So it will be named similarly to the related ftgmac100 driver. > The old name 'nds32_mac' is not referred to anywhere in U-Boot. > > Signed-off-by: Sergei Antonov > --- > drivers/net/ftmac100.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH 13/19] net: phy: mv88e61xx: Finish migration of MV88E61XX_FIXED_PORTS

2023-01-10 Thread Ramon Fried
On Tue, Jan 10, 2023 at 6:23 PM Tom Rini wrote: > > Set the default for MV88E61XX_FIXED_PORTS to 0x0 in Kconfig, and move > the comment from code to the help to explain what this does. > > Signed-off-by: Tom Rini > --- > drivers/net/phy/Kconfig | 4 > drivers/net/phy/mv88e61xx.c | 8 ---

Re: [PATCH] net: tftp: Fix for DATA ACK for block count out of order

2023-01-10 Thread Ramon Fried
On Thu, Jan 5, 2023 at 4:16 AM wrote: > > From: Sean Edmond > > In rfc7440, if an ACK is not received by the server or if the > last data block in a window is dropped, the server will timeout and > retransmit the window. In this case, the block count received will be > less than the internal blo

Re: [PATCH] drivers: net: fsl_ls_mdio: prevent a NULL pointer dereference

2023-01-10 Thread Ramon Fried
On Thu, Jan 5, 2023 at 5:09 PM Ioana Ciornei wrote: > > Prevent a NULL pointer dereference in the probe path by checking the > return valud of dev_read_addr_ptr() against NULL. > > Signed-off-by: Ioana Ciornei > --- > drivers/net/fsl_ls_mdio.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff

Re: [PATCH 7/7] drivers: net: fsl-mc: do not use multiple blank lines

2023-01-10 Thread Ramon Fried
On Thu, Jan 5, 2023 at 5:03 PM Ioana Ciornei wrote: > > Remove the instances in which we have multiple blank lines. > > Signed-off-by: Ioana Ciornei > --- > drivers/net/fsl-mc/mc.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c > index

Re: [PATCH 6/7] drivers: net: fsl-mc: align parameters to the open paranthesis

2023-01-10 Thread Ramon Fried
On Thu, Jan 5, 2023 at 5:03 PM Ioana Ciornei wrote: > > There were some cases in which the function parameters were not aligned > to the open paranthesis. Fix those instances. > > Signed-off-by: Ioana Ciornei > --- > drivers/net/fsl-mc/mc.c | 12 +--- > 1 file changed, 5 insertions(+), 7

Re: [PATCH 5/7] drivers: net: fsl-mc: remove explicit cast

2023-01-10 Thread Ramon Fried
On Thu, Jan 5, 2023 at 5:03 PM Ioana Ciornei wrote: > > Remove all the explicit casts from the void* returned by calloc. > With this we also improve a bit the length of those lines and there is > no need to split the assignment. > > Signed-off-by: Ioana Ciornei > --- > drivers/net/fsl-mc/mc.c |

Re: [PATCH 4/7] drivers: net: fsl-mc: remove the initialisation of global variables

2023-01-10 Thread Ramon Fried
On Thu, Jan 5, 2023 at 5:03 PM Ioana Ciornei wrote: > > Some of the global variables were being initialised either to NULL or 0. > This is not needed, just remove the it. > > Signed-off-by: Ioana Ciornei > --- > drivers/net/fsl-mc/mc.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 de

Re: [PATCH 3/7] drivers: net: fsl-mc: do not prefix decimal values with 0x

2023-01-10 Thread Ramon Fried
On Thu, Jan 5, 2023 at 5:03 PM Ioana Ciornei wrote: > > The fsl-mc driver printed debug information which used the 0x prefix for > decimal values. This only confuses anyone looking through the log. > Because of this, just remove the prefix and use the "DPXY." notation > which is the standard one f

Re: [PATCH 2/7] drivers: net: fsl-mc: remove an useless break statement

2023-01-10 Thread Ramon Fried
On Thu, Jan 5, 2023 at 5:03 PM Ioana Ciornei wrote: > > The break statement is just after a goto statement, thus it will not get > executed. Just remove it. > > Signed-off-by: Ioana Ciornei > --- > drivers/net/fsl-mc/mc.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/fsl-mc

Re: [PATCH 1/7] drivers: net: fsl-mc: remove useless assignment of variable

2023-01-10 Thread Ramon Fried
On Thu, Jan 5, 2023 at 5:03 PM Ioana Ciornei wrote: > > The cur_ptr variable is set to the start of the log buffer but then it's > not used. Just remove the assignment altogether. > > Signed-off-by: Ioana Ciornei > --- > drivers/net/fsl-mc/mc.c | 1 - > 1 file changed, 1 deletion(-) > > diff --g

Re: [PATCH v2 30/71] net: Add a function to run dhcp

2023-01-10 Thread Ramon Fried
On Sun, Jan 8, 2023 at 4:58 AM Simon Glass wrote: > > At present this must be done by executing the command. Also it involves > fiddling with the environment to determine the correct autoload behaviour. > > Ideally it should be possible to run network operations without even > having the command l

Re: [PATCH] net: ipv6: Fix IPv6 netmask parsing

2023-01-10 Thread Ramon Fried
On Mon, Jan 9, 2023 at 9:59 AM Vyacheslav V. Mitrofanov wrote: > > On Fri, 2023-01-06 at 14:22 -0800, seanedm...@linux.microsoft.com > wrote: > > From: Sean Edmond > > > > It should be possible to specify a netmask when > > setting a static IPv6 address. For example: > > setenv ip6addr 2001:cafe

Re: [PATCH] firmware: ti_sci: fix typo in boot authentication message name

2023-01-10 Thread Andrew Davis
On 1/10/23 6:30 AM, Jorge Ramirez-Ortiz wrote: Fix AUTH_BOOT message identifier (s/IMIAGE/IMAGE) Signed-off-by: Jorge Ramirez-Ortiz --- Looks like this typo got copy/pasted over to ATF also[0].. I'll add your reported-by and go fix it over there (unless you are wanting to do that). Acked-by:

Re: [PATCH 17/19] watchdog: Clean up defaults for imx_watchdog / ulp_wdog

2023-01-10 Thread Stefan Roese
On 1/10/23 17:19, Tom Rini wrote: In imx_watchdog, clean up the comment to just note the range now, as we do not need to set the default here as Kconfig does this for us. For ulp_wdog, set the default value via Kconfig instead. Cc: Stefan Roese Cc: Stefano Babic Cc: Peng Fan Signed-off-by: To

Re: [PATCH v2] imx8mm-phg: Add board support

2023-01-10 Thread Fabio Estevam
Hi Tom, On Tue, Jan 10, 2023 at 1:33 PM Tom Rini wrote: > We're not yet to the point of nak'ing new boards over this, but if you > look at something like board/kontron/sl-mx8mm/sl-mx8mm.env the above > is trivially done that way instead. Is there something blocking doing > that? Thanks for the

  1   2   3   >