Re: [U-Boot] RISC-V: Crashes with OpenSBI+U-Boot on the qemu "virt" machine

2019-05-03 Thread Anup Patel
Hi Karsten, I tried again with image header changes applied to u-boot and Linux kernel but still not able to reproduce the issues. Either you might have more local changes or debian toolchain is causing issue for u-boot. Here are the logs anup@anup-ubuntu64:~/Work/riscv-test$

Re: [U-Boot] [PATCH] arm: socfpga: control reboot from SRAM via env callback

2019-05-03 Thread Simon Goldschmidt
Marek Vasut schrieb am Fr., 3. Mai 2019, 22:42: > On 5/3/19 10:39 PM, Simon Goldschmidt wrote: > > > > > > On 03.05.19 22:35, Marek Vasut wrote: > >> On 5/3/19 10:30 PM, Simon Goldschmidt wrote: > >>> > >>> > >>> On 03.05.19 22:28, Marek Vasut wrote: > On 5/3/19 10:08 PM, Simon Goldschmidt

[U-Boot] [PATCH v3 2/2] fit: Support compat string property in configuration node

2019-05-03 Thread Julius Werner
This patch adds support for an optional optimization to compatible string matching where the compatible string property from the root node of the kernel FDT can be copied into the configuration node of the FIT image. This is most useful when using compressed FDTs or when using FDT overlays, where

Re: [U-Boot] [PATCH 1/2 v2] fit: Support compression for non-kernel components (e.g. FDT)

2019-05-03 Thread Julius Werner
> Oh, ok. Guess I was just surprised that it says "can't extract compat" > when it tries to check "comp"... Well, what I'm trying to say in that error is "can't extract the compatible string *because* the FDT is compressed", but without making it three lines long. > We should get a test together

Re: [U-Boot] [PATCH v3 1/2] arm64: zynqmp: spl: install a PMU firmware config object at runtime

2019-05-03 Thread Michal Simek
On 15. 04. 19 9:47, Luca Ceresoli wrote: > Optionally allow U-Boot to load at the PMU firmware configuration object > into the Power Management Unit (PMU) on Xilinx ZynqMP. > > The configuration object is required by the PMU FW to enable most SoC > peripherals. So far the only way to boot using

[U-Boot] [PATCH 1/6] powerpc: mpc85xx: Update the condition to compile PCI routines

2019-05-03 Thread Z.q. Hou
From: Hou Zhiqiang Compile the routines of mpc85xx/pci.c when both FSL_PCI_INIT and DM_PCI are not enabled. Signed-off-by: Hou Zhiqiang --- arch/powerpc/cpu/mpc85xx/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc85xx/pci.c

[U-Boot] [PATCH 0/6] dm: pci: add Freescale PowerPC PCIe driver

2019-05-03 Thread Z.q. Hou
From: Hou Zhiqiang Add PCIe DM driver for Freescale PowerPC PCIe controllers. Hou Zhiqiang (6): powerpc: mpc85xx: Update the condition to compile PCI routines powerpc: T208xQDS: Compile the legacy PCIe routines conditionally t2080: dts: Added PCIe DT nodes dm: pci: add Freescale PowerPC

[U-Boot] Pull request for mmc sub-system for v2019.07

2019-05-03 Thread Peng Fan
Hi Tom, I am not able to setup ssh to denx mmc tree, so use my github for this request-pull, please see whether this is ok for you. Please pull mmc-2019-5-3 for v2019.07-rc1 Travis build: https://travis-ci.org/MrVan/u-boot/builds/527760370 Thanks, Peng. The following changes since commit

[U-Boot] [PATCH v3 1/2] fit: Support compression for non-kernel components (e.g. FDT)

2019-05-03 Thread Julius Werner
This patch adds support for compressing non-kernel image nodes in a FIT image (kernel nodes could already be compressed previously). This can reduce the size of FIT images and therefore improve boot times (especially when an image bundles many different kernel FDTs). The images will automatically

[U-Boot] [PATCH v3 0/2] fit: Image node compression

2019-05-03 Thread Julius Werner
This patch series adds compression support for non-kernel FIT image nodes (e.g. FDTs). The first patch adds the compression support itself, the second adds a new feature to compatible string matching that allows it to be useful with compressed FDTs. Sandbox-tested with FIT images with and without

Re: [U-Boot] [PATCH v3 2/2] arm64: zynqmp: add tool to convert PMU config object .c to binary

2019-05-03 Thread Michal Simek
Hi, On 15. 04. 19 9:47, Luca Ceresoli wrote: > The recently-added ZYNQMP_LOAD_PM_CFG_OBJ_FILE option allows SPL to load a > PMUFW configuration object from a binary blob. However the configuration > object is produced by Xilinx proprietary tools as a C source file and no > tool exists to easily

[U-Boot] [PATCH v2 2/4] warp7: include: configs: Skip low-level init if BOOTM_OPTEE false

2019-05-03 Thread Bryan O'Donoghue
Commit c7b3a7ee5351 ("optee: adjust dependencies and default values for dram") wants to skip low-level init of i.MX7 hardware in the case where OP-TEE has already run and u-boot is being run as BL33 in normal world. Currently we check for both #ifdef CONFIG_OPTEE_TZDRAM_SIZE and #ifndef

[U-Boot] [PATCH v2 1/4] optee: Make TZDRAM config options contingent on CONFIG_OPTEE

2019-05-03 Thread Bryan O'Donoghue
Commit c7b3a7ee5351 ("optee: adjust dependencies and default values for dram") makes the TZDRAM defines for OPTEE show up for all configs as a side-effect. While not harmful its not what we really want. This patch makes the following defines contingent on CONFIG_OPTEE=y CONFIG_OPTEE_TZDRAM_BASE

[U-Boot] [PATCH v2 4/4] MAINTAINERS: Update lib/optee with my details

2019-05-03 Thread Bryan O'Donoghue
Commit 32ce6179fb99 ("optee: Add lib entries for sharing OPTEE code across ports") adds code into lib/optee but neglects to update MAINTAINERS to make me buggable for questions and maintenance. Signed-off-by: Bryan O'Donoghue Suggested-by: Jens Wiklander --- MAINTAINERS | 5 + 1 file

[U-Boot] [PATCH v2 3/4] warp7: configs: bl33: Tidy up OPTEE defines

2019-05-03 Thread Bryan O'Donoghue
When booting in BL33 mode i.e. with u-boot loaded by OP-TEE we get the following print-out. Board: WARP7 in secure mode OPTEE DRAM 0xa000-0xa000 This is incorrect the right range is 0x9e00-0xa000. This patch fixes the defines on the warp7_bl33_defconfig file to tidy up the

[U-Boot] [PATCH v2 0/4] Tidy up some dangling OP-TEE gotchas

2019-05-03 Thread Bryan O'Donoghue
Tom, Stefano. Any chance of getting this set applied to one of your respective trees ? V2: Add Acked/Reviewed-by Rui as indicated V1: Robert P Day rightly pointed out that some odd OP-TEE specific defines were appearing in his defconfig, despite not having CONFIG_OPTEE=y set in his defconfig.

Re: [U-Boot] [PATCH 2/2] i2c: mxc_i2c: Fix read and read->write xfers in DM mode

2019-05-03 Thread Trent Piepho
On Thu, 2019-05-02 at 07:23 +0200, Heiko Schocher wrote: > Am 30.04.2019 um 18:04 schrieb Trent Piepho: > > On Tue, 2019-04-30 at 06:34 +0200, Heiko Schocher wrote: > > > Am 16.04.2019 um 00:02 schrieb Trent Piepho: > > > > This is an old driver that supports both device mapped and non-mapped > >

Re: [U-Boot] [PATCH 1/1] arm: mvebu: Add CRS305-1G-4S board

2019-05-03 Thread Luka Kovačič
On 2019-05-03 12:37, Chris Packham wrote: On Fri, May 3, 2019 at 4:36 AM Luka Kovacic wrote: CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like some of the other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is currently retrieved from the stock

[U-Boot] [PATCH 1/1] arm: mvebu: Add CRS305-1G-4S board

2019-05-03 Thread Luka Kovacic
CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like some of the other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is currently retrieved from the stock bootloader and compiled into the kwb image. Adds support for U-Boot, enable UART, SPI, Winbond SPI flash

Re: [U-Boot] [PATCH v2] imx: Use a convenient default value for SYS_MALLOC_F_LEN

2019-05-03 Thread Auer, Lukas
On Fri, 2019-05-03 at 14:05 -0300, Fabio Estevam wrote: > Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to > simple-bus driver") causes some i.MX boards that were converted > to DM, such as warp7, to fail to boot. > > As explained by Lukas Auer: > > "With the patch, U-Boot probes

Re: [U-Boot] RISC-V: Crashes with OpenSBI+U-Boot on the qemu "virt" machine

2019-05-03 Thread Anup Patel
Hi Karsten, First of all, the 2GB case where U-Boot crashes shows that U-Boot is trying to access memory close to 0x8000 where OpenSBI firmware is running hence it gets ACCESS fault. The OpenSBI protects firmware using PMP configuration whereas BBL does not. In fact, it is very easy to

[U-Boot] [PATCH] Make FIT support really optional

2019-05-03 Thread Fabrice Fontaine
Due to some mistakes in the source code, it was not possible to really turn FIT support off. This commit fixes the problem by means of the following changes: - Enclose "bootm_host_load_image" and "bootm_host_load_images" between checks for CONFIG_FIT_SIGNATURE, in common/bootm.c. - Enclose the

Re: [U-Boot] [PATCH] cmd: reset: add parameters to specify reboot_mode

2019-05-03 Thread Simon Glass
Hi Simon, On Fri, 3 May 2019 at 14:43, Marek Vasut wrote: > > On 5/3/19 10:40 PM, Simon Goldschmidt wrote: > > > > > > On 03.05.19 22:37, Marek Vasut wrote: > >> On 5/3/19 10:33 PM, Simon Goldschmidt wrote: > >>> > >>> > >>> On 03.05.19 22:27, Marek Vasut wrote: > On 5/3/19 10:25 PM, Simon

[U-Boot] [PATCH 4/6] dm: pci: add Freescale PowerPC PCIe driver

2019-05-03 Thread Z.q. Hou
From: Hou Zhiqiang Add PCIe DM driver for Freescale PowerPC PCIe controllers. Signed-off-by: Hou Zhiqiang --- drivers/pci/Kconfig | 7 + drivers/pci/Makefile | 1 + drivers/pci/pcie_fsl.c | 612 +++ drivers/pci/pcie_fsl.h | 60

[U-Boot] [PATCH 3/6] t2080: dts: Added PCIe DT nodes

2019-05-03 Thread Z.q. Hou
From: Hou Zhiqiang T2080 integrated 4 PCIe controllers, which is compatible with the PCI Express™ Base Specification, Revision 3.0, and this patch is to add DT node for each PCIe controller. Signed-off-by: Hou Zhiqiang --- arch/powerpc/dts/t2080.dtsi | 48 +

[U-Boot] [PATCH 5/6] powerpc: T208xQDS: Disable legacy PCIe driver

2019-05-03 Thread Z.q. Hou
From: Hou Zhiqiang Disable legacy PCIe driver and remove unused PCIe macros. Signed-off-by: Hou Zhiqiang --- include/configs/T208xQDS.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/include/configs/T208xQDS.h b/include/configs/T208xQDS.h index 9ca384cc0c..c414081ca5

[U-Boot] [PATCH 6/6] configs: T2080QDS: Enable PCIe driver

2019-05-03 Thread Z.q. Hou
From: Hou Zhiqiang Signed-off-by: Hou Zhiqiang --- configs/T2080QDS_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/T2080QDS_defconfig b/configs/T2080QDS_defconfig index 79cf4424b4..b7fdd3ffb4 100644 --- a/configs/T2080QDS_defconfig +++ b/configs/T2080QDS_defconfig

[U-Boot] [PATCH 2/6] powerpc: T208xQDS: Compile the legacy PCIe routines conditionally

2019-05-03 Thread Z.q. Hou
From: Hou Zhiqiang Compile the legacy PCIe initialization reoutines only when DM_PCI is not enabled. Signed-off-by: Hou Zhiqiang --- board/freescale/t208xqds/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/t208xqds/pci.c b/board/freescale/t208xqds/pci.c index

[U-Boot] [PATCH 0/1] Add MikroTik CRS305-1G-4S+IN board support

2019-05-03 Thread Luka Kovacic
I have commented out the code around MVEBU_GPIO1_BASE. GPIO1 is a software reset button on the board, I might use it later for resetting the board. GPIO0 is already working. It's currently used to turn on an LED on board initialization. Luka Kovacic (1): arm: mvebu: Add CRS305-1G-4S board

[U-Boot] [PATCH] Fix spelling of available.

2019-05-03 Thread Vagrant Cascadian
Signed-off-by: Vagrant Cascadian --- arch/x86/Kconfig | 2 +- arch/x86/cpu/i386/interrupt.c | 2 +- arch/x86/lib/fsp/fsp_common.c | 2 +- common/spl/Kconfig| 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index

[U-Boot] [PATCH v4 3/3] arm: socfpga: Move Stratix 10 SDRAM driver to DM

2019-05-03 Thread Ley Foon Tan
Convert Stratix 10 SDRAM driver to device model. Get rid of call to socfpga_per_reset() and use reset framework. SPL is changed from calling function in SDRAM driver directly to just probing UCLASS_RAM. Move sdram_s10.h from arch to driver/ddr/altera directory. Signed-off-by: Ley Foon Tan ---

[U-Boot] [PATCH v4 1/3] ddr: altera: Compile ALTERA SDRAM in SPL only

2019-05-03 Thread Ley Foon Tan
Compile ALTERA_SDRAM driver in SPL only. Rename ALTERA_SDRAM to SPL_ALTERA_SDRAM. Signed-off-by: Ley Foon Tan --- Makefile | 2 +- arch/arm/mach-socfpga/Kconfig | 4 ++-- drivers/Makefile | 2 +- drivers/ddr/altera/Kconfig

[U-Boot] [PATCH v4 0/3] Move Stratix 10 SDRAM driver to DM

2019-05-03 Thread Ley Foon Tan
Compile ALTERA_SDRAM driver in SPL only and move Stratix 10 SDRAM driver to DM. v3 -> v4: - Add CONFIG_SPL_ALTERA_SDRAM to config_whitelist.txt in patch [1/3] and remove it in patch [3/3] - Remove _remove(). - Update commit message in patch [2/3] v2->v3: --- - Compile ALTERA_SDRAM driver in

[U-Boot] [PATCH v4 2/3] arm: dts: Stratix10: Add SDRAM node

2019-05-03 Thread Ley Foon Tan
Add SDRAM device tree node. Signed-off-by: Ley Foon Tan --- arch/arm/dts/socfpga_stratix10.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/socfpga_stratix10.dtsi b/arch/arm/dts/socfpga_stratix10.dtsi index d1ae2fabae..bd68a78a37 100755 ---

[U-Boot] [PATCH 3/3] arm: mvebu: db-88f6820-gp: Enabel BLK and DM support

2019-05-03 Thread Stefan Roese
This patch enables CONFIG_BLK and some DM enabled drivers on db-88f6820-gp to remove these compile warnings: = WARNING == This board does not use CONFIG_DM_MMC. Please update the board to use CONFIG_DM_MMC before the v2019.04 release. Failure to update by

[U-Boot] [PATCH 2/3] arm: mvebu: db-88f6720: Enable CONFIG_BLK

2019-05-03 Thread Stefan Roese
This patch enables CONFIG_BLK to remove this compile warning: = WARNING == This board does not use CONFIG_DM_USB. Please update the board to use CONFIG_DM_USB before the v2019.07 release. Failure to update by the deadline may result in board removal. See

[U-Boot] [PATCH 1/1] arm: mvebu: Add CRS305-1G-4S board

2019-05-03 Thread Luka Kovacic
CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like some of the other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is currently retrieved from the stock bootloader and compiled into the kwb image. Adds support for U-Boot, enable UART, SPI, Winbond SPI flash

[U-Boot] [PATCH 0/1] Add MikroTik CRS305-1G-4S+IN board support

2019-05-03 Thread Luka Kovacic
This is the corrected patch. I enabled CONFIG_DISPLAY_BOARDINFO in the defconfig. Luka Kovacic (1): arm: mvebu: Add CRS305-1G-4S board arch/arm/dts/Makefile | 3 +- .../dts/armada-xp-crs305-1g-4s-u-boot.dtsi| 13 +++ arch/arm/dts/armada-xp-crs305-1g-4s.dts

Re: [U-Boot] [PATCH v1 05/18] usb: dwc3: switch to peripheral mode when exiting

2019-05-03 Thread Jean-Jacques Hiblot
On 29/04/2019 11:56, Marek Vasut wrote: On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: This allow the phy to enter idle and then suspend. the K2 platforms require the PHY to be suspended before the USB domain clock can be turned off. Signed-off-by: Jean-Jacques Hiblot ---

Re: [U-Boot] [PATCH v1 12/18] usb: dwc3: Add dwc3_of_parse() to get quirks information from DT

2019-05-03 Thread Jean-Jacques Hiblot
On 29/04/2019 11:58, Marek Vasut wrote: On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: Add a new function that read quirk and configuration information from the DT. The goal is to allow platforms using their own version of DWC3 driver to migrate to the generic DWC3 driver. The function is

Re: [U-Boot] [PATCH v3 0/2] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

2019-05-03 Thread Jagan Teki
On Fri, May 3, 2019 at 7:58 AM Chen-Yu Tsai wrote: > > From: Chen-Yu Tsai > > Hi everyone, > > This series enables EMAC (Ethernet controller) on two A83T boards, > the Cubietruck Plus and Bananapi M3. > > This series is now based on sunxi/next, which has patches that convert > sun8i-emac to use

[U-Boot] [PATCH v1] ARM: socfpga: stratix10: Enable DMA330 DMA controller

2019-05-03 Thread chee . hong . ang
From: "Ang, Chee Hong" Signed-off-by: Ang, Chee Hong --- arch/arm/mach-socfpga/include/mach/reset_manager_s10.h | 1 + arch/arm/mach-socfpga/spl_s10.c| 4 2 files changed, 5 insertions(+) diff --git a/arch/arm/mach-socfpga/include/mach/reset_manager_s10.h

[U-Boot] [PATCH v1] ARM: socfpga: stratix10: Probe FPGA status before bridge enable

2019-05-03 Thread chee . hong . ang
From: "Ang, Chee Hong" Send CONFIG_STATUS and RECONFIG_STATUS mailbox commands to Secure Device Manager (SDM) to get the status of FPGA and make sure the FPGA is in user mode before enable the bridge. Signed-off-by: Ang, Chee Hong --- arch/arm/mach-socfpga/misc_s10.c | 12 1 file

Re: [U-Boot] [PATCH v1] ARM: socfpga: stratix10: Enable DMA330 DMA controller

2019-05-03 Thread Marek Vasut
On 5/3/19 10:18 AM, chee.hong@intel.com wrote: > From: "Ang, Chee Hong" Commit message is missing -- why do you need to enable the DMA330 ? Don't you have a reset driver, like A10 and Gen5 ? > Signed-off-by: Ang, Chee Hong > --- > arch/arm/mach-socfpga/include/mach/reset_manager_s10.h |

Re: [U-Boot] [PATCH v1 12/18] usb: dwc3: Add dwc3_of_parse() to get quirks information from DT

2019-05-03 Thread Marek Vasut
On 5/3/19 11:38 AM, Jean-Jacques Hiblot wrote: > > On 29/04/2019 11:58, Marek Vasut wrote: >> On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: >>> Add a new function that read quirk and configuration information from >>> the >>> DT. The goal is to allow platforms using their own version of DWC3 >>>

Re: [U-Boot] [PATCH 1/1] arm: mvebu: Add CRS305-1G-4S board

2019-05-03 Thread Chris Packham
On Fri, May 3, 2019 at 4:36 AM Luka Kovacic wrote: > > CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like > some of the > other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is > currently retrieved > from the stock bootloader and compiled into the kwb

[U-Boot] [PATCH v1] ARM: socfpga: stratix10: Disable FPGA2SOC reset

2019-05-03 Thread chee . hong . ang
From: "Ang, Chee Hong" Software must never reset FPGA2SOC bridge. This bridge must only be reset by POR/COLD/WARM reset. Asserting the FPGA2SOC reset by software can cause the SoC to lock-up if there are traffics being drived into FPGA2SOC bridge. Signed-off-by: Ang, Chee Hong ---

Re: [U-Boot] [PATCH v1 03/18] dm: Add a No-op uclass

2019-05-03 Thread Jean-Jacques Hiblot
On 29/04/2019 11:56, Marek Vasut wrote: On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: This uclass is intended for devices that do not need any features from the uclass, including binding children. This will typically be used by devices that are used to bind child devices but do not use

Re: [U-Boot] [PATCH v1 05/18] usb: dwc3: switch to peripheral mode when exiting

2019-05-03 Thread Marek Vasut
On 5/3/19 11:26 AM, Jean-Jacques Hiblot wrote: > > On 29/04/2019 11:56, Marek Vasut wrote: >> On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: >>> This allow the phy to enter idle and then suspend. >>> the K2 platforms require the PHY to be suspended before the USB domain >>> clock can be turned

Re: [U-Boot] [PATCH v1 03/18] dm: Add a No-op uclass

2019-05-03 Thread Marek Vasut
On 5/3/19 11:30 AM, Jean-Jacques Hiblot wrote: > > On 29/04/2019 11:56, Marek Vasut wrote: >> On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: >>> This uclass is intended for devices that do not need any features >>> from the >>> uclass, including binding children. >>> This will typically be used by

Re: [U-Boot] [PATCH 1/5] mtd: spi-nor: fix page program issue when using spi-mem driver

2019-05-03 Thread Jagan Teki
On Fri, Apr 26, 2019 at 2:53 PM Weijie Gao wrote: > > Some SPI controllers can't write nor->page_size bytes in a single step > because their TX FIFO is too small, but when that happens we should > make sure a WRITE_EN command before each write access and READ_SR command > after each write access

Re: [U-Boot] [PATCH v3 0/2] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

2019-05-03 Thread Chen-Yu Tsai
On Fri, May 3, 2019 at 5:49 PM Jagan Teki wrote: > > On Fri, May 3, 2019 at 7:58 AM Chen-Yu Tsai wrote: > > > > From: Chen-Yu Tsai > > > > Hi everyone, > > > > This series enables EMAC (Ethernet controller) on two A83T boards, > > the Cubietruck Plus and Bananapi M3. > > > > This series is now

[U-Boot] [PATCH 1/3] arm: mvebu: clearfog: Enable BLK and DM support

2019-05-03 Thread Stefan Roese
This patch enables CONFIG_BLK and some DM enabled drivers on clearfog to remove these compile warnings: = WARNING == This board does not use CONFIG_DM_MMC. Please update the board to use CONFIG_DM_MMC before the v2019.04 release. Failure to update by the

Re: [U-Boot] [PATCH v1 00/18] Improvement for the DWC3 USB generic driver and fixes for the K2 platforms

2019-05-03 Thread Jean-Jacques Hiblot
On 29/04/2019 11:52, Marek Vasut wrote: On 4/29/19 11:09 AM, Jean-Jacques Hiblot wrote: Marek, This series fixes the linux boot on the K2 platforms. without it the K2 platforms are broken. Can you give it a look please ? Sure, can you rebase/repost please ? I don't have it in my mailbox

[U-Boot] [PATCH] imx: Use a convenient default value for SYS_MALLOC_F_LEN

2019-05-03 Thread Fabio Estevam
Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver") causes some i.MX boards that were converted to DM, such as warp7, to fail to boot. As explained by Lukas Auer: "With the patch, U-Boot probes the drivers for devices under simple-bus device tree nodes in the

[U-Boot] [PATCH v3 5/5] CONFIG_SPL_SYS_[DI]CACHE_OFF: add

2019-05-03 Thread Trevor Woerner
While converting CONFIG_SYS_[DI]CACHE_OFF to Kconfig, there are instances where these configuration items are conditional on SPL. This commit adds SPL variants of these configuration items, uses CONFIG_IS_ENABLED(), and updates the configurations as required. Acked-by: Alexey Brodkin

[U-Boot] [PATCH v2] arm: zimage: add barebox image magic number

2019-05-03 Thread Christoph Fritz
For chainboot configurations or test environments, this patch allows booting barebox images by using command bootz. Signed-off-by: Christoph Fritz --- Changes since v1: - s/other-bootloader/barebox/ arch/arm/lib/zimage.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH] arm: zimage: add other-bootloader image magic number

2019-05-03 Thread Christoph Fritz
For chainboot configurations or test environments, this patch allows booting other-bootloader images by using command bootz. Signed-off-by: Christoph Fritz --- arch/arm/lib/zimage.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/lib/zimage.c

[U-Boot] [PATCH v4] ARM: am335x: Add phyCORE AM335x R2 support

2019-05-03 Thread Niel Fourie
Support for Phytech phyCORE AM335x R2 SOM (PCL060) on the Phytec phyBOARD-Wega AM335x. CPU : AM335X-GP rev 2.1 Model: Phytec AM335x phyBOARD-WEGA DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0 eth0: ethernet@4a10 Working: - Eth0 - i2C - MMC/SD - NAND - UART - USB (host) Device

Re: [U-Boot] [PATCH v12 5/9] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-05-03 Thread Simon Goldschmidt
On Thu, May 2, 2019 at 9:49 AM Chee, Tien Fong wrote: > > On Tue, 2019-04-30 at 14:24 +0200, Simon Goldschmidt wrote: > > On Tue, Apr 30, 2019 at 2:09 PM Chee, Tien Fong > > wrote: > > > > > > > > > On Sat, 2019-04-27 at 21:57 +0200, Simon Goldschmidt wrote: > > > > > > > > > > > > On 19.03.19

Re: [U-Boot] [PATCH v3 0/2] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

2019-05-03 Thread Jagan Teki
On Fri, May 3, 2019 at 7:58 AM Chen-Yu Tsai wrote: > > From: Chen-Yu Tsai > > Hi everyone, > > This series enables EMAC (Ethernet controller) on two A83T boards, > the Cubietruck Plus and Bananapi M3. > > This series is now based on sunxi/next, which has patches that convert > sun8i-emac to use

Re: [U-Boot] [PATCH] imx: Use a convenient default value for SYS_MALLOC_F_LEN

2019-05-03 Thread Tom Rini
On Fri, May 03, 2019 at 12:51:24PM +, Auer, Lukas wrote: > On Fri, 2019-05-03 at 09:25 -0300, Fabio Estevam wrote: > > Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to > > simple-bus driver") causes some i.MX boards that were converted > > to DM, such as warp7, to fail to boot.

Re: [U-Boot] [PATCH] arm: zimage: add other-bootloader image magic number

2019-05-03 Thread Tom Rini
On Fri, May 03, 2019 at 12:19:05PM +0200, Christoph Fritz wrote: > For chainboot configurations or test environments, this patch allows > booting other-bootloader images by using command bootz. > > Signed-off-by: Christoph Fritz > --- > arch/arm/lib/zimage.c | 6 -- > 1 file changed, 4

[U-Boot] Please pull u-boot-marvell/master

2019-05-03 Thread Stefan Roese
Hi Tom, please pull the following Marvell related patches: - Fix in kwbimage (return code checking) (Young Xiao) - Misc updates to Turris Omnia (Marek) Here the

Re: [U-Boot] [PATCH v12 9/9] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-05-03 Thread Simon Goldschmidt
On Thu, May 2, 2019 at 9:56 AM Chee, Tien Fong wrote: > > On Tue, 2019-04-30 at 14:26 +0200, Simon Goldschmidt wrote: > > On Tue, Apr 30, 2019 at 2:19 PM Chee, Tien Fong > > wrote: > > > > > > > > > On Sat, 2019-04-27 at 21:50 +0200, Simon Goldschmidt wrote: > > > > > > > > > > > > On 19.03.19

Re: [U-Boot] [PATCH v3 0/2] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

2019-05-03 Thread Chen-Yu Tsai
On Fri, May 3, 2019 at 8:15 PM Jagan Teki wrote: > > On Fri, May 3, 2019 at 3:31 PM Chen-Yu Tsai wrote: > > > > On Fri, May 3, 2019 at 5:49 PM Jagan Teki > > wrote: > > > > > > On Fri, May 3, 2019 at 7:58 AM Chen-Yu Tsai wrote: > > > > > > > > From: Chen-Yu Tsai > > > > > > > > Hi everyone,

Re: [U-Boot] [PATCH v2] board/BuR/zynq/brsmarc2: initial commit

2019-05-03 Thread Hannes Schmelzer
On 5/2/19 9:03 PM, Tom Rini wrote: On Thu, May 02, 2019 at 08:34:32PM +0200, Hannes Schmelzer wrote: On 5/2/19 6:06 PM, Michal Simek wrote: Hi, Hi Michal, On 02. 05. 19 5:14, Hannes Schmelzer wrote: diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index dfa5b02..2b00129 100644

Re: [U-Boot] [PATCH v2] board/BuR/zynq/brsmarc2: initial commit

2019-05-03 Thread Hannes Schmelzer
On 5/2/19 9:03 PM, Tom Rini wrote: On Thu, May 02, 2019 at 08:34:32PM +0200, Hannes Schmelzer wrote: On 5/2/19 6:06 PM, Michal Simek wrote: Hi, Hi Michal, On 02. 05. 19 5:14, Hannes Schmelzer wrote: diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index dfa5b02..2b00129 100644

Re: [U-Boot] [PATCH u-boot-marvell v3 00/17] Fixes for Turris Omnia

2019-05-03 Thread Stefan Roese
On 02.05.19 16:53, Marek Behún wrote: Hi, this is the third version of my fixes for Turris Omnia. Added since v2: - patch 16: adds GPIO support so that boot script can recognize if SFP module is inserted and select appropriate device tree for kernel - patch 17:

Re: [U-Boot] [PATCH] imx: Use a convenient default value for SYS_MALLOC_F_LEN

2019-05-03 Thread Joris Offouga
Tested-by: Joris Offouga Le 03/05/2019 à 14:25, Fabio Estevam a écrit : Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver") causes some i.MX boards that were converted to DM, such as warp7, to fail to boot. As explained by Lukas Auer: "With the patch, U-Boot

Re: [U-Boot] WaRP7 nok on master

2019-05-03 Thread Auer, Lukas
Hi Fabio, On Fri, 2019-05-03 at 09:26 -0300, Fabio Estevam wrote: > Hi Lukas, > > On Thu, May 2, 2019 at 1:59 PM Fabio Estevam wrote: > > Hi Lukas, > > > > On Thu, May 2, 2019 at 1:58 PM Auer, Lukas > > wrote: > > > > > Yes, I will send a patch for this. Do you prefer setting the default > >

Re: [U-Boot] [PATCH v2] board/BuR/zynq/brsmarc2: initial commit

2019-05-03 Thread Tom Rini
On Fri, May 03, 2019 at 01:34:24PM +0200, Hannes Schmelzer wrote: > > > On 5/2/19 9:03 PM, Tom Rini wrote: > >On Thu, May 02, 2019 at 08:34:32PM +0200, Hannes Schmelzer wrote: > >>On 5/2/19 6:06 PM, Michal Simek wrote: > >>>Hi, > >>Hi Michal, > >>>On 02. 05. 19 5:14, Hannes Schmelzer wrote: >

[U-Boot] [PATCH v3 0/5] Kconfig conversion: CONFIG_SYS_[DI]CACHE_OFF

2019-05-03 Thread Trevor Woerner
This series of patches starts with a couple clean-up patches for various items related to CONFIG_SYS_[DI]CACHE_OFF, then converts these two configuration items to the Kconfig system. CONFIG_SYS_[DI]CACHE_OFF had been minimally converted to Kconfig, but only for the arc architecture; all other

[U-Boot] [PATCH v3 1/5] CONFIG_SYS_[ID]CACHE_OFF: unify the 'any' case

2019-05-03 Thread Trevor Woerner
According to De Morgan's Law[1]: !(A && B) = !A || !B !(A || B) = !A && !B There are 5 places in the code where we find: #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF)) and 4 places in the code where we find: #if

Re: [U-Boot] [PATCH 4/4] lib: uuid: Improve randomness of uuid values on RANDOM_UUID=y

2019-05-03 Thread Eugeniu Rosca
On Thu, May 02, 2019 at 12:32:53AM +0200, Eugeniu Rosca wrote: > Hi Tom, > > On Wed, May 01, 2019 at 03:51:49PM -0400, Tom Rini wrote: > [..] > > > > Agreed, this patch sounds like it addresses a number of problems today > > that are real problems (I await someone filing a CVE now for our PRNG >

Re: [U-Boot] [PATCH v2] board/BuR/zynq/brsmarc2: initial commit

2019-05-03 Thread Michal Simek
On 03. 05. 19 6:18, Tom Rini wrote: > On Fri, May 03, 2019 at 01:34:24PM +0200, Hannes Schmelzer wrote: >> >> >> On 5/2/19 9:03 PM, Tom Rini wrote: >>> On Thu, May 02, 2019 at 08:34:32PM +0200, Hannes Schmelzer wrote: On 5/2/19 6:06 PM, Michal Simek wrote: > Hi, Hi Michal, > On

Re: [U-Boot] [PATCH v1] ARM: socfpga: stratix10: Enable DMA330 DMA controller

2019-05-03 Thread Marek Vasut
On 5/3/19 5:53 PM, Ang, Chee Hong wrote: > On Fri, 2019-05-03 at 11:55 +0200, Marek Vasut wrote: >> On 5/3/19 10:18 AM, chee.hong@intel.com wrote: >>> >>> From: "Ang, Chee Hong" >> Commit message is missing -- why do you need to enable the DMA330 ? >> >> Don't you have a reset driver, like

[U-Boot] RISC-V: Crashes with OpenSBI+U-Boot on the qemu "virt" machine

2019-05-03 Thread Karsten Merker
Hello, I'm currently testing the U-Boot patch for adding booti support on the RISC-V architecture and the corresponding kernel patch on a qemu riscv64 "virt" machine with OpenSBI. While performing the tests, I have found two probably unrelated issues in U-Boot and OpenSBI, though I'm unsure

[U-Boot] [PATCH v2] imx: Use a convenient default value for SYS_MALLOC_F_LEN

2019-05-03 Thread Fabio Estevam
Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver") causes some i.MX boards that were converted to DM, such as warp7, to fail to boot. As explained by Lukas Auer: "With the patch, U-Boot probes the drivers for devices under simple-bus device tree nodes in the

Re: [U-Boot] [PATCH v4] ARM: am335x: Add phyCORE AM335x R2 support

2019-05-03 Thread Tom Rini
On Fri, May 03, 2019 at 01:28:02PM +0200, Niel Fourie wrote: > Support for Phytech phyCORE AM335x R2 SOM (PCL060) on the Phytec > phyBOARD-Wega AM335x. > > CPU : AM335X-GP rev 2.1 > Model: Phytec AM335x phyBOARD-WEGA > DRAM: 256 MiB > NAND: 256 MiB > MMC: OMAP SD/MMC: 0 > eth0:

Re: [U-Boot] [PATCH] board_f: Do not mark pre-relocated fdt space as reserved

2019-05-03 Thread Lokesh Vutla
Simon, On 22/04/19 8:15 PM, Tom Rini wrote: > On Thu, Apr 18, 2019 at 08:23:45AM +0200, Simon Goldschmidt wrote: >> On Thu, Apr 18, 2019 at 8:12 AM Lokesh Vutla wrote: >>> >>> >>> >>> On 18/04/19 12:46 AM, Simon Goldschmidt wrote: [This is a follow-up to

Re: [U-Boot] [PATCH v1] ARM: socfpga: stratix10: Disable FPGA2SOC reset

2019-05-03 Thread Marek Vasut
On 5/3/19 10:19 AM, chee.hong@intel.com wrote: > From: "Ang, Chee Hong" > > Software must never reset FPGA2SOC bridge. This bridge must only be > reset by POR/COLD/WARM reset. Asserting the FPGA2SOC reset by software > can cause the SoC to lock-up if there are traffics being drived into >

[U-Boot] [PULL] u-boot-socfpga/master

2019-05-03 Thread Marek Vasut
The following changes since commit 6aebc0d11a10f48a54146c5e71bbef15a1a458fc: Revert "fs: btrfs: fix false negatives in ROOT_ITEM search" (2019-04-27 11:35:44 -0400) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v1] ARM: socfpga: stratix10: Probe FPGA status before bridge enable

2019-05-03 Thread Marek Vasut
On 5/3/19 10:18 AM, chee.hong@intel.com wrote: > From: "Ang, Chee Hong" > > Send CONFIG_STATUS and RECONFIG_STATUS mailbox commands to Secure > Device Manager (SDM) to get the status of FPGA and make sure the > FPGA is in user mode before enable the bridge. > > Signed-off-by: Ang, Chee Hong

[U-Boot] [PATCH] fdt_shrink_to_minimum: do not mark fdt space reserved unconditionally

2019-05-03 Thread Simon Goldschmidt
This function merely relocates the fdt blob, so don't let it alter it by adding reservations that didn't exist before. Instead, if the memory used for the fdt blob has been reserved before calling this function, ensure the relocated memory is marked as reserved instead. Reported-by: Keerthy

Re: [U-Boot] [PATCH v1] ARM: socfpga: stratix10: Enable DMA330 DMA controller

2019-05-03 Thread Marek Vasut
On 5/3/19 7:56 PM, Ang, Chee Hong wrote: > On Fri, 2019-05-03 at 19:04 +0200, Marek Vasut wrote: >> On 5/3/19 5:53 PM, Ang, Chee Hong wrote: >>> >>> On Fri, 2019-05-03 at 11:55 +0200, Marek Vasut wrote: On 5/3/19 10:18 AM, chee.hong@intel.com wrote: > > > From: "Ang, Chee

[U-Boot] [PATCH] arm: socfpga: control reboot from SRAM via env callback

2019-05-03 Thread Simon Goldschmidt
This moves the code that enables the Boot ROM to just jump to SRAM instead of loading SPL from the original boot source on warm reboot. Instead of always enabling this, an environment callback for the env var "socfpga_reboot_from_sram" is used. This way, the behaviour can be enabled at runtime

Re: [U-Boot] [PATCH] i2c: mxc: Hide kconfig based control in DM_I2C mode

2019-05-03 Thread Trent Piepho
On Thu, 2019-05-02 at 08:11 +0200, Anatolij Gustschin wrote: > Hi Heiko, > > On Thu, 2 May 2019 07:39:06 +0200 > Heiko Schocher h...@denx.de wrote: > ... > > > > @Anatolij: Is this code needed anymore, as board is moved to DM ? > > ... > > dm_i2c_probe should initialize the i2c bus completly,

Re: [U-Boot] [PATCH v4] ARM: am335x: Add phyCORE AM335x R2 support

2019-05-03 Thread Marek Vasut
On 5/3/19 1:28 PM, Niel Fourie wrote: > Support for Phytech phyCORE AM335x R2 SOM (PCL060) on the Phytec > phyBOARD-Wega AM335x. > > CPU : AM335X-GP rev 2.1 > Model: Phytec AM335x phyBOARD-WEGA > DRAM: 256 MiB > NAND: 256 MiB > MMC: OMAP SD/MMC: 0 > eth0: ethernet@4a10 > > Working: > -

Re: [U-Boot] [PATCH] kwbimage: fixing the issue with proper return code checking

2019-05-03 Thread Stefan Roese
On 17.04.19 12:53, Young Xiao wrote: EVP_VerifyFinal would return one of three values: 1 if the data is verified to be correct; 0 if it is incorrect; -1 if there is any failure in the verification process. The varification in unpatched version is wrong, since it ignored the return value of -1.

Re: [U-Boot] [PATCH v3 0/2] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

2019-05-03 Thread Jagan Teki
On Fri, May 3, 2019 at 3:31 PM Chen-Yu Tsai wrote: > > On Fri, May 3, 2019 at 5:49 PM Jagan Teki wrote: > > > > On Fri, May 3, 2019 at 7:58 AM Chen-Yu Tsai wrote: > > > > > > From: Chen-Yu Tsai > > > > > > Hi everyone, > > > > > > This series enables EMAC (Ethernet controller) on two A83T

Re: [U-Boot] WaRP7 nok on master

2019-05-03 Thread Fabio Estevam
Hi Lukas, On Thu, May 2, 2019 at 1:59 PM Fabio Estevam wrote: > > Hi Lukas, > > On Thu, May 2, 2019 at 1:58 PM Auer, Lukas > wrote: > > > Yes, I will send a patch for this. Do you prefer setting the default > > value for i.MX in one place (in arch/arm/mach-imx/Kconfig) or > > individually for

Re: [U-Boot] [PATCH] imx: Use a convenient default value for SYS_MALLOC_F_LEN

2019-05-03 Thread Auer, Lukas
On Fri, 2019-05-03 at 09:25 -0300, Fabio Estevam wrote: > Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to > simple-bus driver") causes some i.MX boards that were converted > to DM, such as warp7, to fail to boot. > > As explained by Lukas Auer: > > "With the patch, U-Boot probes

[U-Boot] [PATCH v3 3/5] CONFIG_SYS_[DI]CACHE_OFF: remove commented lines

2019-05-03 Thread Trevor Woerner
Eventually these configuration items will be converted to Kconfig, therefore there's little point in leaving commented-out versions of them in include/configs. Signed-off-by: Trevor Woerner --- Changes in v3: None Changes in v2: None include/configs/uniphier.h | 4

[U-Boot] [PATCH v3 4/5] CONFIG_SYS_[DI]CACHE_OFF: convert to Kconfig

2019-05-03 Thread Trevor Woerner
CONFIG_SYS_[DI]CACHE_OFF had been partially converted to Kconfig parameters; only for the ARC architecture. This patch turns these two parameters into Kconfig items everywhere else they are found. All of the include/configs/* and defconfig changes in this patch are for arm machines only. The

[U-Boot] [PATCH v3 2/5] CONFIG_SYS_[DI]CACHE_OFF: remove superfluous "1"

2019-05-03 Thread Trevor Woerner
This config is the only config that uses: #define CONFIG_SYS_DCACHE_OFF 1 in its #define. Remove the superfluous "1" so this cache #define is like all the others. Signed-off-by: Trevor Woerner --- Changes in v3: None Changes in v2: None include/configs/origen.h | 2 +- 1 file

Re: [U-Boot] [PATCH v4 0/3] Move Stratix 10 SDRAM driver to DM

2019-05-03 Thread Marek Vasut
On 5/3/19 8:27 AM, Ley Foon Tan wrote: > Compile ALTERA_SDRAM driver in SPL only and move Stratix 10 SDRAM driver to > DM. > > v3 -> v4: > - Add CONFIG_SPL_ALTERA_SDRAM to config_whitelist.txt in patch [1/3] and > remove it in patch [3/3] > - Remove _remove(). > - Update commit message in patch

[U-Boot] [PULL] u-boot-usb/master

2019-05-03 Thread Marek Vasut
The following changes since commit b4ee6daad7a2604ca9466b2ba48de86cc27d381f: Merge tag 'u-boot-imx-20190426' of git://git.denx.de/u-boot-imx (2019-05-01 07:25:51 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v1] ARM: socfpga: stratix10: Enable DMA330 DMA controller

2019-05-03 Thread Ang, Chee Hong
On Fri, 2019-05-03 at 11:55 +0200, Marek Vasut wrote: > On 5/3/19 10:18 AM, chee.hong@intel.com wrote: > > > > From: "Ang, Chee Hong" > Commit message is missing -- why do you need to enable the DMA330 ? > > Don't you have a reset driver, like A10 and Gen5 ? DMA driver for S10 is still

[U-Boot] [PULL, RESEND] Please pull u-boot-rockchip/tags/rockchip-for-2019.07

2019-05-03 Thread Philipp Tomsich
Tom, [resend due to me forgetting to CC the mailing-list] Here’s the first batch of changes for the Rockchip side of the repository. Took a bit longer as expected as there always was ‘one more issue’ to fix up during the merge… Clean bill-of-health in Travis-CI at

  1   2   >