Re: [U-Boot] [PATCH] Kconfig: Move option CONFIG_SYS_NO_FLASH to Kconfig

2016-07-22 Thread Michal Simek
On 21.7.2016 21:14, Tom Rini wrote: > On Thu, Jul 21, 2016 at 04:58:18PM +0200, Michal Simek wrote: >> On 21.7.2016 16:46, Tom Rini wrote: >>> On Thu, Jul 21, 2016 at 01:51:20PM +0200, Michal Simek wrote: Hi Tom, On 19.7.2016 07:12, Siva Durga Prasad Paladugu wrote: > Move config

[U-Boot] [PATCH v2 1/2] tools: Fix return code of fit_image_process_sig()

2016-07-22 Thread Mario Six
When signing images, we repeatedly call fit_add_file_data() with successively increasing size values to include the keys in the DTB. Unfortunately, if large keys are used (such as 4096 bit RSA keys), this process fails sometimes, and mkimage needs to be called repeatedly to integrate the keys into

[U-Boot] [PATCH v2 2/2] rsa: Fix return value and masked error

2016-07-22 Thread Mario Six
When signing images, we repeatedly call fit_add_file_data() with successively increasing size values to include the keys in the DTB. Unfortunately, if large keys are used (such as 4096 bit RSA keys), this process fails sometimes, and mkimage needs to be called repeatedly to integrate the keys into

[U-Boot] [PATCH v2 0/2] Fix signing problems with large keys

2016-07-22 Thread Mario Six
This patch series fixes a problem that occurs when signing FIT images with large keys (e.g. RSA with 4096 bits). Signing sometimes fails because of unexpected return values from fit_add_file_data() and the functions called by it. Some error messages are also removed, since we tolerate failure of

Re: [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox

2016-07-22 Thread Michal Simek
Hi Simon and Stephen, On 20.7.2016 17:51, Stephen Warren wrote: > On 07/20/2016 08:19 AM, Simon Glass wrote: >> +Stephen >> >> On 18 July 2016 at 00:49, Michal Simek wrote: >>> Getting this error: >>> Zynq> sb load hostfs - 100 >>> /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit >>> Unkno

Re: [U-Boot] [PATCH] spl: Fix compilation warnings for arm64

2016-07-22 Thread Michal Simek
On 22.7.2016 05:21, Simon Glass wrote: > Hi Michael, > > On 18 July 2016 at 01:07, Michal Simek wrote: >> Hi Simon, >> >> On 17.7.2016 16:12, Simon Glass wrote: >>> Hi Michal, >>> >>> On 15 July 2016 at 00:48, Michal Simek wrote: Make code 64bit aware. Warnings: +../arch/arm/

Re: [U-Boot] [PATCH 2/2] zynq: defconfig: Remove unnecessary board specifc config files

2016-07-22 Thread Michal Simek
On 19.7.2016 07:13, Siva Durga Prasad Paladugu wrote: > Remove unnecessary board specifc config files for > zynq boards(microzed, picozed, ZC770(all), zed) and point > to zynq common config file. > > Signed-off-by: Siva Durga Prasad Paladugu > --- > Changes for v2: > - Newly added in series > ---

Re: [U-Boot] [PATCH 03/14] drivers: i2c: uclass: parse dt parameters only when CONFIG_OF_CONTROL is enable

2016-07-22 Thread Mugunthan V N
On Friday 22 July 2016 08:51 AM, Simon Glass wrote: > Hi Mugunthan, > > On 18 July 2016 at 03:40, Mugunthan V N wrote: >> parse dt parameter of i2c devices only when CONFIG_OF_CONTROL >> is enabled. >> >> Signed-off-by: Mugunthan V N >> --- >> drivers/i2c/i2c-uclass.c | 14 ++ >> 1

Re: [U-Boot] [PATCH] usb: dwc3: fixes crash in dwc3 driver due to types size mismatch

2016-07-22 Thread B, Ravi
Hi Masahiro-san >> >>>Please explain why this patch fixes the issue. >> >> Ok I will explain, due to the commit[1] the resource_size_t size has >> increased to 8 bytes (64 bit), compared to earlier 32 bit (4bytes) and the >> definition is moved to includes/linux/types.h from asm.h. Due to this c

[U-Boot] [PATCH 2/2] sunxi: Hummingbird_A31_defconfig: Drop MACPWR option

2016-07-22 Thread Chen-Yu Tsai
MACPWR was used to bring the Ethernet PHY out of reset. The designware driver now supports the phy reset gpio binding, so this is no longer needed. In fact in requesting the same GPIO, it makes the designware driver fail to probe. Signed-off-by: Chen-Yu Tsai --- configs/Hummingbird_A31_defconfig

[U-Boot] [PATCH 1/2] sunxi: gpio: Add .xlate function for gpio phandle resolution

2016-07-22 Thread Chen-Yu Tsai
sunxi uses a 2 cell phandle for gpio bindings. Also there are no seperate nodes for each pin bank. Add a custom .xlate function to map gpio phandles to the correct pin bank device. This fixes gpio_request_by_name usage. Fixes: 7aa974858422 ("dm: sunxi: Modify the GPIO driver to support driver

Re: [U-Boot] [PATCH v2 1/3] spi: ti_qspi: Fix failure on multiple READ_ID cmd

2016-07-22 Thread Jagan Teki
On 22 July 2016 at 10:55, Vignesh R wrote: > Populating QSPI_RD_SNGL bit(0x1) in priv->cmd means that value > QSPI_INVAL (0x4) is not written to CMD field of QSPI_SPI_CMD_REG in > ti_qspi_cs_deactivate(). Therefore CS is never deactivated between > successive READ ID which results in sf probe to f

Re: [U-Boot] [PATCH v2 2/3] spi: ti_qspi: Fix compiler warning when DEBUG macro is set

2016-07-22 Thread Jagan Teki
On 22 July 2016 at 10:55, Vignesh R wrote: > clk_div is uninitialized at the beginning of ti_spi_set_speed(), move > debug() print after clk_div calculation to avoid compiler warning and to > have proper value of clk_div printed during debugging. > > Signed-off-by: Vignesh R Reviewed-by: Jagan T

Re: [U-Boot] [PATCH v2 3/3] spi: ti_qspi: Remove delay in read path for dra7xx

2016-07-22 Thread Jagan Teki
On 22 July 2016 at 10:55, Vignesh R wrote: > As per commit b545a98f5dc563 ("spi: ti_qspi: Add delay > for successful bulk erase) says its added to meet bulk erase timing > constraints. But bulk erase is a cmd to flash and delay in read path > does not make sense. Morever, testing on DRA74/DRA72 ev

[U-Boot] [PATCH 2/2] tools: moveconfig: do not check clean tree and compilers for -H option

2016-07-22 Thread Masahiro Yamada
The clean tree (make mrproper) and compilers are required when moving config options, but not needed when we only cleanup headers. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/moveconfig.py b/tools/movecon

[U-Boot] [PATCH 0/2] tools: moveconfig: minor updates related to header cleanup

2016-07-22 Thread Masahiro Yamada
Masahiro Yamada (2): tools: moveconfig: do not cleanup headers in include/generated tools: moveconfig: do not check clean tree and compilers for -H option tools/moveconfig.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) -- 1.9.1 _

[U-Boot] [PATCH 1/2] tools: moveconfig: do not cleanup headers in include/generated

2016-07-22 Thread Masahiro Yamada
The files in include/generated are generated during build, so do not touch files in this directory. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index bf60dbc..b1190e2 100755 --- a/tools/mo

[U-Boot] [PATCH v2] usb: Kconfig: Add Kconfigs entry USB_EHCI_ZYNQ

2016-07-22 Thread Siva Durga Prasad Paladugu
Add Kconfig entry config option for USB_EHCI_ZYNQ and update the same to enable for all zynq boards which supports USB Signed-off-by: Siva Durga Prasad Paladugu --- Changes for v2: - Made CONFIG_USB_EHCI_ZYNQ as default y as per review comment --- configs/zynq_microzed_defconfig |2 ++ con

[U-Boot] [PATCH v4] mmc-uclass: correct the device number

2016-07-22 Thread Kever Yang
Not like the mmc-legacy which the devnum starts from 1, it starts from 0 in mmc-uclass, so the device number should be (devnum + 1) in get_mmc_num(). Signed-off-by: Kever Yang --- Changes in v4: - call blk_find_max_devnum() in mmc_get_next_devnum for error return. Changes in v3: - apply comment

[U-Boot] [PATCH] usb: zynq: Define config USB_STORAGE through defconfig

2016-07-22 Thread Siva Durga Prasad Paladugu
Define config USB_STORAGE through defconfig for all respective zynq boards Signed-off-by: Siva Durga Prasad Paladugu --- configs/zynq_microzed_defconfig |1 + configs/zynq_picozed_defconfig |1 + configs/zynq_zc702_defconfig|1 + configs/zynq_zc706_defconfig|1 + configs

[U-Boot] [PATCH] rk3399: reseve space for trust

2016-07-22 Thread Kever Yang
rk3399 need reserve 0x20 at the begining of DRAM, for ATF usage. Signed-off-by: Kever Yang --- board/rockchip/evb_rk3399/evb-rk3399.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c index

[U-Boot] [PATCH v2] configs: rockchip: remove no use MACRO

2016-07-22 Thread Kever Yang
The CONFIG_ROCKCHIP_COMMON and CONFIG_SPL_ROCKCHIP_COMMON are no use now, remove them. Signed-off-by: Kever Yang --- Changes in v2: - remove ROCKCHIP_COMMON in Kconfig - remvoe SPL_ROCKCHIP_COMMON at the same time arch/arm/mach-rockchip/rk3036/Kconfig | 3 --- include/configs/rk3036_common.h

Re: [U-Boot] [PATCH v2 1/3] spi: ti_qspi: Fix failure on multiple READ_ID cmd

2016-07-22 Thread Mugunthan V N
On Friday 22 July 2016 10:55 AM, Vignesh R wrote: > Populating QSPI_RD_SNGL bit(0x1) in priv->cmd means that value > QSPI_INVAL (0x4) is not written to CMD field of QSPI_SPI_CMD_REG in > ti_qspi_cs_deactivate(). Therefore CS is never deactivated between > successive READ ID which results in sf prob

Re: [U-Boot] [PATCH v2 2/3] spi: ti_qspi: Fix compiler warning when DEBUG macro is set

2016-07-22 Thread Mugunthan V N
On Friday 22 July 2016 10:55 AM, Vignesh R wrote: > clk_div is uninitialized at the beginning of ti_spi_set_speed(), move > debug() print after clk_div calculation to avoid compiler warning and to > have proper value of clk_div printed during debugging. > > Signed-off-by: Vignesh R Reviewed-by:

Re: [U-Boot] [PATCH v2 3/3] spi: ti_qspi: Remove delay in read path for dra7xx

2016-07-22 Thread Mugunthan V N
On Friday 22 July 2016 10:55 AM, Vignesh R wrote: > As per commit b545a98f5dc563 ("spi: ti_qspi: Add delay > for successful bulk erase) says its added to meet bulk erase timing > constraints. But bulk erase is a cmd to flash and delay in read path > does not make sense. Morever, testing on DRA74/DR

[U-Boot] [PATCH 2/3] net: sun8i_emac: Do not configure AHB2 clock

2016-07-22 Thread Chen-Yu Tsai
The sun8i_emac driver erroneously configures the AHB2 clock when it assumes it is configuring the AXI gates, which is not even documented or ever appeared in either the WiP kernel driver or Allwinner's original driver. As a result, AHB2 clock mux is set to an invalid setting, making the EPHY unusa

[U-Boot] [PATCH 3/3] net: sun8i_emac: Drop redundant and incorrect setting of syscon register

2016-07-22 Thread Chen-Yu Tsai
In sun8i_emac_board_setup, the driver partially configures the syscon register for H3 EPHY. However, the settings are incomplete, and completely unusable. The correct settings are later set in sun8i_emac_set_syscon, but the incorrect CLK_SEL setting persists. It is incorrect to use CLK_SEL to sele

[U-Boot] [PATCH 1/3] sunxi: Add EMAC ethernet0 alias for H3 dtsi

2016-07-22 Thread Chen-Yu Tsai
The sunxi ethernet address generation code looks for ethernet[0-3] aliases to find ethernet controllers to generate MAC addresses for. Without a valid address, the driver fails to register. Signed-off-by: Chen-Yu Tsai --- arch/arm/dts/sun8i-h3.dtsi | 4 1 file changed, 4 insertions(+) dif

[U-Boot] [PATCH] Bug in cbfs

2016-07-22 Thread Yaroslav K.
cbfs: Fix incorrect CBFS file header size being used This fixes incorrect filenames in cbfsls output. Signed-off-by: Yaroslav K. --- fs/cbfs/cbfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c index 95a48a4..bfe8e2c 100644 --- a/fs/cb

[U-Boot] fw_env.conf for gigabyte mp30ar0 or force u-boot console on boot

2016-07-22 Thread Thomas Lamprecht
Hi, I'm currently playing with the Gigabyte MP30 AR0 board with an X-Gene 1 CPU from Applied Micro as we're evaluating ARM. A first try was to follow https://lists.centos.org/pipermail/arm-dev/2016-February/001626.html and chain loaded TianoCore and then CentOS or Debian (I'm more familiarwith

[U-Boot] Powerpc(U-Boot/board/amcc/ocotea/flash.c) file couldn't under stand

2016-07-22 Thread pc.ramachandra
Hai Everyone, I am using Powerpc 440GX and u-boot 2014.04 actually i am not understanding the flash configurations actually in my flash total 4 banks and NOR Flash I am using Bank1 8MB 8x8 KByte/4 KWord and 15x64KB/32 KWord Bank2 24MB48x64KByte/32 KWord Bank3 24MB48x64KByte/32

Re: [U-Boot] testing: [PATCH v7 0/3] common: usb_storage: Implement logic to calculate optimal usb maximum trasfer blocks

2016-07-22 Thread Marek Vasut
On 07/22/2016 01:59 AM, Matthew Bright wrote: > On 07/22/2016 01:24 AM, Rajesh Bhagat wrote: Hi, >>> -Original Message- >>> From: Marek Vasut [mailto:marex at denx.de] >>> Sent: Thursday, July 21, 2016 5:13 PM >>> To: Rajesh Bhagat ; Matthew Bright >>> >>> Cc: u-boot at lists.denx.de; Ch

Re: [U-Boot] [PATCH] usb: dwc3: fixes crash in dwc3 driver due to types size mismatch

2016-07-22 Thread Marek Vasut
On 07/22/2016 07:10 AM, Masahiro Yamada wrote: > Hi. > > > 2016-07-21 21:29 GMT+09:00 B, Ravi : >> Hi Marek >> The crash at dwc3 driver observed due to offset misalignment of structure members across files causing wrong code generation and leads to crash, the issue is found during

[U-Boot] [PATCH] ARM: uniphier: add clock/reset settings for xHCI of ProXstream2

2016-07-22 Thread Masahiro Yamada
Deassert resets and enable clock signals of xHCI blocks if the corresponding CONFIG is enabled. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/clk-pxs2.c | 7 ++- arch/arm/mach-uniphier/sc-regs.h | 4 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ar

Re: [U-Boot] [PATCH] usb: zynq: Define config USB_STORAGE through defconfig

2016-07-22 Thread Michal Simek
On 22.7.2016 11:30, Siva Durga Prasad Paladugu wrote: > Define config USB_STORAGE through defconfig for all > respective zynq boards > > Signed-off-by: Siva Durga Prasad Paladugu > --- > configs/zynq_microzed_defconfig |1 + > configs/zynq_picozed_defconfig |1 + > configs/zynq_zc702_de

Re: [U-Boot] [PATCH v2] usb: Kconfig: Add Kconfigs entry USB_EHCI_ZYNQ

2016-07-22 Thread Michal Simek
On 22.7.2016 11:21, Siva Durga Prasad Paladugu wrote: > Add Kconfig entry config option for USB_EHCI_ZYNQ > and update the same to enable for all zynq boards > which supports USB > > Signed-off-by: Siva Durga Prasad Paladugu > --- > Changes for v2: > - Made CONFIG_USB_EHCI_ZYNQ as default y as >

Re: [U-Boot] [PATCH] usb: dwc3: fixes crash in dwc3 driver due to types size mismatch

2016-07-22 Thread Tom Rini
On Fri, Jul 22, 2016 at 02:10:22PM +0900, Masahiro Yamada wrote: > Hi. > > > 2016-07-21 21:29 GMT+09:00 B, Ravi : > > Hi Marek > > > >>> The crash at dwc3 driver observed due to offset misalignment of > >>> structure members across files causing wrong code generation and leads > >>> to crash, the

[U-Boot] [PATCH 1/3] wandboard: Replace is_cpu_type() for macro

2016-07-22 Thread Breno Lima
It's not necessary to use the is_cpu_type function, there is a macro in sys_proto.h already implemented. Signed-off-by: Breno Lima --- board/wandboard/wandboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c ind

[U-Boot] [PATCH 3/3] cgtqmx6eval: Replace is_mx6q() for macro

2016-07-22 Thread Breno Lima
It's not necessary to implement the is_mx6q function, there is a macro in sys_proto.h already implemented. Signed-off-by: Breno Lima --- board/congatec/cgtqmx6eval/cgtqmx6eval.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/board/congatec/cgtqmx6eval/cgtqmx6

[U-Boot] [PATCH 2/3] mx6cuboxi: Replace is_mx6q() for macro

2016-07-22 Thread Breno Lima
It's not necessary to implement the is_mx6q function, there is a macro in sys_proto.h already implemented. Signed-off-by: Breno Lima --- board/solidrun/mx6cuboxi/mx6cuboxi.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/

Re: [U-Boot] [PATCH 1/3] wandboard: Replace is_cpu_type() for macro

2016-07-22 Thread Fabio Estevam
On Fri, Jul 22, 2016 at 9:11 AM, Breno Lima wrote: > It's not necessary to use the is_cpu_type function, there is a macro in > sys_proto.h already implemented. > > Signed-off-by: Breno Lima Reviewed-by: Fabio Estevam ___ U-Boot mailing list U-Boot@lis

Re: [U-Boot] [PATCH 2/3] mx6cuboxi: Replace is_mx6q() for macro

2016-07-22 Thread Fabio Estevam
On Fri, Jul 22, 2016 at 9:11 AM, Breno Lima wrote: > It's not necessary to implement the is_mx6q function, there is a macro in > sys_proto.h already implemented. > > Signed-off-by: Breno Lima Reviewed-by: Fabio Estevam ___ U-Boot mailing list U-Boot@l

Re: [U-Boot] [PATCH 3/3] cgtqmx6eval: Replace is_mx6q() for macro

2016-07-22 Thread Fabio Estevam
On Fri, Jul 22, 2016 at 9:12 AM, Breno Lima wrote: > It's not necessary to implement the is_mx6q function, there is a macro in > sys_proto.h already implemented. > > Signed-off-by: Breno Lima Reviewed-by: Fabio Estevam ___ U-Boot mailing list U-Boot@l

[U-Boot] [GIT PULL] Xilinx changes

2016-07-22 Thread Michal Simek
Hi Tom, I am sending bunch of patches I have collected around Xilinx changes. USB Kconfig was discussed with Marek and I have got his ACK via IRC. Kconfig change CONFIG_SYS_NO_FLASH we discussed together (I have run some builds for others arm stuff) CLK changes was also discussed with Stephen and

Re: [U-Boot] Please pull u-boot-dm

2016-07-22 Thread Simon Glass
Hi Tom, On 17 July 2016 at 11:05, Tom Rini wrote: > On Sun, Jul 17, 2016 at 08:14:47AM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 15 July 2016 at 10:29, Tom Rini wrote: >> > On Fri, Jul 15, 2016 at 10:22:36AM -0600, Simon Glass wrote: >> >> Hi Tom, >> >> >> >> On 15 July 2016 at 10:13, Tom Ri

Re: [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox

2016-07-22 Thread Simon Glass
Hi Michal, On 22 July 2016 at 01:13, Michal Simek wrote: > Hi Simon and Stephen, > > On 20.7.2016 17:51, Stephen Warren wrote: >> On 07/20/2016 08:19 AM, Simon Glass wrote: >>> +Stephen >>> >>> On 18 July 2016 at 00:49, Michal Simek wrote: Getting this error: Zynq> sb load hostfs - 100

[U-Boot] "uEnv.txt" versus "fw_setenv" -- a question about style

2016-07-22 Thread Robert P. J. Day
curious about peoples' preferences when it comes to customizing u-boot on a running system -- using a "uEnv.txt" file that can be trivially edited from user space, as opposed to using the u-boot firmware tools to change the actual environment variables in persistent storage. this is based on

Re: [U-Boot] [PATCH v6 1/4] ARMv7: PSCI: add PSCI v1.0 functions skeleton

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 06:09:36PM +0800, macro.wav...@gmail.com wrote: > From: Hongbo Zhang > > This patch adds all the PSCI v1.0 functions in to the common framework, with > all the functions returning "not implemented" by default, as a common > framework > all the dummy functions are added h

Re: [U-Boot] [RFC PATCH v2 1/5] spl: dfu: add dfu support in SPL

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 08:23:13PM +0530, Ravi Babu wrote: > Traditionally the DFU support is available only > as part 2nd stage boot loader(u-boot) and DFU > is not supported in SPL. > > The SPL-DFU feature is useful for boards which > does not have MMC/SD, ethernet boot mechanism > to boot the

Re: [U-Boot] [RFC PATCH v2 4/5] dra7x: boot: add dfu bootmode support

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 08:23:16PM +0530, Ravi Babu wrote: > This patch enables the DFU boot mode support > for dra7x platform. > > Signed-off-by: Ravi Babu > --- > arch/arm/cpu/armv7/omap-common/boot-common.c |5 + > arch/arm/include/asm/arch-omap5/spl.h|2 +- > common/spl/

Re: [U-Boot] [RFC PATCH v2 2/5] common: dfu: saperate the dfu common functionality

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 08:23:14PM +0530, Ravi Babu wrote: > The cmd_dfu functionality is been used by both SPL and > u-boot, saperating the core dfu functionality moving > it to common/dfu.c. > > Signed-off-by: Ravi Babu Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital sign

Re: [U-Boot] [RFC PATCH v2 3/5] spl: dfu: adding dfu support functions for SPL-DFU

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 08:23:15PM +0530, Ravi Babu wrote: > Adding support functions to run dfu spl commands. > > Signed-off-by: Ravi Babu Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@l

Re: [U-Boot] [RFC PATCH v2 5/5] dra7x: configs: enable SPL-DFU support

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 08:23:17PM +0530, Ravi Babu wrote: > This patch enables the SPL-DFU support for > dra7x platform. > > Signed-off-by: Ravi Babu Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing li

Re: [U-Boot] [RFC PATCH v2 0/5] SPL: DFU Support in SPL

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 08:23:12PM +0530, Ravi Babu wrote: > Traditionally the DFU support is available only > as part 2nd stage boot loader(u-boot) and DFU > is not supported in SPL. > > The SPL-DFU feature is useful for boards which > does not have MMC/SD, ethernet boot mechanism > to boot the

Re: [U-Boot] [PATCH 0/2] am33xx/am437x u-boot DDR init fixes

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 04:28:30AM -0700, Russ Dill wrote: > This patch set fixes a small pair of DDR init issues on am33xx and > am437x platforms. These issue lead an L3 noc error on am437x > platforms that is reported once the kernel boots. What is the set of platforms you tested all of these o

Re: [U-Boot] [PATCH 1/2] ARM: am33xx: Fix DDR init delay placement

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 04:28:31AM -0700, Russ Dill wrote: > The delay needs to be before the write to ref_ctrl register > which initiates refreshes. An improper initialization sequence > generates an L3 noc error. > > Signed-off-by: Russ Dill Reviewed-by: Tom Rini -- Tom signature.asc Des

Re: [U-Boot] [PATCH 2/2] ARM: am33xx: Always inhibit init/refresh during DDR phy init

2016-07-22 Thread Tom Rini
On Thu, Jul 21, 2016 at 04:28:32AM -0700, Russ Dill wrote: > A couple of commits have modified the am33xx/am437x ddr2/ddr3 > initialization path to fix certain issues, but have had the side effect > of causing L3 noc errors during initialization. The two commits are: > > 69b918 "am33xx,ddr3: fix

Re: [U-Boot] [PATCH 0/4] Ability to load linux kernel on rock2 RK3288

2016-07-22 Thread Sandy Patterson
Ziyuan, I retested the kernel loading. I'm using 3.14 kernel. I also tested with linux-4.7-rc6. I still require both the cache reverts and disabling efi_loader on u-boot/master and u-boot-rockchip/master. (see below for testing parameters) Hans, I have been unable to boot an RK3288 rock2 square b

Re: [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox

2016-07-22 Thread Michal Simek
On 22.7.2016 15:33, Simon Glass wrote: > Hi Michal, > > On 22 July 2016 at 01:13, Michal Simek wrote: >> Hi Simon and Stephen, >> >> On 20.7.2016 17:51, Stephen Warren wrote: >>> On 07/20/2016 08:19 AM, Simon Glass wrote: +Stephen On 18 July 2016 at 00:49, Michal Simek wrote:

[U-Boot] [PATCH] mx7: Allow selection of secure or non-secure mode

2016-07-22 Thread Fabio Estevam
Commit be1a17ff689 ("mx7_common: use Kconfig for ARMv7 non-secure mode") breaks the boot of a NXP 4.1.15 kernel using mx7dsabresd_secure_defconfig target. This problem happens because after this commit non-secure mode is always selected at CPU level. Fix this by only selecting CPU_V7_HAS_NONSEC

Re: [U-Boot] [PATCH] Fix build for mx7dsabresd (secure config)

2016-07-22 Thread Fabio Estevam
Hi Stefano, On Wed, Jul 20, 2016 at 12:52 PM, Stefano Babic wrote: > After moving CONFIG_USB_EHCI_MX7 to Kconfig, > the flag must be set in defconfig for mx7dsabresd. > It is already for the not secure config, it is > missing in the secure configuration. > > Signed-off-by: Stefano Babic > CC: Fa

Re: [U-Boot] [PATCH] pico-imx6ul: drop warning due to redefined

2016-07-22 Thread Fabio Estevam
On Wed, Jul 20, 2016 at 12:54 PM, Stefano Babic wrote: > USB gadget configuration is set in defconfig and > must be removed from pico-imx6ul.h. > > Signed-off-by: Stefano Babic > CC: Fabio Estevam Reviewed-by: Fabio Estevam ___ U-Boot mailing list U-

Re: [U-Boot] [PATCH] mx6: wandboard: fix warning due to missing prototype

2016-07-22 Thread Fabio Estevam
On Wed, Jul 20, 2016 at 12:53 PM, Stefano Babic wrote: > Signed-off-by: Stefano Babic > CC: Fabio Estevam Reviewed-by: Fabio Estevam ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox

2016-07-22 Thread Simon Glass
On 22 July 2016 at 08:02, Michal Simek wrote: > On 22.7.2016 15:33, Simon Glass wrote: >> Hi Michal, >> >> On 22 July 2016 at 01:13, Michal Simek wrote: >>> Hi Simon and Stephen, >>> >>> On 20.7.2016 17:51, Stephen Warren wrote: On 07/20/2016 08:19 AM, Simon Glass wrote: > +Stephen >

Re: [U-Boot] [PATCH 03/14] drivers: i2c: uclass: parse dt parameters only when CONFIG_OF_CONTROL is enable

2016-07-22 Thread Simon Glass
Hi Muganthan, On 22 July 2016 at 01:35, Mugunthan V N wrote: > On Friday 22 July 2016 08:51 AM, Simon Glass wrote: >> Hi Mugunthan, >> >> On 18 July 2016 at 03:40, Mugunthan V N wrote: >>> parse dt parameter of i2c devices only when CONFIG_OF_CONTROL >>> is enabled. >>> >>> Signed-off-by: Mugunt

[U-Boot] [PATCH v2 1/3] Revert "arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL) with asm code"

2016-07-22 Thread Sandy Patterson
Commit c09d29057a and df120142f36 break kernel loading on rock2 board. console output: Starting kernel ... ### ERROR ### Please RESET the board ### This reverts commit c09d29057ab0b04db0857d319c6bff74de31b9c3. Conflicts: arch/arm/cpu/armv7/cache_v7.c arch/arm/cpu/armv7/cache_v7_

[U-Boot] [PATCH v2 2/3] Revert "arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_INVAL_ALL) with asm code"

2016-07-22 Thread Sandy Patterson
Commit c09d29057a and df120142f36 break kernel loading on rock2 board. console output: Starting kernel ... ### ERROR ### Please RESET the board ### This reverts commit df120142f36b6ff8b12187b8860269763b2b3203. Conflicts: arch/arm/cpu/armv7/cache_v7.c arch/arm/cpu/armv7/cache_v7_

[U-Boot] [PATCH v2 0/3] Fix loading kernel on RK3288 Radxa Rock2 Square

2016-07-22 Thread Sandy Patterson
I wasn't able to load the linux kernel using a Rock2 board using the latest master branch. The board hangs after it has handed executing over to the kernel. I found that the latest release that worked was v2016.03. This patchset fixes kernel loading on rk3288 rock2 square board. I tested with wit

[U-Boot] [PATCH v2 3/3] CONFIG_EFI_LOADER breaks rock2 kernel loading

2016-07-22 Thread Sandy Patterson
The problem seems to be invalidate_icache_all() inside the runtime. This patch just disables EFI_LOADER for rock2 board. Signed-off-by: Sandy Patterson --- configs/rock2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/rock2_defconfig b/configs/rock2_defconfig index 3e16b80

Re: [U-Boot] "uEnv.txt" versus "fw_setenv" -- a question about style

2016-07-22 Thread Wolfgang Denk
Dear "Robert P. J. Day", In message you wrote: > > curious about peoples' preferences when it comes to customizing > u-boot on a running system -- using a "uEnv.txt" file that can be > trivially edited from user space, as opposed to using the u-boot > firmware tools to change the actual envir

Re: [U-Boot] [PATCH 0/4] Ability to load linux kernel on rock2 RK3288

2016-07-22 Thread Ziyuan Xu
+Alexander Graf On 2016年07月22日 21:49, Sandy Patterson wrote: Ziyuan, I retested the kernel loading. I'm using 3.14 kernel. I also tested with linux-4.7-rc6. I still require both the cache reverts and disabling efi_loader on u-boot/master and u-boot-rockchip/master. (see below for testing par

[U-Boot] [PATCH 1/5] sandbox: Add instructions about building on 32-bit machines

2016-07-22 Thread Simon Glass
Sandbox is built with 64-bit ints by default. This doesn't work properly on 32-bit machines. Signed-off-by: Simon Glass --- board/sandbox/README.sandbox | 3 +++ include/configs/sandbox.h| 5 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/board/sandbox/README.sandbox b/

[U-Boot] [PATCH 2/5] lzmadec: Use the same type as the lzma call

2016-07-22 Thread Simon Glass
With sandbox on 32-bit the size_t type can be a little inconsistent. Use the same type as the caller expects to avoid a compiler warning. Signed-off-by: Simon Glass --- cmd/lzmadec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/lzmadec.c b/cmd/lzmadec.c index 1ad

[U-Boot] [PATCH 3/5] part_efi: Fix compiler warning on 32-bit sandbox

2016-07-22 Thread Simon Glass
This fixes a mismatch between the %zu format and the type used on sandbox. Signed-off-by: Simon Glass --- disk/part_efi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/disk/part_efi.c b/disk/part_efi.c index 0af1e92..01f71be 100644 --- a/disk/part_efi.c +++ b/di

[U-Boot] [PATCH 4/5] hashtable: Fix compiler warning on 32-bit sandbox

2016-07-22 Thread Simon Glass
This fixes a mismatch between the %zu format and the type used on sandbox. Signed-off-by: Simon Glass --- lib/hashtable.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/hashtable.c b/lib/hashtable.c index 435e2a6..4e52b36 100644 --- a/lib/hashtable.c +++ b/li

[U-Boot] [PATCH 5/5] dtoc: Correct the type widening code in fdt_fallback

2016-07-22 Thread Simon Glass
This code does not match the fdt version in fdt.py. When dtoc is unable to use the Python libfdt library, it uses the fallback version, which does not widen arrays correctly. Fix this to avoid a warning 'excess elements in array initialize' in dt-platdata.c which happens on some platforms. Report

[U-Boot] suggested/stealable setups for robustness with switchable partitions?

2016-07-22 Thread Robert P. J. Day
followup to my earlier post, i'll keep this short as i want to do some research first, but i'm looking for setups where target boards have dual partitions that switch between active and inactive for reliability. first, i can see that there are some examples in u-boot already. there's the taur

[U-Boot] [PATCH] warp7: Move some USB configuration options to defconfig

2016-07-22 Thread Breno Lima
Currently it's recommended to move some configuration options to the defconfig file. Move some USB related options to the defconfig file. Signed-off-by: Breno Lima --- configs/warp7_defconfig | 6 ++ include/configs/warp7.h | 9 - 2 files changed, 6 insertions(+), 9 deletions(-) di

[U-Boot] confused by "upgrade_available=0\0" in include/configs/taurus.h

2016-07-22 Thread Robert P. J. Day
never embarrassed to make a fool of myself, i have to admit that, while crawling through examples of u-boot boards that define dual partitions, i am confused by the following in include/configs/taurus.h (only some lines reproduced): #define CONFIG_BOOTARGS_AXM

[U-Boot] [PATCH] mx7dsabresd_secure_defconfig: Use CONFIG_ARMV7_BOOT_SEC_DEFAULT

2016-07-22 Thread Fabio Estevam
There is no need for introducing MX7_SEC, as there is the CONFIG_ARMV7_BOOT_SEC_DEFAULT option for this purpose. Switch to CONFIG_ARMV7_BOOT_SEC_DEFAULT and get rid of MX7_SEC. Tested by booting a 4.1.15 NXP kernel with mx7dsabresd_secure_defconfig target. Signed-off-by: Fabio Estevam --- arch

[U-Boot] [PATCH] armv8: fsl-layerscape: mmu: Fix enabling MMU

2016-07-22 Thread York Sun
MMU bit in SCTLR needs to be set explicitly after tables are created. It isn't an issue for EL3 becuase this bit is already set by early MMU setup. But for other exception levels this bit was not set. Signed-off-by: York Sun --- Setting CR_M bit wasn't needed for this function when U-Boot runs at

Re: [U-Boot] [PATCH v2 1/3] Revert "arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL) with asm code"

2016-07-22 Thread Tom Rini
On Fri, Jul 22, 2016 at 10:40:11AM -0400, Sandy Patterson wrote: > Commit c09d29057a and df120142f36 break kernel loading on rock2 board. > > console output: > Starting kernel ... > > ### ERROR ### Please RESET the board ### > > This reverts commit c09d29057ab0b04db0857d319c6bff74de31b9c3. > >

Re: [U-Boot] [PATCH v2 1/3] Revert "arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL) with asm code"

2016-07-22 Thread Sandy Patterson
I see the problem with 4.7-rc6. Is there a different kernel I should test with? On Fri, Jul 22, 2016 at 4:39 PM, Tom Rini wrote: > On Fri, Jul 22, 2016 at 10:40:11AM -0400, Sandy Patterson wrote: > > > Commit c09d29057a and df120142f36 break kernel loading on rock2 board. > > > > console output:

Re: [U-Boot] [PATCH v2 1/3] Revert "arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL) with asm code"

2016-07-22 Thread Tom Rini
On Fri, Jul 22, 2016 at 04:40:53PM -0400, Sandy Patterson wrote: > I see the problem with 4.7-rc6. Is there a different kernel I should test > with? No, I was hoping (from some other threads I had skimmed) that this was a problem only with an older 3.14.y. You need to figure out where / why the

Re: [U-Boot] suggested/stealable setups for robustness with switchable partitions?

2016-07-22 Thread Wolfgang Denk
Dear Robert, In message you wrote: > > followup to my earlier post, i'll keep this short as i want to do > some research first, but i'm looking for setups where target boards > have dual partitions that switch between active and inactive for > reliability. Switching partitions is usually not

[U-Boot] [PATCH v2 0/8] basic rockchip rk3188 support

2016-07-22 Thread Heiko Stuebner
Second version. Simon already applied the cleanup patches from my first version. I've tried to address Simons comments and hopefully haven't overlooked any. SPL is still missing, so following Simons comment from earlier it cannot go in yet, but maybe the first two cleanups can. changes in v2: - m

[U-Boot] [PATCH v2 2/8] rockchip: remove log2 reimplementation from clock drivers

2016-07-22 Thread Heiko Stuebner
The already available ilog2 function does exactly the same in the common case than the log2 function the current clock-driver reimplement. So, simply move to that one. Signed-off-by: Heiko Stuebner --- drivers/clk/rockchip/clk_rk3036.c | 10 +++--- drivers/clk/rockchip/clk_rk3288.c | 10 +++-

[U-Boot] [PATCH v2 1/8] rockchip: move clock drivers into a subdirectory

2016-07-22 Thread Heiko Stuebner
With the number of Rockchip clock drivers increasing, don't clutter up the core drivers/clk directory with them and instead move them out of the way into a separate subdirectory. Suggested-by: Simon Glass Signed-off-by: Heiko Stuebner --- drivers/clk/Makefile | 3 +- drivers/clk/

[U-Boot] [PATCH v2 3/8] rockchip: rk3188: Add header files for PMU and GRF

2016-07-22 Thread Heiko Stuebner
PMU is the power management unit and GRF is the general register file. Both are heavily used in U-Boot. Add header files with register definitions. Signed-off-by: Heiko Stuebner Acked-by: Simon Glass --- arch/arm/include/asm/arch-rockchip/grf_rk3188.h | 589 arch/arm/in

[U-Boot] [PATCH v2 4/8] rockchip: rk3188: Add pinctrl driver

2016-07-22 Thread Heiko Stuebner
Add a driver which supports pin multiplexing setup for the most commonly used peripherals. Signed-off-by: Heiko Stuebner Acked-by: Simon Glass --- drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/rockchip/Makefile | 1 + drivers/pinctrl/rockchip/pinctrl_rk3188.c | 61

[U-Boot] [PATCH v2 5/8] rockchip: rk3188: Bring in rk3066/rk3188 clock bindings

2016-07-22 Thread Heiko Stuebner
Bring in required device clock binding files from Linux. The clock trees for rk3066 and rk3188 are largely similar, which makes them share the common parts in a shared header. While we focus on rk3188 for now, bring in both headers already for completeness sake. Signed-off-by: Heiko Stuebner ---

[U-Boot] [PATCH v2 6/8] rockchip: rk3188: Add clock driver

2016-07-22 Thread Heiko Stuebner
Add a driver for setting up and modifying the various PLLs and peripheral clocks on the RK3188. Signed-off-by: Heiko Stuebner --- arch/arm/include/asm/arch-rockchip/cru_rk3188.h | 183 + drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk_rk3188.c

[U-Boot] [PATCH v2 7/8] rockchip: rk3188: add core support

2016-07-22 Thread Heiko Stuebner
Add the core architecture code for the rk3188. It doesn't support the SPL yet, as because of some unknown error it doesn't start yet. Signed-off-by: Heiko Stuebner --- arch/arm/dts/rk3188.dtsi | 631 ++ arch/arm/dts/rk3xxx.dtsi |

[U-Boot] [PATCH v2 8/8] rockchip: rk3188: Radxa Rock board

2016-07-22 Thread Heiko Stuebner
The Rock is a RK3188 based single board computer by Radxa. Currently it still relies on the proprietary DDR init and cannot use the generic SPL, but at least is able to boot a linux kernel and system up to a regular login prompt. Signed-off-by: Heiko Stuebner --- arch/arm/dts/Makefile

Re: [U-Boot] [PATCH v2 7/8] rockchip: rk3188: add core support

2016-07-22 Thread Heiko Stübner
Am Freitag, 22. Juli 2016, 23:51:11 schrieb Heiko Stuebner: > Add the core architecture code for the rk3188. > It doesn't support the SPL yet, as because of some > unknown error it doesn't start yet. > > Signed-off-by: Heiko Stuebner > --- > arch/arm/dts/rk3188.dtsi | 631 >

[U-Boot] [PATCH 1/1] ext4: Refuse to mount filesystems with 64bit feature set

2016-07-22 Thread Tom Rini
With e2fsprogs after 1.43 the 64bit and metadata_csum features are enabled by default. The metadata_csum feature changes how ext4_group_desc->bg_checksum is calculated, which would break write support. The 64bit feature however introduces changes such that it cannot be read by implementations tha

Re: [U-Boot] confused by "upgrade_available=0\0" in include/configs/taurus.h

2016-07-22 Thread Wolfgang Denk
Dear "Robert P. J. Day", In message you wrote: > > never embarrassed to make a fool of myself, i have to admit that, > while crawling through examples of u-boot boards that define dual > partitions, i am confused by the following in > include/configs/taurus.h (only some lines reproduced): Thi

Re: [U-Boot] [PATCH 1/5] sandbox: Add instructions about building on 32-bit machines

2016-07-22 Thread Tom Rini
On Fri, Jul 22, 2016 at 09:22:45AM -0600, Simon Glass wrote: > Sandbox is built with 64-bit ints by default. This doesn't work properly on > 32-bit machines. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [PATCH 3/5] part_efi: Fix compiler warning on 32-bit sandbox

2016-07-22 Thread Tom Rini
On Fri, Jul 22, 2016 at 09:22:47AM -0600, Simon Glass wrote: > This fixes a mismatch between the %zu format and the type used on sandbox. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [PATCH 2/5] lzmadec: Use the same type as the lzma call

2016-07-22 Thread Tom Rini
On Fri, Jul 22, 2016 at 09:22:46AM -0600, Simon Glass wrote: > With sandbox on 32-bit the size_t type can be a little inconsistent. Use > the same type as the caller expects to avoid a compiler warning. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description:

  1   2   >