[PATCH 1/2] lib: add BLAKE2 hash support

2021-12-26 Thread Qu Wenruo
The code is cross-ported from BLAKE2 reference implementation (https://github.com/BLAKE2/BLAKE2). With minimal change to remove unused macros/features. Currently there is only one user inside U-boot (btrfs), and since it only utilize BLAKE2B, all other favors are all removed. Signed-off-by: Qu

[PATCH 2/2] fs/btrfs: add dependency on BLAKE2 hash

2021-12-26 Thread Qu Wenruo
Now btrfs can utilize the newly intorudced BLAKE2 hash. Signed-off-by: Qu Wenruo --- fs/btrfs/Kconfig | 1 + fs/btrfs/crypto/hash.c | 14 ++ fs/btrfs/crypto/hash.h | 1 + fs/btrfs/disk-io.c | 2 ++ 4 files changed, 18 insertions(+) diff --git a/fs/btrfs/Kconfig

[PATCH] fs/btrfs: fix a bug that U-boot fs btrfs implementation doesn't handle NO_HOLE feature correctly

2021-12-26 Thread Qu Wenruo
[BUG] When passing a btrfs with NO_HOLE feature to U-boot, and if one file contains holes, then the hash of the file is not correct in U-boot: # mkfs.btrfs -f test.img # Since v5.15, mkfs defaults to NO_HOLES # mount test.img /mnt/btrfs # xfs_io -f -c "pwrite 0 4k" -c "pwrite 8k 4k"

Re: kwboot: Marvell Dove UART booting

2021-12-26 Thread Tony Dinh
Hi Pali, On Wed, Dec 22, 2021 at 8:08 PM Tony Dinh wrote: > > Hi all, > > With great help from Pali, I've made some good progress on > kwboot the HP Thin Client T5335z (Marvell Dove SoC) board. > I had been unsuccessful running kwboot with this box until Pali > pointed out a few important

Pull request: u-boot-spi/master

2021-12-26 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit 4a14bfffd42f968ed9d72a780a8d44a9053c5b95: Merge https://source.denx.de/u-boot/custodians/u-boot-marvell (2021-11-30 08:59:22 -0500) are available in the Git repository at:

Re: Pull request: u-boot-rockchip-20211226

2021-12-26 Thread Tom Rini
the Git repository at: > >   https://source.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20211226 > > for you to fetch changes up to 376b08d0f159ec1047ad65b5d6e36fd2cbf6d8ff: > >   rockchip: mkimage: Add support for rk3568 SoC (2021-12-24 18:30:08 +0800

[PATCH] freescale: imx8mm_evk: Use IS_ENABLED instead of #ifdef

2021-12-26 Thread Tommaso Merciai
Use IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG) to make the code more readable and fix checkpatch.pl warning Signed-off-by: Tommaso Merciai --- board/freescale/imx8mm_evk/imx8mm_evk.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

iMX8MM support for HAB and encrypted image in the mainline

2021-12-26 Thread Mircea Ciocan
Hello everybody, I have a board with iMX8MM that needs to have HAB and encryption of the U-Boot and kernel image active. OP-TEE is a nice to have, but no hard requirement and there is absolutely no need for any multimedia features (for all is needed the related blocks cold remain "dark"). I

Re: [PATCH] arm: dts: rk3399-puma: re-add vdd_log for uboot

2021-12-26 Thread Tom Rini
On Sun, Dec 26, 2021 at 01:45:44PM +0100, Heiko Stuebner wrote: > The rk3399-puma board needs a 950mV vdd_log to work stable. > This was already added in > commit 77012e79ffc3 ("rockchip: rk3399-puma: Set VDD_LOG to 950 mV") > but lost again with > commit 167efc2c7a46 ("arm64: dts: rk3399: Sync

[PATCH] arm: dts: rk3399-puma: re-add vdd_log for uboot

2021-12-26 Thread Heiko Stuebner
The rk3399-puma board needs a 950mV vdd_log to work stable. This was already added in commit 77012e79ffc3 ("rockchip: rk3399-puma: Set VDD_LOG to 950 mV") but lost again with commit 167efc2c7a46 ("arm64: dts: rk3399: Sync v5.7-rc1 from Linux") So to make puma stable again re-add the vdd_log pwm

Re: [RFC PATCH v3 4/5] beacon: imx8mn: override env_get_location in imx8mn_beacon.c

2021-12-26 Thread Tommaso Merciai
On Sun, Dec 26, 2021 at 11:23:41AM +, Adam Ford wrote: > On Sun, Dec 26, 2021 at 11:17 AM Tommaso Merciai > wrote: > > > On Sun, Dec 26, 2021 at 09:20:30AM +, Adam Ford wrote: > > > On Sat, Dec 25, 2021 at 8:26 PM Tommaso Merciai > > > wrote: > > > > > > > Override env_get_location

Re: [RFC PATCH v3 4/5] beacon: imx8mn: override env_get_location in imx8mn_beacon.c

2021-12-26 Thread Adam Ford
On Sun, Dec 26, 2021 at 11:17 AM Tommaso Merciai wrote: > On Sun, Dec 26, 2021 at 09:20:30AM +, Adam Ford wrote: > > On Sat, Dec 25, 2021 at 8:26 PM Tommaso Merciai > > wrote: > > > > > Override env_get_location function at board level, previously dropped > > > down from

Re: [RFC PATCH v3 4/5] beacon: imx8mn: override env_get_location in imx8mn_beacon.c

2021-12-26 Thread Tommaso Merciai
On Sun, Dec 26, 2021 at 09:20:30AM +, Adam Ford wrote: > On Sat, Dec 25, 2021 at 8:26 PM Tommaso Merciai > wrote: > > > Override env_get_location function at board level, previously dropped > > down from arch/arm/mach-imx/imx8m/soc.c > > > > References: > > - commit

Re: [RFC PATCH v3 4/5] beacon: imx8mn: override env_get_location in imx8mn_beacon.c

2021-12-26 Thread Adam Ford
On Sat, Dec 25, 2021 at 8:26 PM Tommaso Merciai wrote: > Override env_get_location function at board level, previously dropped > down from arch/arm/mach-imx/imx8m/soc.c > > References: > - commit 37d3e3bb95d7532e2503f115dd6c6762fd3b0262 > > I am traveling, so I can't test this. However, I