Re: [U-Boot] cmd: nvedit: env_get_f must check for env_get_char error codes

2018-02-01 Thread Tom Rini
On Wed, Jan 31, 2018 at 07:56:48AM +0100, Simon Goldschmidt wrote: > env_get_f calls env_get_char to load single characters from the > environment. However, the return value of env_get_char was not > checked for errors. Now if the env driver does not support the > .get_char call, env_get_f did

Re: [U-Boot] [U-Boot, v2, 2/4] env: move more common code to env_import_redund

2018-02-01 Thread Tom Rini
On Wed, Jan 31, 2018 at 02:47:11PM +0100, Simon Goldschmidt wrote: > There is more common code in mmc, nand and ubi env drivers that > can be shared by moving to env_import_redund. > > For this, a status/error value whether the buffers were loaded > are passed as additional parameters to

Re: [U-Boot] [U-Boot, v2, 1/4] env: make env_import(_redund) return 0 on success, not 1

2018-02-01 Thread Tom Rini
On Wed, Jan 31, 2018 at 02:47:10PM +0100, Simon Goldschmidt wrote: > env_import (and env_import_redund) currently return 1 on success > and 0 on error. However, they are only used from functions > returning 0 on success or a negative value on error. > > Let's clean this up by making env_import

Re: [U-Boot] [PATCH v3 2/2] Enable test case with A20-OLinuXino-Lime2

2018-02-01 Thread Jagan Teki
On Thu, Feb 1, 2018 at 8:08 PM, Stefan Mavrodiev wrote: > On 01/30/2018 09:15 AM, Stefan Mavrodiev wrote: >> >> On 01/22/2018 10:36 AM, Jagan Teki wrote: >>> >>> On Tue, Jan 2, 2018 at 4:31 PM, Stefan Mavrodiev >>> wrote: On

[U-Boot] Where is the edge between a loader and (microkernel) OS?

2018-02-01 Thread Dmitry Ponyatov
Good Day I'm looking at u-boot source code, and see a huge amount of hardware drivers, used only for the loader. On the other side, modern Linux kernels eat a more than half of RAM on cheap embedded modules like HLK-R04. Is it suitable to morph u-boot into tiny embedded microkernel OS adding

[U-Boot] [PATCH 1/1] efi_driver: return type of efi_driver_init()

2018-02-01 Thread Heinrich Schuchardt
Change the return type of efi_driver_init() to efi_status_t. efi_driver_init() calls efi_add_driver() which returns an efi_status_t value. efi_driver_init() should not subject this value to a conversion to int losing high bits on 64bit systems. Signed-off-by: Heinrich Schuchardt

Re: [U-Boot] Please pull u-boot-fsl-qoriq master

2018-02-01 Thread Tom Rini
On Wed, Jan 31, 2018 at 11:04:00PM +, York Sun wrote: > Tom, > > The following changes since commit ae5326a6b34b34b1827edf2eee1a0e9e5363c5a2: > > serial: Make full device search optional (2018-01-29 08:18:02 -0500) > > are available in the git repository at: > >

Re: [U-Boot] [PATCH 3/5] zynq: Support CPU info display

2018-02-01 Thread Ezequiel Garcia
On 1 February 2018 at 05:26, Michal Simek wrote: > On 31.1.2018 22:25, Ezequiel Garcia wrote: >> On 26 January 2018 at 09:33, Michal Simek wrote: >>> Hi, >>> >>> >>> On 17.1.2018 14:56, Ezequiel Garcia wrote: This commit adds CPU and silicon

Re: [U-Boot] [PATCH 1/3] sunxi: Add selective PHY address

2018-02-01 Thread Maxime Ripard
Hi, On Thu, Feb 01, 2018 at 12:12:45PM +0200, Stefan Mavrodiev wrote: > By default PHY address used for sunxi boards is 1. Some new boards > (A20-SOM204-EVB) uses different address. > > The code enables selective PHY address via menuconfig inside ARM > submenu. The option has default value of 1.

Re: [U-Boot] [PATCH 3/4] Kconfig: gadget: Move CONFIG_USB_FUNCTION_MASS_STORAGE to Kconfig

2018-02-01 Thread Maxime Ripard
On Tue, Jan 30, 2018 at 10:08:50AM +0100, Lukasz Majewski wrote: > Hi Maxime, > > > Hi, > > > > On Mon, Jan 29, 2018 at 07:25:54PM +0100, Lukasz Majewski wrote: > > > This commit moves USB_FUNCTION_MASS_STORAGE config to Kconfig. > > > > > > Signed-off-by: Lukasz Majewski > > >

Re: [U-Boot] [U-Boot, v2, 3/4] env: make env drivers propagate env_import return value

2018-02-01 Thread Tom Rini
On Wed, Jan 31, 2018 at 02:47:12PM +0100, Simon Goldschmidt wrote: > For multiple env drivers to correctly implement fallback when > one environment fails to load (e.g. crc error), the return value > of env_import has to be propagated by all env driver's load > function. > > Without this change,

Re: [U-Boot] [U-Boot, v2, 4/4] env: sf: use env_import_redund to simplify env_sf_load

2018-02-01 Thread Tom Rini
On Wed, Jan 31, 2018 at 02:47:13PM +0100, Simon Goldschmidt wrote: > For the redundant environment configuration, env_sf_load still > contained duplicate code instead of using env_import_redund(). > > Simplify the code by only executing the load twice and delegating > everything else to

Re: [U-Boot] [PATCH 2/3] sunxi: Add A20-SOM204-EVB board

2018-02-01 Thread Maxime Ripard
Hi, On Thu, Feb 01, 2018 at 12:12:46PM +0200, Stefan Mavrodiev wrote: > This is new System-On-Module platform with universal dimm socket for > easy insertation. The EVB board is designed to be universal with > future modules. Product page is located here [1]. > > Base features of A20-SOM204

Re: [U-Boot] [PATCH] usb: dwc2: Rename CONFIG_DWC2_UTMI_PHY_WIDTH to CONFIG_DWC2_UTMI_WIDTH

2018-02-01 Thread Alexey Brodkin
Hi Marek, On Wed, 2018-01-31 at 16:13 +0100, Marek Vasut wrote: > On 01/31/2018 03:56 PM, Alexey Brodkin wrote: > > For some reason from day one we used to have both CONFIG_DWC2_UTMI_WIDTH > > mentioned in dwc2.h and in scripts/config_whitelist.txt but never really > > used > > and

[U-Boot] [RFC PATCH] net: gem: Add support for more PHYs on MDIO bus

2018-02-01 Thread Michal Simek
Find out MDIO bus and enable MDIO access to it if this is done via different controller. Signed-off-by: Michal Simek --- Hi Joe, this is the code I have hacked a year ago for ZynqMP where we can have configuration that 4 gems are enabled but they share the same MDIO

Re: [U-Boot] [PATCH] board_f: Show only .text location in display_text_info()

2018-02-01 Thread Simon Glass
Hi Alexey, On 1 February 2018 at 10:33, Alexey Brodkin wrote: > > For some reason we used to print not only location of .text > section [before relocation] but also .bss start and end. > > Moreover how that was printed was obviously misleading: >

Re: [U-Boot] Where is the edge between a loader and (microkernel) OS?

2018-02-01 Thread Wolfgang Denk
Dear Dmitry, In message you wrote: > > I'm looking at u-boot source code, and see a huge amount of hardware > drivers, used only for the loader. > On the other side, modern Linux kernels eat a more than half of RAM on > cheap

[U-Boot] Where is the edge between a loader and (microkernel) OS

2018-02-01 Thread Duncan Hare
I'm looking at u-boot source code, and see a huge amount of hardware drivers, used only for the loader. On the other side, modern Linux kernels eat a more than half of RAM on cheap embedded modules like HLK-R04. Linux kernels have got fat.  I believe it would be easier to remove modules, and

Re: [U-Boot] [U-Boot, v2, 10/15] dm: mmc: sunxi: Add support for driver model

2018-02-01 Thread Heinrich Schuchardt
On 02/01/2018 04:11 PM, Tuomas Tynkkynen wrote: Hi Heinrich, On Wed, 2018-01-31 at 18:08 +0100, Heinrich Schuchardt wrote: On 07/04/2017 09:31 PM, Simon Glass wrote: Add a driver-model version of this driver which mostly uses the existing code. The old code can be removed once all boards

Re: [U-Boot] [PATCH v3 2/2] Enable test case with A20-OLinuXino-Lime2

2018-02-01 Thread Stefan Mavrodiev
On 01/30/2018 09:15 AM, Stefan Mavrodiev wrote: On 01/22/2018 10:36 AM, Jagan Teki wrote: On Tue, Jan 2, 2018 at 4:31 PM, Stefan Mavrodiev wrote: On 12/26/2017 11:47 AM, Jagan Teki wrote: On Fri, Dec 22, 2017 at 3:30 PM, Stefan Mavrodiev wrote:

Re: [U-Boot] FEC Clock

2018-02-01 Thread Fabio Estevam
[Please do not top post in mailing lists] On Tue, Jan 30, 2018 at 6:40 AM, Mehmet Ali İPİN wrote: > Dear Estevam, > > I used GPIO 16 to generate the 25MHZ clock, using > enable_fec_anatop_clock(1,ENET_25MHZ), in ; > board_eth_init() function, but got 50 MHz on

Re: [U-Boot] FEC Clock

2018-02-01 Thread Michael Nazzareno Trimarchi
Hi On 1 Feb. 2018 6:06 pm, "Fabio Estevam" wrote: [Please do not top post in mailing lists] On Tue, Jan 30, 2018 at 6:40 AM, Mehmet Ali İPİN wrote: > Dear Estevam, > > I used GPIO 16 to generate the 25MHZ clock, using

Re: [U-Boot] [U-Boot, v2, 10/15] dm: mmc: sunxi: Add support for driver model

2018-02-01 Thread Tuomas Tynkkynen
Hi Heinrich, On Wed, 2018-01-31 at 18:08 +0100, Heinrich Schuchardt wrote: > On 07/04/2017 09:31 PM, Simon Glass wrote: > > Add a driver-model version of this driver which mostly uses the > > existing > > code. The old code can be removed once all boards are switched > > over. > > > >

[U-Boot] [PATCH] board_f: Show only .text location in display_text_info()

2018-02-01 Thread Alexey Brodkin
For some reason we used to print not only location of .text section [before relocation] but also .bss start and end. Moreover how that was printed was obviously misleading: ->8--- U-Boot code: 20001000 -> 30008C00 BSS: -> 3000C58E

[U-Boot] [PATCH] Remove more checks for CONFIG_SYS_TEXT_BASE being set

2018-02-01 Thread Alexey Brodkin
Now when Blackfin is gone CONFIG_SYS_TEXT_BASE is supposed to be set for each and every board which makes checks for this macro being set completely redundant. Note there're still checks for CONFIG_SYS_TEXT_BASE in quite a few board configurations in "include/configs/XXX.h" which at some point

Re: [U-Boot] [PATCH] Remove more checks for CONFIG_SYS_TEXT_BASE being set

2018-02-01 Thread Tom Rini
On Thu, Feb 01, 2018 at 08:20:59PM +0300, Alexey Brodkin wrote: > Now when Blackfin is gone CONFIG_SYS_TEXT_BASE is supposed to be > set for each and every board which makes checks for this macro being set > completely redundant. > > Note there're still checks for CONFIG_SYS_TEXT_BASE in quite a

[U-Boot] [PATCH 1/1] mmc: sunxi: support cd-inverted

2018-02-01 Thread Heinrich Schuchardt
With CONFIG_DM_MMC the BananaPi does not detect SD cards. The sunxi device trees use the cd-inverted property to indicate that the card detect is inverted. This property is documented in Linux kernel devicetree/bindings/mmc/mmc.txt The property is not marked as deprecated. A similar patch was

[U-Boot] [PATCH 1/1] efi_selftest: use correct compiler flags for miniapps

2018-02-01 Thread Heinrich Schuchardt
For EFI binaries we need special CFLAGS. They were specified for an object file that since has been replaced. Signed-off-by: Heinrich Schuchardt --- Alex, could you, please, forsee this patch for your rc2 pull request. --- lib/efi_selftest/Makefile | 6 -- 1 file

[U-Boot] Port help for qca board

2018-02-01 Thread Ansuel Smith
I have source of an old version of uboot (2012/07) of this board (actually 5... ipq806x general and router r7800,d7800 and other 3 model) Someone can port it to new version or can help me do it? Don't think it would be difficult as we have all the source that we need. Tell me if you need more

[U-Boot] [PATCH] uniphier: increase the firmware size in update command environment

2018-02-01 Thread Masahiro Yamada
If a bigger EL32 is used, fip.bin can be larger than the currently assumed boot firmware size. Adjust the update commands. Signed-off-by: Masahiro Yamada --- include/configs/uniphier.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [U-Boot] [PATCH 1/8] mach-stm32: Add get_cpu_id support

2018-02-01 Thread Patrice CHOTARD
Hi Vikas On 01/31/2018 07:20 PM, Vikas Manocha wrote: > Hi Patrice, > > On 01/31/2018 08:09 AM, patrice.chot...@st.com wrote: >> From: Patrice Chotard >> >> This allows to read the CPU ID into STM32 DBGMCU_IDCODE register >> and create an environment variable which

[U-Boot] [PATCH] arm64: zynqmp: Convert board to use zynqmp-clk driver

2018-02-01 Thread Michal Simek
Use zynqmp clock driver instead of fixed clocks. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk-ccf.dtsi | 290 +++ arch/arm/dts/zynqmp-zc1751-xm015-dc1.dts | 2 +- arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts

Re: [U-Boot] [PATCH] cmd: nvedit: env_get_f must check for env_get_char error codes

2018-02-01 Thread Simon Goldschmidt
On 01.02.2018 00:00, York Sun wrote: On 01/30/2018 10:57 PM, Simon Goldschmidt wrote: env_get_f calls env_get_char to load single characters from the environment. However, the return value of env_get_char was not checked for errors. Now if the env driver does not support the .get_char call,

Re: [U-Boot] [PATCH v7 3/3] common: Generic firmware loader for file system

2018-02-01 Thread Marek Vasut
On 02/01/2018 08:06 AM, Chee, Tien Fong wrote: > On Tue, 2018-01-30 at 13:12 +0100, Marek Vasut wrote: >> On 01/30/2018 12:16 PM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> This is file system generic loader which can be used to load >>> the

[U-Boot] [RFC PATCH 1/2] zynq: Rework FPGA initialization

2018-02-01 Thread Michal Simek
This commit moves the FPGA descriptor definition to mach-zynq, where it makes more sense. Based on patches from Ariel D'Alessandro , and Ezequiel Garcia Signed-off-by: Michal Simek --- It is just test how this

Re: [U-Boot] [PATCH 3/5] zynq: Support CPU info display

2018-02-01 Thread Michal Simek
On 31.1.2018 22:25, Ezequiel Garcia wrote: > On 26 January 2018 at 09:33, Michal Simek wrote: >> Hi, >> >> >> On 17.1.2018 14:56, Ezequiel Garcia wrote: >>> This commit adds CPU and silicon version information >>> consuming the SLCR IDCODE and DEVCFG MCTRL registers, >>>

Re: [U-Boot] [PATCH 0/3] sunxi: sun8i-emac: Update DT bindings

2018-02-01 Thread Maxime Ripard
Hi Andre, On Wed, Jan 31, 2018 at 01:40:23PM +, Andre Przywara wrote: > > Is this issue happening when you sync the whole DT, and would it break > > if you just convert the EMAC binding? > > > > Otherwise, we might try to revive the DTC garbage collection of unused > > nodes patches. This

Re: [U-Boot] [PATCH] fpga: Simplify error path in fpga_add

2018-02-01 Thread Simon Goldschmidt
On 01.02.2018 09:05, Michal Simek wrote: Check !desc earlier to simplify code. Signed-off-by: Michal Simek Acked-by: Simon Goldschmidt Reviewed-by: Simon Goldschmidt --- drivers/fpga/fpga.c

[U-Boot] [PATCH] fpga: Simplify error path in fpga_add

2018-02-01 Thread Michal Simek
Check !desc earlier to simplify code. Signed-off-by: Michal Simek --- drivers/fpga/fpga.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/fpga/fpga.c b/drivers/fpga/fpga.c index 6aead27f1626..ac01612d7518 100644 ---

[U-Boot] [RFC PATCH 2/2] zynq: board: Remove checkboard and enable DISPLAY_CPUINFO

2018-02-01 Thread Michal Simek
Now that showing silicon version is part of the CPU info display, let's remove checkboard(). Note that the generic show_board_info() will still show the DT 'model' property. For instance: U-Boot 2018.01-00172-g5e296ab7317a (Jan 17 2018 - 09:57:36 -0300) CPU: Zynq 7z010 Silicon: v3.1

Re: [U-Boot] [PATCH 0/3] sunxi: sun8i-emac: Update DT bindings

2018-02-01 Thread Andre Przywara
Hi, On 01/02/18 08:26, Maxime Ripard wrote: > Hi Andre, > > On Wed, Jan 31, 2018 at 01:40:23PM +, Andre Przywara wrote: >>> Is this issue happening when you sync the whole DT, and would it break >>> if you just convert the EMAC binding? >>> >>> Otherwise, we might try to revive the DTC

Re: [U-Boot] [PATCH v3 12/15] env: Allow to build multiple environments in Kconfig

2018-02-01 Thread Simon Goldschmidt
On 23.01.2018 21:17, Maxime Ripard wrote: Now that we have everything in place in the code, let's allow to build multiple environments backend through Kconfig. Reviewed-by: Andre Przywara Reviewed-by: Lukasz Majewski Reviewed-by: Simon Glass

[U-Boot] [PATCH 1/3] sunxi: Add selective PHY address

2018-02-01 Thread Stefan Mavrodiev
By default PHY address used for sunxi boards is 1. Some new boards (A20-SOM204-EVB) uses different address. The code enables selective PHY address via menuconfig inside ARM submenu. The option has default value of 1. Signed-off-by: Stefan Mavrodiev ---

[U-Boot] [PATCH 2/3] sunxi: Add A20-SOM204-EVB board

2018-02-01 Thread Stefan Mavrodiev
This is new System-On-Module platform with universal dimm socket for easy insertation. The EVB board is designed to be universal with future modules. Product page is located here [1]. Base features of A20-SOM204 board includes: * 1GB DDR3 RAM * AXP209 PMU * KSZ9031 Gigabit

[U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board

2018-02-01 Thread Stefan Mavrodiev
A20-SOM204 board has option with onboard 16GB eMMC. The chip is wired to MMC2 slot. This patch adds defconfig and dts files for this board. The dts is same with mainline kernel. Signed-off-by: Stefan Mavrodiev --- arch/arm/dts/Makefile | 1 +