[PATCH v3 2/4] apalis_t30: add update_uboot wrapper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Create an proper tegra image: $ cbootimage -s tegra30 apalis_t30.img.cfg apalis_t30.img Flash in U-boot shell: > tftpboot ${loadaddr} ${board_name}/${board_name}.img > run update_uboot

[PATCH v3 1/4] apalis-tk1: add update_uboot wrapper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Create an proper tegra image: $ cbootimage -s tegra124 apalis-tk1.img.cfg apalis-tk1.img Flash in U-boot shell: > tftpboot ${loadaddr} ${board_name}/${board_name}.img > run update_uboot

[PATCH v3 0/4] This patch series introduces universtal update_uboot

2020-03-27 Thread Igor Opaniuk
wrapper that helps to update U-Boot image on internal storage (eMMC/NAND). Example of usage: > tftpboot ${loadaddr} ${board_name}/${board_name}.img > run update_uboot v3: - No changes v2: - No changes Igor Opaniuk (4): apalis-tk1: add update_uboot wrapper apalis_t30: add update_uboot

[PATCH v3 3/4] colibri_t20: add update_uboot wrapper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage(NAND). Create an proper tegra image: $ cbootimage -s tegra20 colibri_t20-512-v12-nand.img.cfg colibri_t20.img Flash in U-boot shell: > tftpboot ${loadaddr}

[PATCH v3 4/4] colibri_t30: add update_uboot wrapper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Create an proper tegra image: $ cbootimage -s tegra30 colibri_t30.img.cfg colibri_t30.img Flash in U-boot shell: > tftpboot ${loadaddr} ${board_name}/${board_name}.img > run

[PATCH v2 00/13] bugfix/improvements for IMX-based modules

2020-03-27 Thread Igor Opaniuk
1. Enable relocation of fdt and initrd for all Toradex modules; 2. Add nfsboot wrapper to env for Verdin i.MX8M Mini 3. i.MX8M Mini EVK/Verdin: adjust dram size in case bl32 is used 4. Set gpr1 ENET_CLK_SEL for Colibri iMX6S/DL, which fixes PHY negotiation issues. 5. Colibri i.MX8QXP/QM pd_dma

[PATCH v2 05/13] colibri_imx6: set gpr1 ENET_CLK_SEL

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk This fixes the issue when PHY auto negotiation never completes. Fixes: 431cd76dd8("colibri_imx6: migrate to DM_ETH") Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- board/toradex/colibri_imx6/colibri_imx6.c | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH v2 07/13] imx8mm_evk: adjust dram size in case bl32 is used

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Adjust DRAM size in case BL32 secure payload is loaded (OP-TEE/Trusty), so during MMU initialization U-Boot won't touch this mem area. BL32 is loaded to the end of DRAM, bl32 payload size is read from rom_pointer[1]. This relates to the issue described in 59efa6b52b("imx8m:

[PATCH v2 01/13] ARM: dts: imx8qm-apalis: replace dm-spl with dm-pre-proper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node) { /*

[PATCH v2 02/13] ARM: dts: imx8qxp-colibri: replace dm-spl with dm-pre-proper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node) { /*

[PATCH v2 03/13] ARM: dts: imx8qm-apalis: dm-pre-proper for pd_dma nodes

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass

[PATCH v2 10/13] colibri_imx7: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off-by: Igor Opaniuk Reviewed-by:

[PATCH v2 12/13] colibri-imx6ull: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off-by: Igor Opaniuk Reviewed-by:

[PATCH v2 04/13] ARM: dts: imx8qxp-colibri: dm-pre-proper for pd_dma nodes

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass

[PATCH v2 06/13] verdin-imx8mm: adjust dram size in case bl32 is used

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Adjust DRAM size in case BL32 secure payload is loaded (OP-TEE/Trusty), so during MMU initialization U-Boot won't touch this mem area. BL32 is loaded to the end of DRAM, bl32 payload size is read from rom_pointer[1]. This relates to the issue described in 59efa6b52b("imx8m:

[PATCH v2 08/13] verdin-imx8mm: add nfsboot wrapper to env

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add nfsboot wrapper to env to boot Linux kernel from TFTP/NFS. Signed-off-by: Igor Opaniuk --- include/configs/verdin-imx8mm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/verdin-imx8mm.h b/include/configs/verdin-imx8mm.h index

[PATCH v2 13/13] colibri_imx6: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off-by: Igor Opaniuk Reviewed-by:

Re: [PATCH 10/16] efi_loader: UEFI variable persistence

2020-03-27 Thread Heinrich Schuchardt
On 3/27/20 9:07 AM, Punit Agrawal wrote: Heinrich Schuchardt writes: Persist non-volatile UEFI variables in a file on the EFI system partition. The file is written: * whenever a non-volatile UEFI variable is changed after initialization of the UEFI sub-system. * upon ExitBootServices()

[PATCH v2 11/13] apalis_imx6: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off-by: Igor Opaniuk Reviewed-by:

[PATCH v2 09/13] colibri_vf: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off-by: Igor Opaniuk Reviewed-by:

Re: [PATCH 13/16] efi_loader: memory buffer for variables

2020-03-27 Thread Heinrich Schuchardt
On 3/27/20 9:09 AM, Punit Agrawal wrote: Heinrich Schuchardt writes: Saving UEFI variable as encoded U-Boot environment variables does not allow support at runtime. Provide functions to manage a memory buffer with UEFI variables. Signed-off-by: Heinrich Schuchardt ---

Re: [PATCH v2 08/13] verdin-imx8mm: add nfsboot wrapper to env

2020-03-27 Thread Oleksandr Suvorov
On Fri, Mar 27, 2020 at 12:30 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add nfsboot wrapper to env to boot Linux kernel from TFTP/NFS. > > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > include/configs/verdin-imx8mm.h | 6 ++ > 1 file changed, 6

Re: [PATCH v2 07/13] imx8mm_evk: adjust dram size in case bl32 is used

2020-03-27 Thread Oleksandr Suvorov
On Fri, Mar 27, 2020 at 12:29 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Adjust DRAM size in case BL32 secure payload is loaded (OP-TEE/Trusty), > so during MMU initialization U-Boot won't touch this mem area. > > BL32 is loaded to the end of DRAM, bl32 payload size is read from >

Re: [PATCH v3 3/4] colibri_t20: add update_uboot wrapper

2020-03-27 Thread Oleksandr Suvorov
On Fri, Mar 27, 2020 at 12:16 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add universal update_uboot wrapper that helps to update > U-Boot image on internal storage(NAND). > > Create an proper tegra image: > $ cbootimage -s tegra20 colibri_t20-512-v12-nand.img.cfg colibri_t20.img > > Flash

Re: [PATCH v3 2/4] apalis_t30: add update_uboot wrapper

2020-03-27 Thread Oleksandr Suvorov
On Fri, Mar 27, 2020 at 12:16 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add universal update_uboot wrapper that helps to update > U-Boot image on internal storage. > > Create an proper tegra image: > $ cbootimage -s tegra30 apalis_t30.img.cfg apalis_t30.img > > Flash in U-boot shell: > >

Re: [PATCH v3 4/4] colibri_t30: add update_uboot wrapper

2020-03-27 Thread Oleksandr Suvorov
On Fri, Mar 27, 2020 at 12:16 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add universal update_uboot wrapper that helps to update > U-Boot image on internal storage. > > Create an proper tegra image: > $ cbootimage -s tegra30 colibri_t30.img.cfg colibri_t30.img > > Flash in U-boot shell: >

Re: [PATCH V3] ARM: dts: stm32: Add KS8851-16MLL ethernet on FMC2

2020-03-27 Thread Patrice CHOTARD
Hi Marek You have forgotten to take into account some of my previous remarks on V2 On 3/26/20 4:58 PM, Marek Vasut wrote: > Add DT entries, Kconfig entries and board-specific entries to configure > FMC2 bus and make KS8851-16MLL on that bus accessible to U-Boot. > > Signed-off-by: Marek Vasut >

Re: [PATCH v7 14/22] riscv: Clear pending interrupts before enabling IPIs

2020-03-27 Thread Rick Chen
> On some platforms (k210), the previous stage bootloader may have not > cleared pending IPIs before transferring control to U-Boot. This can cause > race conditions, as multiple harts all attempt to initialize the IPI > controller at once. This patch clears IPIs before enabling them, ensuring >

Re: [PATCH v7 15/22] riscv: Clean up IPI initialization code

2020-03-27 Thread Rick Chen
> The previous IPI code initialized the device whenever the first call was > made to a riscv_*_ipi function. This made it difficult to determine when > the IPI device was initialized. This patch introduces a new function > riscv_init_ipi. It is called once during arch_cpu_init_dm. Before this >

RE: [PATCH v2 00/14] net: ldpaa_eth: transition to CONFIG_DM_ETH

2020-03-27 Thread Ioana Ciornei
> Subject: [PATCH v2 00/14] net: ldpaa_eth: transition to CONFIG_DM_ETH > > This patch set targets to add support for CONFIG_DM_ETH in DPAA2 based > SoCs. We start by adding a DM MDIO driver for the MDIO interface found on the > mEMAC. The next two patches start the transition of the ldpaa_eth

Re: [PATCH v3 1/4] apalis-tk1: add update_uboot wrapper

2020-03-27 Thread Oleksandr Suvorov
On Fri, Mar 27, 2020 at 12:16 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add universal update_uboot wrapper that helps to update > U-Boot image on internal storage. > > Create an proper tegra image: > $ cbootimage -s tegra124 apalis-tk1.img.cfg apalis-tk1.img > > Flash in U-boot shell: >

Re: [PATCH] arm: dts: rockchip: rk3399-roc-pc: Enable FE1.1 USB 2.0 HUB on roc-rk3399-pc

2020-03-27 Thread Jagan Teki
Hi Markus and Levin, On Wed, Mar 25, 2020 at 9:08 PM wrote: > > From: Suniel Mahesh > > roc-rk3399-pc has an FE1.1 USB 2.0 HUB which connects two USB ports > (HOST1 and HOST2). For end devices to work we need to enable USB hub > so that HOST detects there presence and enumerates them

Re: [PATCH 10/16] efi_loader: UEFI variable persistence

2020-03-27 Thread Punit Agrawal
Heinrich Schuchardt writes: > Persist non-volatile UEFI variables in a file on the EFI system partition. > > The file is written: > > * whenever a non-volatile UEFI variable is changed after initialization > of the UEFI sub-system. > * upon ExitBootServices() I might be missing something but

[PATCH RESEND] arm: dts: agilex: Enable QSPI

2020-03-27 Thread Ley Foon Tan
Enable QSPI for Agilex SoC devkit. Signed-off-by: Ley Foon Tan --- arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi b/arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi index

Re: [PATCH 1/3] Dockerfile: Install riscv32 toolchain from kernel.org

2020-03-27 Thread Bin Meng
Hi Tom, On Fri, Mar 27, 2020 at 10:00 AM Tom Rini wrote: > > On Fri, Mar 27, 2020 at 09:57:47AM +0800, Bin Meng wrote: > > Hi Tom, > > > > On Fri, Mar 27, 2020 at 12:14 AM Tom Rini wrote: > > > > > > On Thu, Mar 26, 2020 at 09:04:52AM -0700, Bin Meng wrote: > > > > > > > This is required to

Re: [PATCH 04/16] part: detect EFI system partition

2020-03-27 Thread Punit Agrawal
Hi Heinrich, Heinrich Schuchardt writes: > Up to now for MBR and GPT partitions the info field 'bootable' was set to 1 > if either the partition was an EFI system partition or the bootable flag > was set. > > Turn info field 'bootable' into a bit mask with separate bits for bootable > and EFI

Re: [PATCH 5/6] rockchip: dts: rk3328: Sync device tree files from Linux

2020-03-27 Thread Kever Yang
On 2020/3/27 下午12:41, Chen-Yu Tsai wrote: From: Chen-Yu Tsai This syncs rk3328 device tree files from the Linux kernel next-20200324. The last commit to touch these files is: b2411befed60 ("arm64: dts: add bus to rockchip amba nodenames") Additional changes not yet in the Linux kernel

Re: [PATCH 2/6] rockchip: dts: rk3328-evb: Move gmac2io related nodes to -u-boot.dtsi

2020-03-27 Thread Kever Yang
On 2020/3/27 下午12:41, Chen-Yu Tsai wrote: From: Chen-Yu Tsai The device tree file for rk3328-evb in the Linux kernel does not have gmac2io enabled. Instead, gmac2phy is enabled, but that is not supported in U-boot. Move the gmac2io related nodes to rk3328-evb-u-boot.dtsi to preserve the

Re: [PATCH 3/6] dt-bindings: clock: rk3328: sync from upstream Linux kernel

2020-03-27 Thread Kever Yang
On 2020/3/27 下午12:41, Chen-Yu Tsai wrote: From: Chen-Yu Tsai This syncs the rk3328 clock header file from Linux kernel next-20200324, to support newer hardware blocks when syncing the device tree files. The last non-merge commit to touch it was 0dc14b013f79 ("clk: rockchip: add clock

Re: [PATCH 1/6] rockchip: dts: rk3328-evb: Move vcc5v0-host-xhci-drv to -u-boot.dtsi

2020-03-27 Thread Kever Yang
Hi ChenYu, On 2020/3/27 下午12:41, Chen-Yu Tsai wrote: From: Chen-Yu Tsai USB 3.0 is only supported in U-boot, not in the Linux kernel where the device tree files are ultimately synced from. While the xhci node was moved, the external vbus regulator was not. Move it as well. Fixes:

Re: [PATCH 4/6] dt-bindings: power: rk3328-power: sync from upstream Linux kernel

2020-03-27 Thread Kever Yang
On 2020/3/27 下午12:41, Chen-Yu Tsai wrote: From: Chen-Yu Tsai This syncs the rk3328 power domain header file from Linux kernel next-20200324, to support newer hardware blocks when syncing the device tree files. The last non-merge commit to touch it was b24413180f56 ("License cleanup:

Re: [PATCH 1/1] vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.

2020-03-27 Thread Kristian Amlie
On 27/03/2020 06:44, Heinrich Schuchardt wrote: On 3/27/20 2:39 AM, Tom Rini wrote: On Tue, Feb 25, 2020 at 06:22:16PM +0100, Kristian Amlie wrote: EFI was disabled in f95b8a4b5f64f because of the missing DTB file, and indeed, the DTB file is required to load recent versions of GRUB (2.04)

Re: [PATCH 04/16] part: detect EFI system partition

2020-03-27 Thread Heinrich Schuchardt
On 3/27/20 7:35 AM, Punit Agrawal wrote: Hi Heinrich, Heinrich Schuchardt writes: Up to now for MBR and GPT partitions the info field 'bootable' was set to 1 if either the partition was an EFI system partition or the bootable flag was set. Turn info field 'bootable' into a bit mask with

Re: [PATCH 6/6] rockchip: rk3328: Add support for ROC-RK3328-CC board

2020-03-27 Thread Kever Yang
On 2020/3/27 下午12:41, Chen-Yu Tsai wrote: From: Chen-Yu Tsai The ROC-RK3328-CC from Firefly and Libre Computer Project is a credit card size development board based on the Rockchip RK3328 SoC, with: - 1/2/4 GB DDR4 DRAM - eMMC connector for optional module - micro SD card slot -

Re: [PATCH 13/16] efi_loader: memory buffer for variables

2020-03-27 Thread Punit Agrawal
Heinrich Schuchardt writes: > Saving UEFI variable as encoded U-Boot environment variables does not allow > support at runtime. > > Provide functions to manage a memory buffer with UEFI variables. > > Signed-off-by: Heinrich Schuchardt > --- > include/efi_variable.h | 16 ++ >

[PATCH v2 1/1] cmd: blkls: Add blkls command

2020-03-27 Thread Niel Fourie
Add a command to print a list of available block device drivers, and for each, the list of known block devices. Signed-off-by: Niel Fourie Cc: Simon Glass Cc: Stefan Roese --- Changes in v2: - Removed legacy block device variant of blkls and its test. - Handle return value of uclass_get(). -

[PATCH 0/2] test/py: vboot: fix signature check on config node

2020-03-27 Thread Philippe Reynes
The signature check of config node is broken when used on fit with padding. We didn't see it before because this case is not covered by vboot test. When check the signature for a config nde, u-boot uses all the properties of the node referenced in the config node, except the property data. When

[PATCH 1/2] test/py: vboot: add a test to check fit signature on fit with padding

2020-03-27 Thread Philippe Reynes
The pytest vboot does all his tests on fit without padding. We add the same tests on fit with padding. Signed-off-by: Philippe Reynes --- test/py/tests/test_vboot.py | 42 -- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git

[PATCH 2/2] rsa: sig: fix config signature check for fit with padding

2020-03-27 Thread Philippe Reynes
The signature check on config node is broken on fit with padding. To compute the signature for config node, u-boot compute the signature on all properties of requested node for this config, except for the property "data". But, when padding is used for binary in a fit, there isn't a property "data"

Re: [PATCH 2/3] mips: Start using ldflags-y for 32/64bit LDFLAGS

2020-03-27 Thread Daniel Schwierzeck
Hi Tom, Am 27.03.20 um 14:52 schrieb Tom Rini: > To prepare to update our Kbuild logic, start switching some of our cases > of adding different bit/endian linker flags via ldflags-y > > Cc: Daniel Schwierzeck > Signed-off-by: Tom Rini > --- > arch/mips/config.mk | 12 ++-- > 1 file

Re: [PATCH 2/3] mips: Start using ldflags-y for 32/64bit LDFLAGS

2020-03-27 Thread Tom Rini
On Fri, Mar 27, 2020 at 04:08:16PM +0100, Daniel Schwierzeck wrote: > Hi Tom, > > Am 27.03.20 um 14:52 schrieb Tom Rini: > > To prepare to update our Kbuild logic, start switching some of our cases > > of adding different bit/endian linker flags via ldflags-y > > > > Cc: Daniel Schwierzeck > >

RE: STM32MP1 boot slow

2020-03-27 Thread Patrick DELAUNAY
Hi, > From: Simon Glass > Sent: jeudi 26 mars 2020 17:20 > > Hi Patrick, > > On Wed, 25 Mar 2020 at 09:57, Patrick DELAUNAY > wrote: > > > > Hi, > > > > > From: Marek Vasut > > > Sent: mercredi 25 mars 2020 00:39 > > > > > > Hi, > > > > > > I was looking at the STM32MP1 boot time and I

Re: [PATCH 2/3] mips: Start using ldflags-y for 32/64bit LDFLAGS

2020-03-27 Thread Tom Rini
On Fri, Mar 27, 2020 at 04:08:16PM +0100, Daniel Schwierzeck wrote: > Hi Tom, > > Am 27.03.20 um 14:52 schrieb Tom Rini: > > To prepare to update our Kbuild logic, start switching some of our cases > > of adding different bit/endian linker flags via ldflags-y > > > > Cc: Daniel Schwierzeck > >

Re: [PATCH 0/2] drivers/rng: add Amlogic hardware RNG driver

2020-03-27 Thread Heinrich Schuchardt
On 3/27/20 2:30 PM, Neil Armstrong wrote: On 04/03/2020 02:17, Heinrich Schuchardt wrote: The first patch simplifies the Kconfig for hardware RNG drivers and enables the Sandbox RNG driver for all Sandbox instances. The second introduces a hardware random number generator driver for Amlogic

Re: [PATCH 1/3] Dockerfile: Install riscv32 toolchain from kernel.org

2020-03-27 Thread Tom Rini
On Fri, Mar 27, 2020 at 02:05:55PM +0800, Bin Meng wrote: > Hi Tom, > > On Fri, Mar 27, 2020 at 10:00 AM Tom Rini wrote: > > > > On Fri, Mar 27, 2020 at 09:57:47AM +0800, Bin Meng wrote: > > > Hi Tom, > > > > > > On Fri, Mar 27, 2020 at 12:14 AM Tom Rini wrote: > > > > > > > > On Thu, Mar 26,

Re: [PATCH RESEND] arm: dts: agilex: Enable QSPI

2020-03-27 Thread Marek Vasut
On 3/27/20 9:24 AM, Ley Foon Tan wrote: > Enable QSPI for Agilex SoC devkit. > > Signed-off-by: Ley Foon Tan > --- > arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi | 4 > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi >

u-boot environment on x86

2020-03-27 Thread Kim Bøndergaard
I'm struggling with a u-boot as an uefi overlay on x86 (currently Qemu). Basically it is working, but I'm now considering how /where to store my u-boot environment. I need to have it stored in a device being accessible also from my Linux being installed by u-boot. Anyone having had similar

[RFC PATCH] arch: x86: apl: Read FSP-M configuration from device-tree

2020-03-27 Thread Bernhard Messerklinger
Move FSP-M configuration to the device-tree like it's already done for other SoCs (Baytaril). Signed-off-by: Bernhard Messerklinger --- arch/x86/cpu/apollolake/fsp_m.c | 337 +++--- arch/x86/dts/chromebook_coral.dts | 35 ++

Re: [PATCH v3 0/6] arm64: meson: add libretech-pc support

2020-03-27 Thread Neil Armstrong
On 05/03/2020 12:12, Jerome Brunet wrote: > Add libretech PC platform support. This platform comes in 2 variants, > one with the s905d and the other s912. > > While working on these boards, I've found a problem related the mmc > clock. In some cases, the ROM code will leave the mmc clocks in such

Re: [PATCH] arm: dts: rockchip: rk3399-roc-pc: Enable FE1.1 USB 2.0 HUB on roc-rk3399-pc

2020-03-27 Thread Markus Reichl
Hi Jagan, My boards are -V1.0-A 2018-07-12. With this patch below, both HOST1 and HOST2 (and of course HOST0) detect an USB stick in current U-Boot. Without this patch below, only HOST0 detects an USB stick. I suspect, your HOST2 HW is broken. Gruß, -- Markus Am 27.03.20 um 10:43 schrieb

Re: [Patch V4 3/3] configs: rpi_4 : enable SDHCI_SDMA config

2020-03-27 Thread Matthias Brugger
Hi Jaehoon, On 27/03/2020 05:08, Jaehoon Chung wrote: > Enable SDHCI_SDMA configuration. > > Signed-off-by: Jaehoon Chung > Reviewed-by: Peng Fan > Reviewed-by: Minkyu Kang > --- > configs/rpi_4_32b_defconfig | 1 + > configs/rpi_4_defconfig | 1 + > 2 files changed, 2 insertions(+) >

[PATCH 2/3] mips: Start using ldflags-y for 32/64bit LDFLAGS

2020-03-27 Thread Tom Rini
To prepare to update our Kbuild logic, start switching some of our cases of adding different bit/endian linker flags via ldflags-y Cc: Daniel Schwierzeck Signed-off-by: Tom Rini --- arch/mips/config.mk | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 1/3] riscv: Start using ldflags-y for 32/64bit LDFLAGS

2020-03-27 Thread Tom Rini
To prepare to update our Kbuild logic, start switching some of our cases of adding different bit/endian linker flags via ldflags-y Cc: Rick Chen Signed-off-by: Tom Rini --- arch/riscv/config.mk | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/riscv/config.mk

[PATCH 3/3] kconfig / kbuild: Re-sync with Linux 4.19

2020-03-27 Thread Tom Rini
Align Kconfig and Kbuild logic to Linux 4.19 release with minimal impact on files outside of this scope. Our previous Kconfig sync was done by commit 5972ff077e0f ("kconfig / kbuild: re-sync with Linux 4.18"). In this particular re-sync in order to keep clang support working a number of related

[RFC PATCH v2] arch: x86: apl: Read FSP-M configuration from device-tree

2020-03-27 Thread Bernhard Messerklinger
Move FSP-M configuration to the device-tree like it's already done for other SoCs (Baytaril). Signed-off-by: Bernhard Messerklinger --- With this patch I moved the fsp-m configuration to the device-tree based on the baytrail boards. I have tried to build it so that only entries that differ from

Re: [PATCH 0/2] drivers/rng: add Amlogic hardware RNG driver

2020-03-27 Thread Neil Armstrong
On 04/03/2020 02:17, Heinrich Schuchardt wrote: > The first patch simplifies the Kconfig for hardware RNG drivers and enables > the Sandbox RNG driver for all Sandbox instances. > > The second introduces a hardware random number generator driver for Amlogic > SOCs. This second patch had been sent

Re: Enable USB host controller on Odroid-C2

2020-03-27 Thread Neil Armstrong
Hi, On 18/08/2019 15:42, Beniamino Galvani wrote: > Hi, > > these two patches enable the USB host controller on Odroid-C2. The > first patch adds a PHY driver; the second one enables the necessary > configuration options and updates the device tree. > > Note that the DWC2 driver currently does

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

2020-03-27 Thread Tom Rini
ory at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20200327 > > for you to fetch changes up to e5a405583f5ce9576c5084a178622e2fdd49cb23: > > rockchip: mkimage: Use an existing macro instead of a decimal value > (2020-03-

Re: [PATCH v3 1/8] tool: Move ALIGN_MASK to header as common MACRO

2020-03-27 Thread Tom Rini
On Thu, Mar 26, 2020 at 06:09:09PM +0800, Kever Yang wrote: > The ALIGN code is need by many files who need handle structure or image > align, so move the macro to imagetool.h file. > > Signed-off-by: Kever Yang Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 4/8] tools: kwbimage: use common ALIGN to do the size align

2020-03-27 Thread Tom Rini
On Thu, Mar 26, 2020 at 06:09:12PM +0800, Kever Yang wrote: > The ALIGN() is now available at imagetool.h, migrate to use it. > > Signed-off-by: Kever Yang Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 6/8] tool: use ALIGN() to align the size

2020-03-27 Thread Tom Rini
On Thu, Mar 26, 2020 at 06:09:14PM +0800, Kever Yang wrote: > Use the ALIGN() for size align so that the code is more readable. > > Signed-off-by: Kever Yang Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 3/8] tools: mkimage: use common ALIGN to do the size align

2020-03-27 Thread Tom Rini
On Thu, Mar 26, 2020 at 06:09:11PM +0800, Kever Yang wrote: > The ALIGN() is now available at imagetool.h, migrate to use it. > > Signed-off-by: Kever Yang Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 8/8] mkimage: fit_image: Add option to make fit header align

2020-03-27 Thread Tom Rini
On Thu, Mar 26, 2020 at 06:09:16PM +0800, Kever Yang wrote: > The image is usually stored in block device like emmc, SD card, make the > offset of image data aligned to block(512 byte) can avoid data copy > during boot process. > eg. SPL boot from FIT image with external data: > - SPL read the

Re: [PATCH v3 5/8] tools: imx8mimage: remove redundant code

2020-03-27 Thread Tom Rini
On Thu, Mar 26, 2020 at 06:09:13PM +0800, Kever Yang wrote: > The align for fit_size has been done twice, remove the first one for it > does not make any sense. > > Signed-off-by: Kever Yang Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [RFT PATCH v5 0/3] Add compressed Image booting support

2020-03-27 Thread Tom Rini
On Fri, Mar 27, 2020 at 11:58:12AM -0700, Atish Patra wrote: > On Thu, Mar 5, 2020 at 4:25 PM Atish Patra wrote: > > > > This patch series extends booti to support compressed images > > as well. Following compressed images are supported for now. > > > > lzma, lzo, bzip2, gz. > > > > Other

Re: [PATCH v3 2/8] tool: aisimage: use ALIGN instead of self defiend macro

2020-03-27 Thread Tom Rini
On Thu, Mar 26, 2020 at 06:09:10PM +0800, Kever Yang wrote: > The ALIGN() is available at imagetool.h, no need to self define one. > > Signed-off-by: Kever Yang Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [RFT PATCH v5 0/3] Add compressed Image booting support

2020-03-27 Thread Atish Patra
On Thu, Mar 5, 2020 at 4:25 PM Atish Patra wrote: > > This patch series extends booti to support compressed images > as well. Following compressed images are supported for now. > > lzma, lzo, bzip2, gz. > > Other compression methods can easily be supported if required. > The above compression

Re: [PATCH 00/16] efi_loader: non-volatile and runtime variables

2020-03-27 Thread Simon Glass
Hi Heinrich, On Thu, 26 Mar 2020 at 23:28, Heinrich Schuchardt wrote: > > Up to UEFI variable where stored in U-Boot environment variables. Saving That doesn't read right to me. > UEFI variables was not possible without saving the U-Boot environment > variables. > > With this patch series file

Re: [PATCH 2/2] rsa: sig: fix config signature check for fit with padding

2020-03-27 Thread Simon Glass
Hi Philippe, On Fri, 27 Mar 2020 at 08:55, Philippe Reynes wrote: > > The signature check on config node is broken on fit with padding. > To compute the signature for config node, u-boot compute the U-Boot > signature on all properties of requested node for this config, > except for the

Re: [PATCH 1/2] test/py: vboot: add a test to check fit signature on fit with padding

2020-03-27 Thread Simon Glass
On Fri, 27 Mar 2020 at 08:55, Philippe Reynes wrote: > > The pytest vboot does all his tests on fit without padding. > We add the same tests on fit with padding. > > Signed-off-by: Philippe Reynes > --- > test/py/tests/test_vboot.py | 42 -- > 1 file

Re: [PATCH v3 00/21] dm: add support of new binding in gpio and pincontrol

2020-03-27 Thread Tom Rini
On Mon, Jan 13, 2020 at 11:34:54AM +0100, Patrick Delaunay wrote: > Hi, > > it is the V3 of "dm: add support of new binding in gpio and pincontrol" > http://patchwork.ozlabs.org/project/uboot/list/?series=145044 > > I rebase on v2020.01 and made some minor update after Simon Glass review. > And

Re: [PATCH 6/7] arm: juno: enable USB

2020-03-27 Thread Linus Walleij
On Wed, Mar 25, 2020 at 3:47 PM Andre Przywara wrote: > The Juno board features a standard compliant EHCI/OHCI USB host > controller pair, which we can just enable. > The platform data is taken from the device tree. > > This allows to use USB mass storage (the only storage on a Juno r0) > for

Re: [PATCH 7/7] arm: vexpress64: Remove unneeded CONFIG_ check

2020-03-27 Thread Linus Walleij
On Wed, Mar 25, 2020 at 3:47 PM Andre Przywara wrote: > CONFIG_SEMIHOSTING is selected for the VFP target by the means of > Kconfig already, there is no need to check this in the header file. > > Signed-off-by: Andre Przywara Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH] MAINTAINERS: Add usb.h entry to usb

2020-03-27 Thread Tom Rini
On Wed, Mar 25, 2020 at 09:35:53PM +0100, Marek Vasut wrote: > Add usb.h file into the USB list. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] test/py: mmc: Fix 'mmc info' testcase

2020-03-27 Thread Tom Rini
On Thu, Mar 26, 2020 at 06:07:27PM +0100, Harald Seiler wrote: > Commit 41e30dcf8796 ("cmd: mmc: Make Mode: printout consistent") fixed > the layout of `mmc info` output. Reflect this change in the respective > testcase. > > Also fix a typo in the documentation. > > Fixes: 41e30dcf8796 ("cmd:

Re: STM32MP1 boot slow

2020-03-27 Thread Marek Vasut
On 3/27/20 4:35 PM, Patrick DELAUNAY wrote: > Hi Marek, Hi, [...] >> Or reuse the DWC I2C driver timing calculation, which is real simple, fast, >> and >> should be accurate enough. > > Yes I checked > ./drivers/i2c/designware_i2c.c:: __dw_i2c_set_bus_speed > > I agree that something simple

Re: [PATCH v2 1/1] cmd: blkls: Add blkls command

2020-03-27 Thread Simon Glass
On Fri, 27 Mar 2020 at 08:14, Niel Fourie wrote: > > Add a command to print a list of available block device drivers, > and for each, the list of known block devices. > > Signed-off-by: Niel Fourie > Cc: Simon Glass > Cc: Stefan Roese > --- > Changes in v2: > - Removed legacy block device

Re: [PATCH v3 00/21] dm: add support of new binding in gpio and pincontrol

2020-03-27 Thread Simon Glass
Hi Tom, On Fri, 27 Mar 2020 at 13:21, Tom Rini wrote: > > On Mon, Jan 13, 2020 at 11:34:54AM +0100, Patrick Delaunay wrote: > > > Hi, > > > > it is the V3 of "dm: add support of new binding in gpio and pincontrol" > > http://patchwork.ozlabs.org/project/uboot/list/?series=145044 > > > > I rebase

Re: [PATCH v2 0/2] allow CONFIG_SPL_SAVEENV to work with ENV_IS_IN_SPI_FLASH

2020-03-27 Thread Rasmus Villemoes
On 27/03/2020 17.31, Wolfgang Denk wrote: > Dear Rasmus, > >> >> # avoid differences due to different git commit or wallclock time >> $ export SOURCE_DATE_EPOCH=1585252702 >> $ echo 'test' > .scmversion >> $ export ARCH=arm >> $ export CROSS_COMPILE=arm-linux-gnueabi- >> $ git checkout master ;

Re: [PATCH 5/7] arm: juno: Use PSCI based reset

2020-03-27 Thread Linus Walleij
On Wed, Mar 25, 2020 at 3:47 PM Andre Przywara wrote: > So far the Juno board wasn't implementing reset. Let's just use the > already existing PSCI_RESET based method to avoid any extra code. > > Signed-off-by: Andre Przywara > Acked-by: Liviu Dudau Reviewed-by: Linus Walleij Yours, Linus

Re: [PATCH 4/7] arm: juno: Enable OF_CONTROL

2020-03-27 Thread Linus Walleij
On Wed, Mar 25, 2020 at 3:47 PM Andre Przywara wrote: > The Arm Juno board was still somewhat stuck in "hardcoded land", even > though there are stable DTs around, and one happens to actually be on > the memory mapped NOR flash. > > Enable the configuration options to let the board use

Re: [PATCH 1/1] test: typo decompression

2020-03-27 Thread Tom Rini
On Mon, Mar 23, 2020 at 06:47:47PM +0100, Heinrich Schuchardt wrote: > %s/decopmression/decompression/ > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] MAINTAINERS: add myself as maintainer of fs/btrfs

2020-03-27 Thread Tom Rini
On Wed, Mar 25, 2020 at 12:04:46PM +0100, Marek Behún wrote: > Signed-off-by: Marek Behún Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] fs: ext4: Fix alignment of cache buffers

2020-03-27 Thread Tom Rini
On Wed, Mar 25, 2020 at 09:27:51PM +0100, Jan Kiszka wrote: > From: Jan Kiszka > > We need to align the cache buffer to ARCH_DMA_MINALIGN in order to avoid > access errors like > > CACHE: Misaligned operation at range [be0231e0, be0235e0] > > seen on the MCIMX7SABRE. > > Fixes: d5aee659f217

Re: [PATCH 3/7] arm: juno: Fix UART clock rate

2020-03-27 Thread Linus Walleij
On Wed, Mar 25, 2020 at 3:47 PM Andre Przywara wrote: > The UART base clock rate was typo-ed in the header file, probably because > the reference (the Linux .dts) was also wrong[1]. > > Fix the number to make the baud rate more correct. > > Signed-off-by: Andre Przywara Reviewed-by: Linus

Re: [PATCH V3] ARM: dts: stm32: Add KS8851-16MLL ethernet on FMC2

2020-03-27 Thread Marek Vasut
On 3/27/20 9:55 AM, Patrice CHOTARD wrote: > Hi Marek Hi, [...] >> diff --git a/board/dhelectronics/dh_stm32mp1/board.c >> b/board/dhelectronics/dh_stm32mp1/board.c >> index b663696983..be55242799 100644 >> --- a/board/dhelectronics/dh_stm32mp1/board.c >> +++

[PATCH V4] ARM: dts: stm32: Add KS8851-16MLL ethernet on FMC2

2020-03-27 Thread Marek Vasut
Add DT entries, Kconfig entries and board-specific entries to configure FMC2 bus and make KS8851-16MLL on that bus accessible to U-Boot. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- V2: Configure FMC2 nCS4 for SRAM as well V3: Adjust the register macros V4: Use more

Re: [PATCH 1/3] Dockerfile: Install riscv32 toolchain from kernel.org

2020-03-27 Thread Bin Meng
Hi Tom, On Fri, Mar 27, 2020 at 11:25 PM Tom Rini wrote: > > On Fri, Mar 27, 2020 at 02:05:55PM +0800, Bin Meng wrote: > > Hi Tom, > > > > On Fri, Mar 27, 2020 at 10:00 AM Tom Rini wrote: > > > > > > On Fri, Mar 27, 2020 at 09:57:47AM +0800, Bin Meng wrote: > > > > Hi Tom, > > > > > > > > On

[PATCH] ARM: dts: stm32: Adjust PLL4 settings on AV96

2020-03-27 Thread Marek Vasut
The PLL4 is supplying SDMMC12, SDMMC3 and SPDIF with 120 MHz and FDCAN with 96 MHz. This isn't good for the SDMMC interfaces, which can not easily divide the clock down to e.g. 50 MHz for high speed SD and eMMC devices, so those devices end up running at 30 MHz as that is 120 MHz / 4. Adjust the

[PATCH] fdtdec: use full path in fdtdec_get_alias_seq comparison

2020-03-27 Thread Vladimir Oltean
From: Vladimir Oltean Currently fdtdec_get_alias_seq() calls fdt_get_name() which returns only the name of the leaf node. So it needs to also trim the path of the alias to the leaf name only, leading to imperfect matches. This means that the following aliases: /aliases { eth0 =

  1   2   >