Re: [U-Boot] Trouble making the u-boot file for Zed Board

2019-06-12 Thread Michal Simek
Hi, On 12. 06. 19 1:40, Melika Shahriari wrote: > Hello, > > My name is Melika. I am a student from the University of British Columbia. I > am following > these > instructions to build u-boot file for my Zed Board. My

Re: [U-Boot] [PATCHv3 10/10] configs: Disable now unbuildable SPI options for boards

2019-06-12 Thread Jagan Teki
On Thu, May 30, 2019 at 2:36 AM Tom Rini wrote: > > Now that various SPI related options depend on CONFIG_DEPRECATED, in > order for platforms to build out of the box they need to disable various > other options. > > Cc: Albert ARIBAUD > Cc: Marek Vasut > Cc: Vladimir Zapolskiy > Cc: Fabio Este

Re: [U-Boot] [PATCHv3 02/10] Kconfig: Add SPI / SPI_FLASH as dependencies

2019-06-12 Thread Jagan Teki
On Thu, May 30, 2019 at 2:32 AM Tom Rini wrote: > > In order to use CMD_SF / CMD_SPI / ENV_IS_IN_SPI_FLASH we need to have > the SPI (or SPI_FLASH/DM_SPI_FLASH, for CMD_SF) enabled. Express this > in the Kconfigs. > > Signed-off-by: Tom Rini > --- Reviewed-by: Jagan Teki __

[U-Boot] [PATCH 1/1] colibri_imx7: introduce androidboot wrapper

2019-06-12 Thread Igor Opaniuk
From: Igor Opaniuk 1. Introduce androidboot wrapper for booting AOSP. 2. Add partitions_android env var for simplifying the process of writing new gpt table from U-boot shell/fastboot. Signed-off-by: Igor Opaniuk --- configs/colibri_imx7_emmc_defconfig | 2 +- include/configs/colibri_imx7.h

Re: [U-Boot] [PATCHv3 03/10] Kconfig: Add DEPRECATED option

2019-06-12 Thread Jagan Teki
On Thu, May 30, 2019 at 2:33 AM Tom Rini wrote: > > Add a new option, CONFIG_DEPRECATED, for code that relies on deprecated > functionality and has not been converted past the deadline for > conversion. > > Signed-off-by: Tom Rini > --- > Kconfig | 7 +++ > 1 file changed, 7 insertions(+) >

Re: [U-Boot] [linux-sunxi] [PATCH v7] sun8i: h3: Add support for the Beelink-x2 STB

2019-06-12 Thread Jagan Teki
On Sun, Jun 2, 2019 at 12:08 PM wrote: > > From: Marcus Cooper > > The Beelink X2 is an STB based on the Allwinner H3 SoC with a uSD slot, > 2 USB ports( 1 * USB-2 Host, 1 USB OTG), a 10/100M ethernet port using the > SoC's integrated PHY, Wifi via an sdio wifi chip, HDMI, an IR receiver, a > dua

Re: [U-Boot] [PATCH v4 02/10] spi: Add Atmel QuadSPI driver

2019-06-12 Thread Jagan Teki
On Wed, May 15, 2019 at 12:33 PM wrote: > > From: Tudor Ambarus > > Backport the driver from linux v5.1-rc5 and adapt it for u-boot. > Tested on sama5d2_xplained Rev B with mx25l25635e spi-nor flash. > > Signed-off-by: Tudor Ambarus > --- > v4: update Kconfig description > v3: no change > v2: no

Re: [U-Boot] [PATCH v4] gpio: add gpio-hog support

2019-06-12 Thread Michal Simek
On 12. 06. 19 6:11, Heiko Schocher wrote: > add gpio-hog support. GPIO hogging is a mechanism > providing automatic GPIO request and configuration > as part of the gpio-controller's driver probe function. > > for more infos see: > doc/device-tree-bindings/gpio/gpio.txt > > Signed-off-by: Heiko Sc

Re: [U-Boot] [PATCH v3 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-06-12 Thread Jagan Teki
On Fri, May 24, 2019 at 5:50 PM Chuanhua Han wrote: > > Modify the Freescale ESPI driver to support the driver model. > Also resolved the following problems: > > = WARNING == > This board does not use CONFIG_DM_SPI. Please update > the board before v2019.04

[U-Boot] Default environment file

2019-06-12 Thread Linder Pascal
Hi everyone, I am currently moving the configurations of the KM boards from header files to Kconfig. But for the customly defined environment variables I did not found a decent solution until I have come across the default environment file, which seems very interesting to me. To this day, ne

[U-Boot] [PATCH v5 1/2] arm: i.MX: Add CMD_NANDBCB Kconfig entry

2019-06-12 Thread Shyam Saini
Add Kconfig entry for CMD_NANDBCB, and default y on i.MX6 platform with NAND_MXS defined. Reviewed-by: Stefano Babic Signed-off-by: Jagan Teki Signed-off-by: Shyam Saini --- Hi, This patch series is based on feedback gathered from this [1] discussion and [2] patch submitted by Stefan. [1] htt

[U-Boot] [PATCH v5 2/2] i.MX6: nand: add nandbcb command for imx

2019-06-12 Thread Shyam Saini
Writing/updating boot image in nand device is not straight forward in i.MX6 platform and it requires boot control block(BCB) to be configured. It becomes difficult to use uboot 'nand' command to write BCB since it requires platform specific attributes need to be taken care of. It is even difficul

[U-Boot] [PATCH 2/2] regulator: Allow enabling GPIO regulator

2019-06-12 Thread sven
From: Sven Schwermer Drivers need to be able to enable regulators that may be implemented as GPIO regulators. Example: fsl_esdhc enables the vqmmc supply which is commonly implemented as a GPIO regulator in order to switch between I/O voltage levels. Signed-off-by: Sven Schwermer --- drivers/p

[U-Boot] [PATCH 1/2] regulator: Factor out common enable code

2019-06-12 Thread sven
From: Sven Schwermer In preparation of being able to enable/disable GPIO regulators, the code that will be shared among the two kinds to regulators is factored out into its own source files. Signed-off-by: Sven Schwermer --- drivers/power/regulator/Kconfig| 10 +++ drivers/power/re

Re: [U-Boot] Default environment file

2019-06-12 Thread Lukasz Majewski
Hi Pascal, > Hi everyone, > > > I am currently moving the configurations of the KM boards from header > files to Kconfig. But for the customly defined environment variables > I did not found a decent solution until I have come across the > default environment file, which seems very interesting t

[U-Boot] [PATCH] configs: icorem6: Enable Nand bcb command

2019-06-12 Thread Shyam Saini
This would be used for writing spl images along nand BCB Signed-off-by: Shyam Saini --- This patch should be applied on top of imx nand bcb [1]patch series [1] https://patchwork.ozlabs.org/project/uboot/list/?series=113319 configs/imx6qdl_icore_mmc_defconfig | 1 + 1 file changed, 1 insertion(

Re: [U-Boot] Default environment file

2019-06-12 Thread Stefano Babic
Hi Pascal, On 12/06/19 10:20, Linder Pascal wrote: > Hi everyone, > > > I am currently moving the configurations of the KM boards from header files > to Kconfig. But for the customly defined environment variables I did not > found a decent solution until I have come across the default environm

Re: [U-Boot] Default environment file

2019-06-12 Thread Rasmus Villemoes
On 12/06/2019 10.43, Stefano Babic wrote: > Hi Pascal, > > On 12/06/19 10:20, Linder Pascal wrote: >> Hi everyone, >> >> >> I am currently moving the configurations of the KM boards from header files >> to Kconfig. But for the customly defined environment variables I did not >> found a decent so

[U-Boot] [PATCH 0/3] amlogic: add unique MAC address generatio

2019-06-12 Thread Neil Armstrong
This patchset adds support for generating an unique MAC address per-SoC, and enables it on the q200 (VIM2) and P212 (libretech-cc, khadas-vim, libretech-ac) based boards. Neil Armstrong (3): ARM: meson: sm: Add secure monitor calls to retrieve SoC serial number ARM: meson: add unique MAC addr

[U-Boot] [PATCH 1/3] ARM: meson: sm: Add secure monitor calls to retrieve SoC serial number

2019-06-12 Thread Neil Armstrong
The Secure Monitor interface permits retrieving the SoC Serial Number, add a function to retrieve it. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/sm.h | 1 + arch/arm/mach-meson/sm.c | 24 2 files changed, 25 insertions(+) diff --git a

[U-Boot] [PATCH 3/3] board: amlogic: Generate unique MAC address for Q200 and P212 based boards

2019-06-12 Thread Neil Armstrong
Enable unique MAC address generation for boards usins SoCs having a known functional and valid unique serial number. Signed-off-by: Neil Armstrong --- board/amlogic/p212/p212.c | 2 ++ board/amlogic/q200/q200.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/board/amlogic/p212/p212.c b/bo

[U-Boot] [PATCH 2/3] ARM: meson: add unique MAC address generation

2019-06-12 Thread Neil Armstrong
Add support for generating an unique MAC address using the SoC internal serial number from the Secure Monitor interface. The algorithm generates an unicast locally administered 6bytes minus 2bits address using an crc16 of the serial for the top 16bits with the lower 2 bits masked to setup the unic

[U-Boot] [PATCH 1/1] fastboot: check if partition really exist in getvar_has_slot()

2019-06-12 Thread Igor Opaniuk
From: Igor Opaniuk Currently getvar_has_slot() invocation for "boot" and "system" partitions always returns affirmative response regardless the fact of existence of these partitions, which leads to impossibility to flash them on old non-A/B AOSP setups, where _a/_b suffixes aren't used: $ fastbo

Re: [U-Boot] [PATCH v4 1/2] regulator: bd71837: copy the bd71837 pmic

2019-06-12 Thread Vaittinen, Matti
Hello Stefano, On Mon, 2019-06-10 at 11:40 +0200, sba...@denx.de wrote: > > https://source.codeaurora.org/external/imx/uboot-imx > > cherry picked, styled and merged commits: > > - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a > > - MLK-18590 pmic: bd71837: Change to use new fdt API: a

Re: [U-Boot] Trouble making the u-boot file for Zed Board

2019-06-12 Thread Alexander Graf
On 12.06.19 09:09, Michal Simek wrote: Hi, On 12. 06. 19 1:40, Melika Shahriari wrote: Hello, My name is Melika. I am a student from the University of British Columbia. I am following these instructions to build u

Re: [U-Boot] [PATCH v4 1/2] regulator: bd71837: copy the bd71837 pmic

2019-06-12 Thread Stefano Babic
Hi Maitti, On 12/06/19 12:24, Vaittinen, Matti wrote: > Hello Stefano, > > On Mon, 2019-06-10 at 11:40 +0200, sba...@denx.de wrote: >>> https://source.codeaurora.org/external/imx/uboot-imx >>> cherry picked, styled and merged commits: >>> - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95

[U-Boot] [PATCH v1] watchdog: move WATCHDOG_TIMEOUT_MSECS to Kconfig

2019-06-12 Thread Heiko Schocher
move WATCHDOG_TIMEOUT_MSECS to Kconfig and fix all board defconfigs. Signed-off-by: Heiko Schocher --- Patchseries build fine on travis see: https://travis-ci.org/hsdenx/u-boot-test/builds/544546490 Based on mainline commit: 68b90e57bc: "configs: tinker-rk3288 disable CONFIG_SPL_I2C_SUPPORT" a

[U-Boot] [PATCH 2/2] regulator: Allow enabling GPIO regulator

2019-06-12 Thread Sven Schwermer
Drivers need to be able to enable regulators that may be implemented as GPIO regulators. Example: fsl_esdhc enables the vqmmc supply which is commonly implemented as a GPIO regulator in order to switch between I/O voltage levels. Signed-off-by: Sven Schwermer --- drivers/power/regulator/Kconfig

[U-Boot] [PATCH 1/2] regulator: Factor out common enable code

2019-06-12 Thread Sven Schwermer
In preparation of being able to enable/disable GPIO regulators, the code that will be shared among the two kinds to regulators is factored out into its own source files. Signed-off-by: Sven Schwermer --- drivers/power/regulator/Kconfig| 10 +++ drivers/power/regulator/Makefile

Re: [U-Boot] [PATCH v1] watchdog: move WATCHDOG_TIMEOUT_MSECS to Kconfig

2019-06-12 Thread Stefan Roese
On 12.06.19 10:22, Heiko Schocher wrote: move WATCHDOG_TIMEOUT_MSECS to Kconfig and fix all board defconfigs. Signed-off-by: Heiko Schocher Reviewed-by: Stefan Roese Thanks, Stefan --- Patchseries build fine on travis see: https://travis-ci.org/hsdenx/u-boot-test/builds/544546490 Based

[U-Boot] [PATCH v2 1/7] armv8: lx2160a: The lx2160a platform supports the I2C driver model.

2019-06-12 Thread Chuanhua Han
DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for compilation, a compilation error will be generated. This patch solves the problem that the i2c-related api of the lx2160a platform does not support dm. Signed-off-b

[U-Boot] [PATCH v2 2/7] configs: lx2160a: enable DM support for pcf2127 rtc

2019-06-12 Thread Chuanhua Han
Enable related configs to support pcf2127 rtc DM feature. Signed-off-by: Chuanhua Han Signed-off-by: Biwen Li --- Changes in v2: - No change. configs/lx2160ardb_tfa_SECURE_BOOT_defconfig | 5 + configs/lx2160ardb_tfa_defconfig | 5 + 2 files changed, 10 insertions(

[U-Boot] [PATCH v2 6/7] armv8: lx2160ardb : Add pcf2127 node

2019-06-12 Thread Chuanhua Han
This patch adds the pcf2127-rtc node under the i2c4 node. Signed-off-by: Chuanhua Han --- Changes in v2: - Delete unnecessary aliases about i2c. arch/arm/dts/fsl-lx2160a-rdb.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts

[U-Boot] [PATCH v2 4/7] gpio: do not include on ARCH_LX2160A

2019-06-12 Thread Chuanhua Han
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch ls2160a. Signed-off-by: Chuanhua Han --- Changes in v2: - No change. arch/arm/include/asm/gpio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/

[U-Boot] [PATCH v2 3/7] drivers: i2c: mxc: Solve the compiler error when using i2c dm mode

2019-06-12 Thread Chuanhua Han
This patch solved the following compilation error: 1.Remove the definition of CONFIG_SYS_I2C to solve the following compilation issue: In file included from include/config.h:8:0, from include/common.h:20: include/config_fallbacks.h:51:4: error: #error "Cannot define CONFIG_SYS_I2C

[U-Boot] [PATCH v2 5/7] armv8: dts: fsl-lx2160a: add i2c controller and gpio DT nodes

2019-06-12 Thread Chuanhua Han
In lx2160a soc, there are eight i2c controllers, this patch adds i2c nodes for lx2160a, and the gpio2 nodes on which the i2c4 controller depends. Signed-off-by: Chuanhua Han --- Changes in v2: - Delete unnecessary clockgen related attributes in the i2c controller node arch/arm/dts/fsl

[U-Boot] [PATCH v2 7/7] armv8: lx2160ardb : Add slave nodes under the i2c0 controller

2019-06-12 Thread Chuanhua Han
This patch adds some slave nodes to support the i2c dm on the device side under the i2c0 controller. Signed-off-by: Chuanhua Han --- Changes in v2: - Add "u-boot,dm-pre-reloc" attribute to i2c0 node. arch/arm/dts/fsl-lx2160a-rdb.dts | 50 1 file changed

Re: [U-Boot] [PATCH v1] watchdog: move WATCHDOG_TIMEOUT_MSECS to Kconfig

2019-06-12 Thread Lukasz Majewski
On Wed, 12 Jun 2019 10:22:50 +0200 Heiko Schocher wrote: > move WATCHDOG_TIMEOUT_MSECS to Kconfig and fix > all board defconfigs. > > Signed-off-by: Heiko Schocher > --- > > Patchseries build fine on travis see: > https://travis-ci.org/hsdenx/u-boot-test/builds/544546490 > > Based on mainline

Re: [U-Boot] [PULL] u-boot-stm32 for v2019.07​ (round 5)

2019-06-12 Thread Tom Rini
On Tue, Jun 11, 2019 at 07:22:42AM +, Patrice CHOTARD wrote: > Hi Tom > > This pull request include 6 series for the stm32mp157 support in U-Boot: > _ Add watchdog support for STM32MP1 : > http://patchwork.ozlabs.org/user/todo/uboot/?series=105424 > > _ Add SPI driver suport for STM3

Re: [U-Boot] [GIT PULL] Pull request: u-boot-imx u -boot-imx-20190612

2019-06-12 Thread Tom Rini
at: > > git://www.denx.de/git/u-boot-imx.git tags/u-boot-imx-20190612 > > for you to fetch changes up to 23612534fe0fe426716ee9cb5cfeb74a456cb891: > > spl: imx6: Provide a SPL_SIZE_LIMIT default (2019-06-11 10:43:00 +0200) > Applied to u-boo

Re: [U-Boot] [PATCH v3 1/2] tools/zynqmp_psu_init_minimize.sh: fix return lines coding style

2019-06-12 Thread Michal Simek
On 11. 06. 19 18:39, Luca Ceresoli wrote: > Remove unneeded parenthess around return value. E.g.: > return (0); -> return 0; > > Signed-off-by: Luca Ceresoli > --- > tools/zynqmp_psu_init_minimize.sh | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/zynqmp_psu_init_minim

Re: [U-Boot] [PATCH v3 2/2] arm64: zynqmp: add support for Avnet UltraZed-EV Starter Kit

2019-06-12 Thread Michal Simek
On 11. 06. 19 18:39, Luca Ceresoli wrote: > Avnet UltraZed-EV Starter Kit is composed by the UltraZed-EV SoM and the > only publicly-available compatible carrier card. The SoM is based on the EV > version of the Xilinx ZynqMP SoC+FPGA. > > The psu_init_gpl.c file has been generated from the board

[U-Boot] [PATCH 2/2] arm: imx8: don't duplicate build_info()

2019-06-12 Thread Anatolij Gustschin
Move build_info() to common place. Signed-off-by: Anatolij Gustschin Cc: Marcel Ziswiler Cc: Peng Fan --- arch/arm/include/asm/arch-imx8/sys_proto.h | 1 + arch/arm/mach-imx/imx8/misc.c | 13 + board/freescale/imx8qm_mek/imx8qm_mek.c | 13 - board/fr

[U-Boot] [PATCH 1/2] arm: imx8: factor out uart init code

2019-06-12 Thread Anatolij Gustschin
New imx8 boards started adding duplicated UART init code. Factor out this to common function sc_pm_setup_uart(). Signed-off-by: Anatolij Gustschin Cc: Peng Fan Cc: Marcel Ziswiler Reviewed-by: Peng Fan --- Rebased version of patch http://patchwork.ozlabs.org/patch/283 to address apalis-imx

Re: [U-Boot] [PATCH 1/2] arm: imx8: factor out uart init code

2019-06-12 Thread Peng Fan
> Subject: [PATCH 1/2] arm: imx8: factor out uart init code > > New imx8 boards started adding duplicated UART init code. > Factor out this to common function sc_pm_setup_uart(). > > Signed-off-by: Anatolij Gustschin > Cc: Peng Fan > Cc: Marcel Ziswiler > Reviewed-by: Peng Fan > --- > Rebased

Re: [U-Boot] [PATCH 2/2] arm: imx8: don't duplicate build_info()

2019-06-12 Thread Peng Fan
> Subject: [PATCH 2/2] arm: imx8: don't duplicate build_info() > > Move build_info() to common place. > > Signed-off-by: Anatolij Gustschin > Cc: Marcel Ziswiler > Cc: Peng Fan > --- > arch/arm/include/asm/arch-imx8/sys_proto.h | 1 + > arch/arm/mach-imx/imx8/misc.c | 13 +

[U-Boot] [PATCH v1] common: Fix a typo abnove -> above

2019-06-12 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Kconfig b/common/Kconfig index c759952b80..af66496e75 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -560,7 +560,7 @@ config LOG_DEFAULT_LEVEL help T

[U-Boot] pull request: raspberry pi updates

2019-06-12 Thread Matthias Brugger
Hi Tom, Please have a look on the following patches. Regards, Matthias --- The following changes since commit fc6c0e29a28f6b71dfb728b7f78e9e770f2cd218: Prepare v2019.07-rc4 (2019-06-10 21:27:46 -0400) are available in the Git repository at: https://github.com/mbgg/u-boot.git tags/rpi-next

[U-Boot] Regression in U-boot v2019-07-rcX

2019-06-12 Thread Andy Shevchenko
Hi! I have noticed today the regression in newer U-Boot. For now I'm not sure which version is affected first. At least v2019.07-rc4 behaves badly. Under badly I mean the following. Consider the output at the boot time: U-Boot 2019.07-rc4-00012-gcea7942d57 (Jun 12 2019 - 16:08:09 +0300) CPU:

[U-Boot] [RFC] fastboot: flashing to emmc hw boot (0, 1) partitions

2019-06-12 Thread Igor Opaniuk
Hi, Currently a lot of boards started (AFAIK: Colibri/Apalis iMX6/iMX7/iMX8QXP; TI AM56XX [1] etc.) using hardware boot0/1 partitions for storing U-boot blob (which obviously speeds up the booting process). Taking into account that current implementation of fastboot driver does support only flash

Re: [U-Boot] Regression in U-boot v2019-07-rcX

2019-06-12 Thread Andy Shevchenko
On Wed, Jun 12, 2019 at 04:18:25PM +0300, Andy Shevchenko wrote: > Hi! > > I have noticed today the regression in newer U-Boot. > For now I'm not sure which version is affected first. At least v2019.07-rc4 > behaves badly. > > Under badly I mean the following. Consider the output at the boot time

Re: [U-Boot] Regression in U-boot v2019-07-rcX

2019-06-12 Thread Lukasz Majewski
Hi Andy, > On Wed, Jun 12, 2019 at 04:18:25PM +0300, Andy Shevchenko wrote: > > Hi! > > > > I have noticed today the regression in newer U-Boot. > > For now I'm not sure which version is affected first. At least > > v2019.07-rc4 behaves badly. > > > > Under badly I mean the following. Consider t

Re: [U-Boot] [PATCHv3 03/10] Kconfig: Add DEPRECATED option

2019-06-12 Thread Tom Rini
On Wed, Jun 12, 2019 at 01:03:46PM +0530, Jagan Teki wrote: > On Thu, May 30, 2019 at 2:33 AM Tom Rini wrote: > > > > Add a new option, CONFIG_DEPRECATED, for code that relies on deprecated > > functionality and has not been converted past the deadline for > > conversion. > > > > Signed-off-by: To

Re: [U-Boot] [RFC] fastboot: flashing to emmc hw boot (0, 1) partitions

2019-06-12 Thread Marek Vasut
On 6/12/19 3:22 PM, Igor Opaniuk wrote: > Hi, > > Currently a lot of boards started (AFAIK: Colibri/Apalis > iMX6/iMX7/iMX8QXP; TI AM56XX [1] etc.) using hardware boot0/1 > partitions for storing U-boot blob (which obviously speeds up the > booting process). > > Taking into account that current i

Re: [U-Boot] Trouble making the u-boot file for Zed Board

2019-06-12 Thread Tom Rini
On Wed, Jun 12, 2019 at 09:09:11AM +0200, Michal Simek wrote: > Hi, > > On 12. 06. 19 1:40, Melika Shahriari wrote: > > Hello, > > > > My name is Melika. I am a student from the University of British Columbia. > > I am following > > these

Re: [U-Boot] Regression in U-boot v2019-07-rcX

2019-06-12 Thread Andy Shevchenko
On Wed, Jun 12, 2019 at 04:23:37PM +0300, Andy Shevchenko wrote: > On Wed, Jun 12, 2019 at 04:18:25PM +0300, Andy Shevchenko wrote: > > Hi! > > > > I have noticed today the regression in newer U-Boot. > > For now I'm not sure which version is affected first. At least v2019.07-rc4 > > behaves badly

Re: [U-Boot] Regression in U-boot v2019-07-rcX

2019-06-12 Thread Andy Shevchenko
On Wed, Jun 12, 2019 at 03:37:54PM +0200, Lukasz Majewski wrote: > > On Wed, Jun 12, 2019 at 04:18:25PM +0300, Andy Shevchenko wrote: > > v2019.07-rc1 is NOT affected! > > > > The time difference with DFU: > > -rc1: real0m1.114s > > -rc4: real0m2.691s > > > > Could you bisect between -r

[U-Boot] [PATCH v1] wachdog: tangier: Convert to use WDT class

2019-06-12 Thread Andy Shevchenko
Convert legacy driver to use watchdog class. Signed-off-by: Andy Shevchenko --- arch/x86/cpu/tangier/Kconfig | 1 - arch/x86/dts/edison.dts| 4 ++ configs/edison_defconfig | 2 + drivers/watchdog/Kconfig | 17 drivers/watchdog/Makefile | 2 +- drivers/watc

Re: [U-Boot] Regression in U-boot v2019-07-rcX

2019-06-12 Thread Bin Meng
On Wed, Jun 12, 2019 at 9:49 PM Andy Shevchenko wrote: > > On Wed, Jun 12, 2019 at 04:23:37PM +0300, Andy Shevchenko wrote: > > On Wed, Jun 12, 2019 at 04:18:25PM +0300, Andy Shevchenko wrote: > > > Hi! > > > > > > I have noticed today the regression in newer U-Boot. > > > For now I'm not sure whi

Re: [U-Boot] Default environment file

2019-06-12 Thread Tom Rini
On Wed, Jun 12, 2019 at 10:43:26AM +0200, Stefano Babic wrote: > Hi Pascal, > > On 12/06/19 10:20, Linder Pascal wrote: > > Hi everyone, > > > > > > I am currently moving the configurations of the KM boards from header files > > to Kconfig. But for the customly defined environment variables I d

[U-Boot] [PATCH] fw_env: Add missing write failure check

2019-06-12 Thread Alex Kiernan
If flash_write fails, whilst we propagate this up to our caller, we need to avoid swapping in the new file (if we're on a filesystem) in this case. Fixes: dbc34323796b ("tools: env: Implement atomic replace for filesystem") Signed-off-by: Alex Kiernan --- tools/env/fw_env.c | 2 +- 1 file chang

Re: [U-Boot] pull request: raspberry pi updates

2019-06-12 Thread Peter Robinson
Hi Matthias, Have these been out on the list for general review? I don't remember seeing them. On Wed, Jun 12, 2019 at 1:57 PM Matthias Brugger wrote: > > Hi Tom, > > Please have a look on the following patches. > > Regards, > Matthias > > --- > The following changes since commit fc6c0e29a28f6b7

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190612

2019-06-12 Thread Neil Armstrong
mmit 68b90e57bc034e237923b02acb633dc4e91d44cb: configs: tinker-rk3288 disable CONFIG_SPL_I2C_SUPPORT (2019-06-11 08:13:05 -0400) are available in the Git repository at: git://git.denx.de/u-boot-amlogic.git tags/u-boot-amlogic-20190612 for you to fetch changes u

Re: [U-Boot] [PATCH 00/92] ram: rk3399: Add LPDDR4 support

2019-06-12 Thread Jagan Teki
On Tue, Jun 11, 2019 at 8:36 PM Philipp Tomsich wrote: > > > > > On 11.06.2019, at 17:03, Jagan Teki wrote: > > > > On Tue, Jun 11, 2019 at 8:23 PM Philipp Tomsich > > wrote: > >> > >> > >> > >>> On 11.06.2019, at 16:50, Jagan Teki wrote: > >>> > >>> Yes, it can be possible to break this series

Re: [U-Boot] [PATCH v1] wachdog: tangier: Convert to use WDT class

2019-06-12 Thread Stefan Roese
On 12.06.19 16:04, Andy Shevchenko wrote: Convert legacy driver to use watchdog class. Signed-off-by: Andy Shevchenko --- arch/x86/cpu/tangier/Kconfig | 1 - arch/x86/dts/edison.dts| 4 ++ configs/edison_defconfig | 2 + drivers/watchdog/Kconfig | 17 dri

[U-Boot] [PATCH 2/7] mx6: dts: Move dtbs under SoC level

2019-06-12 Thread Fabio Estevam
Place dtbs under SoC level rather than board level. imx6q-novena.dtb and imx6dl-wandboard-revb1.dtb were placed under the board config option, so move them to SoC level. This also aligns with the kernel dts Makefile format. Signed-off-by: Fabio Estevam --- arch/arm/dts/Makefile | 8 ++-- 1

[U-Boot] [PATCH 3/7] wandboard: Sync with devicetree files from kernel 5.1.9

2019-06-12 Thread Fabio Estevam
Udate the wandboard devicetree files with the ones from kernel 5.1.9. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx6dl-wandboard-revb1.dts | 1 + arch/arm/dts/imx6qdl-wandboard-revb1.dtsi | 15 +-- arch/arm/dts/imx6qdl-wandboard.dtsi | 107 +- 3 files changed,

[U-Boot] [PATCH 1/7] mx6: dts: Keep dtb entries sorted

2019-06-12 Thread Fabio Estevam
Keep dtb entries sorted to help adding new dtbs in an organized form. Signed-off-by: Fabio Estevam --- arch/arm/dts/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 3d31966380..39c5491015 100644 --- a/arch/arm/dt

[U-Boot] [PATCH 7/7] wandboard: README: Adjust the U-Boot proper binary name

2019-06-12 Thread Fabio Estevam
After the conversion to DM the U-Boot proper binary name is 'u-boot-dtb.img', so adjust it accordingly. Signed-off-by: Fabio Estevam --- board/wandboard/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/wandboard/README b/board/wandboard/README index e5170bcc81..f8

[U-Boot] [PATCH 5/7] wandboard: Add mmc0 alias

2019-06-12 Thread Fabio Estevam
Add a mmc0 alias so that U-Boot proper can associate mmc0 with the boot SD card. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx6qdl-wandboard.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx6qdl-wandboard.dtsi b/arch/arm/dts/imx6qdl-wandboard.dtsi index 50d9a989e

[U-Boot] [PATCH 6/7] wandboard: Add FIT image support

2019-06-12 Thread Fabio Estevam
After the transition to DM, only the mx6dl/solo wandboard is supported. Add FIT image support so that all the wandboard variants can be supported, like it was prior to the DM conversion. Successfully booted Linux on mx6q/solo/qp wandboards. Signed-off-by: Fabio Estevam --- arch/arm/dts/Makefil

[U-Boot] [PATCH 4/7] wandboard: Import extra wandboard devicetree files

2019-06-12 Thread Fabio Estevam
Import wandboard devicetree files so that the mx6q and mx6qp variants can be properly supported. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx6q-wandboard-revb1.dts| 23 +++ arch/arm/dts/imx6qdl-wandboard-revd1.dtsi | 195 ++ arch/arm/dts/imx6qp-wandboard-revd1.dts

Re: [U-Boot] [PATCH 00/92] ram: rk3399: Add LPDDR4 support

2019-06-12 Thread Philipp Tomsich
> On 12.06.2019, at 17:30, Jagan Teki wrote: > > On Tue, Jun 11, 2019 at 8:36 PM Philipp Tomsich > > wrote: >> >> >> >>> On 11.06.2019, at 17:03, Jagan Teki wrote: >>> >>> On Tue, Jun 11, 2019 at 8:23 PM Philipp Tomsich >>> wrote:

Re: [U-Boot] [PATCH 5/7] wandboard: Add mmc0 alias

2019-06-12 Thread Peter Robinson
On Wed, Jun 12, 2019 at 4:38 PM Fabio Estevam wrote: > > Add a mmc0 alias so that U-Boot proper can associate mmc0 > with the boot SD card. Shouldn't this go in a -u-boot.dtsi if it's diverging from the linux dtsi? > Signed-off-by: Fabio Estevam > --- > arch/arm/dts/imx6qdl-wandboard.dtsi | 4

Re: [U-Boot] [PATCHv3 03/10] Kconfig: Add DEPRECATED option

2019-06-12 Thread Jagan Teki
On Wed, Jun 12, 2019 at 7:08 PM Tom Rini wrote: > > On Wed, Jun 12, 2019 at 01:03:46PM +0530, Jagan Teki wrote: > > On Thu, May 30, 2019 at 2:33 AM Tom Rini wrote: > > > > > > Add a new option, CONFIG_DEPRECATED, for code that relies on deprecated > > > functionality and has not been converted pa

Re: [U-Boot] [PATCHv3 03/10] Kconfig: Add DEPRECATED option

2019-06-12 Thread Tom Rini
On Wed, Jun 12, 2019 at 09:15:11PM +0530, Jagan Teki wrote: > On Wed, Jun 12, 2019 at 7:08 PM Tom Rini wrote: > > > > On Wed, Jun 12, 2019 at 01:03:46PM +0530, Jagan Teki wrote: > > > On Thu, May 30, 2019 at 2:33 AM Tom Rini wrote: > > > > > > > > Add a new option, CONFIG_DEPRECATED, for code tha

Re: [U-Boot] [PATCH v3 2/5] spi: add spi-mem driver for MediaTek MT7629 SoC

2019-06-12 Thread Jagan Teki
+ Vignesh On Tue, May 14, 2019 at 7:11 AM Weijie Gao wrote: > > This patch adds spi-mem driver for MediaTek MT7629 SoC to access SPI-NOR > and SPI-NAND flashes. > > Cc: Jagan Teki > Signed-off-by: Weijie Gao > --- > Changes since v1: rename mtk_spimem to spi_snfi_spi. change pinctrl name. > Cha

Re: [U-Boot] Default environment file

2019-06-12 Thread Frank Wunderlich
Hi, i use this option to provide a default environment: https://github.com/frank-w/u-boot/blob/89401dc85a3d1793261024a6e4047a7e4c9d079d/configs/mt7623n_bpir2_defconfig#L64 regards Frank > Gesendet: Mittwoch, 12. Juni 2019 um 10:43 Uhr > Von: "Stefano Babic" > Fully agree. Rather, I do not th

[U-Boot] [PATCH 1/1] efi_loader: AllocatePages() must accept addr == 0

2019-06-12 Thread Heinrich Schuchardt
It must be possible to allocate memory at address 0 with AllocatePages(). Move a NULL pointer check. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memo

Re: [U-Boot] Default environment file

2019-06-12 Thread Stefano Babic
Hi Tom, Hi everybody, On 12/06/19 16:16, Tom Rini wrote: > On Wed, Jun 12, 2019 at 10:43:26AM +0200, Stefano Babic wrote: >> Hi Pascal, >> >> On 12/06/19 10:20, Linder Pascal wrote: >>> Hi everyone, >>> >>> >>> I am currently moving the configurations of the KM boards from header files >>> to Kc

Re: [U-Boot] [PATCH] net: davinci_emac: convert to using the driver model

2019-06-12 Thread Adam Ford
On Mon, Jun 3, 2019 at 10:29 AM Bartosz Golaszewski wrote: > > pon., 3 cze 2019 o 15:03 Adam Ford napisał(a): > > > > On Mon, Jun 3, 2019 at 3:12 AM Bartosz Golaszewski wrote: > > > > > > sob., 1 cze 2019 o 05:24 Adam Ford napisał(a): > > > > > > > > On Fri, May 31, 2019 at 8:32 AM Bartosz Gola

Re: [U-Boot] [PATCHv3 03/10] Kconfig: Add DEPRECATED option

2019-06-12 Thread Jagan Teki
On Wed, Jun 12, 2019 at 9:24 PM Tom Rini wrote: > > On Wed, Jun 12, 2019 at 09:15:11PM +0530, Jagan Teki wrote: > > On Wed, Jun 12, 2019 at 7:08 PM Tom Rini wrote: > > > > > > On Wed, Jun 12, 2019 at 01:03:46PM +0530, Jagan Teki wrote: > > > > On Thu, May 30, 2019 at 2:33 AM Tom Rini wrote: > >

[U-Boot] [PATCH v2] watchdog: tangier: Convert to use WDT class

2019-06-12 Thread Andy Shevchenko
Convert legacy driver to use watchdog class. Signed-off-by: Andy Shevchenko --- - dropped redundant assignments (Stefan) - used clamp_t() instead of max_t()/min_t() pair arch/x86/cpu/tangier/Kconfig | 1 - arch/x86/dts/edison.dts| 4 ++ configs/edison_defconfig | 2 + drivers/

[U-Boot] Verified boot of images without signatures

2019-06-12 Thread Patrick Doyle
I am looking at enabling verified boot in the v2019.04-rc4 tag of u-boot. I was pleased when I learned how to embed the public authentication key in my u-boot device tree, sign my kernel using my private authentication key, and see u-boot validate the signature on boot. But then I was very surpri

Re: [U-Boot] Verified boot of images without signatures

2019-06-12 Thread Alex Kiernan
On Wed, Jun 12, 2019 at 7:00 PM Patrick Doyle wrote: > > I am looking at enabling verified boot in the v2019.04-rc4 tag of > u-boot. I was pleased when I learned how to embed the public > authentication key in my u-boot device tree, sign my kernel using my > private authentication key, and see u-

[U-Boot] [PATCH 1/1] efi_loader: MetaiMatch() must be cases insensitive

2019-06-12 Thread Heinrich Schuchardt
The MetaiMatch() service of the UnicodeCollationProtocol2 must be case insensitive. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_unicode_collation.c | 65 -- 1 file changed, 41 insertions(+), 24 deletions(-) diff --git a/lib/efi_loader/efi_unicode_collation.

Re: [U-Boot] Pull request for UEFI sub-system for v2019.07-rc5

2019-06-12 Thread Tom Rini
On Tue, Jun 11, 2019 at 06:41:02PM +0200, Heinrich Schuchardt wrote: > The following changes since commit 6d277fb0ed145f82dd50cc6e99d2fa553a588c3b: > > spl: Correct SPL_SIZE_LIMIT Kconfig option (2019-06-08 07:49:00 -0400) > > are available in the Git repository at: > > git://git.denx.de/u-

[U-Boot] [PATCH 1/1] efi_loader: legal characters in StrToFat()

2019-06-12 Thread Heinrich Schuchardt
The UEFI specification does not specify if the characters that have to be replaced by underscore in function StrToFat() of the Unicode collation protocol are those forbidden in FAT long names or those in FAT short names. EDK2 and UEFI SCT assume it is those forbidden in FAT 8.3 short names. Adjust

Re: [U-Boot] RFC: config_distro_bootcmd aesthetic change

2019-06-12 Thread Fabio Estevam
HI Jon, On Wed, May 22, 2019 at 2:18 PM Jon Nettleton wrote: > > I figured I would post this topic without the patchset I currently > have, and instead just test the waters to get some input on how the > community would feel about this change. > > What I have done is to migrate all the functions

Re: [U-Boot] pull request: raspberry pi updates

2019-06-12 Thread Tom Rini
On Wed, Jun 12, 2019 at 03:48:06PM +0100, Peter Robinson wrote: > Hi Matthias, > > Have these been out on the list for general review? I don't remember > seeing them. > > On Wed, Jun 12, 2019 at 1:57 PM Matthias Brugger wrote: > > > > Hi Tom, > > > > Please have a look on the following patches.

Re: [U-Boot] pull request: raspberry pi updates

2019-06-12 Thread Tom Rini
On Wed, Jun 12, 2019 at 10:07:31PM +0200, Heinrich Schuchardt wrote: > On 6/12/19 9:56 PM, Tom Rini wrote: > >On Wed, Jun 12, 2019 at 03:48:06PM +0100, Peter Robinson wrote: > >>Hi Matthias, > >> > >>Have these been out on the list for general review? I don't remember > >>seeing them. > >> > >>On W

Re: [U-Boot] pull request: raspberry pi updates

2019-06-12 Thread Heinrich Schuchardt
On 6/12/19 9:56 PM, Tom Rini wrote: On Wed, Jun 12, 2019 at 03:48:06PM +0100, Peter Robinson wrote: Hi Matthias, Have these been out on the list for general review? I don't remember seeing them. On Wed, Jun 12, 2019 at 1:57 PM Matthias Brugger wrote: Hi Tom, Please have a look on the follo

Re: [U-Boot] pull request: raspberry pi updates

2019-06-12 Thread Heinrich Schuchardt
On 6/12/19 10:08 PM, Tom Rini wrote: On Wed, Jun 12, 2019 at 10:07:31PM +0200, Heinrich Schuchardt wrote: On 6/12/19 9:56 PM, Tom Rini wrote: On Wed, Jun 12, 2019 at 03:48:06PM +0100, Peter Robinson wrote: Hi Matthias, Have these been out on the list for general review? I don't remember seein

Re: [U-Boot] pull request: raspberry pi updates

2019-06-12 Thread Tom Rini
On Wed, Jun 12, 2019 at 10:21:22PM +0200, Heinrich Schuchardt wrote: > On 6/12/19 10:08 PM, Tom Rini wrote: > >On Wed, Jun 12, 2019 at 10:07:31PM +0200, Heinrich Schuchardt wrote: > >>On 6/12/19 9:56 PM, Tom Rini wrote: > >>>On Wed, Jun 12, 2019 at 03:48:06PM +0100, Peter Robinson wrote: > Hi M

[U-Boot] [PATCH] ARM: dts: logicpd som-lvs and torpedos: Shrink SPL DTB

2019-06-12 Thread Adam Ford
Since we have limited resources in SPL, it is the best interest to keep the SPL as small as possible and that includes the DTB. There are a few items in the device tree that can be removed, because these boards don't use them. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-som-lv-35x

Re: [U-Boot] Verified boot of images without signatures

2019-06-12 Thread Patrick Doyle
On Wed, Jun 12, 2019 at 2:10 PM Alex Kiernan wrote: > On Wed, Jun 12, 2019 at 7:00 PM Patrick Doyle wrote: > > Am I missing something here? > > > > Probably... I went round a very similar loop too. You need the > required property in the U-Boot DTB, not in the image you're booting. > And if you'r

[U-Boot] [PATCH v2 0/3] fastboot: Fix getvar "has-slot" and cleanup

2019-06-12 Thread Sam Protsenko
This patch series fixes "has-slot" fastboot variable and provides associated refactoring, so that related code is not cluttered. Igor Opaniuk (1): fastboot: Check if partition really exist in getvar_has_slot() Sam Protsenko (2): fastboot: Use const qualifier for char *part_name fastboot: ge

[U-Boot] [PATCH v2 1/3] fastboot: Use const qualifier for char *part_name

2019-06-12 Thread Sam Protsenko
In fastboot_*_get_part_info() functions we can use stronger typing by expecting const strings. Signed-off-by: Sam Protsenko --- drivers/fastboot/fb_mmc.c | 3 ++- drivers/fastboot/fb_nand.c | 4 ++-- include/fb_mmc.h | 3 ++- include/fb_nand.h | 4 ++-- 4 files changed, 8 ins

[U-Boot] [PATCH v2 2/3] fastboot: getvar: Refactor fastboot_*_get_part_info() usage

2019-06-12 Thread Sam Protsenko
Extract fastboot_*_get_part_info() usage for MMC and NAND into getvar_get_part_info() function, as it will be needed further in other functions. This way we can avoid code duplication and mess with preprocessor directives across all points of usage. Signed-off-by: Sam Protsenko --- drivers/fastb

[U-Boot] [PATCH v2 3/3] fastboot: Check if partition really exist in getvar_has_slot()

2019-06-12 Thread Sam Protsenko
From: Igor Opaniuk Currently getvar_has_slot() invocation for "boot" and "system" partitions always returns affirmative response regardless the fact of existence of these partitions, which leads to impossibility to flash them on old non-A/B AOSP setups, where _a/_b suffixes aren't used: $ fastbo

  1   2   >