Re: [PATCH v2 2/3] arm: dts: rockchip: Separate rockchip-binman.dtsi

2022-11-03 Thread Jagan Teki
Hi Quentin, On Thu, 3 Nov 2022 at 18:51, Quentin Schulz wrote: > > Hi Jagan, > > On 11/3/22 13:37, Jagan Teki wrote: > > On Thu, 3 Nov 2022 at 15:32, Quentin Schulz > > wrote: > >> > >> Hi Jagan, > >> > >> On 11/3/22 07:19, Jagan Teki wrote: > >>> rockchip-u-boot.dtsi has the FIT image for the f

[PATCH 4/4] fwu: meta-data: switch to management by common code

2022-11-03 Thread jassisinghbrar
From: Jassi Brar The common code can now read, verify and fix meta-data copies while exposing one consistent structure to users. Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num() .read_mdata_partition()

[PATCH 3/4] fwu: gpt: implement read_mdata and write_mdata callbacks

2022-11-03 Thread jassisinghbrar
From: Jassi Brar Moving towards using common code for meta-data management, implement the read/write mdata hooks. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/fwu-mdata/gpt_blk.c b/dr

[PATCH 2/4] fwu: move meta-data management in core

2022-11-03 Thread jassisinghbrar
From: Jassi Brar Instead of each i/f having to implement their own meta-data verification and storage, move the logic in common code. This simplifies the i/f code much simpler and compact. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/fwu-mdata-uclass.c | 34 +++ include/fwu.h

[PATCH 1/4] fwu: gpt: use cached meta-data partition numbers

2022-11-03 Thread jassisinghbrar
From: Jassi Brar Use cached values and avoid parsing and scanning through partitions everytime for meta-data partitions because they can't change after bootup. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 43 + 1 file changed, 24 insertions(+)

[PATCH 0/4] FWU: Handle meta-data in common code

2022-11-03 Thread jassisinghbrar
From: Jassi Brar Hi, The patchset reduces 400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue: meta-data copies (primary and secondary) are being handled by the backend/storage layer instead of the common c

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

2022-11-03 Thread Leo Liang
Hi Tom, On Thu, Nov 03, 2022 at 12:57:05PM -0400, Tom Rini wrote: > On Thu, Nov 03, 2022 at 07:04:33AM +, Leo Liang wrote: > > > Hi Tom, > > > > The following changes since commit c8d9ff634fc429db5acf2f5386ea937f0fef1ae7: > > > > Merge branch '2022-10-31-FWU-add-FWU-multi-bank-update-fea

[PATCH 5/8] arm: mach-k3: introduce basic files to support the am62a

2022-11-03 Thread Bryan Brattlof
Introduce the mach-k3 files needed to properly boot TI's am62a SoC family of devices Signed-off-by: Bryan Brattlof --- arch/arm/mach-k3/Kconfig | 14 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/am62a7_init.c| 250 ++

[PATCH 3/8] ram: k3-ddrss: add am62a controller support

2022-11-03 Thread Bryan Brattlof
TI's am62a family of SoCs uses a new 32bit DDR controller that shares much of the same functionality with the existing am64 and j721e controllers. Select this controller by default when u-boot is build for the am62a Signed-off-by: Bryan Brattlof --- drivers/ram/Kconfig | 1 + driver

[PATCH 7/8] board: ti: introduce the basic files needed to support the am62a

2022-11-03 Thread Bryan Brattlof
Introduce the bare minimum SD and UART support for the am62a sk. Signed-off-by: Bryan Brattlof --- board/ti/am62ax/Kconfig | 52 +++ board/ti/am62ax/MAINTAINERS | 9 + board/ti/am62ax/Makefile | 7 board/ti/am62ax/evm.c

[PATCH 1/8] arm: dts: introduce am62a7 dtbs from linux kernel

2022-11-03 Thread Bryan Brattlof
Introduce the basic am62a7 SoC dtbs from the linux kernel along with the new am62a specific pinmux definition that we will use to generate the dtbs for the u-boot-spl and u-boot binaries Co-developed-by: Vignesh Raghavendra Signed-off-by: Vignesh Raghavendra Signed-off-by: Bryan Brattlof --- a

[PATCH 0/8] Introduce initial TI's am62a support

2022-11-03 Thread Bryan Brattlof
Hello Everyone! This series will introduce basic support (SD and UART) support for Texas Instruments AM62Ax SK EVM. The am62ax shares many of the same features as the am62x however it uses a new 32bit controller and therefore depends on the patch I sent last week updating the macros used by t

[PATCH 8/8] configs: introduce configs for the am62a

2022-11-03 Thread Bryan Brattlof
Introduce the minimum configs, only SD-MMC and UART boot related settings, to serve as a good starting point for the am62a as we add more functionality. Signed-off-by: Bryan Brattlof --- configs/am62ax_evm_a53_defconfig | 79 +++ configs/am62ax_evm_r5_defconfig | 106 ++

[PATCH 4/8] soc: ti: k3-socinfo: add am62a SoC entry

2022-11-03 Thread Bryan Brattlof
Add identification support for TI's am62ax family of SoCs Signed-off-by: Bryan Brattlof --- drivers/soc/soc_ti_k3.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c index b1e7c4ae5f6aa..8af0ac7051925 100644 --- a/drivers/soc/soc_ti_k3.c ++

[PATCH 6/8] arm: mach-k3: am62a: introduce auto-generated SoC data

2022-11-03 Thread Bryan Brattlof
Introduce the auto-generated clock tree and power domain data needed to attach the am62a into the power-domain and clock frameworks of uboot Signed-off-by: Bryan Brattlof --- arch/arm/mach-k3/am62ax/Makefile | 6 + arch/arm/mach-k3/am62ax/clk-data.c | 317 + a

Re: [PATCH v2 1/1] usb: storage: continue probe on "Invalid device"

2022-11-03 Thread Marek Vasut
On 11/3/22 23:23, Marek Vasut wrote: On 11/3/22 22:36, Janne Grunau wrote: On 2022-09-28 04:20:52 -0600, Simon Glass wrote: +Marek Vasut +Tom Rini On Sun, 25 Sept 2022 at 23:07, Janne Grunau wrote: On 2022-08-10 21:54:22 +0200, Janne Grunau wrote: Fixes a crash during probing of sd card rea

Re: [PATCH v2 1/1] usb: storage: continue probe on "Invalid device"

2022-11-03 Thread Marek Vasut
On 11/3/22 22:36, Janne Grunau wrote: On 2022-09-28 04:20:52 -0600, Simon Glass wrote: +Marek Vasut +Tom Rini On Sun, 25 Sept 2022 at 23:07, Janne Grunau wrote: On 2022-08-10 21:54:22 +0200, Janne Grunau wrote: Fixes a crash during probing of sd card readers without medium present. Link: h

Re: [PATCH] usb: Add 1ms delay after first Get Descriptor request

2022-11-03 Thread Marek Vasut
On 11/3/22 22:31, Janne Grunau wrote: Hi, [...] In any case we need a way to enable/disable this as it will slow down unaffected platforms. This makes little difference, since anyone can plug such device into a port and suddenly the platform is affected. We cannot really predict what users h

[PULL] u-boot-mips

2022-11-03 Thread Daniel Schwierzeck
Hi Tom, please pull the Kconfig migration for CONFIG_SYS_MIPS_TIMER_FREQ as well as the mtmips bugfix for the incorrectly converted default value for CONFIG_SPL_PAD_TO. Gitlab: https://source.denx.de/u-boot/custodians/u-boot-mips/-/pipelines/14002 The following changes since commit cca41ed3

[PATCH] drivers: net: aquantia: fix typos

2022-11-03 Thread Tim Harvey
Fix a couple of typos: - s/Acquantia/Aquantia/ - s/firmare/firmware/ Signed-off-by: Tim Harvey --- drivers/net/phy/aquantia.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index 7e950fe0c2fe..79fbc115368a 10064

Re: [PATCH v2 1/1] usb: storage: continue probe on "Invalid device"

2022-11-03 Thread Janne Grunau
On 2022-09-28 04:20:52 -0600, Simon Glass wrote: > +Marek Vasut > +Tom Rini > > On Sun, 25 Sept 2022 at 23:07, Janne Grunau wrote: > > > > On 2022-08-10 21:54:22 +0200, Janne Grunau wrote: > > > Fixes a crash during probing of sd card readers without medium present. > > > > > > Link: https://gith

[PATCH v3 4/4] cmd: source: Support specifying config name

2022-11-03 Thread Sean Anderson
As discussed previously [1,2], the source command is not safe to use with verified boot unless there is a key with required = "images" (which has its own problems). This is because if such a key is absent, signatures are verified but not required. It is assumed that configuration nodes will provide

[PATCH v3 2/4] treewide: Use NULL for script image name

2022-11-03 Thread Sean Anderson
Two callers of image_source_script specify an image name. However, both use the deprecated @ syntax, indicating that they have not been updated in a while. If CONFIG_FIT_SIGNATURE is enabled, we will reject such names outright. Back in commit 152576a598c ("stm32mp: stm32prog: handle U-Boot script i

[PATCH v3 1/4] test: Add test for source command

2022-11-03 Thread Sean Anderson
This adds a basic test for FIT image handling by the source command. It's a python test becase we need to run mkimage. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- Changes in v3: - Halve the quotes Changes in v2: - New test/py/tests/source.its | 43 ++

[PATCH v3 0/4] cmd: source: Support specifying config name

2022-11-03 Thread Sean Anderson
This series adds support for using configs with the source command. See the third patch for details. Changes in v3: - Halve the quotes Changes in v2: - Add test for source command Sean Anderson (4): test: Add test for source command treewide: Use NULL for script image name cmd: source: Cle

[PATCH v3 3/4] cmd: source: Clean up a few lines

2022-11-03 Thread Sean Anderson
This simplifies a few lines and corrects an error message. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) cmd/source.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/source.c b/cmd/source.c index 698d9f86d96..59738246018 100

Re: [PATCH] usb: Add 1ms delay after first Get Descriptor request

2022-11-03 Thread Janne Grunau
On 2022-10-31 21:57:39 +0100, Marek Vasut wrote: > On 10/31/22 20:27, Simon Glass wrote: > > Hi Marek, > > Hi, > > > On Sun, 30 Oct 2022 at 16:38, Marek Vasut wrote: > > > > > > Logitech Unifying Receiver 046d:c52b bcdDevice 12.10 seems > > > sensitive about the first Get Descriptor request. If

Re: [PATCH v2 4/4] cmd: source: Support specifying config name

2022-11-03 Thread Tom Rini
On Thu, Nov 03, 2022 at 02:46:35PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 31 Oct 2022 at 13:37, Tom Rini wrote: > > > > On Mon, Oct 31, 2022 at 01:27:08PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Sun, 30 Oct 2022 at 08:40, Tom Rini wrote: > > > > > > > > On Sat, Oct 29, 20

Re: [PATCH] docs: Add a basic security document

2022-11-03 Thread Tom Rini
On Thu, Nov 03, 2022 at 09:05:59PM +0100, Heinrich Schuchardt wrote: > On 11/3/22 19:25, Tom Rini wrote: > > Based loosely on the Linux kernel > > Documentation/admin-guide/security-bugs.rst file, create a basic > > security document for U-Boot. In sum, security issues should be > > disclosed in p

Re: double quoted strings in env.txt files

2022-11-03 Thread Simon Glass
Hi Holger, On Thu, 3 Nov 2022 at 02:18, Holger Brunck wrote: > > Hi all, > I currently try to convert some boards to the new env.txt files and this > works quite well so far. > But I encountered one problem which I am not sure how to solve it. > > If I have some string in a Kconfig file defined

Re: [PATCH v2 4/4] cmd: source: Support specifying config name

2022-11-03 Thread Simon Glass
Hi Tom, On Mon, 31 Oct 2022 at 13:37, Tom Rini wrote: > > On Mon, Oct 31, 2022 at 01:27:08PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Sun, 30 Oct 2022 at 08:40, Tom Rini wrote: > > > > > > On Sat, Oct 29, 2022 at 07:44:00PM -0600, Simon Glass wrote: > > > > Hi Sean, > > > > > > > > On Fr

[PATCH] env: Allow string CONFIG options in the text environment

2022-11-03 Thread Simon Glass
Sometimes it is useful to include a CONFIG option that contains a string. This is hard to do in general, since in many cases it is useful to have the quotes around the string so that, for example: bootcmd=run CONFIG_BOARD_CMD becomes bootcmd=run "boot_board" But for the special case where

Re: [PATCH 00/24] bootstd: Add a boot menu

2022-11-03 Thread Simon Glass
Hi Heinrich, On Mon, 17 Oct 2022 at 15:23, Simon Glass wrote: > > Hi Heinrich, > > On Mon, 17 Oct 2022 at 15:11, Heinrich Schuchardt wrote: > > > > On 10/17/22 22:29, Simon Glass wrote: > > > So far standard boot lacks a boot menu, although it is possible to create > > > a rudimentary one using

Re: [PATCH] docs: Add a basic security document

2022-11-03 Thread Simon Glass
Hi Tom, On Thu, 3 Nov 2022 at 12:25, Tom Rini wrote: > > Based loosely on the Linux kernel > Documentation/admin-guide/security-bugs.rst file, create a basic > security document for U-Boot. In sum, security issues should be > disclosed in public on the mailing list if at all possible as an initi

Re: [PATCH] docs: Add a basic security document

2022-11-03 Thread Heinrich Schuchardt
On 11/3/22 19:25, Tom Rini wrote: Based loosely on the Linux kernel Documentation/admin-guide/security-bugs.rst file, create a basic security document for U-Boot. In sum, security issues should be disclosed in public on the mailing list if at all possible as an initial position. Signed-off-by:

Re: Running u-boot standalone hello_world on an image partition with qemu

2022-11-03 Thread Simon Glass
Hi Lists, On Thu, 3 Nov 2022 at 05:11, Lists Nick Betteridge wrote: > > I'm developing on an ubuntu x86 machine, trying to run the u-boot > hello_world standalone application which resides on an image |sd.img| > which contains a partition > > I've compiled u-boot (|v2022.10|) with |qemu-x86_64_de

[PATCH] docs: Add a basic security document

2022-11-03 Thread Tom Rini
Based loosely on the Linux kernel Documentation/admin-guide/security-bugs.rst file, create a basic security document for U-Boot. In sum, security issues should be disclosed in public on the mailing list if at all possible as an initial position. Signed-off-by: Tom Rini --- doc/develop/index.rst

Enabling CCGR of eCSPI bus

2022-11-03 Thread Shashank Anand
Hi U-Boot community, I am attempting to use the eCSPI bus on a compulab imx8mm iot-gateway device to communicate with a tpm module. I am using the MXC SPI driver in U-Boot for this. The eCSPI bus initially did not work and timed out. After debugging I found that the reason for this is that t

Re: Running u-boot standalone hello_world on an image partition with qemu

2022-11-03 Thread Tom Rini
On Thu, Nov 03, 2022 at 09:54:40AM +, Lists Nick Betteridge wrote: > I'm developing on an ubuntu x86 machine, trying to run the u-boot > hello_world standalone application which resides on an image |sd.img| which > contains a partition > > I've compiled u-boot (|v2022.10|) with |qemu-x86_64_d

Re: [PATCH v2] arm: dts: ti: k3-am64-main: Add RTI watchdog nodes

2022-11-03 Thread Tom Rini
On Thu, Nov 03, 2022 at 12:27:39AM -0500, Nishanth Menon wrote: > On 13:15-20221026, Christian Gmeiner wrote: > > Add the needed bus mappings for the two main RTI memory ranges and > > the required device tree nodes in the main domain. > > > > Same as kernel commit 6dd8457dc20693e2ba9054c171499b22

Re: [PATCH] mx6cuboxi: migrate to DM_SERIAL

2022-11-03 Thread Tom Rini
On Thu, Nov 03, 2022 at 06:03:38PM +0200, Baruch Siach wrote: > Add the needed DT overrides to enable UART in SPL. > > Cc: Fabio Estevam > Signed-off-by: Baruch Siach Tested-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH] led: led_pwm: typo 'iverted' on code comment

2022-11-03 Thread Tom Rini
On Thu, Oct 27, 2022 at 02:25:37PM +0800, Nylon Chen wrote: > change iverted to inverted. > > Signed-off-by: Nylon Chen Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 4/4] configs: evb-ast2500: Set environment in SPI flash

2022-11-03 Thread Tom Rini
On Wed, Oct 26, 2022 at 03:11:15PM +0200, Cédric Le Goater wrote: > We now have a SPI flash driver. Let's use it. > > Signed-off-by: Cédric Le Goater > Reviewed-by: Joel Stanley Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/4] configs: evb-ast2500: Remove MMC support from default settings

2022-11-03 Thread Tom Rini
On Wed, Oct 26, 2022 at 03:11:12PM +0200, Cédric Le Goater wrote: > This saves ~50K in the resulting u-boot.bin file which is important to > fit in the U-Boot partition defined in the flash layout of upstream Linux. > > Signed-off-by: Cédric Le Goater Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 3/4] configs: evb-ast2500: Add support for FIT format

2022-11-03 Thread Tom Rini
On Wed, Oct 26, 2022 at 03:11:14PM +0200, Cédric Le Goater wrote: > Signed-off-by: Cédric Le Goater > Reviewed-by: Joel Stanley Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/4] configs: evb-ast2500: Adjust boot command

2022-11-03 Thread Tom Rini
On Wed, Oct 26, 2022 at 03:11:13PM +0200, Cédric Le Goater wrote: > Loading a kernel image is enough. > > Signed-off-by: Cédric Le Goater > Reviewed-by: Joel Stanley Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2] arm: dts: ti: k3-am64-main: Add RTI watchdog nodes

2022-11-03 Thread Tom Rini
On Wed, Oct 26, 2022 at 01:15:55PM +0200, Christian Gmeiner wrote: > Add the needed bus mappings for the two main RTI memory ranges and > the required device tree nodes in the main domain. > > Same as kernel commit 6dd8457dc20693e2ba9054c171499b22664fd4e7 > > Signed-off-by: Christian Gmeiner A

Re: [PATCH] treewide: Remove the unnecessary space before semicolon

2022-11-03 Thread Tom Rini
On Wed, Oct 26, 2022 at 12:40:07PM +0800, Bin Meng wrote: > %s/return ;/return; > > Signed-off-by: Bin Meng Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] cmd: eeprom: don't truncate target address at 32-bit

2022-11-03 Thread Tom Rini
On Sun, Oct 23, 2022 at 12:28:12PM +0300, Baruch Siach wrote: > On 64-bit platforms where int is 32-bit wide, the eeprom command > parse_numeric_param() routine truncates the memory address parameter to > the lower 32-bit. Make parse_numeric_param() return long to allow > read/write of addresses b

Re: [PATCH] xen: pvblock: Use uclass_probe_all

2022-11-03 Thread Tom Rini
On Sat, Oct 22, 2022 at 04:33:05PM +0200, Michal Suchanek wrote: > Also eliminate useless code and variables. > > Signed-off-by: Michal Suchanek > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/3] highbank: switch to use the Arm SP804 DM_TIMER driver

2022-11-03 Thread Tom Rini
On Thu, Oct 20, 2022 at 11:10:25PM +0100, Andre Przywara wrote: > So far the Calxeda machines were using the CONFIG_SYS_TIMER_* macros to > simply hardcode the address of the counter register of the SP804 timer. > This method is deprecated and scheduled for removal. > > Use the newly introduced S

Re: [PATCH 2/3] highbank: scan into hb_sregs DT subnodes

2022-11-03 Thread Tom Rini
On Thu, Oct 20, 2022 at 11:10:24PM +0100, Andre Przywara wrote: > The DT used for Calxeda Highbank and Midway systems exposes a "system > registers" block, modeled as a DT subnode. > This includes several clocks, including the two fixed clocks for the > main oscillator and timer. > > So far U-Boo

Re: [PATCH v1] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-11-03 Thread Tom Rini
On Tue, Oct 11, 2022 at 04:09:13PM +0800, Jim Liu wrote: > Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. > > Signed-off-by: Jim Liu > Signed-off-by: Stanley Chu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/3] timer: add SP804 UCLASS timer driver

2022-11-03 Thread Tom Rini
On Thu, Oct 20, 2022 at 11:10:23PM +0100, Andre Przywara wrote: > The "Arm Ltd. Dual-Timer Module (SP804)" is a simple 32-bit count-down > timer IP with interrupt functionality, and is used in some SoCs from > various vendors. > > Add a simple DM compliant timer driver, to allow users of the SP80

Re: [PATCH 3/3] arm: smh: Allow semihosting trap calls to be inlined

2022-11-03 Thread Tom Rini
On Wed, Oct 05, 2022 at 05:38:49PM +0100, Andre Przywara wrote: > Currently our semihosting trap function is somewhat fragile: we rely > on the current compiler behaviour to assign the second inline assembly > argument to the next free register (r1/x1), which happens to be the > "addr" argument to

Re: [PATCH 2/3] arm: smh: Make semihosting trap calls more robust

2022-11-03 Thread Tom Rini
On Wed, Oct 05, 2022 at 05:38:48PM +0100, Andre Przywara wrote: > Commit f4b540e25c5c("arm: smh: Fix uninitialized parameters with newer > GCCs") added a memory clobber to the semihosting inline assembly trap > calls, to avoid too eager GCC optimisation: when passing a pointer, newer > compilers c

Re: [PATCH 1/3] arm: smh: specify Thumb trap instruction

2022-11-03 Thread Tom Rini
On Wed, Oct 05, 2022 at 05:38:47PM +0100, Andre Przywara wrote: > The ARM semihosting interface uses different trap instructions for > different architectures and instruction sets. So far we were using > AArch64 and ARMv7-M, and had an untested v7-A entry. The latter does > not work when building

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

2022-11-03 Thread Tom Rini
On Thu, Nov 03, 2022 at 07:04:33AM +, Leo Liang wrote: > Hi Tom, > > The following changes since commit c8d9ff634fc429db5acf2f5386ea937f0fef1ae7: > > Merge branch '2022-10-31-FWU-add-FWU-multi-bank-update-feature-support' > (2022-11-01 09:32:21 -0400) > > are available in the Git reposi

Re: Please pull u-boot-watchdog/master

2022-11-03 Thread Tom Rini
On Wed, Nov 02, 2022 at 09:46:18AM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the following watchdog related fixes / enhancements > from Rasmus: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 00/22] sunxi: Prepare platform Kconfig to support multiple architectures

2022-11-03 Thread Andre Przywara
On Tue, 1 Nov 2022 00:08:12 -0500 Samuel Holland wrote: Hi Samuel, > sunxi is getting a new RISC-V platform, D1. We want to share as much of > the existing configuration as possible, to provide a familiar > environment, DRAM layout, partition layout, etc. > > Because U-Boot includes all archit

Re: [PATCH] usb: gadget: dfu: Fix the unchecked length field

2022-11-03 Thread Tom Rini
On Thu, Nov 03, 2022 at 04:22:58PM +0100, Marek Vasut wrote: > On 11/3/22 05:07, Venkatesh Yadav Abbarapu wrote: > > DFU implementation does not bound the length field in USB > > DFU download setup packets, and it does not verify that > > the transfer direction. Fixing the length and transfer > > d

[PATCH] mx6cuboxi: migrate to DM_SERIAL

2022-11-03 Thread Baruch Siach
Add the needed DT overrides to enable UART in SPL. Cc: Fabio Estevam Signed-off-by: Baruch Siach --- ...mx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi | 16 board/solidrun/mx6cuboxi/mx6cuboxi.c | 3 +++ configs/mx6cuboxi_defconfig | 2 +- 3 fil

Re: DM_SERIAL for i.MX6 Hummingboard/Cubox-i

2022-11-03 Thread Fabio Estevam
Hi Baruch, On Thu, Nov 3, 2022 at 12:33 PM Baruch Siach wrote: > Without any u-boot,dm-pre-reloc or u-boot,dm-spl? I don't see any for > wandboard DT files in current master. Correct, just passing CONFIG_DM_SERIAL=y boots fine on wandboard. It does not have a imx6qdl-wandboard-u-boot.dtsi curr

Re: DM_SERIAL for i.MX6 Hummingboard/Cubox-i

2022-11-03 Thread Baruch Siach
Hi Fabio, On Thu, Nov 03 2022, Fabio Estevam wrote: > On Thu, Nov 3, 2022 at 11:28 AM Fabio Estevam wrote: >> On Thu, Nov 3, 2022 at 11:15 AM Fabio Estevam wrote: >> >> > Please try using u-boot,dm-spl for all nodes instead. >> >> In addition to using u-boot,dm-spl, please try calling >> spl_ear

Re: DM_SERIAL for i.MX6 Hummingboard/Cubox-i

2022-11-03 Thread Baruch Siach
Hi Fabio, On Thu, Nov 03 2022, Fabio Estevam wrote: > On Thu, Nov 3, 2022 at 11:15 AM Fabio Estevam wrote: > >> Please try using u-boot,dm-spl for all nodes instead. > > In addition to using u-boot,dm-spl, please try calling > spl_early_init() like done here: > https://source.denx.de/u-boot/u-boo

Re: [PATCH] usb: gadget: dfu: Fix the unchecked length field

2022-11-03 Thread Marek Vasut
On 11/3/22 05:07, Venkatesh Yadav Abbarapu wrote: DFU implementation does not bound the length field in USB DFU download setup packets, and it does not verify that the transfer direction. Fixing the length and transfer direction. CVE-2022-2347 +CC Tom Reading through https://seclists.org/oss-

Re: DM_SERIAL for i.MX6 Hummingboard/Cubox-i

2022-11-03 Thread Fabio Estevam
On Thu, Nov 3, 2022 at 11:28 AM Fabio Estevam wrote: > > Hi Baruch, > > On Thu, Nov 3, 2022 at 11:15 AM Fabio Estevam wrote: > > > Please try using u-boot,dm-spl for all nodes instead. > > In addition to using u-boot,dm-spl, please try calling > spl_early_init() like done here: > https://source.d

Re: DM_SERIAL for i.MX6 Hummingboard/Cubox-i

2022-11-03 Thread Fabio Estevam
Hi Baruch, On Thu, Nov 3, 2022 at 11:15 AM Fabio Estevam wrote: > Please try using u-boot,dm-spl for all nodes instead. In addition to using u-boot,dm-spl, please try calling spl_early_init() like done here: https://source.denx.de/u-boot/u-boot/-/commit/7cf388fa6977136dd2384bd746d237efc306c829

Re: DM_SERIAL for i.MX6 Hummingboard/Cubox-i

2022-11-03 Thread Fabio Estevam
Hi Baruch, On Thu, Nov 3, 2022 at 11:06 AM Baruch Siach wrote: > I tried this (see below) but no luck yet. The tbs2910 appears not to use > SPL. I might be missing an SPL driver. That's a good point. imx8mm_evk_defconfig has been converted to DM_SERIAL and it uses SPL. > +&soc { > + u-b

Re: DM_SERIAL for i.MX6 Hummingboard/Cubox-i

2022-11-03 Thread Baruch Siach
Hi Fabio, On Thu, Nov 03 2022, Fabio Estevam wrote: > On Thu, Nov 3, 2022 at 9:29 AM Baruch Siach wrote: >> I am trying to migrate the Hummingboard platform to DM_SERIAL. See below >> what I got so far. Booting this on top of master (as of commit >> 8bc87a4c5) shows nothing on the serial console.

Re: [PATCH v2 2/3] arm: dts: rockchip: Separate rockchip-binman.dtsi

2022-11-03 Thread Quentin Schulz
Hi Jagan, On 11/3/22 13:37, Jagan Teki wrote: On Thu, 3 Nov 2022 at 15:32, Quentin Schulz wrote: Hi Jagan, On 11/3/22 07:19, Jagan Teki wrote: rockchip-u-boot.dtsi has the FIT image for the final stage of binman image creation. If the actual binman node is part of this dtsi then there are

Re: Adapteva Parallella board

2022-11-03 Thread Michal Simek
Hi, čt 3. 11. 2022 v 5:24 odesílatel Martin Husemann napsal: > > On Fri, Oct 28, 2022 at 07:20:36PM +0200, Martin Husemann wrote: > > Is my dtb not correct for this purpose? How can I easily make the u-boot > > build regen it from .dts? I found the slightly hidden dts/.*.cmd files, > > do I need

Re: DM_SERIAL for i.MX6 Hummingboard/Cubox-i

2022-11-03 Thread Fabio Estevam
Hi Baruch, On Thu, Nov 3, 2022 at 9:29 AM Baruch Siach wrote: > > Hi u-boot list, > > I am trying to migrate the Hummingboard platform to DM_SERIAL. See below > what I got so far. Booting this on top of master (as of commit > 8bc87a4c5) shows nothing on the serial console. Next thing I plan to tr

Re: [PATCH v2 2/3] arm: dts: rockchip: Separate rockchip-binman.dtsi

2022-11-03 Thread Jagan Teki
On Thu, 3 Nov 2022 at 15:32, Quentin Schulz wrote: > > Hi Jagan, > > On 11/3/22 07:19, Jagan Teki wrote: > > rockchip-u-boot.dtsi has the FIT image for the final stage of > > binman image creation. > > > > If the actual binman node is part of this dtsi then there are > > build issues to use optee

DM_SERIAL for i.MX6 Hummingboard/Cubox-i

2022-11-03 Thread Baruch Siach
Hi u-boot list, I am trying to migrate the Hummingboard platform to DM_SERIAL. See below what I got so far. Booting this on top of master (as of commit 8bc87a4c5) shows nothing on the serial console. Next thing I plan to try is toggle GPIOs in entry code to see how far the code proceeds. Any idea

Re: Adapteva Parallella board

2022-11-03 Thread Martin Husemann
On Fri, Oct 28, 2022 at 07:20:36PM +0200, Martin Husemann wrote: > Is my dtb not correct for this purpose? How can I easily make the u-boot > build regen it from .dts? I found the slightly hidden dts/.*.cmd files, > do I need to clone one of that and adjust? It was a toolchain issue and with a bit

Re: [PATCH] cmd: ubifs: Do not show usage when command fails

2022-11-03 Thread Dhruva Gole
On 08/08/22 01:28, Pali Rohár wrote: Return value -1 cause U-Boot to print usage message. Return value 1 (CMD_RET_FAILURE) indicates failure. So fix return value when ubifs command starts it execution and fails. Signed-off-by: Pali Rohár [...] Reviewed-by: Dhruva Gole -- Best regards, D

Re: [PATCH v5 2/2] serial: mxc: have putc use the TXFIFO

2022-11-03 Thread Fabio Estevam
On Thu, Nov 3, 2022 at 3:17 AM SCHNEIDER Johannes wrote: > > Hi all, > > flushing and waiting... maybe you're onto something: what if one printf races > another since it thinks considers its buffer handed to the FIFO as "done" a > bit too soon? > > might the below variation on "waiting for the f

Running u-boot standalone hello_world on an image partition with qemu

2022-11-03 Thread Lists Nick Betteridge
I'm developing on an ubuntu x86 machine, trying to run the u-boot hello_world standalone application which resides on an image |sd.img| which contains a partition I've compiled u-boot (|v2022.10|) with |qemu-x86_64_defconfig| I run qemu with "|qemu-system-x86_64 -m 1024 -nographic -bios u-boot

Re: [PATCH v5 2/2] serial: mxc: have putc use the TXFIFO

2022-11-03 Thread TERTYCHNYI Grygorii
I think Pali is right, mxc_serial_setbrg() is called _after_ board_init(), and because setbrg() touches bmr and cr registers it causes loosing of FIFO - even for the very long string, "only" last 32 chars are potentially corrupted. Here I printed bmr value before and after (looks like setbrg() is

[PATCH v3 07/25] ram: rockchip: Add rv1126 ddr driver support

2022-11-03 Thread Jagan Teki
Add DDR driver for Rockchip RV1126 SoC. Signed-off-by: YouMin Chen Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - collect Kever r-b Changes for v2: - none .../asm/arch-rockchip/dram_spec_timing.h | 452 +++ .../include/asm/arch-rockchip/sdram_common.h | 212 +

[PATCH] usb: gadget: dfu: Fix the unchecked length field

2022-11-03 Thread Venkatesh Yadav Abbarapu
DFU implementation does not bound the length field in USB DFU download setup packets, and it does not verify that the transfer direction. Fixing the length and transfer direction. CVE-2022-2347 Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/usb/gadget/f_dfu.c | 58

Re: [PATCH v2 2/3] arm: dts: rockchip: Separate rockchip-binman.dtsi

2022-11-03 Thread Quentin Schulz
Hi Jagan, On 11/3/22 07:19, Jagan Teki wrote: rockchip-u-boot.dtsi has the FIT image for the final stage of binman image creation. If the actual binman node is part of this dtsi then there are build issues to use optee as input to this final stage binman image since optee is built via another b

Re: question about uboot mt7620 RAM_VERSION

2022-11-03 Thread Stefan Roese
Hi Kang-sen, On 28.10.22 16:35, Kang-sen Lu wrote: Thanks for your effort to build a ubbot.bin (RAM_VERSION) for mt7620 router. I tried it out, using tftp to download it. It did start but having some errors. I have saved the log for you. It is in the attachment. Looks quite good AFAICT. I wa

RE: [PATCH] cmd: mmc: Print life time info

2022-11-03 Thread ZHIZHIKIN Andrey
Hello all, > -Original Message- > From: U-Boot On Behalf Of Jaehoon Chung > Sent: Wednesday, November 2, 2022 11:49 PM > To: Robert Krikke ; u-boot@lists.denx.de > Cc: Robert Krikke ; Harm Berntsen > > Subject: Re: [PATCH] cmd: mmc: Print life time info > > Hi, > > On 11/2/22 23:17, Ro

Re: [PATCH v5 2/2] serial: mxc: have putc use the TXFIFO

2022-11-03 Thread Pali Rohár
FYI, in past I was debugging issue with very similar symptoms: https://lore.kernel.org/u-boot/20220623121356.4149-1-p...@kernel.org/t/#u So if in your case the issue is also that u-boot drops TX buffer then you just need to put in mxc driver at correct places (all!) code which waits until all data

double quoted strings in env.txt files

2022-11-03 Thread Holger Brunck
Hi all, I currently try to convert some boards to the new env.txt files and this works quite well so far. But I encountered one problem which I am not sure how to solve it. If I have some string in a Kconfig file defined like: config KM_DEF_NETDEV string "Default Netdevice" default

Re: [PATCH 2/2] ARM: dts: stm32: Drop MMCI interrupt-names

2022-11-03 Thread Patrice CHOTARD
On 11/2/22 14:53, Yann Gautier wrote: > From: Marek Vasut > > The pl18x MMCI driver does not use the interrupt-names property, > the binding document has been updated to recommend this property > be unused, remove it. > Backport of Marek's Linux patch: > https://lore.kernel.org/linux-arm-kerne

Re: [PATCH 1/2] ARM: dts: stm32: add sdmmc cd-gpios for STM32MP135F-DK

2022-11-03 Thread Patrice CHOTARD
On 11/2/22 14:53, Yann Gautier wrote: > On STM32MP135F-DK, the SD card detect GPIO is GPIOH4. > Backport of the Linux patch: > https://lore.kernel.org/linux-arm-kernel/20220921160334.3227138-1-yann.gaut...@foss.st.com/ > > Signed-off-by: Yann Gautier > Signed-off-by: Alexandre Torgue > --- >

[PULL] u-boot-riscv/master

2022-11-03 Thread Leo Liang
Hi Tom, The following changes since commit c8d9ff634fc429db5acf2f5386ea937f0fef1ae7: Merge branch '2022-10-31-FWU-add-FWU-multi-bank-update-feature-support' (2022-11-01 09:32:21 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-riscv.git for y