Re: [PATCH 2/7] spi: sunxi: refactor SPI speed/mode programming

2022-06-29 Thread Jesse Taube
On 6/27/22 20:31, Andre Przywara wrote: On Tue, 3 May 2022 22:20:35 +0100 Andre Przywara wrote: Hi, As George rightfully pointed out [1], the spi-sunxi driver programs the speed and mode settings only when the respective functions are called, but this gets lost over a call to

[PATCH] crypto: hash: sw: fix Kconfig dependencies

2022-06-29 Thread Benjamin Bara
From: Benjamin Bara Fix SHA512 config name and add missing SHA384 config. Signed-off-by: Benjamin Bara --- drivers/crypto/hash/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/hash/Kconfig b/drivers/crypto/hash/Kconfig index bf9540eca6..aa355c44be

[PATCH v5 2/3] usb: add isp1760 family driver

2022-06-29 Thread Rui Miguel Silva
ISP1760/61/63 are a family of usb controllers, here the main goal is to support the ISP1763 hcd part found in the MPS3 FPGA board form Arm. This is based on the kernel driver and ported to u-boot. Signed-off-by: Rui Miguel Silva --- Makefile|1 +

[Update license 1/1] drivers: clk: Update license for Intel N5X device

2022-06-29 Thread teik . heng . chong
From: Teik Heng Chong All the source code of clk-mem-n5x.c and clk-n5x.c are from Intel, update the license to use both GPL2.0 and BSD-3 Clause because this copy of code may used for open source and internal project. Signed-off-by: Teik Heng Chong --- drivers/clk/altera/clk-mem-n5x.c | 4 ++--

[PATCH] EFI: Fix ReadBlocks API reading incorrect sector for, UCLASS_PARTITION devices

2022-06-29 Thread Paul Barbieri
From 7a7dd7f16352fc916279cca05a3fa617f8bbef64 Mon Sep 17 00:00:00 2001 From: Paul Barbieri Date: Tue, 28 Jun 2022 20:24:33 -0400 Subject: [PATCH] EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices The requested partition disk sector incorrectly has the partition

Re: [PATCH] MAINTAINERS: Add Dario and Michael as nand maintainers

2022-06-29 Thread Tom Rini
On Wed, Jun 29, 2022 at 05:57:51PM +0200, Michael Trimarchi wrote: > Both of us are working on Nand subsystem on several architectures and > we have boards and projects to improve the subsystem in uboot. The idea > is to garantee quick feedback on patches sent on mailing list and most > of the

[PATCH] MAINTAINERS: Add Dario and Michael as nand maintainers

2022-06-29 Thread Michael Trimarchi
Both of us are working on Nand subsystem on several architectures and we have boards and projects to improve the subsystem in uboot. The idea is to garantee quick feedback on patches sent on mailing list and most of the time the possibilities to test them. Cc: Dario Binacchi Cc: Tom Rini

[PATCH] tools: imx8mimage: Keep IVT reserved1 field zero always

2022-06-29 Thread Marek Vasut
Since fe8acf556c3 ("imx: HAB: Validate IVT before authenticating image") the U-Boot HAB implementation is checking whether reserved1 field in IVT is zero or not. In case the field is not zero, IVT validation fails. Stop setting IVT reserved1 field to non-zero in mkimage imx8m plugin, otherwise the

Re: [PATCH 1/8] env: Do not make CONFIG_EXTRA_ENV_TEXT and CONFIG_EXTRA_ENV_SETTINGS conflict

2022-06-29 Thread Tom Rini
On Mon, Jun 13, 2022 at 10:57:30PM -0400, Tom Rini wrote: > Largely, the use of CONFIG_EXTRA_ENV_SETTINGS can be migrated directly > to come from CONFIG_EXTRA_ENV_TEXT. The biggest case that cannot easily > be migrated is distro_bootcmd support. Rather than block migration on > this, remove the

Re: [PATCH 1/8] Convert CONFIG_ENV_MIN_ENTRIES et al to Kconfig

2022-06-29 Thread Tom Rini
On Sun, Jun 12, 2022 at 08:01:58PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_ENV_MIN_ENTRIES >CONFIG_ENV_MAX_ENTRIES > > Cc: Michal Simek > Signed-off-by: Tom Rini For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 01/15] xtensa: Switch to using CONFIG_XTENSA for building device trees

2022-06-29 Thread Tom Rini
On Fri, Jun 10, 2022 at 10:59:24PM -0400, Tom Rini wrote: > The only use of CONFIG_XTFPGA was to build all of the in-tree device > trees. Switch to using CONFIG_XTENSA instead of a non-Kconfig symbol. > > Signed-off-by: Tom Rini For the series, applied to u-boot/next, thanks! -- Tom

Re: [PATCH 01/18] Convert CONFIG_E1000_NO_NVM to Kconfig

2022-06-29 Thread Tom Rini
On Wed, Jun 08, 2022 at 08:24:23AM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_E1000_NO_NVM > > Signed-off-by: Tom Rini For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] distroboot: Fix ubifs

2022-06-29 Thread Pali Rohár
Hello! On Wednesday 29 June 2022 15:36:57 Alexander Dahl wrote: > Hello Pali, > > had a look at this patch, and have some questions. See below. > > Am Dienstag, 31. Mai 2022, 10:32:36 CEST schrieb Pali Rohár: > > Fix multiple issues in ubifs distroboot code: > > > > U-Boot supports attaching

Re: [PATCH] mtd: mxs_nand_spl: fix nand_command protocol violation

2022-06-29 Thread Tom Rini
On Tue, Jun 21, 2022 at 10:05:10PM +0200, Michael Trimarchi wrote: > From: Andrea Scian > > mxs_nand_command() implementation assume that it's working with a > LP NAND, which is a common case nowadays and thus uses two bytes > for column address. > > However this is wrong for NAND_CMD_READID

Re: [PATCH] distroboot: Fix ubifs

2022-06-29 Thread Alexander Dahl
Hello Pali, had a look at this patch, and have some questions. See below. Am Dienstag, 31. Mai 2022, 10:32:36 CEST schrieb Pali Rohár: > Fix multiple issues in ubifs distroboot code: > > U-Boot supports attaching only one MTD device as UBI at the time. So > always call 'ubifsmount

Re: [PATCH 0/8] u-boot: fs: add generic unaligned read handling

2022-06-29 Thread Tom Rini
On Wed, Jun 29, 2022 at 09:40:58AM +0800, Qu Wenruo wrote: > > > On 2022/6/28 22:17, Tom Rini wrote: > > On Tue, Jun 28, 2022 at 03:28:00PM +0800, Qu Wenruo wrote: > > > [BACKGROUND] > > > Unlike FUSE/Kernel which always pass aligned read range, U-boot fs code > > > just pass the request range

Re: [PATCH] mtd: mxs_nand_spl: fix nand_command protocol violation

2022-06-29 Thread Fabio Estevam
Hi Michael, On 29/06/2022 03:49, Michael Nazzareno Trimarchi wrote: It will be nice if you can pick this one too. Fabio can you review it? The change looks good to me: Reviewed-by: Fabio Estevam

Re: [PATCH] mmc: zynq_sdhci: Fix timing macros for MMC High speed

2022-06-29 Thread Michal Simek
On 6/27/22 10:52, Ashok Reddy Soma wrote: Timing macro's are wrong for MMC_HS_52 and MMC_DDR_52. Fix it with correct values of MMC_TIMING_MMC_HS and MMC_TIMING_MMC_DDR52 respectively. Signed-off-by: Ashok Reddy Soma --- drivers/mmc/zynq_sdhci.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH 7/8] fs: ubifs: rely on higher layer to do unaligned read

2022-06-29 Thread Qu Wenruo
Currently ubifs doesn't support unaligned read offset, thanks to the recent _fs_read() work to handle unaligned read, we only need to implement ubifs_get_blocksize() to take advantage of it. Now ubifs can do unaligned read without any problem. Signed-off-by: Qu Wenruo --- Unfortunately I can

[PATCH 8/8] fs: erofs: add unaligned read range handling

2022-06-29 Thread Qu Wenruo
I'm not an expert on erofs, but my quick glance didn't expose any special handling on unaligned range, thus I think the U-boot erofs driver doesn't really support unaligned read range. This patch will add erofs_get_blocksize() so erofs can benefit from the generic unaligned read support. Cc:

[PATCH 5/8] fs: ext4: rely on _fs_read() to handle leading unaligned block read

2022-06-29 Thread Qu Wenruo
Just add ext4_get_blocksize() and a new assert() in ext4fs_read_file(). Signed-off-by: Qu Wenruo --- Several cleanup candicate: 1. ext_fs->blksz is never populated, thus it's always 0 We can not easily grab blocksize just like btrfs in this case. Thus we have to go the same calculation

[PATCH 4/8] fs: btrfs: move the unaligned read code to _fs_read() for btrfs

2022-06-29 Thread Qu Wenruo
Unlike FUSE or kernel, U-boot filesystem code makes the underly fs code to handle the unaligned read (aka, read range is not aligned to fs block size). This makes underlying fs code harder to implement, as they have to handle unaligned read all by themselves. This patch will change the

[PATCH 6/8] fs: fat: rely on higher layer to get block aligned read range

2022-06-29 Thread Qu Wenruo
Just implement fat_get_blocksize() for fat, so that fat_read_file() always get a block aligned read range. Unfortunately I'm not experienced enough to cleanup the fat code, thus further cleanup is appreciated. Cc: Tom Rini Signed-off-by: Qu Wenruo --- fs/fat/fat.c | 13 + fs/fs.c

[PATCH 3/8] fs: btrfs: fix a crash if specified range is beyond file size

2022-06-29 Thread Qu Wenruo
[BUG] When try to read a range beyond file size, btrfs driver will cause crash/segfault: => load host 0 $kernel_addr_r 5k_file 0 0x2000 SEGFAULT [CAUSE] In btrfs_read(), if @len is 0, we will truncated it to file end, but if file end is beyond our file size, this truncation will underflow

[PATCH 2/8] fs: btrfs: fix a bug which no data get read if the length is not 0

2022-06-29 Thread Qu Wenruo
[BUG] When testing with unaligned read, if a specific length is passed in, btrfs driver will read out nothing: => load host 0 $kernel_addr_r 5k_file 0x1000 0 0 bytes read in 0 ms But if no length is passed in, it works fine, even if we pass a non-zero length: => load host 0 $kernel_addr_r

[PATCH 1/8] fs: fat: unexport file_fat_read_at()

2022-06-29 Thread Qu Wenruo
That function is only utilized inside fat driver, unexport it. Signed-off-by: Qu Wenruo --- fs/fat/fat.c | 4 ++-- include/fat.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index df9ea2c028fc..dcceccbcee0a 100644 --- a/fs/fat/fat.c +++

[PATCH 0/8] U-boot: fs: add generic unaligned read offset handling

2022-06-29 Thread Qu Wenruo
[CHANGELOG] RFC->v1: - More (manual) testing Unfortunately, in the latest master (75967970850a), the fs-tests.sh always seems to hang at preparing the fs image. Thus still has to do manual testing, tested btrfs, ext4 and fat, with aligned and unaligned read, also added soft link read, all

Re: [PATCH] distroboot: Fix ubifs

2022-06-29 Thread Frieder Schrempf
Am 23.06.22 um 18:09 schrieb Pali Rohár: > On Tuesday 31 May 2022 10:32:36 Pali Rohár wrote: >> Fix multiple issues in ubifs distroboot code: >> >> U-Boot supports attaching only one MTD device as UBI at the time. So >> always call 'ubifsmount ubi0:${bootubivol}' for mounting UBI volume >>

Re: [PATCH] board/BuR/*: replace maintainer of BuR boards

2022-06-29 Thread Wolfgang Wallner
> Since i'm leaving the company with end of june, the maintainership will > be transferred to Wolfgang Wallner. Signed-off-by: Wolfgang Wallner From: Hannes Schmelzer Sent: Wednesday, June 29, 2022 12:11 To: u-boot@lists.denx.de Cc: Hannes Schmelzer ; Wolfgang Wallner Subject: [PATCH]

[PATCH] board/BuR/*: replace maintainer of BuR boards

2022-06-29 Thread Hannes Schmelzer
Since i'm leaving the company with end of june, the maintainership will be transferred to Wolfgang Wallner. Signed-off-by: Hannes Schmelzer Seriec-cc: tr...@konsulko.com Series-version : 2 Series-changes : 2 - fix typo in Wolgangs email-address --- board/BuR/brppt1/MAINTAINERS | 2 +-

Re: [PATCH V2 01/49] spl: imx8mm: enlarge SPL_MAX_SIZE

2022-06-29 Thread Frieder Schrempf
Am 27.06.22 um 05:24 schrieb Peng Fan (OSS): > From: Peng Fan > > The CONFIG_SPL_MAX_SIZE could be 0x27000 for i.MX8MM when SPL_TEXT_BASE > set to 0x7E1000. > > Signed-off-by: Peng Fan > --- > common/spl/Kconfig| 1 + > configs/imx8mm-cl-iot-gate-optee_defconfig

[PATCH] board/BuR/*: replace maintainer of BuR board

2022-06-29 Thread Hannes Schmelzer
Since i'm leaving the company with end of june, the maintainership will be transferred to Wolfgang Wallner. Signed-off-by: Hannes Schmelzer Seriec-cc: tr...@konsulko.com --- board/BuR/brppt1/MAINTAINERS | 2 +- board/BuR/brppt2/MAINTAINERS | 2 +- board/BuR/brsmarc1/MAINTAINERS | 2 +-

[PATCH v5 3/3] corstone1000: enable isp1763 usb controller and mmc

2022-06-29 Thread Rui Miguel Silva
MPS3 board have a ISP1763 usb controller, enable it to be used for mass storage access for example. Enable the usb command also and for the FVP support for mass storage enable the mmc command. Signed-off-by: Rui Miguel Silva --- configs/corstone1000_defconfig | 3 +++

[PATCH v5 1/3] usb: common: move urb code to common

2022-06-29 Thread Rui Miguel Silva
Move urb code from musb only use to a more common scope, so other drivers in the future can use the handling of urb in usb. Signed-off-by: Rui Miguel Silva --- drivers/usb/common/Makefile | 3 + drivers/usb/common/usb_urb.c | 160 ++

[PATCH v5 0/3] usb: add isp1760 hcd support

2022-06-29 Thread Rui Miguel Silva
Add support for the usb isp1760 host controller family, which for example is present in MPS3 FPGA board from Arm (isp1763). First we move some helper functions and defines to a more common place to be shared by several urb users. (patch 1/3) Then add the driver itself, is a ported version of the

Re: [PATCH v4 1/3] usb: common: move urb code to common

2022-06-29 Thread Rui Miguel Silva
Hey Marek, On Wed, Jun 29, 2022 at 11:07:38AM +0200, Marek Vasut wrote: > On 6/28/22 19:42, Rui Miguel Silva wrote: > > Move urb code from musb only use to a more common scope, so other > > drivers in the future can use the handling of urb in usb. > > I'm afraid this broke at least one driver,

Re: [PATCH v1] usb: host: nuvoton: Add nuvoton NPCM7xx ehci/ohci driver

2022-06-29 Thread Marek Vasut
On 6/29/22 03:31, Jim Liu wrote: Hi Marek Hi, no, not yet. I will add i2c otp aes sha pinctrl usb spi mmc feature to poleg_evb_defconfig in the last commit. about the usb patch if you have any suggestion or need modify please let me know. The usb patch is already in usb/next , thanks.

Re: [PATCH v2] usb: dwc3: Add support to reset usb ULPI phy

2022-06-29 Thread Marek Vasut
On 3/4/22 13:47, Michal Simek wrote: From: T Karthik Reddy When usb PHY initialization is done, the PHY need to be reset. The CI is failing on this one: https://source.denx.de/u-boot/custodians/u-boot-usb/-/jobs/457563

Re: [PATCH v4 1/3] usb: common: move urb code to common

2022-06-29 Thread Marek Vasut
On 6/28/22 19:42, Rui Miguel Silva wrote: Move urb code from musb only use to a more common scope, so other drivers in the future can use the handling of urb in usb. I'm afraid this broke at least one driver, see: https://source.denx.de/u-boot/custodians/u-boot-usb/-/jobs/457939 Either send

Re: [PATCH] arm64: zynqmp: Used fixed-partitions for QSPI in k26

2022-06-29 Thread Michal Simek
po 20. 6. 2022 v 15:46 odesílatel Michal Simek napsal: > > Using fixed partitions is recommended way how to describe QSPI. Also add > label for qspi flash memory to be able to reference it in future. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynqmp-sm-k26-revA.dts | 163

Re: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-06-29 Thread Stefano Babic
On 29.06.22 10:35, Gaurav Jain wrote: Hi Stefano this patch is fixing dcache issue in fsl_rsa.c Error reported is in drivers/crypto/fsl/fsl_hash.c addr = (addr << 32) | sec_in32(>sg_tbl[i].addr_lo); reported error is fixed in [v3] crypto/fsl: fsl_hash: Fix crash in flush dcache

RE: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-06-29 Thread Gaurav Jain
Hi Stefano this patch is fixing dcache issue in fsl_rsa.c Error reported is in drivers/crypto/fsl/fsl_hash.c addr = (addr << 32) | sec_in32(>sg_tbl[i].addr_lo); reported error is fixed in [v3] crypto/fsl: fsl_hash: Fix crash in flush dcache

[PATCH v2 2/2] rockchip: rk3399: enable spl-fifo-mode for sdmmc only when needed

2022-06-29 Thread Jerome Forissier
Commit 5c606ca35c42 ("rockchip: rk3399: enable spl-fifo-mode for sdmmc") mentions that the RK3399 SoC can't do DMA between SDMMC and SRAM. According to the TRM "7.3.2 Embedded SRAM access path" [1], only the 8KB SRAM at 0xff3b (INTMEM1) is in this situation. The 192KB SRAM can be accessed by

[PATCH v2 1/2] spl: fit: add config option for temporary buffer when loading image

2022-06-29 Thread Jerome Forissier
When the load address of a FIT image isn't properly aligned, spl_load_fit_image() may write past the end of the destination buffer. It is not an issue in many cases because the memory happens to be writeable and nothing important is present in the overflow. On RockPi4 however there is a

[PATCH v2 0/2] spl, rk3399: fix FIT image loading out-of-range

2022-06-29 Thread Jerome Forissier
The patches in this series address an issue I met when trying to enable FIT signature verification by SPL on a RockPi4B board. - The first patch avoids a buffer overflow when writing to INTMEM1 SRAM - The second one addresses reliability issues I had with back-to-back MMC reads from the microSD

Re: [PATCH 2/2] rockchip: rk3399: enable spl-fifo-mode for sdmmc only when needed

2022-06-29 Thread Jerome Forissier
On 6/29/22 05:01, Kever Yang wrote: > > On 2022/6/9 23:23, Jerome Forissier wrote: >> Commit 5c606ca35c42 ("rockchip: rk3399: enable spl-fifo-mode for sdmmc") >> mentions that the RK3399 SoC can't do DMA between SDMMC and SRAM. >> According to the TRM "7.3.2 Embedded SRAM access path" [1],

Re: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-06-29 Thread Stefano Babic
Hi Gaurav, On 29.06.22 09:06, Gaurav Jain wrote: Hi Stefano This patch is put into state "changes requested". But it is a different patch in fsl_rsa. There is no change requested with this patch. Something went wrong - I have applied this patch to push to 2022.07, but in CI I get the same

Re: [PATCH V2] imx: imx93_11x11_evk: using binman to pack images

2022-06-29 Thread Peng Fan (OSS)
在 2022/6/22 4:57, Alper Nebi Yasak 写道: On 13/06/2022 09:13, Peng Fan (OSS) wrote: From: Peng Fan Use BINMAN to generate flash.bin Signed-off-by: Peng Fan --- Based on https://patchwork.ozlabs.org/project/uboot/cover/20220611132035.32698-1-peng@oss.nxp.com/ V2: Typo correct

Re: [PATCH RESEND 4/5] ast2600: Configure u-boot-with-spl.bin target

2022-06-29 Thread Joel Stanley
On Tue, 28 Jun 2022 at 14:19, Tom Rini wrote: > > On Mon, Jun 27, 2022 at 05:28:10PM +0930, Joel Stanley wrote: > > > For the u-boot-with-spl.bin target to be useful for the AST2600, set the > > maximum SPL size which also sets the padding length. > > > > The normal way of loading u-boot is as a

[PATCH 3/3] fpga: Convert FPGA_COUNT to Kconfig

2022-06-29 Thread Alexander Dahl
Besides the two obvious defconfigs, the option was set for all defconfigs where corresponding header file includes include/configs/socfpga_common.h Signed-off-by: Alexander Dahl --- README | 4 configs/astro_mcf5373l_defconfig| 1 +

[PATCH 0/3] fpga: Convert some options to Kconfig

2022-06-29 Thread Alexander Dahl
Hei hei, this is some fallout from migrating some downstream boards with Altera Cyclone FPGAs to recent U-Boot v2022.04. Not entirely sure about that FPGA_COUNT variable in patch 3, which seems to be used in source code in board/astro/mcf5373l/fpga.c only. Maybe that variable can be dropped

[PATCH 2/3] fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig

2022-06-29 Thread Alexander Dahl
Signed-off-by: Alexander Dahl --- README | 4 configs/astro_mcf5373l_defconfig | 1 + drivers/fpga/Kconfig | 6 ++ include/configs/astro_mcf5373l.h | 1 - scripts/config_whitelist.txt | 1 - 5 files changed, 7 insertions(+), 6 deletions(-) diff

[PATCH 1/3] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-06-29 Thread Alexander Dahl
After commit 8cca60a2cbf2 ("Kconfig: Remove some symbols from the whitelist") downstream builds failed for boards setting this in include/configs/… Two FPGA drivers consider this definition. Signed-off-by: Alexander Dahl --- README | 3 --- drivers/fpga/Kconfig | 4 2 files

RE: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-06-29 Thread Gaurav Jain
Hi Stefano This patch is put into state "changes requested". But it is a different patch in fsl_rsa. There is no change requested with this patch. Regards Gaurav Jain > -Original Message- > From: Stefano Babic > Sent: Wednesday, June 15, 2022 6:20 PM > To: Gaurav Jain ; Fabio Estevam

[PATCH v2 7/7] CI: Add Aspeed AST2600

2022-06-29 Thread Joel Stanley
The AST2600 has a Qemu model that allows testing. Create a SPI NOR image containing the combined SPL and u-boot FIT image. Reviewed-by: Chia-Wei Wang Reviewed-by: Cédric Le Goater Signed-off-by: Joel Stanley --- .azure-pipelines.yml | 3 +++ .gitlab-ci.yml | 6 ++ 2 files changed, 9

[PATCH v2 6/7] aspeed/spl: Remove OVERLAY from linker script

2022-06-29 Thread Joel Stanley
The generic arm linker script contains this section: .bss __rel_dyn_start (OVERLAY) : { ... } The (OVERLAY) syntax in the description causes the .bss section to be included in the NOR area of the image: $ objdump -t -j .bss spl/u-boot-spl SYMBOL TABLE: c61c ld .bss

[PATCH v2 5/7] ast2600: Configure u-boot-with-spl.bin target

2022-06-29 Thread Joel Stanley
The normal way of loading u-boot is as a FIT, so configure u-boot.img as the SPL playload. The u-boot-with-spl.bin target will add padding according to CONFIG_SPL_MAX_SIZE which defaults to 64KB on the AST2600. With this the following simple steps can be used to build and boot a system: make

[PATCH v2 4/7] spl: Set SPL_MAX_SIZE default for AST2600

2022-06-29 Thread Joel Stanley
The AST2600 bootrom has a max size of 64KB. This can be overridden if the system is running the SPL from SPI NOR and not using secure boot. Signed-off-by: Joel Stanley --- New in v2 common/spl/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig

[PATCH v2 3/7] config/ast2600: Disable hash hardware accel

2022-06-29 Thread Joel Stanley
The HACE driver lacks support for all the hash types, causing boot to fail with the default FIT configuration which uses CRC32. Additionally the Qemu model or the u-boot driver is unable to correctly compute the SHA256 hash used in a FIT. Disable HACE by default while the above issues are worked

[PATCH v2 2/7] config/ast2600: Make position independent

2022-06-29 Thread Joel Stanley
Allows loading one u-boot from another. Useful for testing on hardware. Reviewed-by: Chia-Wei Wang Reviewed-by: Cédric Le Goater Signed-off-by: Joel Stanley --- configs/evb-ast2600_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-ast2600_defconfig

[PATCH v2 1/7] config/ast2600: Enable CRC32

2022-06-29 Thread Joel Stanley
Useful for testing images with the default hash type. Reviewed-by: Chia-Wei Wang Reviewed-by: Cédric Le Goater Signed-off-by: Joel Stanley --- configs/evb-ast2600_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-ast2600_defconfig b/configs/evb-ast2600_defconfig index

[PATCH v2 0/7] aspeed: Add AST2600 machine to CI

2022-06-29 Thread Joel Stanley
The Aspeed AST2600 is modelled in Qemu. This makes some configuration changes so it can be added to CI. v2 changes: The u-boot-test-hooks patches are now merged. I reworked "ast2600: Configure u-boot-with-spl.bin target" to use the kconfig SPL_MAX_SIZE. The size is set in the previous patch as

RE: [PATCH] crypto/fsl: Add support for black key blob

2022-06-29 Thread Gaurav Jain
Hi Stefano Can you help to review this patch? Regards Gaurav Jain > -Original Message- > From: Gaurav Jain > Sent: Monday, April 18, 2022 4:04 PM > To: Stefano Babic ; u-boot@lists.denx.de > Cc: Fabio Estevam ; Priyanka Jain > ; Ye Li ; Horia Geanta > ; Silvano Di Ninno ; Varun > Sethi

Re: [PATCH] mtd: mxs_nand_spl: fix nand_command protocol violation

2022-06-29 Thread Michael Nazzareno Trimarchi
Hi Tom On Tue, Jun 21, 2022 at 10:05 PM Michael Trimarchi wrote: > > From: Andrea Scian > > mxs_nand_command() implementation assume that it's working with a > LP NAND, which is a common case nowadays and thus uses two bytes > for column address. > > However this is wrong for NAND_CMD_READID

Re: [PATCH 2/2] pmic: pca9450: clear PRESET_EN bit for BUCK1/2/3 voltage settings

2022-06-29 Thread Frieder Schrempf
Am 28.06.22 um 16:06 schrieb Heiko Thiery: > The regulator driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to > set the voltage for the buck regulators 1, 2 and 3. This has no effect as the > PRESET_EN bit is set by default and therefore the preset values are used > instead, which are set

Re: [PATCH 1/2] pmic: pca9450: enable system reset on WDOG_B assertion

2022-06-29 Thread Frieder Schrempf
Am 28.06.22 um 16:06 schrieb Heiko Thiery: > By default the PCA9450 doesn't handle the assertion of the WDOG_B > signal, but this is required to guarantee that things like software > resets triggered by the watchdog work reliably. > > This is a port of the same changes in the Linux kernel: >