Re: [U-Boot] [PATCH v3] cmd: usb: add blk devices to ignore list in tree graph

2017-09-20 Thread Bin Meng
Hi Suneel, On Wed, Sep 20, 2017 at 2:32 PM, Suneel Garapati wrote: > Hi Bin, > > On Tue, Sep 19, 2017 at 8:32 PM, Bin Meng wrote: >> Hi Suneel, >> >> On Wed, Sep 20, 2017 at 2:31 AM, Suneel Garapati >> wrote: >>> Hi Bin, >>> >>> On Tue, Sep 19, 2017 at 12:32 AM, Bin Meng wrote: Hi Suneel

[U-Boot] [PATCH] py: test_gpio: Add support for GPIO pytest

2017-09-20 Thread Michal Simek
From: Vipul Kumar This patch tests the gpio commands using the gpio data from boardenv file. Also one test will show the default status of all the gpio's supported by the processor. Signed-off-by: Vipul Kumar Signed-off-by: Michal Simek --- test/py/tests/test_gpio.py | 111 +

Re: [U-Boot] [PATCH v3 05/21] efi_loader: add device-path utils

2017-09-20 Thread Alexander Graf
On 14.09.17 00:05, Rob Clark wrote: Helpers to construct device-paths from devices, partitions, files, and for parsing and manipulating device-paths. For non-legacy devices, this will use u-boot's device-model to construct device-paths which include bus hierarchy to construct device-paths. Fo

Re: [U-Boot] [PATCH v3 15/21] efi_loader: add bootmgr

2017-09-20 Thread Alexander Graf
On 14.09.17 00:05, Rob Clark wrote: Similar to a "real" UEFI implementation, the bootmgr looks at the BootOrder and Boot variables to try to find an EFI payload to load and boot. This is added as a sub-command of bootefi. The idea is that the distro bootcmd would first try loading a paylo

Re: [U-Boot] [PATCH v3 00/21] efi_loader: enough UEFI for standard distro boot

2017-09-20 Thread Alexander Graf
On 14.09.17 00:05, Rob Clark wrote: This patchset fleshes out EFI_LOADER enough to support booting an upstream \EFI\BOOT\bootaa64.efi (which then loads fallback.efi and then eventually the per-distro shim.efi which loads the per-distro grubaa64.efi) without resorting to hacks to hard-code u-boo

[U-Boot] Disable axp209 auto start

2017-09-20 Thread Florian HESLOUIN
Hey, I'm using an Allwinner A20 board (Olimex Lime2) with U-boot 2017-09. I'm looking for a way to disable board auto start when DC is plugged in. Is there any device tree trigger or patch to be used against sunxi u-boot source code ? I was patching sunxi_board_init() with a custom functio

Re: [U-Boot] [PATCH] imx6: disable clock command and print_cpuinfo code in SPL

2017-09-20 Thread Anatolij Gustschin
Hi Fabio, On Wed, 20 Sep 2017 00:18:52 -0300 Fabio Estevam feste...@gmail.com wrote: > Hi Stefano, > > On Tue, Sep 19, 2017 at 4:54 AM, Stefano Babic wrote: > > > Reason is clear: boards have in SPL a setup_display() that calls > > enable_ipu_clock. But it makes no sense to have IPU support in

Re: [U-Boot] [U-Boot, v3, 11/14] rockchip: dts: Enable SARADC for rk3328-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rk3328-evb.dts | 4 > 1 file changed, 4 insertions(+) > Acked-by: Philipp Tomsich _

Re: [U-Boot] [U-Boot, v3, 13/14] rockchip: dts: Enable SARADC for rk3368-sheep

2017-09-20 Thread Philipp Tomsich
> Spam detection software, running on the system "lists.denx.de", > has identified this incoming email as possible spam. The original > message has been attached to this so you can view it or label > similar future email. If you have any questions, see > @@CONTACT_ADDRESS@@ for details. > > Cont

Re: [U-Boot] [U-Boot, v3, 12/14] rockchip: dts: Enable SARADC for rk3368-px5-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rk3368-px5-evb.dts | 4 > 1 file changed, 4 insertions(+) > Acked-by: Philipp Tomsich _

Re: [U-Boot] [U-Boot, v3, 09/14] rockchip: dts: Enable SARADC for rv1108-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rv1108-evb.dts | 4 > 1 file changed, 4 insertions(+) > Acked-by: Philipp Tomsich _

Re: [U-Boot] [U-Boot, v3, 12/14] rockchip: dts: Enable SARADC for rk3368-px5-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rk3368-px5-evb.dts | 4 > 1 file changed, 4 insertions(+) > Reviewed-by: Philipp Tomsich __

Re: [U-Boot] [U-Boot, v3, 14/14] rockchip: dts: Enable SARADC for rk3399-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rk3399-evb.dts | 4 > 1 file changed, 4 insertions(+) > Acked-by: Philipp Tomsich _

Re: [U-Boot] [U-Boot, v3, 10/14] rockchip: dts: Enable SARADC for rk3288-popmetal

2017-09-20 Thread Philipp Tomsich
> Spam detection software, running on the system "lists.denx.de", > has identified this incoming email as possible spam. The original > message has been attached to this so you can view it or label > similar future email. If you have any questions, see > @@CONTACT_ADDRESS@@ for details. > > Cont

Re: [U-Boot] [U-Boot, v3, 10/14] rockchip: dts: Enable SARADC for rk3288-popmetal

2017-09-20 Thread Philipp Tomsich
> Spam detection software, running on the system "lists.denx.de", > has identified this incoming email as possible spam. The original > message has been attached to this so you can view it or label > similar future email. If you have any questions, see > @@CONTACT_ADDRESS@@ for details. > > Cont

Re: [U-Boot] [U-Boot, v3, 14/14] rockchip: dts: Enable SARADC for rk3399-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rk3399-evb.dts | 4 > 1 file changed, 4 insertions(+) > Reviewed-by: Philipp Tomsich __

Re: [U-Boot] [U-Boot, v3, 11/14] rockchip: dts: Enable SARADC for rk3328-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rk3328-evb.dts | 4 > 1 file changed, 4 insertions(+) > Reviewed-by: Philipp Tomsich _

Re: [U-Boot] [U-Boot, v3, 13/14] rockchip: dts: Enable SARADC for rk3368-sheep

2017-09-20 Thread Philipp Tomsich
> Spam detection software, running on the system "lists.denx.de", > has identified this incoming email as possible spam. The original > message has been attached to this so you can view it or label > similar future email. If you have any questions, see > @@CONTACT_ADDRESS@@ for details. > > Cont

Re: [U-Boot] [U-Boot, v3, 09/14] rockchip: dts: Enable SARADC for rv1108-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rv1108-evb.dts | 4 > 1 file changed, 4 insertions(+) > Reviewed-by: Philipp Tomsich __

Re: [U-Boot] [U-Boot, v3, 03/14] rockchip: clk: Add rv1108 SARADC clock support

2017-09-20 Thread Philipp Tomsich
> The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). > SARADC integer divider control register is 10-bits width. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: > - Use bitfield_ext

Re: [U-Boot] [U-Boot, v3, 04/14] rockchip: clk: Add SARADC clock support for rk3288

2017-09-20 Thread Philipp Tomsich
> The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). > SARADC integer divider control register is 8-bits width. > > Signed-off-by: David Wu > Reviewed-by: Philipp Tomsich > Acked-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: > - Use bitfield_extr

Re: [U-Boot] [U-Boot, v3, 01/14] dm: adc: Add driver for Rockchip SARADC

2017-09-20 Thread Philipp Tomsich
> The ADC can support some channels signal-ended some bits Successive > Approximation > Register (SAR) A/D Converter, like 6-channel and 10-bit. It converts the > analog > input signal into some bits binary digital codes. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: P

Re: [U-Boot] [U-Boot, v3, 05/14] rockchip: clk: Add rk3328 SARADC clock support

2017-09-20 Thread Philipp Tomsich
> The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). > SARADC integer divider control register is 10-bits width. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: > - Use bitfield_ext

Re: [U-Boot] [U-Boot, v3, 10/14] rockchip: dts: Enable SARADC for rk3288-popmetal

2017-09-20 Thread Philipp Tomsich
> Spam detection software, running on the system "lists.denx.de", > has identified this incoming email as possible spam. The original > message has been attached to this so you can view it or label > similar future email. If you have any questions, see > @@CONTACT_ADDRESS@@ for details. > > Cont

Re: [U-Boot] [U-Boot, v3, 11/14] rockchip: dts: Enable SARADC for rk3328-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rk3328-evb.dts | 4 > 1 file changed, 4 insertions(+) >

Re: [U-Boot] [U-Boot, v3, 07/14] rockchip: clk: Add rk3399 SARADC clock support

2017-09-20 Thread Philipp Tomsich
> The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). > SARADC integer divider control register is 8-bits width. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: > - Use GENMASK > >

Re: [U-Boot] [U-Boot, v3, 06/14] rockchip: clk: Add rk3368 SARADC clock support

2017-09-20 Thread Philipp Tomsich
> The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). > SARADC integer divider control register is 8-bits width. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: > - Use GENMASK > >

Re: [U-Boot] [U-Boot, v3, 08/14] rockchip: dts: rv1108: Add SARADC node at dtsi level

2017-09-20 Thread Philipp Tomsich
> Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: None > > arch/arm/dts/rv1108.dtsi | 11 +++ > 1 file changed, 11 insertions(+) > Applied to u-boot-rockchip, thanks! __

Re: [U-Boot] [U-Boot, v3, 09/14] rockchip: dts: Enable SARADC for rv1108-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rv1108-evb.dts | 4 > 1 file changed, 4 insertions(+) >

[U-Boot] [PATCH] rockchip: imply ADC and SARADC_ROCKCHIP on supported SoCs

2017-09-20 Thread Philipp Tomsich
Enable the Rockchip SARADC driver on all supported SoCs (i.e. all except the RK3036 and RK3228, which don't have this peripheral): RK3188, RK3288, RK3328, RK3368, RK3399 and RV1108. Signed-off-by: Philipp Tomsich --- arch/arm/mach-rockchip/Kconfig | 12 1 file changed, 12 insertion

Re: [U-Boot] [U-Boot, v3, 02/14] rockchip: configs: Enable the ROCKCHIP_SARADC config

2017-09-20 Thread Philipp Tomsich
David, On Wed, 20 Sep 2017, David Wu wrote: Except for 3036 and 3228 Socs, which don't support SARADC, enable the ROCKCHIP_SARADC config at the other Socs' defconfig. Signed-off-by: David Wu If this is a feature of those chips, we need to do this through an 'imply' in Kconfig (and not via

Re: [U-Boot] [U-Boot, v3, 12/14] rockchip: dts: Enable SARADC for rk3368-px5-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rk3368-px5-evb.dts | 4 > 1 file changed, 4 insertions(+)

Re: [U-Boot] [U-Boot, v3, 13/14] rockchip: dts: Enable SARADC for rk3368-sheep

2017-09-20 Thread Philipp Tomsich
> Spam detection software, running on the system "lists.denx.de", > has identified this incoming email as possible spam. The original > message has been attached to this so you can view it or label > similar future email. If you have any questions, see > @@CONTACT_ADDRESS@@ for details. > > Cont

Re: [U-Boot] [U-Boot, v3, 14/14] rockchip: dts: Enable SARADC for rk3399-evb

2017-09-20 Thread Philipp Tomsich
> Enable the SARADC for download key pressed detect. > > Signed-off-by: David Wu > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - Add commit message > > Changes in v2: None > > arch/arm/dts/rk3399-evb.dts | 4 > 1 file changed, 4 insertions(+) >

[U-Boot] [PATCH] dm: ofnode: query correct property in livetree ofnode_get_addr_size

2017-09-20 Thread Klaus Goger
The livetree codepath of ofnode_get_addr_size always used the "reg" property for of_get_property. Use the property parameter of the function call instead and check the return value if the property exists. Otherwise return FDT_ADDR_T_NONE. This was discoverd while using SPI NOR with livetree. spi_f

Re: [U-Boot] [PATCH] rockchip: imply ADC and SARADC_ROCKCHIP on supported SoCs

2017-09-20 Thread David.Wu
Hi Philipp, 在 2017/9/20 19:54, Philipp Tomsich 写道: Enable the Rockchip SARADC driver on all supported SoCs (i.e. all except the RK3036 and RK3228, which don't have this peripheral): RK3188, RK3288, RK3328, RK3368, RK3399 and RV1108. Signed-off-by: Philipp Tomsich --- Reviewed-by: David Wu _

Re: [U-Boot] [PATCH] rockchip: imply ADC and SARADC_ROCKCHIP on supported SoCs

2017-09-20 Thread Dr. Philipp Tomsich
David, > On 20 Sep 2017, at 14:25, David.Wu wrote: > > Hi Philipp, > > 在 2017/9/20 19:54, Philipp Tomsich 写道: >> Enable the Rockchip SARADC driver on all supported SoCs (i.e. all >> except the RK3036 and RK3228, which don't have this peripheral): >> RK3188, RK3288, RK3328, RK3368, RK3399 and RV

Re: [U-Boot] [PATCH] imx6: disable clock command and print_cpuinfo code in SPL

2017-09-20 Thread Stefano Babic
Hi Fabio, Anatolji, just to save time : this is the list of boards that are affected by this problem. cgtqmx6eval wandboard colibri_imx6 apalis_imx6 mx6cuboxi mx6sabresd imx6qdl_icore_rqs A good solution is also if the board maintainers (I CCed all of th

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-20 Thread Stefano Babic
On 13/09/2017 23:29, Stefan Agner wrote: > From: Stefan Agner > > This macro allows to detect whether the USB PHY is active. This > is helpful to detect if the boot ROM has previously started the > USB serial downloader. > > The idea is taken from the mfgtool support in the NXP U-Boot: > http://

Re: [U-Boot] [PATCH v3 2/2] imx_common: detect USB serial downloader reliably

2017-09-20 Thread Stefano Babic
On 13/09/2017 23:29, Stefan Agner wrote: > From: Stefan Agner > > The current mechanism using SCR/GPR registers work well when > the serial downloader boot mode has been selected explicitly > (either via boot mode pins or using bmode command). However, > in case the system entered boot ROM due to

Re: [U-Boot] [PATCH v2] imx: imx7d: remove CamelCase from ENET_xMHz macros

2017-09-20 Thread Stefano Babic
On 31/08/2017 17:34, Eric Nelson wrote: > Update these macros to use all upper-case to avoid checkpatch > warnings: > > ENET_25MHz, > ENET_50MHz, > ENET_125MHz, > > Signed-off-by: Eric Nelson > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic --

Re: [U-Boot] [PATCH] pico-imx7d: Add "how to boot with NXP 4.1 Kernel"

2017-09-20 Thread Stefano Babic
On 29/08/2017 18:53, Vanessa Maegima wrote: > The NXP 4.1 kernel needs to boot with secure boot. > > Add information on how to enable secure boot mode. > > Signed-off-by: Vanessa Maegima > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ==

Re: [U-Boot] [PATCH] imx6: drop duplicated bss memset and board_init_r() call

2017-09-20 Thread Stefano Babic
On 28/08/2017 20:58, Anatolij Gustschin wrote: > bss section is cleared in crt0.S. board_init_r() is also > entered from crt0 code. > > Signed-off-by: Anatolij Gustschin > Cc: Christian Gmeiner > Cc: Nikita Kiryanov > Cc: Jagan Teki > Cc: Tim Harvey > Cc: Marek Vasut > Cc: Lukasz Majewski >

Re: [U-Boot] [PATCH] detect and setup solidrun hummingboard2

2017-09-20 Thread Stefano Babic
On 24/08/2017 17:49, Dennis Gilmore wrote: > The hummingboard2 is slightly different to the cubox i and to the > hummingboard. The GPIO pin info to probe came from solidruns > for of u-boot on github. > https://github.com/SolidRun/u-boot-imx6/blob/imx6/board/solidrun/mx6_cubox-i/mx6_cubox-i.c#L569-

Re: [U-Boot] [PATCH] board: ge: bx50v3: set eth0 MAC address

2017-09-20 Thread Stefano Babic
On 22/08/2017 08:03, Jose Alarcon wrote: > From: Ian Ray > > Define i2c mux configuration. Add new vpd_reader which is used to read > vital product data. Read VPD from EEPROM and set eth0 MAC address. > > Signed-off-by: Ian Ray > Signed-off-by: Jose Alarcon > --- Applied to u-boot-imx, than

Re: [U-Boot] [PATCH 1/2] toradex: imx6: Move g_dnl_bind_fixup() into common SPL code

2017-09-20 Thread Stefano Babic
On 06/09/2017 01:46, Fabio Estevam wrote: > From: Fabio Estevam > > Instead of having every board file to add its own g_dnl_bind_fixup() > implementation, move it to the common imx6 SPL code. > > Signed-off-by: Fabio Estevam > Reviewed-by: Łukasz Majewski > --- Applied to u-boot-imx, thanks !

Re: [U-Boot] [PATCH 2/2] mx6sabresd: Add Serial Download Protocol support

2017-09-20 Thread Stefano Babic
On 06/09/2017 01:46, Fabio Estevam wrote: > From: Fabio Estevam > > Add Serial Download Protocol support (SDP), which allows loading > SPL and u-boot.img via imx_usb_loader tool as explained in > doc/README.sdp. > > Signed-off-by: Fabio Estevam > --- Applied to u-boot-imx, thanks ! Best regar

[U-Boot] [PULL] Please pull u-boot-imx

2017-09-20 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit 08cebeeaadd9192dd501308ac6a8b858ffa255c1: Merge git://git.denx.de/u-boot-fdt (2017-09-15 22:34:34 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master for you to fetch ch

Re: [U-Boot] Sandbox 'usb start' causes segment fault

2017-09-20 Thread Simon Glass
Hi Bin, On 19 September 2017 at 21:40, Bin Meng wrote: > Hi, > > Not sure if I am running sandbox correctly with USB support, but here > is the log: > > $ ./u-boot -D > > > U-Boot 2017.09-00191-gc145392-dirty (Sep 17 2017 - 21:33:01 +0800) > > Model: sandbox > DRAM: 128 MiB > MMC: > Using defaul

Re: [U-Boot] [PATCH 16/23] efi_loader: implement DisconnectController

2017-09-20 Thread Simon Glass
Hi Heinrich, On 15 September 2017 at 00:35, Heinrich Schuchardt wrote: > On 08/31/2017 02:52 PM, Simon Glass wrote: >> On 27 August 2017 at 06:53, Heinrich Schuchardt wrote: >>> Signed-off-by: Heinrich Schuchardt >>> --- >>> lib/efi_loader/efi_boottime.c | 77 >>> +

Re: [U-Boot] [PATCH 2/3] dm: video: Add basic ANSI escape sequence support

2017-09-20 Thread Simon Glass
Hi Rob, On 17 September 2017 at 13:39, Rob Clark wrote: > On Sun, Sep 17, 2017 at 3:30 PM, Simon Glass wrote: >> Hi Rob, >> >> On 17 September 2017 at 13:26, Rob Clark wrote: >>> On Sun, Sep 17, 2017 at 1:55 PM, Simon Glass wrote: On 13 September 2017 at 16:12, Rob Clark wrote: > Rea

Re: [U-Boot] [PATCH 15/23] efi_loader: implement ConnectController

2017-09-20 Thread Simon Glass
Hi Heinrich, On 15 September 2017 at 00:48, Heinrich Schuchardt wrote: > On 08/31/2017 02:52 PM, Simon Glass wrote: >> On 27 August 2017 at 06:53, Heinrich Schuchardt wrote: >>> Signed-off-by: Heinrich Schuchardt >>> --- >>> include/efi_api.h | 22 >>> include/efi_loader.

Re: [U-Boot] [PATCH 06/13] log: Add an implemention of logging

2017-09-20 Thread Simon Glass
Hi Bin, On 17 September 2017 at 21:45, Bin Meng wrote: > Hi Simon, > > On Sun, Sep 17, 2017 at 5:23 AM, Simon Glass wrote: >> Add the logging header file and implementation with some configuration >> options to control it. >> >> Signed-off-by: Simon Glass >> --- >> >> MAINTAINERS

Re: [U-Boot] [PATCH 13/13] log: Add documentation

2017-09-20 Thread Simon Glass
Hi Masahiro, On 19 September 2017 at 21:04, Masahiro Yamada wrote: > Hi Simon > > > 2017-09-17 6:23 GMT+09:00 Simon Glass : > >> + >> + >> +To Do >> +- >> + >> +There are lots of useful additions that could be made. None of the below is >> +implemented! If you do one, please add a test in tes

Re: [U-Boot] [PATCH 06/13] log: Add an implemention of logging

2017-09-20 Thread Simon Glass
Hi Masahiro, On 19 September 2017 at 20:51, Masahiro Yamada wrote: > Hi Simon, > > > 2017-09-17 6:23 GMT+09:00 Simon Glass : > >> >> +menu "Logging" >> + >> +config LOG >> + bool "Enable logging support" >> + help >> + This enables support for logging of status and debug messa

Re: [U-Boot] Sandbox 'usb start' causes segment fault

2017-09-20 Thread Bin Meng
Hi Simon, On Wed, Sep 20, 2017 at 9:49 PM, Simon Glass wrote: > Hi Bin, > > On 19 September 2017 at 21:40, Bin Meng wrote: >> Hi, >> >> Not sure if I am running sandbox correctly with USB support, but here >> is the log: >> >> $ ./u-boot -D >> >> >> U-Boot 2017.09-00191-gc145392-dirty (Sep 17 20

Re: [U-Boot] [PATCH v3 15/21] efi_loader: add bootmgr

2017-09-20 Thread Rob Clark
On Wed, Sep 20, 2017 at 5:08 AM, Alexander Graf wrote: > > > On 14.09.17 00:05, Rob Clark wrote: >> >> Similar to a "real" UEFI implementation, the bootmgr looks at the >> BootOrder and Boot variables to try to find an EFI payload to load >> and boot. This is added as a sub-command of bootefi

Re: [U-Boot] [PATCH v3 05/21] efi_loader: add device-path utils

2017-09-20 Thread Rob Clark
On Wed, Sep 20, 2017 at 4:31 AM, Alexander Graf wrote: > > > On 14.09.17 00:05, Rob Clark wrote: >> >> Helpers to construct device-paths from devices, partitions, files, and >> for parsing and manipulating device-paths. >> >> For non-legacy devices, this will use u-boot's device-model to construct

[U-Boot] [PATCH] README.imx6: Prefer loading SPL via the new SDP mechanism

2017-09-20 Thread Fabio Estevam
Now that it is possible to load SPL and u-boot.img via imx_usb_loader tool, mention this method instead of the old one that relied on ymodem. Signed-off-by: Fabio Estevam --- doc/README.imx6 | 32 +++- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/doc

Re: [U-Boot] [PATCH 16/23] efi_loader: implement DisconnectController

2017-09-20 Thread Rob Clark
On Wed, Sep 20, 2017 at 9:49 AM, Simon Glass wrote: > Hi Heinrich, > > On 15 September 2017 at 00:35, Heinrich Schuchardt wrote: >> On 08/31/2017 02:52 PM, Simon Glass wrote: >>> On 27 August 2017 at 06:53, Heinrich Schuchardt wrote: Signed-off-by: Heinrich Schuchardt --- lib/ef

Re: [U-Boot] [PATCH 06/13] log: Add an implemention of logging

2017-09-20 Thread Dr. Philipp Tomsich
Masahiro & Simon, > On 20 Sep 2017, at 15:49, Simon Glass wrote: > > Hi Masahiro, > > On 19 September 2017 at 20:51, Masahiro Yamada > wrote: >> Hi Simon, >> >> >> 2017-09-17 6:23 GMT+09:00 Simon Glass : >> >>> >>> +menu "Logging" >>> + >>> +config LOG >>> + bool "Enable logging supp

Re: [U-Boot] [PATCH 06/13] log: Add an implemention of logging

2017-09-20 Thread Bin Meng
Hi Simon, On Wed, Sep 20, 2017 at 9:50 PM, Simon Glass wrote: > Hi Bin, > > On 17 September 2017 at 21:45, Bin Meng wrote: >> Hi Simon, >> >> On Sun, Sep 17, 2017 at 5:23 AM, Simon Glass wrote: >>> Add the logging header file and implementation with some configuration >>> options to control it.

Re: [U-Boot] [PATCH 06/13] log: Add an implemention of logging

2017-09-20 Thread Dr. Philipp Tomsich
> On 20 Sep 2017, at 16:41, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 20, 2017 at 9:50 PM, Simon Glass wrote: >> Hi Bin, >> >> On 17 September 2017 at 21:45, Bin Meng wrote: >>> Hi Simon, >>> >>> On Sun, Sep 17, 2017 at 5:23 AM, Simon Glass wrote: Add the logging header file and i

Re: [U-Boot] [PATCH v2 1/7] spl: fix assignment of board info to global data

2017-09-20 Thread York Sun
On 09/18/2017 08:47 AM, York Sun wrote: > On 09/17/2017 10:55 AM, Simon Glass wrote: >> Hi York, >> >> On 14 September 2017 at 13:01, York Sun wrote: >>> This partially reverts commit 15eb1d43bf470b85e9031c2fce7e0ce7b27dd321 >>> which intended to move assignment of board info earlier, into >>> boa

Re: [U-Boot] [PATCH 1/1] test/py: provide example scripts for integrating qemu

2017-09-20 Thread Stephen Warren
On 09/19/2017 02:15 PM, Heinrich Schuchardt wrote: On 09/18/2017 11:28 PM, Stephen Warren wrote: On 09/18/2017 01:55 PM, Heinrich Schuchardt wrote: On 09/18/2017 08:27 PM, Stephen Warren wrote: On 09/17/2017 01:32 PM, Heinrich Schuchardt wrote: The necessary parameters for running Python test

[U-Boot] [PATCH v5 1/4] sunxi: change the DE1 video option to CONFIG_VIDEO_SUNXI

2017-09-20 Thread Icenowy Zheng
The sunxi DE1 video option used to be CONFIG_VIDEO, which has the same name as the "Enable legacy video support" option in drivers/video/Kconfig. Change the option name to CONFIG_VIDEO_SUNXI, which is really used by Makefile under drivers/video/sunxi/, and defined in sunxi-common.h when CONFIG_VID

[U-Boot] [PATCH v5 3/4] video: add an option for video simplefb via DT

2017-09-20 Thread Icenowy Zheng
Add an option to indicate that the video driver should setup a SimpleFB node that passes the video framebuffer initialized by U-Boot to the operating system kernel. Currently only the Allwinner DE1 driver uses this option, and the definition of this option in the sunxi-common.h config header is co

[U-Boot] [PATCH v5 2/4] video: sunxi: extract simplefb match code to a new file

2017-09-20 Thread Icenowy Zheng
As the DE2 simplefb setup code can also benefit from the simplefb match code, extract it to a new source file. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Acked-by: Maxime Ripard --- Changes in v4: - Add missing copyright for Luc. Changes in v3: - Use /** to start kerndoc. driver

[U-Boot] [PATCH v5 0/4] Allwinner SimpleFB Kconfig cleanup and DE2 SimpleFB support

2017-09-20 Thread Icenowy Zheng
This patchset is mainly for Allwinner DE2 HDMI SimpleFB support. The framebuffer initialized by the Allwinner DE2 driver can be passed by to the kernel as simplefb, and this can enable the kernel to display graphics without having full DE2 driver. Add the suppot of simplefb in DE2 code. The code

[U-Boot] [PATCH v5 4/4] sunxi: setup simplefb for Allwinner DE2

2017-09-20 Thread Icenowy Zheng
As the support of EFI boot on Allwinner H3 is broken, we still need to use simplefb to pass the framebuffer to Linux. Add code to setup simplefb for Allwinner DE2 driver. Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard --- Changes in v4: - Imply CONFIG_VIDEO_DT_SIMPLEFB. Changes in v3: -

Re: [U-Boot] [PATCH v3 1/1] test/py: provide example scripts for integrating qemu

2017-09-20 Thread Stephen Warren
On 09/19/2017 02:04 PM, Heinrich Schuchardt wrote: The necessary parameters for running Python tests on qemu are tedious to find. The patch adds a complete example for running the Python tests for qemu-x86_defconfig on an X86 system. diff --git a/test/py/README.md b/test/py/README.md +

Re: [U-Boot] [PATCH] py: test_gpio: Add support for GPIO pytest

2017-09-20 Thread Stephen Warren
On 09/20/2017 01:55 AM, Michal Simek wrote: From: Vipul Kumar This patch tests the gpio commands using the gpio data from boardenv file. Also one test will show the default status of all the gpio's supported by the processor. Nit: Wrap the commit description to something like 74 characters;

Re: [U-Boot] [PATCH 06/13] log: Add an implemention of logging

2017-09-20 Thread Masahiro Yamada
Hi Simon, 2017-09-20 22:49 GMT+09:00 Simon Glass : > Hi Masahiro, > > On 19 September 2017 at 20:51, Masahiro Yamada > wrote: >> Hi Simon, >> >> >> 2017-09-17 6:23 GMT+09:00 Simon Glass : >> >>> >>> +menu "Logging" >>> + >>> +config LOG >>> + bool "Enable logging support" >>> + help

Re: [U-Boot] [PATCH 06/13] log: Add an implemention of logging

2017-09-20 Thread Masahiro Yamada
2017-09-20 23:37 GMT+09:00 Dr. Philipp Tomsich : > Masahiro & Simon, > >> On 20 Sep 2017, at 15:49, Simon Glass wrote: >> >> Hi Masahiro, >> >> On 19 September 2017 at 20:51, Masahiro Yamada >> wrote: >>> Hi Simon, >>> >>> >>> 2017-09-17 6:23 GMT+09:00 Simon Glass : >>> +menu "Logging"

Re: [U-Boot] [PATCH v3 1/1] test/py: provide example scripts for integrating qemu

2017-09-20 Thread Heinrich Schuchardt
On 09/20/2017 06:41 PM, Stephen Warren wrote: > On 09/19/2017 02:04 PM, Heinrich Schuchardt wrote: >> The necessary parameters for running Python tests on qemu are >> tedious to find. >> >> The patch adds a complete example for running the Python tests for >> qemu-x86_defconfig on an X86 system. >

Re: [U-Boot] [PATCH 06/13] log: Add an implemention of logging

2017-09-20 Thread Dr. Philipp Tomsich
Masahiro, > On 20 Sep 2017, at 19:34, Masahiro Yamada > wrote: > > 2017-09-20 23:37 GMT+09:00 Dr. Philipp Tomsich > : >> Masahiro & Simon, >> >>> On 20 Sep 2017, at 15:49, Simon Glass wrote: >>> >>> Hi Masahiro, >>> >>> On 19 September 2017 at 20:51, Masahiro Yamada >>> wrote: Hi Simo

[U-Boot] cmd/bootefi.c:285:3: error: ‘loaded_image_info’ undeclared

2017-09-20 Thread Heinrich Schuchardt
Hello Rob, hello Alex, when I try to compile efi-next I get CC cmd/bootefi.o cmd/bootefi.c: In function ‘do_bootefi’: cmd/bootefi.c:285:3: error: ‘loaded_image_info’ undeclared (first use in this function) loaded_image_info.device_handle = bootefi_device_path; ^ cmd/b

Re: [U-Boot] [PATCH v3 1/1] test/py: provide example scripts for integrating qemu

2017-09-20 Thread Stephen Warren
On 09/20/2017 11:43 AM, Heinrich Schuchardt wrote: On 09/20/2017 06:41 PM, Stephen Warren wrote: On 09/19/2017 02:04 PM, Heinrich Schuchardt wrote: The necessary parameters for running Python tests on qemu are tedious to find. The patch adds a complete example for running the Python tests for

[U-Boot] [PATCH 1/1] efi_selftest: enable CONFIG_CMD_BOOTEFI_SELFTEST

2017-09-20 Thread Heinrich Schuchardt
The EFI selftest has been broken by a patch on efi-next. We should enable CONFIG_CMD_BOOTEFI_SELFTEST on qemu-x86_defconfig and qemu-x86_64_defconfig by default to catch this type of problem in the Travis CI tests. These systems typically have abundant memory so that enabling this option should no

[U-Boot] [PATCH v2] defconfigs: Add a config for AM335x High Security EVM with UART Boot support

2017-09-20 Thread Andrew F. Davis
Add a new defconfig file for the AM335x High Security EVM. This config is specific for the case of UART booting Signed-off-by: Andrew F. Davis --- Note: This only builds with GCC6+ due to size limitations for SPL to fit into SRAM MAINTAINERS | 1 + configs/am335

[U-Boot] [PATCH] arm: am33xx: security: adds auth support for encrypted images

2017-09-20 Thread Andrew F. Davis
From: Madan Srinivas This patch adds support for authentication of both plain text and encrypted binaries. A new SECDEV package is needed to enable encryption of binaries by default for AM3x. The ROM authentication API detects encrypted images at runtime and automatically decrypts the image if t

[U-Boot] [PATCH] configs: am43xx_evm: Avoid relocation onto firewall at the end of DRAM

2017-09-20 Thread Andrew F. Davis
On secure devices the initial secure software may install a firewall at the end of DRAM, define protected RAM to avoid space. Signed-off-by: Andrew F. Davis --- include/configs/am43xx_evm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/am43xx_evm.h b/include/configs/am

[U-Boot] [PATCH] defconfigs: Add a config for AM43xx High Security EVM with QSPI Boot support

2017-09-20 Thread Andrew F. Davis
On AM43xx HS devices, QSPI boot is XIP and we use a single stage bootloader. Add a defconfig for this. Signed-off-by: Andrew F. Davis --- MAINTAINERS | 1 + configs/am43xx_hs_evm_qspi_defconfig | 56 2 files changed, 57 insertions(+)

[U-Boot] [PATCH] configs: k2g_evm: Make findfdt command populate fdtfile variable

2017-09-20 Thread Andrew F. Davis
On all other platforms the command 'findfdt' populates the variable 'fdtfile', but on K2G we only populate 'name_fdt'. The generic boot and automation scripts fail when 'findfdt' is not populated, fix this for K2G. Signed-off-by: Andrew F. Davis --- include/configs/k2g_evm.h | 2 +- 1 file chang

[U-Boot] [PATCH 1/1] efi_loader: reenable selftest

2017-09-20 Thread Heinrich Schuchardt
ad503ffe9c6 efi_loader: refactor boot device and loaded_image handling leads to an error when building with CONFIG_CMD_BOOTEFI_SELFTEST=y This patch fixes the problem. Fixes: ad503ffe9c6 efi_loader: refactor boot device and loaded_image handling Signed-off-by: Heinrich Schuchardt --- cmd/bootefi

Re: [U-Boot] [PATCH 00/13] log: Add a new logging feature

2017-09-20 Thread Wolfgang Denk
Dear Simon, sorry for jumping in so late... In message <20170916212331.170463-1-...@chromium.org> you wrote: > > At present U-Boot has a logbuffer feature which records output in a memory > buffer for later display or storage. This is useful but is not at present > enabled for any board. Backgro

Re: [U-Boot] [PATCH 00/13] log: Add a new logging feature

2017-09-20 Thread Heinrich Schuchardt
On 09/20/2017 04:32 AM, Masahiro Yamada wrote: > Hi Simon, > > > 2017-09-17 6:23 GMT+09:00 Simon Glass : >> U-Boot currently has fairly rudimentary logging features. A basic printf() >> provides console output and debug() provides debug output which is >> activated if DEBUG is defined in the file

Re: [U-Boot] cmd/bootefi.c:285:3: error: ‘loaded_image_info’ undeclared

2017-09-20 Thread Rob Clark
On Wed, Sep 20, 2017 at 2:42 PM, Heinrich Schuchardt wrote: > Hello Rob, hello Alex, > > when I try to compile efi-next I get > > CC cmd/bootefi.o > cmd/bootefi.c: In function ‘do_bootefi’: > cmd/bootefi.c:285:3: error: ‘loaded_image_info’ undeclared (first use in > this function) >load

Re: [U-Boot] [PATCH 1/1] efi_loader: reenable selftest

2017-09-20 Thread Rob Clark
On Wed, Sep 20, 2017 at 3:46 PM, Heinrich Schuchardt wrote: > ad503ffe9c6 efi_loader: refactor boot device and loaded_image handling > leads to an error when building with CONFIG_CMD_BOOTEFI_SELFTEST=y > This patch fixes the problem. > > Fixes: ad503ffe9c6 efi_loader: refactor boot device and load

[U-Boot] [PATCH v2 1/1] efi_loader: reenable selftest

2017-09-20 Thread Heinrich Schuchardt
ad503ffe9c6 efi_loader: refactor boot device and loaded_image handling leads to an error when building with CONFIG_CMD_BOOTEFI_SELFTEST=y This patch fixes the problem. Fixes: ad503ffe9c6 efi_loader: refactor boot device and loaded_image handling Signed-off-by: Heinrich Schuchardt --- v2 c

Re: [U-Boot] [PATCH v2 1/1] efi_loader: reenable selftest

2017-09-20 Thread Rob Clark
On Wed, Sep 20, 2017 at 4:54 PM, Heinrich Schuchardt wrote: > ad503ffe9c6 efi_loader: refactor boot device and loaded_image handling > leads to an error when building with CONFIG_CMD_BOOTEFI_SELFTEST=y > This patch fixes the problem. > > Fixes: ad503ffe9c6 efi_loader: refactor boot device and load

[U-Boot] [PATCH] efi_loader: fix efi_exit

2017-09-20 Thread Rob Clark
efi_exit() already restores gd, so we shouldn't EFI_EXIT() on the otherside of the longjmp(). Signed-off-by: Rob Clark --- cmd/bootefi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index fdfed1be05..a049e5f64d 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@

Re: [U-Boot] [Patch v2] spl: Fix compiling warning on gunzip argument

2017-09-20 Thread York Sun
On 09/15/2017 08:21 AM, York Sun wrote: > common/spl/spl_fit.c:201:12: warning: passing argument 4 of ‘gunzip’ > from incompatible pointer type [-Wincompatible-pointer-types] > src, &length)) > > Signed-off-by: York Sun > Reported-by: Heinrich Schuchardt > CC: Jean-Jacques Hiblot > ---

[U-Boot] [PATCH 1/2] wandboard: Add support for the latest revd1 revision

2017-09-20 Thread Fabio Estevam
From: Fabio Estevam Latest wandboard hardware revision is revd1, which brings the following new features: - PFUZE100 PMIC - AR8035 Ethernet PHY - Upgrade Wifi/VT chip to BCM4339/BCM43430. The detection mechanism is to probe the PMIC and when it is found, then the revision of the board is revd1.

[U-Boot] [PATCH 2/2] wandboard: Add support for the MX6QP variant

2017-09-20 Thread Fabio Estevam
From: Fabio Estevam Add support for the latest MX6QP wandboard variant. Based on Richard Hu's work from Technexion's U-Boot tree. Signed-off-by: Fabio Estevam --- arch/arm/include/asm/arch-mx6/imx-regs.h | 3 + board/wandboard/spl.c| 133 ++-

[U-Boot] [PATCH v2 1/2] wandboard: Add support for the latest revd1 revision

2017-09-20 Thread Fabio Estevam
From: Fabio Estevam Latest wandboard hardware revision is revd1, which brings the following new features: - PFUZE100 PMIC - AR8035 Ethernet PHY - Upgrade Wifi/BT chip to BCM4339/BCM43430. The detection mechanism is to probe the PMIC and when it is found, then the revision of the board is revd1.

[U-Boot] [PATCH v2 2/2] wandboard: Add support for the MX6QP variant

2017-09-20 Thread Fabio Estevam
From: Fabio Estevam Add support for the latest MX6QP wandboard variant. Based on Richard Hu's work from Technexion's U-Boot tree. Signed-off-by: Fabio Estevam --- Changes since v1: - None arch/arm/include/asm/arch-mx6/imx-regs.h | 3 + board/wandboard/spl.c| 133 +++

Re: [U-Boot] [Patch v2] spl: Fix compiling warning on gunzip argument

2017-09-20 Thread Tom Rini
On Wed, Sep 20, 2017 at 10:35:08PM +, York Sun wrote: > On 09/15/2017 08:21 AM, York Sun wrote: > > common/spl/spl_fit.c:201:12: warning: passing argument 4 of ‘gunzip’ > > from incompatible pointer type [-Wincompatible-pointer-types] > > src, &length)) > > > > Signed-off-by: York Sun

[U-Boot] [PATCH] configs: keystone2: env: Fix burn_uboot_spi command

2017-09-20 Thread Lokesh Vutla
Now the u-boot spi image is greater than 0x8, increase the same in env during spi erase. Reported-by: Yan Liu Signed-off-by: Lokesh Vutla --- include/configs/ti_armv7_keystone2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ti_armv7_keystone2.h b/incl

[U-Boot] [PATCH v4] cmd: usb: add blk devices to ignore list in tree graph

2017-09-20 Thread Suneel Garapati
add blk child devices to ignore list while displaying usb tree graph, otherwise usb tree and info commands may cause crash treating blk as usb device. Signed-off-by: Suneel Garapati --- Changes v4: - do not set preamble if child is block device for mass storage Changes v3: - remove 'check on p

  1   2   >