[PATCH v2 1/1] Allow last block to be read

2021-02-15 Thread Heinrich Schuchardt
From: Jesper Schmitz Mouridsen The last block is of size media->block_size Signed-off-by: Jesper Schmitz Mouridsen Simplify expression. Apply same change to efi_disk_write_blocks(). Reviewed-by: Heinrich Schuchardt --- v2: Add missing signed-off lign. Simplify expression.

[ANN] U-Boot v2021.04-rc2 released

2021-02-15 Thread Tom Rini
Hey all, It's release day, and here's v2021.04-rc2. It's later in the day than I like to do these, but as you can also see from the patches I just applied, there's a security issue we need to patch as well. I hope these patches are easily backportable as needed, and there is a testcase for them

Re: [PATCH 8/8] image: Check for unit addresses in FITs

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 05:08:12PM -0700, Simon Glass wrote: > Using unit addresses in a FIT is a security risk. Add a check for this > and disallow it. > > CVE-2021-27138 > > Signed-off-by: Simon Glass > Reported-by: Bruce Monroe > Reported-by: Arie Haenel > Reported-by: Julien Lenoir

Re: [PATCH 7/8] libfdt: Check for multiple/invalid root nodes

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 05:08:11PM -0700, Simon Glass wrote: > It is possible to construct a devicetree blob with multiple root nodes. > Update fdt_check_full() to check for this, along with a root node with an > invalid name. > > CVE-2021-27097 > > Signed-off-by: Simon Glass > Reported-by:

Re: [PATCH 6/8] image: Add an option to do a full check of the FIT

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 05:08:10PM -0700, Simon Glass wrote: > Some strange modifications of the FIT can introduce security risks. Add an > option to check it thoroughly, using libfdt's fdt_check_full() function. > > Enable this by default if signature verification is enabled. > >

Re: [PATCH 5/8] image: Adjust the workings of fit_check_format()

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 05:08:09PM -0700, Simon Glass wrote: > At present this function does not accept a size for the FIT. This means > that it must be read from the FIT itself, introducing potential security > risk. Update the function to include a size parameter, which can be > invalid, in

Re: [PATCH 4/8] test: Add tests for the 'evil' vboot attacks

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 05:08:08PM -0700, Simon Glass wrote: > Add tests to check that these two attacks are mitigated by recent patches. > > Signed-off-by: Simon Glass > Reported-by: Bruce Monroe > Reported-by: Arie Haenel > Reported-by: Julien Lenoir Applied to u-boot/master, thanks! --

Re: [PATCH 3/8] test: Add vboot_evil implementation

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 05:08:07PM -0700, Simon Glass wrote: > Add a library which performs two different attacks on a FIT. > > Signed-off-by: Julien Lenoir > Signed-off-by: Bruce Monroe > Signed-off-by: Arie Haenel > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 2/8] fit: Don't allow verification of images with @ nodes

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 05:08:06PM -0700, Simon Glass wrote: > When searching for a node called 'fred', any unit address appended to the > name is ignored by libfdt, meaning that 'fred' can match 'fred@1'. This > means that we cannot be sure that the node originally intended is the one > that is

Re: [PATCH 1/8] fdt_region: Check for a single root node of the correct name

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 05:08:05PM -0700, Simon Glass wrote: > At present fdt_find_regions() assumes that the FIT is a valid devicetree. > If the FIT has two root nodes this is currently not detected in this > function, nor does libfdt's fdt_check_full() notice. Also it is possible > for the root

Re: [PATCH v2 1/3] cmd: mvebu: Implement the Marvell hw_info command

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 08:59:32PM +0100, Luka Kovacic wrote: > The hw_info command is implemented to enable parsing Marvell hw_info > formatted environments. This format is often used on Marvell Armada A37XX > based devices to store parameters like the board serial number, factory > MAC

[PATCH V2 2/5] mmc: meson_gx_mmc: use mmc_pwrseq instead of meson_mmc_pwrseq

2021-02-15 Thread Jaehoon Chung
Use mmc_pwrseq instead of meson_mmc_pwrseq. Signed-off-by: Jaehoon Chung Acked-by: Neil Armstrong --- Changelog on V2: - Add Neil's Acked-tag - Remove unused variable --- drivers/mmc/meson_gx_mmc.c | 45 +++--- 1 file changed, 3 insertions(+), 42 deletions(-)

[PATCH V2 1/5] mmc: pwrseq: add mmc-pwrseq file to provide a generic interface

2021-02-15 Thread Jaehoon Chung
Add mmc-pwrseq file to provide a generic interface. Signed-off-by: Jaehoon Chung --- Changelog on V2: - Remove "default y" in Kconfig --- drivers/mmc/Kconfig | 7 ++ drivers/mmc/Makefile | 1 + drivers/mmc/mmc-pwrseq.c | 51 include/mmc.h

[PATCH V2 0/5] Add mmc-pwrseq file to use common function

2021-02-15 Thread Jaehoon Chung
Some Socs need to use H/W power-reset before probing eMMC. Its function can be resued with same behavior. Changelog on V2: - Not enable CONFIG_MMC_PWRSEQ by default when CONFIG_PWRSEQ is enabled. - Remove unused variable in each drivers. Jaehoon Chung (5): mmc: pwrseq: add mmc-pwrseq file to

[PATCH V2 3/5] mmc: rockchip_dw_mmc: use mmc_pwrseq instead of rockchip_mmc_pwrseq

2021-02-15 Thread Jaehoon Chung
Use mmc_pwrseq instead of rockchip_mmc_pwrseq. Signed-off-by: Jaehoon Chung --- Changelog on V2: - Remove unused variable - Fix build error --- drivers/mmc/rockchip_dw_mmc.c | 42 +++ 1 file changed, 3 insertions(+), 39 deletions(-) diff --git

[PATCH V2 4/5] ARM: mach-meson: select MMC_PWRSEQ config

2021-02-15 Thread Jaehoon Chung
Before time, PWRSEQ is selected since below commit. commit 262d34363373 ("board: amlogic: select PWRSEQ for all amlogic platform") Select MMC_PWRSEQ config because of introducing CONFIG_MMC_PWRSEQ for only eMMC module. Signed-off-by: Jaehoon Chung --- arch/arm/mach-meson/Kconfig | 1 + 1 file

[PATCH V2 5/5] configs: enable CONFIG_MMC_PWRSEQ configuration

2021-02-15 Thread Jaehoon Chung
Enable CONFIG_MMC_PWRSEQ configuration about boards that is using rockchip_dw_mmc driver. Signed-off-by: Jaehoon Chung --- configs/chromebit_mickey_defconfig | 1 + configs/chromebook_bob_defconfig| 1 + configs/chromebook_jerry_defconfig | 1 + configs/chromebook_minnie_defconfig | 1 +

Re: [PATCH V2] nvme: Fix cache alignment

2021-02-15 Thread Bin Meng
Hi Marek, On Tue, Feb 16, 2021 at 3:16 AM Marek Vasut wrote: > > The various structures in the driver are already correctly padded and > cache aligned in memory, however the cache operations are called on > the structure sizes, which themselves might not be cache aligned. Add > the necessary

[PATCH 7/8] libfdt: Check for multiple/invalid root nodes

2021-02-15 Thread Simon Glass
It is possible to construct a devicetree blob with multiple root nodes. Update fdt_check_full() to check for this, along with a root node with an invalid name. CVE-2021-27097 Signed-off-by: Simon Glass Reported-by: Bruce Monroe Reported-by: Arie Haenel Reported-by: Julien Lenoir ---

[PATCH 8/8] image: Check for unit addresses in FITs

2021-02-15 Thread Simon Glass
Using unit addresses in a FIT is a security risk. Add a check for this and disallow it. CVE-2021-27138 Signed-off-by: Simon Glass Reported-by: Bruce Monroe Reported-by: Arie Haenel Reported-by: Julien Lenoir --- common/image-fit.c | 56 ++---

[PATCH 4/8] test: Add tests for the 'evil' vboot attacks

2021-02-15 Thread Simon Glass
Add tests to check that these two attacks are mitigated by recent patches. Signed-off-by: Simon Glass Reported-by: Bruce Monroe Reported-by: Arie Haenel Reported-by: Julien Lenoir --- test/py/tests/test_vboot.py | 93 ++--- 1 file changed, 65 insertions(+),

[PATCH 3/8] test: Add vboot_evil implementation

2021-02-15 Thread Simon Glass
Add a library which performs two different attacks on a FIT. Signed-off-by: Julien Lenoir Signed-off-by: Bruce Monroe Signed-off-by: Arie Haenel Signed-off-by: Simon Glass --- test/py/tests/vboot_evil.py | 485 1 file changed, 485 insertions(+) create

[PATCH 2/8] fit: Don't allow verification of images with @ nodes

2021-02-15 Thread Simon Glass
When searching for a node called 'fred', any unit address appended to the name is ignored by libfdt, meaning that 'fred' can match 'fred@1'. This means that we cannot be sure that the node originally intended is the one that is used. Disallow use of nodes with unit addresses. Update the forge

[PATCH 6/8] image: Add an option to do a full check of the FIT

2021-02-15 Thread Simon Glass
Some strange modifications of the FIT can introduce security risks. Add an option to check it thoroughly, using libfdt's fdt_check_full() function. Enable this by default if signature verification is enabled. CVE-2021-27097 Signed-off-by: Simon Glass Reported-by: Bruce Monroe Reported-by:

[PATCH 5/8] image: Adjust the workings of fit_check_format()

2021-02-15 Thread Simon Glass
At present this function does not accept a size for the FIT. This means that it must be read from the FIT itself, introducing potential security risk. Update the function to include a size parameter, which can be invalid, in which case fit_check_format() calculates it. For now no callers pass the

[PATCH 1/8] fdt_region: Check for a single root node of the correct name

2021-02-15 Thread Simon Glass
At present fdt_find_regions() assumes that the FIT is a valid devicetree. If the FIT has two root nodes this is currently not detected in this function, nor does libfdt's fdt_check_full() notice. Also it is possible for the root node to have a name even though it should not. Add checks for these

[PATCH 0/8] vboot: Correct vulnerabilities identified by Intel

2021-02-15 Thread Simon Glass
This series fixes some vulnerabilities in U-Boot identified by: Julien Lenoir Bruce Monroe Arie Haenel First problem - CVE ID - CVE-2021-27097 Reference URL - http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27097 Note this CVE ID will so reserved until a few

Re: [PATCH] mmc: pci: Fix Kconfig dependency

2021-02-15 Thread Jaehoon Chung
On 2/15/21 9:01 PM, Bin Meng wrote: > The PCI MMC driver depends on the generic MMC SDHCI driver, > otherwise it does not compile. > > Signed-off-by: Bin Meng Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > drivers/mmc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > >

Re: [PATCH] cmd: mmc: add mmc partboot

2021-02-15 Thread Jaehoon Chung
Hi Grygorii, On 2/15/21 10:04 PM, gr embeter wrote: > Hello Jaehoon, > > On Sun, 14 Feb 2021 at 23:08 Jaehoon Chung wrote: > >> Dear Grygorii, >> >> On 2/12/21 7:32 PM, grygorii tertychnyi wrote: >>> This patch allows to determine active boot partition in boot script: >>> >>> if mmc partboot

[PATCH v2 3/3] arm: mvebu: Initial ESPRESSOBin-Ultra board support

2021-02-15 Thread Luka Kovacic
Add initial support for the ESPRESSOBin-Ultra board from Globalscale Technologies, Inc. The board is based on the 64-bit dual-core Marvell Armada 3720 SoC. Peripherals: - 5 Gigabit Ethernet ports (WAN has PoE, up to 30W, Topaz 6341 switch) - RTC clock (PCF8563) - USB 3.0 port - USB 2.0 port

[PATCH v2 1/3] cmd: mvebu: Implement the Marvell hw_info command

2021-02-15 Thread Luka Kovacic
The hw_info command is implemented to enable parsing Marvell hw_info formatted environments. This format is often used on Marvell Armada A37XX based devices to store parameters like the board serial number, factory MAC addresses and some other information. These parameters are usually written to

[PATCH v2 2/3] arm: mvebu: mvebu_armada-37xx: Define the loadaddr environment variable

2021-02-15 Thread Luka Kovacic
Add the loadaddr U-Boot environment variable, as this is available in the stock Marvell U-Boot by default on Marvell Armada A37XX platforms. Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Robert Marko --- include/configs/mvebu_armada-37xx.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 0/3] Add support for the GST ESPRESSOBin-Ultra board

2021-02-15 Thread Luka Kovacic
This patchset adds initial support for the ESPRESSOBin-Ultra board from Globalscale Technologies, Inc. The board is based on the 64-bit dual-core Marvell Armada 3720 SoC. Peripherals: - 5 Gigabit Ethernet ports (WAN has PoE, up to 30W, Topaz 6341 switch) - RTC clock (PCF8563) - USB 3.0 port -

[PATCH V2] nvme: Fix cache alignment

2021-02-15 Thread Marek Vasut
The various structures in the driver are already correctly padded and cache aligned in memory, however the cache operations are called on the structure sizes, which themselves might not be cache aligned. Add the necessary rounding to fix this, which permits the nvme to work on arm64.

RE: [PATCH v5] dm: core: Add of_match_node helper function

2021-02-15 Thread Biju Das
Hi Simon, I have a discussion with Marek and as per him this patch is wrongly assigned to him in patchwork. This patch supposed to be picked up by you. I will rebase this patch to latest master and send it you. Regards, Biju > -Original Message- > From: Biju Das > Sent: 15 February

[PATCH 2/2] board: Add MT8183 pumpkin board support

2021-02-15 Thread Fabien Parent
Add the MT8183 pumpkin board support. Signed-off-by: Fabien Parent --- arch/arm/dts/Makefile | 1 + arch/arm/dts/mt8183-pumpkin.dts| 99 ++ arch/arm/mach-mediatek/Kconfig | 1 + board/mediatek/mt8183/Kconfig | 13

[PATCH 1/2] ARM: mediatek: Add MT8183 support

2021-02-15 Thread Fabien Parent
Add the MT8183 SoC support. Signed-off-by: Fabien Parent --- arch/arm/dts/mt8183.dtsi | 274 + arch/arm/mach-mediatek/Kconfig | 9 + arch/arm/mach-mediatek/Makefile| 1 + arch/arm/mach-mediatek/mt8183/Makefile | 3 +

[PATCH 3/3] configs: mt8516: use bootcmd from config_distro_bootcmd.h

2021-02-15 Thread Fabien Parent
Instead of redefining our own way to boot, let's just use config_distro_bootcmd.h. Signed-off-by: Fabien Parent --- include/configs/mt8516.h | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/include/configs/mt8516.h b/include/configs/mt8516.h index

[PATCH 2/3] board: mediatek: mt8516: init USB Ether for pumpkin board

2021-02-15 Thread Fabien Parent
Init USB Ether if CONFIG_USB_ETHER is enabled. Signed-off-by: Fabien Parent --- board/mediatek/mt8516/mt8516_pumpkin.c | 4 1 file changed, 4 insertions(+) diff --git a/board/mediatek/mt8516/mt8516_pumpkin.c b/board/mediatek/mt8516/mt8516_pumpkin.c index 37daf1c51b92..42f3863b92c3 100644

[PATCH 1/3] board: mediatek: rename pumpkin board into mt8516

2021-02-15 Thread Fabien Parent
More than one pumpkin board has been made with different MediaTek SoCs. Rename the pumpkin board to follow the naming convention of all other MediaTek boards and also to not be confusing when other pumpkin boards will be added in follow-up commits. Signed-off-by: Fabien Parent ---

[PATCH] virtio: fix off by one device id comparison

2021-02-15 Thread Vincent Stehlé
VIRTIO_ID_MAX_NUM is the largest device ID plus 1. Therefore a device id cannot be greater or equal to VIRTIO_ID_MAX_NUM. Fix the comparison accordingly. Fixes: 8fb49b4c7a82 ("dm: Add a new uclass driver for VirtIO transport devices") Signed-off-by: Vincent Stehlé Cc: Simon Glass Cc: Bin Meng

[PATCH] Azure: Rework SH / Renesas job

2021-02-15 Thread Tom Rini
Now that there is a single SuperH platform, rework the Azure job slightly. Azure build time limits mean that we need to split the world build up still. Make a single build job for the single Renesas SuperH platform as well as all of the ARM platforms from Renesas. Cc: Marek Vasut

Re: [PATCHv2] common: Drop asm/global_data.h from common header

2021-02-15 Thread Tom Rini
On Wed, Feb 03, 2021 at 09:19:51AM -0500, Tom Rini wrote: > From: Simon Glass > > Move this out of the common header and include it only where needed. In > a number of cases this requires adding "struct udevice;" to avoid adding > another large header or in other cases replacing / adding

Re: [PATCH 6/6] sh: Remove sh7763rdp board

2021-02-15 Thread Tom Rini
On Wed, Feb 10, 2021 at 12:51:26PM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM by the deadline of v2020.01 > and is missing other conversions which depend on this as well. Remove it. > > Cc: Nobuhiro Iwamatsu > Signed-off-by: Tom Rini Applied to u-boot/master,

Re: [PATCH 5/6] sh: Remove sh7757lcr board

2021-02-15 Thread Tom Rini
On Wed, Feb 10, 2021 at 12:51:25PM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM by the deadline of v2020.01 > and is missing other conversions which depend on this as well. Remove it. > > As this is the last SH4A board, remove that support as well. > > Cc: Marek

Re: [PATCH 4/6] sh: Remove sh7753evb board

2021-02-15 Thread Tom Rini
On Wed, Feb 10, 2021 at 12:51:24PM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM by the deadline of v2020.01 > and is missing other conversions which depend on this as well. Remove it. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 3/6] sh: Remove sh7752evb board

2021-02-15 Thread Tom Rini
On Wed, Feb 10, 2021 at 12:51:23PM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM by the deadline of v2020.01 > and is missing other conversions which depend on this as well. Remove it. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 2/6] sh: Remove r7780mp board

2021-02-15 Thread Tom Rini
On Wed, Feb 10, 2021 at 12:51:22PM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM by the deadline of v2020.01 > and is missing other conversions which depend on this as well. Remove it. > > Patch-cc: Nobuhiro Iwamatsu > Patch-cc: Nobuhiro Iwamatsu > Signed-off-by: Tom

Re: [PATCH 1/6] sh: Remove MigoR board

2021-02-15 Thread Tom Rini
On Wed, Feb 10, 2021 at 12:51:21PM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM by the deadline of v2020.01 > and is missing other conversions which depend on this as well. Remove it. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 13/16] ppc: Remove MPC8641HPCN board

2021-02-15 Thread Tom Rini
On Tue, Feb 09, 2021 at 09:42:54PM -0500, Tom Rini wrote: > This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The > deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI > requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove

Re: [PATCH 12/16] ppc: Remove MPC8610HPCD board

2021-02-15 Thread Tom Rini
On Tue, Feb 09, 2021 at 09:42:53PM -0500, Tom Rini wrote: > This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The > deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI > requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove

Re: [PATCH 11/16] ppc: Remove MPC8572DS board

2021-02-15 Thread Tom Rini
On Tue, Feb 09, 2021 at 09:42:52PM -0500, Tom Rini wrote: > This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The > deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI > requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove

Re: [PATCH 10/16] ppc: Remove MPC8544DS board

2021-02-15 Thread Tom Rini
On Tue, Feb 09, 2021 at 09:42:51PM -0500, Tom Rini wrote: > This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The > deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI > requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove

Re: [PATCH 24/25] arm: Remove db-88f6281-bp board

2021-02-15 Thread Tom Rini
On Tue, Feb 09, 2021 at 08:03:16AM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM_MMC by the deadline of > v2019.04, which is almost two years ago. In addition there are other DM > migrations it is also missing. Remove it. > > Cc: Chris Packham > Signed-off-by: Tom

Re: [PATCH 18/25] arm: Remove ls2080a_simu board

2021-02-15 Thread Tom Rini
On Tue, Feb 09, 2021 at 08:03:10AM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM_MMC by the deadline of > v2019.04, which is almost two years ago. In addition there are other DM > migrations it is also missing. Remove it. > > Cc: Prabhakar Kushwaha > Cc: Priyanka

Re: [PATCH 10/25] arm: Remove mx35pdk board

2021-02-15 Thread Tom Rini
On Tue, Feb 09, 2021 at 08:03:02AM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM_MMC by the deadline of > v2019.04, which is almost two years ago. In addition there are other DM > migrations it is also missing. Remove it. > > Cc: Stefano Babic > Signed-off-by: Tom

Re: [PATCH 07/25] arm: Remove apx4devkit board

2021-02-15 Thread Tom Rini
On Tue, Feb 09, 2021 at 08:02:59AM -0500, Tom Rini wrote: > This board has not been converted to CONFIG_DM_MMC by the deadline of > v2019.04, which is almost two years ago. In addition there are other DM > migrations it is also missing. Remove it. > > Cc: Lauri Hintsala > Signed-off-by: Tom

Re: [PATCH] Revert "fdtdec: Use CONFIG_IS_ENABLED in board_fdt_blob_setup()"

2021-02-15 Thread Tom Rini
On Sun, Feb 14, 2021 at 02:11:32PM -0500, Tom Rini wrote: > On Rockchip platforms we need this area of code in TPL, but there is no > TPL_SEPARATE_BSS symbol. > > This reverts commit 0a2aaab0b678fd1778ff2fc59d0770fc82995532. > > Reported-by: Markus Reichl > Reported-by: Jesper Schmitz

Re: old version of u-boot cannot read larger USB sticks

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 09:07:33AM -0500, Floyd Brown wrote: > I am stuck with a 2014.04-r0 u-boot source, and have an issue where USB > flash sticks 4 GB and greater cannot be read by u-boot - the device is not > detected when "usb reset" is run. > > USB hub found > 0 Storage Device(s) found >

Re: [BUG] [BISECT] rockchip: roc-pc-rk3399: TPL misses dtb

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 03:05:20PM +0100, Markus Reichl wrote: > With recent U-Boot and roc-pc-mezzanine-rk3399_defconfig > and booting from SPI flash I get: > > U-Boot TPL 2021.01-00884-g0a2aaab0b6 (Feb 15 2021 - 14:36:50) > Missing DTB > ### ERROR ### Please RESET the board ### > > Bisecting

old version of u-boot cannot read larger USB sticks

2021-02-15 Thread Floyd Brown
I am stuck with a 2014.04-r0 u-boot source, and have an issue where USB flash sticks 4 GB and greater cannot be read by u-boot - the device is not detected when "usb reset" is run. USB hub found 0 Storage Device(s) found This platform is based on an am335x SOM, and the manufacturer has not

[BUG] [BISECT] rockchip: roc-pc-rk3399: TPL misses dtb

2021-02-15 Thread Markus Reichl
With recent U-Boot and roc-pc-mezzanine-rk3399_defconfig and booting from SPI flash I get: U-Boot TPL 2021.01-00884-g0a2aaab0b6 (Feb 15 2021 - 14:36:50) Missing DTB ### ERROR ### Please RESET the board ### Bisecting points to: commit 0a2aaab0b678fd1778ff2fc59d0770fc82995532 Author: Simon Glass

Re: [PATCHv5 2/6] cmd: SCP03: enable and provision command

2021-02-15 Thread Igor Opaniuk
On Sun, Feb 14, 2021 at 5:27 PM Jorge Ramirez-Ortiz wrote: > > Enable and provision the SCP03 keys on a TEE controlled secured elemt > from the U-Boot shell. > > Executing this command will generate and program new SCP03 encryption > keys on the secure element NVM. > > Depending on the TEE

Re: [PATCHv5 2/6] cmd: SCP03: enable and provision command

2021-02-15 Thread Igor Opaniuk
Hi Jorge, On Sun, Feb 14, 2021 at 5:18 PM Jorge Ramirez-Ortiz wrote: > > Enable and provision the SCP03 keys on a TEE controlled secured elemt > from the U-Boot shell. > > Executing this command will generate and program new SCP03 encryption > keys on the secure element NVM. > > Depending on the

Re: [PATCH 2/4] mx53loco: Convert to driver model

2021-02-15 Thread Tom Rini
On Sun, Feb 14, 2021 at 03:58:56PM -0300, Fabio Estevam wrote: > On Sun, Feb 14, 2021 at 11:26 AM Tom Rini wrote: > > > Where is something missing for SATA support? With DM enabled, you can > > enable AHCI and BLK and DWC_AHSATA is already converted. Is there > > some i.MX specific work

Re: [PATCH 4/4] mx51evk: Add myself as maintainer

2021-02-15 Thread Tom Rini
On Mon, Feb 15, 2021 at 08:58:18AM -0300, Fabio Estevam wrote: > I would like to help supporting this board, so add myself > as a maintainer. > > Signed-off-by: Fabio Estevam > --- > board/freescale/mx51evk/MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH] cmd: mmc: add mmc partboot

2021-02-15 Thread gr embeter
Hello Jaehoon, On Sun, 14 Feb 2021 at 23:08 Jaehoon Chung wrote: > Dear Grygorii, > > On 2/12/21 7:32 PM, grygorii tertychnyi wrote: > > This patch allows to determine active boot partition in boot script: > > > > if mmc partboot ${mmcdev} 2; then > > echo "booted from eMMC boot1 partition"

STM32MP157 boot from Recovery USB

2021-02-15 Thread gianluca
Hello list! Thank you for let me adding to this Mailing List! I am designing a custom board with a STM32MP157 (as the Evaluation Board), but without any USB nor microSD connectors. My concerns are about to load FSBL and SSBL from USB (with a sort of extension cable from PCB to PC into a USB

[PATCH] vexpress64_fvp: Set DRAM to 4G to match with kernel devicetree

2021-02-15 Thread Diego Sueiro
Currently, the kernel devicetree is setting the DRAM size to ~4G. Signed-off-by: Diego Sueiro --- configs/vexpress_aemv8a_semi_defconfig | 2 +- include/configs/vexpress_aemv8a.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/vexpress_aemv8a_semi_defconfig

[PATCH] mmc: pci: Fix Kconfig dependency

2021-02-15 Thread Bin Meng
The PCI MMC driver depends on the generic MMC SDHCI driver, otherwise it does not compile. Signed-off-by: Bin Meng --- drivers/mmc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index f8ea921..3adee0a 100644 --- a/drivers/mmc/Kconfig +++

[PATCH 2/4] imx51-babbage: Import devicetree files from Linux

2021-02-15 Thread Fabio Estevam
Import the imx51-babbage devicetree files from Linux kernel version 5.11-rc7. This is in preparation for converting the mx51evk_defconfig target to driver model. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx51-babbage.dts | 726 +++ arch/arm/dts/imx51-pinfunc.h

[PATCH 4/4] mx51evk: Add myself as maintainer

2021-02-15 Thread Fabio Estevam
I would like to help supporting this board, so add myself as a maintainer. Signed-off-by: Fabio Estevam --- board/freescale/mx51evk/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/mx51evk/MAINTAINERS b/board/freescale/mx51evk/MAINTAINERS index

[PATCH 3/4] mx51evk: Convert to driver model

2021-02-15 Thread Fabio Estevam
Make the conversion to driver model as it is mandatory. Tested booting the Linux kernel from the SD card. Signed-off-by: Fabio Estevam --- arch/arm/dts/Makefile | 3 + board/freescale/mx51evk/mx51evk.c | 186 +- configs/mx51evk_defconfig | 19

[PATCH 1/4] mmc: fsl_esdhc_imx: Add a compatible for i.MX51

2021-02-15 Thread Fabio Estevam
Add a compatible for i.MX51 so that i.MX51 can use this driver via driver model. Signed-off-by: Fabio Estevam --- drivers/mmc/fsl_esdhc_imx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 8ac859797f04..827a6f113f3b 100644 ---

Re: [PATCH v2] sunxi: support boot console on uart1 for sun8i

2021-02-15 Thread Andre Przywara
On Mon, 15 Feb 2021 00:19:58 +0100 Tobias Schramm wrote: Hi, > The A23, A33, H3, H5, A83T, V3 and Sochip S3 sun8i SoCs can mux uart1 on > GPIOs PG6 and PG7. This patch adds support for using uart1 on those pins > as boot console. > > Signed-off-by: Tobias Schramm Thanks for the changes!

Re: [PATCH] virtio: fix off by one device id comparison

2021-02-15 Thread Bin Meng
On Mon, Feb 15, 2021 at 4:24 PM Vincent Stehlé wrote: > > VIRTIO_ID_MAX_NUM is the largest device ID plus 1. Therefore a device id > cannot be greater or equal to VIRTIO_ID_MAX_NUM. Fix the comparison > accordingly. > > Fixes: 8fb49b4c7a82 ("dm: Add a new uclass driver for VirtIO transport >

[PATCH v3 5/5] net: gem: Enable ethernet rx clock for versal

2021-02-15 Thread Michal Simek
From: T Karthik Reddy Enable rx clock along with tx clock for versal platform. Use compatible data to enable/disable clocks in the driver. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek Reviewed-by: Ramon Fried --- Changes in v3: - Fix Ramon's tag Changes in v2: - Use

[PATCH v3 4/5] i2c: i2c_cdns: Enable i2c clock

2021-02-15 Thread Michal Simek
From: T Karthik Reddy Enable i2c controller clock from driver probe function by calling clk_enable(). Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek Reviewed-by: Heiko Schocher --- (no changes since v1) drivers/i2c/i2c-cdns.c | 7 +++ 1 file changed, 7 insertions(+) diff

[PATCH v3 3/5] clk: versal: Add support to enable clocks

2021-02-15 Thread Michal Simek
From: T Karthik Reddy Add clock enable functionality in versal clock driver to enable clocks from peripheral drivers using clk_ops. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- (no changes since v2) Changes in v2: - change patch possition drivers/clk/clk_versal.c | 11

[PATCH v3 2/5] clk: zynqmp: Add support to enable clocks

2021-02-15 Thread Michal Simek
From: T Karthik Reddy Add clock enable functionality in zynqmp clock driver to enable clocks from peripheral drivers using clk_ops. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- (no changes since v1) drivers/clk/clk_zynqmp.c | 49 1

[PATCH v3 1/5] clk: zynq: Add dummy clock enable function

2021-02-15 Thread Michal Simek
A lot of Xilinx drivers are checking -ENOSYS which means that clock driver doesn't have enable function. Remove this checking from drivers and create dummy enable function as was done for clk_fixed_rate driver by commit 6bf6d81c1112 ("clk: fixed_rate: add dummy enable() function"). Signed-off-by:

[PATCH v3 0/5] clk: Add support to enable clocks

2021-02-15 Thread Michal Simek
Hi, Add support to enable clocks using clock subsystem ops for zynqmp & versal platforms. Enable rx clock in ethernet driver for versal platform. Add clock enable feature in i2c-cdns driver. Thanks, Karthik, Michal Changes in v3: - Enable it for SPL too. - Fix Ramon's tag Changes in v2: - New

[PATCH] configs: fsl: move via specific defines to Kconfig

2021-02-15 Thread Rajesh Bhagat
Moves below via specific defines to Kconfig: CONFIG_FSL_VIA Signed-off-by: Rajesh Bhagat --- arch/powerpc/cpu/mpc85xx/Kconfig | 6 ++ include/configs/MPC8541CDS.h | 2 -- include/configs/MPC8548CDS.h | 2 -- include/configs/MPC8555CDS.h | 2 --

RE: [PATCH v2] doc: board: freescale: imx8mp_evk: update to newer versions and change ATF_LOAD_ADDR

2021-02-15 Thread ZHIZHIKIN Andrey
Hello Peter, > -Original Message- > From: Peter Bergin > Sent: Sunday, February 14, 2021 8:19 PM > To: u-boot@lists.denx.de > Cc: Peter Bergin ; ZHIZHIKIN Andrey > > Subject: [PATCH v2] doc: board: freescale: imx8mp_evk: update to newer > versions and change ATF_LOAD_ADDR > > > Update

RE: [PATCH v5] dm: core: Add of_match_node helper function

2021-02-15 Thread Biju Das
Hi All, Gentle remainder. Are we happy with this patch[1]? Not sure who needs to merge this patch. Currently this patch has been delegated to Marek and is reviewed by Simon. [1] https://patchwork.ozlabs.org/project/uboot/patch/20210116124042.24007-1-biju.das...@bp.renesas.com/ Regards, Biju