Re: [U-Boot] [PATCH 3/3][v3] [RESEND] arm: ls1046ardb: Add SD secure boot target

2017-04-04 Thread Ruchika Gupta
> -Original Message- > From: york sun > Sent: Monday, April 03, 2017 9:01 PM > To: Ruchika Gupta ; u-boot@lists.denx.de > Cc: Vini Pillai ; Sumit Garg > Subject: Re: [PATCH 3/3][v3] [RESEND] arm: ls1046ardb: Add SD secure boot > target > > On 04/03/2017 12:00 AM, Ruchika Gupta wrote: > >

Re: [U-Boot] [PATCH] arm64: zynqmp: fail SPL build if no psu_init found

2017-04-04 Thread Michal Simek
On 3.4.2017 13:38, Jean-Francois Dagenais wrote: > >> On Apr 3, 2017, at 02:55, Michal Simek wrote: >> >> This is not only one way how to configure system. You can use >> psu_init*.tcl and configure chip through jtag and then you don't need >> this .c/.h files. >> You should be able to see warnin

Re: [U-Boot] [PATCH v3 0/9] sunxi: Remove SYS_EXTRA_OPTIONS

2017-04-04 Thread Maxime Ripard
Hi, On Sun, Apr 02, 2017 at 12:59:02PM +0200, Mylène Josserand wrote: > This a V3 for my patchset that removes the SYS_EXTRA_OPTIONS from all > sunxi defconfigs. > The values in this variable are converted to Kconfig or simply removed. > > Based on u-boot sunxi repository: git://git.denx.de/u-boo

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Joakim Tjernlund
On Mon, 2017-04-03 at 22:17 +0200, Wolfgang Denk wrote: > Dear Joakim, Dear Wolfgang, > > In message <1491221969.4177.81.ca...@infinera.com> you wrote: > > I am looking at adding support for runtime sizing of CONFIG_ENV_ADDR as > > we need to replace out flash but we don't want to create a new u

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-04 Thread Lukasz Majewski
Hi Stefan, > Hi Lukasz, > > On 2017-04-03 04:20, Lukasz Majewski wrote: > > Hi Stefan, > > > > Thanks for your patch. Please allow me to share some ideas for > > improvements. > > > >> From: Stefan Agner > >> > >> This patchset enables to boot elf binaries on secondary Cortex-M > >> class core

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-04 Thread Lukasz Majewski
Hi Marek, Stefan, > On 04/03/2017 11:36 PM, Stefan Agner wrote: > > Hi Lukasz, > > > > On 2017-04-03 04:20, Lukasz Majewski wrote: > >> Hi Stefan, > >> > >> Thanks for your patch. Please allow me to share some ideas for > >> improvements. > >> > >>> From: Stefan Agner > >>> > >>> This patchset e

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-04 Thread Lukasz Majewski
Hi Stefan, > On 2017-04-03 16:34, Marek Vasut wrote: > > On 04/04/2017 12:42 AM, Stefan Agner wrote: > >> On 2017-04-03 15:07, Marek Vasut wrote: > >>> On 04/03/2017 11:36 PM, Stefan Agner wrote: > Hi Lukasz, > > On 2017-04-03 04:20, Lukasz Majewski wrote: > > Hi Stefan, > >

Re: [U-Boot] [PATCH] libfdt: fix build with Python 3

2017-04-04 Thread Stefano Babic
Hi Stefan, On 03/04/2017 23:02, Stefan Agner wrote: > But then, I don't expect that "/usr/bin/env python" is looking at > PYTHON. > > As far as I understand env, it just looks up the current environment to > run its COMMAND argument. Agree, this is also mz understanding. > It is helpful as a s

Re: [U-Boot] [PATCH v3 0/9] sunxi: Remove SYS_EXTRA_OPTIONS

2017-04-04 Thread Jagan Teki
On Tuesday 04 April 2017 01:42 PM, Maxime Ripard wrote: Hi, On Sun, Apr 02, 2017 at 12:59:02PM +0200, Mylène Josserand wrote: This a V3 for my patchset that removes the SYS_EXTRA_OPTIONS from all sunxi defconfigs. The values in this variable are converted to Kconfig or simply removed. Based on

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Lukasz Majewski
Hi Joakim, > I am looking at adding support for runtime sizing of CONFIG_ENV_ADDR > as we need to replace out flash but we don't want to create a new > u-boot binairy just for this simple change. Please correct me if I did not understand your use case correctly. Other boards have separate region

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-04 Thread Marek Vasut
On 04/04/2017 02:02 AM, Stefan Agner wrote: [...] Admitedly, I didn't look at the patch, but if you want to boot ad-hoc cores, you can very well also boot secondary cores on the current CPU complex with the same command. Why not ? >>> >>> Sure, it could be done. I just feel it is not

Re: [U-Boot] [PATCH v2 0/5] Patches to reduce TPL code size

2017-04-04 Thread Heiko Stübner
Am Sonntag, 2. April 2017, 09:50:27 CEST schrieb Simon Glass: > With the rockchip 'rock' board some build and code size problems have come > to light with TPL. This series provides a few ideas to improve things. great stuff! With these patches applied, rk3188-rock still boots and the TPL has come

Re: [U-Boot] [PATCH v2 1/5] string: Provide a slimmed-down memset()

2017-04-04 Thread Heiko Stübner
Am Sonntag, 2. April 2017, 09:50:28 CEST schrieb Simon Glass: > Most of the time the optimised memset() is what we want. For extreme > situations such as TPL it may be too large. For example on the 'rock' > board, using a simple loop saves a useful 48 bytes. With gcc 4.9 and > the rodata bug, this

Re: [U-Boot] [PATCH v3 0/9] sunxi: Remove SYS_EXTRA_OPTIONS

2017-04-04 Thread Maxime Ripard
On Tue, Apr 04, 2017 at 02:25:09PM +0530, Jagan Teki wrote: > On Tuesday 04 April 2017 01:42 PM, Maxime Ripard wrote: > > Hi, > > > > On Sun, Apr 02, 2017 at 12:59:02PM +0200, Mylène Josserand wrote: > > > This a V3 for my patchset that removes the SYS_EXTRA_OPTIONS from all > > > sunxi defconfigs

Re: [U-Boot] [PATCH v3 0/9] sunxi: Remove SYS_EXTRA_OPTIONS

2017-04-04 Thread Jagan Teki
On Tue, Apr 4, 2017 at 3:11 PM, Maxime Ripard wrote: > On Tue, Apr 04, 2017 at 02:25:09PM +0530, Jagan Teki wrote: >> On Tuesday 04 April 2017 01:42 PM, Maxime Ripard wrote: >> > Hi, >> > >> > On Sun, Apr 02, 2017 at 12:59:02PM +0200, Mylène Josserand wrote: >> > > This a V3 for my patchset that r

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Joakim Tjernlund
On Tue, 2017-04-04 at 10:55 +0200, Lukasz Majewski wrote: > Hi Joakim, > > > I am looking at adding support for runtime sizing of CONFIG_ENV_ADDR > > as we need to replace out flash but we don't want to create a new > > u-boot binairy just for this simple change. > > Please correct me if I did no

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Wolfgang Denk
Dear Joakim, In message <1491293863.4177.92.ca...@infinera.com> you wrote: > > After a brief look I think we are good. Let me explain, I am only > making it possible to #define CONFIG_ENV_ADDR, CONFIG_ENV_SECT_SIZE etc. > as non constant data by moving the assignment of flash_addr etc. to runtime

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Wolfgang Denk
Dear Joakim, In message <1491301459.28343.1.ca...@infinera.com> you wrote: > > Use case is when CONFIG_ENV_SECT_SIZE and/or CONFIG_ENV_ADDR are non > constants. That is my exact question - when would this happen? Flash sectors do now wander around in memory or change size :-) So you attempt to

Re: [U-Boot] [PATCH 3/7] arm: omap-common: sata: prepare driver for DM conversion

2017-04-04 Thread Jean-Jacques Hiblot
On 01/04/2017 06:21, Simon Glass wrote: Hi, On 24 March 2017 at 06:24, Jean-Jacques Hiblot wrote: From: Mugunthan V N Prepare sata driver for DM conversion by abstracting sata phy init to seperate function. Signed-off-by: Mugunthan V N Signed-off-by: Jean-Jacques Hiblot --- arch/arm/m

Re: [U-Boot] [PATCH v2 0/5] Patches to reduce TPL code size

2017-04-04 Thread Heiko Stuebner
Am Dienstag, 4. April 2017, 11:34:52 CEST schrieb Heiko Stübner: > Am Sonntag, 2. April 2017, 09:50:27 CEST schrieb Simon Glass: > > With the rockchip 'rock' board some build and code size problems have come > > to light with TPL. This series provides a few ideas to improve things. > > great stuff

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Joakim Tjernlund
On Tue, 2017-04-04 at 12:31 +0200, Wolfgang Denk wrote: > Dear Joakim, > > In message <1491301459.28343.1.ca...@infinera.com> you wrote: > > > > Use case is when CONFIG_ENV_SECT_SIZE and/or CONFIG_ENV_ADDR are non > > constants. > > That is my exact question - when would this happen? Flash sec

Re: [U-Boot] [PATCH 6/7] dm: scsi: fix scan

2017-04-04 Thread Jean-Jacques Hiblot
On 01/04/2017 06:22, Simon Glass wrote: Hi Jean-Jacques, On 24 March 2017 at 06:24, Jean-Jacques Hiblot wrote: With DM_SCSI enabled, scsi scan suffers 2 problems: * blk_create_devicef is called with blkz = 0, leading to a divide-by-0 exception * new blk devices are created at each scan.

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Wolfgang Denk
Dear Joakim, In message <1491302640.30240.1.ca...@infinera.com> you wrote: > > > That is my exact question - when would this happen? Flash sectors > > do now wander around in memory or change size :-) > > No, but they happens when you are forced to update you HW with new type of > flashes > with

Re: [U-Boot] [PATCH v3 0/9] sunxi: Remove SYS_EXTRA_OPTIONS

2017-04-04 Thread Maxime Ripard
On Tue, Apr 04, 2017 at 03:26:55PM +0530, Jagan Teki wrote: > On Tue, Apr 4, 2017 at 3:11 PM, Maxime Ripard > wrote: > > On Tue, Apr 04, 2017 at 02:25:09PM +0530, Jagan Teki wrote: > >> On Tuesday 04 April 2017 01:42 PM, Maxime Ripard wrote: > >> > Hi, > >> > > >> > On Sun, Apr 02, 2017 at 12:59:0

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Joakim Tjernlund
On Tue, 2017-04-04 at 13:27 +0200, Wolfgang Denk wrote: > Dear Joakim, > > In message <1491302640.30240.1.ca...@infinera.com> you wrote: > > > > > That is my exact question - when would this happen? Flash sectors > > > do now wander around in memory or change size :-) > > > > No, but they happe

Re: [U-Boot] [PATCH 11/17] aspeed: Add I2C Driver

2017-04-04 Thread Benjamin Herrenschmidt
On Mon, 2017-03-27 at 21:40 +1100, Benjamin Herrenschmidt wrote: > On Wed, 2017-03-22 at 07:05 -0600, Simon Glass wrote: > > On 16 March 2017 at 15:36, Maxim Sloyko wrote: > > > Add Device Model based I2C driver for ast2500/ast2400 SoCs. > > > The driver is very limited, it only supports master mo

[U-Boot] [PATCH 2/3] armv8: ls1043a: Drop macro CONFIG_LS1043A

2017-04-04 Thread York Sun
Use CONFIG_ARCH_LS1043A instead. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 2 +- arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 +- arch/arm/include/asm/fsl_secure_boot.h| 4 ++-- drivers/net/fm/Makefile | 2 +-

[U-Boot] [PATCH 1/3] armv8: ls2080a: Drop macro CONFIG_LS2080A

2017-04-04 Thread York Sun
Use CONFIG_ARCH_LS2080A instead. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 2 +- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 6 +++--- arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S | 2 +- arch/arm/cpu/armv8/fsl-layerscape/spl.c

[U-Boot] [PATCH 3/3] armv7: ls1021a: Drop macro CONFIG_LS102XA

2017-04-04 Thread York Sun
Use CONFIG_ARCH_LS1021A instead. Signed-off-by: York Sun --- arch/arm/cpu/armv7/Makefile | 2 +- arch/arm/dts/Makefile | 2 +- arch/arm/include/asm/arch-ls102xa/config.h | 2 +- arch/arm/include/asm/config.h | 2 +- board/freescale/common/arm

[U-Boot] U-Boot Application that can access all files on USB

2017-04-04 Thread ah pco
I just started learning about U-Boot and being able to write applications that can be run with U-Boot, so please be patient and if possible add more details to help me learn. I wanted to ask for help, as I am trying to connect USB flash drive to my Arm Cortex A9 device, which then connects to my l

Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase

2017-04-04 Thread Mingkai Hu
> -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Tuesday, March 28, 2017 1:57 AM > To: york sun > Cc: Jagan Teki ; u-boot@lists.denx.de; Mingkai Hu > > Subject: Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase > > On Mon, Mar 27, 2017 at 11:05 P

Re: [U-Boot] [PATCH 02/16] board_f: Drop return value from initdram()

2017-04-04 Thread york sun
On 03/31/2017 07:40 AM, Simon Glass wrote: > At present we cannot use this function as an init sequence call without a > wrapper, since it returns the RAM size. Adjust it to set the RAM size in > global_data instead, and return 0 on success. > > Signed-off-by: Simon Glass > --- > This is a _lot_

Re: [U-Boot] [PATCH 03/16] board_f: Rename initdram() to dram_init()

2017-04-04 Thread york sun
On 03/31/2017 07:40 AM, Simon Glass wrote: > This allows us to use the same DRAM init function on all archs. > > Signed-off-by: Simon Glass > --- > Reviewed-by: York Sun ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 01/16] board_f: Drop board_type parameter from initdram()

2017-04-04 Thread york sun
On 03/31/2017 07:40 AM, Simon Glass wrote: > It looks like only cm5200 and tqm8xx use this feature, so we don't really > need it in generic code. Drop it and have the users access gd->board_type > directly. > > Signed-off-by: Simon Glass > --- Reviewed-by: York Sun _

[U-Boot] [PATCH v5 1/3] arm: tegra: initial support for apalis tk1

2017-04-04 Thread Marcel Ziswiler
From: Marcel Ziswiler This patch adds board support for the Toradex Apalis TK1 a computer on module which can be used on different carrier boards. The module consists of a Tegra TK1 SoC, a PMIC solution, 2 GB of DDR3L RAM, a bunch of level shifters, an eMMC, a TMP451 temperature sensor chip, an

Re: [U-Boot] [PATCHV2] tools: plbimage support generate rcw file

2017-04-04 Thread YUAN Linyu
> -Original Message- > From: york sun [mailto:york@nxp.com] > Sent: Monday, March 27, 2017 2:44 AM > To: yuan linyu; u-boot@lists.denx.de > Cc: YUAN Linyu > Subject: Re: [PATCHV2] tools: plbimage support generate rcw file > > > Only minor cosmetic issues. I will fix them for you thi

[U-Boot] [PATCH 1/6] led: add get_status support for DM LED support

2017-04-04 Thread techping . chan
From: Ziping Chen Sometimes we need to read back the status of a LED. Add a led_get_status function for DM LED support, and add a get_status function for the driver to implement this function. Signed-off-by: Ziping Chen --- drivers/led/led-uclass.c | 10 ++ include/led.h|

[U-Boot] regression: setting the rpi mac address stopped working

2017-04-04 Thread Gerd Hoffmann
Hi, u-boot 2016.11 & newer doesn't set the mac address on my raspberry pi any more, so the linux kernel picks a random mac address. Bisected to this commit: commit b91c6a1209e7da1a7f989d9ac35d0d8be0b7b710 Author: Simon Glass Date: Wed Oct 5 20:42:11 2016 -0600 Fix return value in trail

Re: [U-Boot] [PATCH 11/17] aspeed: Add I2C Driver

2017-04-04 Thread Benjamin Herrenschmidt
On Wed, 2017-03-22 at 07:05 -0600, Simon Glass wrote: > On 16 March 2017 at 15:36, Maxim Sloyko wrote: > > Add Device Model based I2C driver for ast2500/ast2400 SoCs. > > The driver is very limited, it only supports master mode and > > synchronous byte-by-byte reads/writes, no DMA or Pool Buffers.

[U-Boot] [PATCH 2/6] led: gpio: add support for get_status function

2017-04-04 Thread techping . chan
From: Ziping Chen The status of a GPIO-connected LED can be read back by reading the GPO value. Add the support for get_status function in led_gpio driver. Signed-off-by: Ziping Chen --- drivers/led/led_gpio.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/led/led_gp

Re: [U-Boot] fatls returncode

2017-04-04 Thread Mirza Krak
Dear Wolfgang. 2017-03-23 16:13 GMT+01:00 Wolfgang Denk : > Dear Mirza, > > In message > you > wrote: >> >> I am running U-boot 2015.04 and experiencing some issues with "fatls" >> command. > ... >> Normally "fatls" returns "0" when it does a successful list. But we >> have found a case where

[U-Boot] Cannot boot without monitor connected.

2017-04-04 Thread João M . S . Silva
Hi, I reported this to Olimex, but it seems related to u-boot. I have this board, A20-OLinuXino-MICRO-4GB, running for about 4 years. I use it rarely to build executables in ARM format. Some months ago, I found it down. I tried to boot it without success. Then I connected a monitor to the HD

[U-Boot] [PATCH 1/4] board: advantech: dms-ba16: Add the configuration options for display initialization

2017-04-04 Thread Ken Lin
Add the configuration options for display initialization in case we need to do the display initialization in kernel to support different timing settings Signed-off-by: Ken Lin --- board/advantech/dms-ba16/dms-ba16.c | 3 +++ include/configs/advantech_dms-ba16.h | 2 ++ 2 files changed, 5 insert

[U-Boot] [PATCH 3/4] board: advantech: dms-ba16: fix AR8033 reset timing issue

2017-04-04 Thread Ken Lin
Add the delay (10ms) to ensure the clock is stable and to meet the clock-to-reset(1ms) requirement recommended in the AR8033 datasheet Signed-off-by: Ken Lin --- board/advantech/dms-ba16/dms-ba16.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/advantech/dms-ba16/dm

Re: [U-Boot] [PATCH 3/3] armv7: ls1021a: Drop macro CONFIG_LS102XA

2017-04-04 Thread Alison Wang
> Subject: [PATCH 3/3] armv7: ls1021a: Drop macro CONFIG_LS102XA > > Use CONFIG_ARCH_LS1021A instead. > > Signed-off-by: York Sun > --- > > arch/arm/cpu/armv7/Makefile | 2 +- > arch/arm/dts/Makefile | 2 +- > arch/arm/include/asm/arch-ls102xa/config.h |

[U-Boot] [PATCH 3/6] cmd: led: rename command enum value

2017-04-04 Thread techping . chan
From: Ziping Chen The "LED_OFF" constant conflicts with the constant with the same name in include/linux/compat.h. Rename all command constants' name prefix from LED_ to LED_CMD_. Signed-off-by: Ziping Chen --- cmd/led.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-)

[U-Boot] [PATCH 6/6] cmd: led: add command led list

2017-04-04 Thread techping . chan
From: Ziping Chen Add command "led list" to list all led(s) can be operated. Signed-off-by: Ziping Chen --- cmd/led.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/cmd/led.c b/cmd/led.c index 3849a79..3f70666 100644 --- a/cmd/led.c +++ b/cmd/le

Re: [U-Boot] [linux-sunxi] [PATCH 06/17] tools: mksunxiboot: allow larger SPL binaries

2017-04-04 Thread Olliver Schinagl
Hey Andre, On 01-03-17 03:25, Andre Przywara wrote: mksunxiboot limits the size of the resulting SPL binaries to pretty conservative values to cover all SoCs and all boot media (NAND). It turns out that we have limit checks in place in the build process, so mksunxiboot can be relaxed and allow p

Re: [U-Boot] Please separated FMan from generate NET config

2017-04-04 Thread Mingkai Hu
> > -Original Message- > From: york sun > Sent: Wednesday, March 22, 2017 3:13 AM > To: Mingkai Hu > Cc: Prabhakar Kushwaha ; u- > b...@lists.denx.de > Subject: Please separated FMan from generate NET config > > Mingkai, > > I noticed during recent debug on LS1043ARDB and LS1046ARDB tha

Re: [U-Boot] [PATCH v2] spl: add support to booting with ATF

2017-04-04 Thread Dan Handley
Hi Kever > -Original Message- > From: Kever Yang [mailto:kever.y...@rock-chips.com] > Sent: 28 March 2017 08:23 > > Hi Andre, > > > On 03/23/2017 05:22 PM, Andre Przywara wrote: > > Hi Kever, > > > > I was wondering if we really need to copy in all those ATF definitions. > > I think this i

[U-Boot] [PATCH 4/4] board: advantech: dms-ba16: apply the proper register setting to fix the voltage peak issue

2017-04-04 Thread Ken Lin
Apply the proper setting for the reserved bits in SetDes Test and System Mode Control register to avoid the voltage peak issue while we do the IEEE PHY comformance test Signed-off-by: Ken Lin --- board/advantech/dms-ba16/dms-ba16.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -

Re: [U-Boot] [PATCH] ARM: socfpga: boot0 hook: remove macro from boot0 header file

2017-04-04 Thread chee skywind
On Wed, Mar 29, 2017 at 5:03 PM, Marek Vasut wrote: > On 03/29/2017 05:49 AM, tien.fong.c...@intel.com wrote: > > From: "Chee, Tien Fong" > > > > Commit ce62e57fc571 ("ARM: boot0 hook: remove macro, include whole > > header file") miss out cleaning macro in this header file, and this > > has bro

[U-Boot] [PATCH 5/6] cmd: led: add DM-based implementation

2017-04-04 Thread techping . chan
From: Ziping Chen Currently the "led" command only supports the old API without DM. Add DM-based implementation of this command. Also allow this command to be select with Kconfig. Signed-off-by: Ziping Chen --- cmd/Kconfig | 6 cmd/Makefile | 4 +++ cmd/led.c| 113 +

Re: [U-Boot] [PATCH v2 14/18] sunxi: Pine64: defconfig: enable SPL FIT support

2017-04-04 Thread Icenowy Zheng
2017年3月29日 19:17于 Andre Przywara 写道: > > Hi, > > On 29/03/17 07:57, Maxime Ripard wrote: > > On Tue, Mar 28, 2017 at 01:45:22AM +0100, Andre Przywara wrote: > >> The Pine64 (and all other 64-bit Allwinner boards) need to load an > >> ARM Trusted Firmware image beside the actual U-Boot proper.

[U-Boot] [PATCH 4/6] cmd: led: add enum led_cmd member to support error code return

2017-04-04 Thread techping . chan
From: Ziping Chen Add enum led_cmd member LED_CMD_ERROR, so that the enum can contain the error code -1. Signed-off-by: Ziping Chen --- cmd/led.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/led.c b/cmd/led.c index ef0ab1a..d50938a 100644 --- a/cmd/led.c +++ b

[U-Boot] [PATCH 01/16] board_f: Drop board_type parameter from initdram()

2017-04-04 Thread Simon Glass
It looks like only cm5200 and tqm8xx use this feature, so we don't really need it in generic code. Drop it and have the users access gd->board_type directly. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 +- arch/mips/mach-ath79/dram.c

[U-Boot] [PATCH 12/17] board_f: powerpc: Move prt_83xx_rsr() to private code

2017-04-04 Thread Simon Glass
This function is called just before checkcpu() on MPX83xx. Move it to the code for that arch. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc83xx/cpu.c | 5 + arch/powerpc/cpu/mpc83xx/cpu_init.c | 1 + arch/powerpc/include/asm/processor.h | 2 ++ common/board_f.c

[U-Boot] [PATCH 1/7] system halt when we enable bucks of PMIC rk808

2017-04-04 Thread eric . gao
From: "eric.gao" if we enable PMIC rk808,the system will halt at very early stage ,log is shown as bellow. INFO:plat_rockchip_pmu_init(1211): pd status 3e INFO:BL31: Initializing runtime services INFO:BL31: Preparing for EL3 exit to normal world INFO:Entry point address = 0x2

[U-Boot] [PATCH 0/7] Enable MIPI dsi display for rk3399

2017-04-04 Thread eric . gao
From: "eric.gao" This serial patchs enable mipi dsi display for rk3399,and let the system log print to lcd. The function of each patch is decribe in the following.Thank you. Patch 1: Fix system halt when we enable bucks of PMIC rk808. Patch 2: Enable i2c for rk3399. Patch 3: Enable PMIC rk808 f

[U-Boot] [PATCH 09/16] board_f: Drop setup_dram_config() wrapper

2017-04-04 Thread Simon Glass
By making dram_init_banksize() return an error code we can drop the wrapper. Adjust this and clean up all implementations. Signed-off-by: Simon Glass --- arch/arm/cpu/arm926ejs/armada100/dram.c | 4 +++- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 4 +++- arch/arm/incl

[U-Boot] [PATCH 02/16] board_f: Drop return value from initdram()

2017-04-04 Thread Simon Glass
At present we cannot use this function as an init sequence call without a wrapper, since it returns the RAM size. Adjust it to set the RAM size in global_data instead, and return 0 on success. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 +- arch/mips/

[U-Boot] [PATCH 03/16] board_f: Rename initdram() to dram_init()

2017-04-04 Thread Simon Glass
This allows us to use the same DRAM init function on all archs. Signed-off-by: Simon Glass --- arch/mips/mach-ath79/dram.c | 2 +- arch/mips/mach-pic32/cpu.c | 2 +- arch/mips/mach-pic32/include/mach/ddr.h | 2 +- arch/powerpc/cpu/

[U-Boot] [PATCH 3/7] Enable RK808 for rk3399 evb

2017-04-04 Thread eric . gao
From: "eric.gao" Signed-off-by: eric.gao --- arch/arm/dts/rk3399-evb.dts | 108 +++ configs/evb-rk3399_defconfig | 5 ++ 2 files changed, 113 insertions(+) diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/rk3399-evb.dts index a959989..7a889c7

[U-Boot] [PATCH 00/16] Clean up board_f sequence a little more

2017-04-04 Thread Simon Glass
This series continues the effort to remove #ifdefs from the board_f init sequence. It follows on from the first series. With both series applied the number of references to CONFIG in board_f.c drops from 178 to 137: strings common/board_f.c |grep -c CONFIG Simon Glass (16): board_f: Drop b

[U-Boot] [PATCH 2/4] board: advantech: dms-ba16: add the PMIC configuration support

2017-04-04 Thread Ken Lin
Change the PMIC bulk configuration from auto mode to sync mode to avoid the voltage shutdown issue Signed-off-by: Ken Lin --- board/advantech/dms-ba16/dms-ba16.c | 51 + 1 file changed, 51 insertions(+) diff --git a/board/advantech/dms-ba16/dms-ba16.c b/boa

Re: [U-Boot] [PATCH 01/16] board_f: Drop board_type parameter from initdram()

2017-04-04 Thread Stefan Roese
On 31.03.2017 16:40, Simon Glass wrote: It looks like only cm5200 and tqm8xx use this feature, so we don't really need it in generic code. Drop it and have the users access gd->board_type directly. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese Thanks, Stefan _

Re: [U-Boot] fatls returncode

2017-04-04 Thread Mirza Krak
2017-03-27 10:51 GMT+02:00 Wolfgang Denk : > Dear Mirza, > > In message > you > wrote: >> >> > Please update to a recent versionof the code. The return code >> > handling has probably been fixed by this commit: >> > >> > 0a04ed8 2015-09-11 17:15:21 -0400 FIX: fat: Provide correct return co=

Re: [U-Boot] [PATCH v2 14/18] sunxi: Pine64: defconfig: enable SPL FIT support

2017-04-04 Thread Icenowy Zheng
2017年3月29日 14:57于 Maxime Ripard 写道: > > On Tue, Mar 28, 2017 at 01:45:22AM +0100, Andre Przywara wrote: > > The Pine64 (and all other 64-bit Allwinner boards) need to load an > > ARM Trusted Firmware image beside the actual U-Boot proper. > > This can now be easily achieved by using the just ex

[U-Boot] [PATCH 0/7] Enable MIPI dsi display for rk3399

2017-04-04 Thread eric . gao
From: "eric.gao" This serial patchs enable mipi dsi display for rk3399,and let the system log print to lcd. The function of each patch is decribe in the following.Thank you. Patch 1: Fix system halt when we enable bucks of PMIC rk808. Patch 2: Enable i2c for rk3399. Patch 3: Enable PMIC rk808 f

[U-Boot] [PATCH 4/7] Enable rkclk init function

2017-04-04 Thread eric . gao
From: "eric.gao" Signed-off-by: eric.gao --- drivers/clk/rockchip/clk_rk3399.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 922ce7e..cfcd1e4 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/

[U-Boot] [PATCH 6/7] Enable print log file to lcd

2017-04-04 Thread eric . gao
From: "eric.gao" Signed-off-by: eric.gao --- configs/evb-rk3399_defconfig| 1 + include/configs/rk3399_common.h | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index b9cb0e8..89b2e17 100644 --- a/configs/e

[U-Boot] [PATCH 2/7] Enable i2c for rk3399

2017-04-04 Thread eric . gao
From: "eric.gao" Signed-off-by: eric.gao --- arch/arm/dts/rk3399.dtsi | 16 configs/evb-rk3399_defconfig | 1 + drivers/i2c/rk_i2c.c | 1 + 3 files changed, 18 insertions(+) diff --git a/arch/arm/dts/rk3399.dtsi b/arch/arm/dts/rk3399.dtsi index 456fdb6..93e3bf4

[U-Boot] [PATCH 0/2] Improve Raspberry Pi mmc writes

2017-04-04 Thread Alex Deymo
When experimenting with fastboot from U-Boot on the Raspberry Pi 3 we found that the writes to the sdcard are much more slow than when accessing it from the userspace. These two patches speed up the write and allow us to reliably write the sdcard from U-Boot. Alex Deymo (1): mmc: sdhci: Wait for

[U-Boot] [PATCH RESEND v6] usb: gadget: avoid variable name clipping in cb_getvar

2017-04-04 Thread nicolas.le.bayon
From: Nicolas Le Bayon Instead of using a fixed-size array to store variable name, preferring a dynamic allocation treats correctly all variable name lengths. Variable names are growing through releases and features. By this way, name clipping is prevented. Signed-off-by: Nicolas Le Bayon Revie

Re: [U-Boot] [PATCH 12/14] fdt: eth_fixup: Add hook for board to override MAC

2017-04-04 Thread Olliver Schinagl
Hey Joe, On 26-03-17 16:10, Joe Hershberger wrote: Hi Oliver, On Sun, Dec 11, 2016 at 3:27 PM, Simon Glass wrote: Hi Oliver, On 9 December 2016 at 02:25, Olliver Schinagl wrote: Hey simon On December 8, 2016 11:21:32 PM CET, Simon Glass wrote: Hi Oliver, On 7 December 2016 at 02:26, Ol

[U-Boot] [PATCH 1/7] system halt when we enable bucks of PMIC rk808

2017-04-04 Thread eric . gao
From: "eric.gao" if we enable PMIC rk808,the system will halt at very early stage ,log is shown as bellow. INFO:plat_rockchip_pmu_init(1211): pd status 3e INFO:BL31: Initializing runtime services INFO:BL31: Preparing for EL3 exit to normal world INFO:Entry point address = 0x2

[U-Boot] [PATCH 1/2] mmc: bcm2835_sdhci: Speed up mmc writes.

2017-04-04 Thread Alex Deymo
From: Jocelyn Bohr The linux kernel driver for this module does not use a delay when writing to the SDHCI_BUFFER register. This patch mimics that behavior in order to speed up the mmc writes on the Raspberry Pi. Signed-off-by: Alex Deymo --- drivers/mmc/bcm2835_sdhci.c | 8 ++-- 1 file cha

[U-Boot] [PATCH 2/2] mmc: sdhci: Wait for SDHCI_INT_DATA_END when transferring.

2017-04-04 Thread Alex Deymo
sdhci_transfer_data() function transfers the blocks passed up to the number of blocks defined in mmc_data, but returns immediately once all the blocks are transferred, even if the loop exit condition is not met (bit SDHCI_INT_DATA_END set in the STATUS word). When doing multiple writes to mmc, ret

[U-Boot] [PATCH 6/6] cmd: Add "boot_android" command.

2017-04-04 Thread Alex Deymo
The new "boot_android" command simply executes the Android Bootloader flow. This receives the location (interface, dev, partition) of the Android "misc" partition which is then used to lookup and infer the kernel and system images that should be booted from the passed slot. Test: Booted a rpi3 bui

[U-Boot] [PATCH 5/7] Add mipi display support for rk3399 && rk3288

2017-04-04 Thread eric . gao
From: "eric.gao" Signed-off-by: eric.gao --- arch/arm/dts/rk3399-evb.dts | 33 ++ arch/arm/dts/rk3399.dtsi | 72 + arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 2 +- arch/arm/include/asm/arch-rockchip/mipi_rk3399.h | 203 +

Re: [U-Boot] [PATCH 00/16] RFC: Board init using driver model

2017-04-04 Thread Simon Glass
Hi York, On 22 March 2017 at 10:00, york sun wrote: > On 03/19/2017 11:59 AM, Simon Glass wrote: >> At present we have a lot of ad-hoc init functions related to boards, for >> example board_early_init_f(), board_misc_init_f() and dram_init(). >> >> There are used in different ways by different bo

[U-Boot] [PATCH 7/7] crash when scroll screen

2017-04-04 Thread eric . gao
From: "eric.gao" After enable log printing to lcd,when the screen start scroll,the system crash.And the log is shown as bellow. "Synchronous Abort" handler, esr 0x9645 "Synchronous Abort" handler, esr 0x9645 Checking the source code, we found that the variate "pixels" get a wrong value.

[U-Boot] [PATCH] arm64: zynqmp: fail SPL build if no psu_init found

2017-04-04 Thread Jean-Francois Dagenais
When doing the SPL build, not finding the psu_init files yields an unuseable spl binary. Time is wasted as the build is carried through dev ops all the way to trying to boot the DUD build. A failure immediately alerts developers that something is wrong in the configuration of the u-boot tree, thus

[U-Boot] [PATCH] rpi: Support both UART interfaces.

2017-04-04 Thread Alex Deymo
The Raspberry Pi 3 has two UART interfaces that can be pinmuxed to the header pins. The PL011 is by default muxed to the Bluetooth chip and the mini-UART can be muxed to the pin headers passing "enabled_uart=1" in the config.txt file. Passing "enable_uart=1" has other implications, since the baudr

Re: [U-Boot] [PATCH 09/16] board_f: Drop setup_dram_config() wrapper

2017-04-04 Thread Stefan Roese
On 31.03.2017 16:40, Simon Glass wrote: By making dram_init_banksize() return an error code we can drop the wrapper. Adjust this and clean up all implementations. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot maili

[U-Boot] [PATCH] Allow boards to initialize the DT at runtime.

2017-04-04 Thread Alex Deymo
In some boards like the Raspberry Pi the initial bootloader will pass a DT to the kernel. When using U-boot as such kernel, the board code in U-Boot should be able to provide U-boot with this, already assembled device tree blob. This patch introduces a new config option CONFIG_OF_BOARD to use inst

[U-Boot] [PATCH 4/6] disk: Return the partition number in part_get_info_by_name()

2017-04-04 Thread Alex Deymo
Similar to what blk_get_device_part_str() does, this patch makes part_get_info_by_name() return the partition number in case of a match. This is useful when the partition number is needed and not just the descriptor. Signed-off-by: Alex Deymo --- common/fb_mmc.c | 6 +++--- disk/part.c | 2 +

[U-Boot] [PATCH] mmc: zynq_sdhci: improve debug print

2017-04-04 Thread Jean-Francois Dagenais
When debugging dual SDHCI controller setup, printing strings and bank info is very helpful. Signed-off-by: Jean-Francois Dagenais --- drivers/mmc/zynq_sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 089a424

[U-Boot] [PATCH 2/6] image: Implement a function to load Android Images.

2017-04-04 Thread Alex Deymo
This patch implements the logic needed to load an Android boot image from storage, since the size and kernel address in Android images is defined in its header. Signed-off-by: Alex Deymo --- common/image-android.c | 51 ++ include/image.h|

Re: [U-Boot] [PATCH] arm64: zynqmp: fail SPL build if no psu_init found

2017-04-04 Thread Jean-Francois Dagenais
> On Apr 3, 2017, at 02:55, Michal Simek wrote: > > This is not only one way how to configure system. You can use > psu_init*.tcl and configure chip through jtag and then you don't need > this .c/.h files. > You should be able to see warning already about it if you miss that files. Mmh. I had t

[U-Boot] [PATCH 1/6] image: Update include/android_image.h

2017-04-04 Thread Alex Deymo
Update the Android image header format to the latest version published in AOSP. The original code moved to a new repository, so this patch also updates the reference to that path. Signed-off-by: Alex Deymo --- common/image-android.c | 9 + include/android_image.h | 24 +

Re: [U-Boot] [PATCH] ARM: socfpga: boot0 hook: remove macro from boot0 header file

2017-04-04 Thread chee skywind
On Mar 31, 2017 7:13 PM, "Marek Vasut" wrote: On 03/30/2017 03:22 AM, chee skywind wrote: > On Wed, Mar 29, 2017 at 5:03 PM, Marek Vasut wrote: > >> On 03/29/2017 05:49 AM, tien.fong.c...@intel.com wrote: >>> From: "Chee, Tien Fong" >>> >>> Commit ce62e57fc571 ("ARM: boot0 hook: remove macro, i

[U-Boot] [PATCH 0/6] Android A/B Bootloader support

2017-04-04 Thread Alex Deymo
An "Android Bootloader" has a lot of requirements about how it should behave which Android partners must implement. In particular, the new A/B updates [1] added more requirements and flows to the bootloader which are not common, on top of the existing flows. For example, a few uncommon requirement

[U-Boot] build uboot.rom for minnow

2017-04-04 Thread Hariharan A
Hi, I have followed steps in the readme.x86 to build Uboot.rom for minnowboard. but i got a error message as: CHK include/config/uboot.release CHK include/generated/version_autogenerated.h CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestam

[U-Boot] Python Version

2017-04-04 Thread marble
Hello, I was trying to compile u-boot for an OrangePi zero (AllWinner H2+) on my up to date Arch Linux machine. In contrary to other distributions, the standard Python version on Arch is Python3. To get a successful build, I had to append the "2.7" to the "python" in line 123 of tools/Makefile. E

[U-Boot] [PATCH 3/6] cmd: Add 'load_android' command to load Android images.

2017-04-04 Thread Alex Deymo
Android kernel images include a header that specifies addresses and kernel size. This patch adds a command to load these images from storage without specifying the size or address of them, and parsing them from the header instead. --- cmd/Kconfig| 9 + cmd/Makefile | 1 + c

Re: [U-Boot] [PATCH 03/16] board_f: Rename initdram() to dram_init()

2017-04-04 Thread Stefan Roese
On 31.03.2017 16:40, Simon Glass wrote: This allows us to use the same DRAM init function on all archs. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo

Re: [U-Boot] [PATCH 02/16] board_f: Drop return value from initdram()

2017-04-04 Thread Stefan Roese
On 31.03.2017 16:40, Simon Glass wrote: At present we cannot use this function as an init sequence call without a wrapper, since it returns the RAM size. Adjust it to set the RAM size in global_data instead, and return 0 on success. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese Thank

[U-Boot] [PATCH 5/6] Initial support for the Android Bootloader flow

2017-04-04 Thread Alex Deymo
An Android Bootloader must comply with certain boot modes and change the kernel command line accordingly. This patch introduces the Android boot mode concept which determines whether the device should boot to one of the following: * recovery: which should boot to the recovery image, * bootloader:

[U-Boot] [PATCHv2] net: zynq_gem: Do not return -ENOSYS on success

2017-04-04 Thread Olliver Schinagl
The .read_rom_hwaddr net_ops hook does not check the return value, which is why it was never caught that we are currently returning 0 if the read_rom_hwaddr function return -ENOSYS and -ENOSYS otherwise. In this case we can simplify this by just returning the result of the function. Signed-off-by

  1   2   3   >