Re: [U-Boot] [BUG] efi_driver: crash while reading from iSCSI drive

2019-10-23 Thread Heinrich Schuchardt
On 10/23/19 12:30 PM, AKASHI Takahiro wrote: > On Tue, Oct 22, 2019 at 10:29:09PM +0200, Heinrich Schuchardt wrote: >> The patch >> >> commit 867400677cda0fac4a411f1549fe3a61bb5ed172 >> efi_loader: disk: install FILE_SYSTEM_PROTOCOL only if available >> >> breaks booting my Pine A64 LTS board

[U-Boot] [PATCH v2 4/8] linux/types.h: Surround 'struct ustat' with __linux__

2019-10-23 Thread Bin Meng
'struct ustat' uses linux-specific typedefs to declare its memebers: __kernel_daddr_t and __kernel_ino_t. It is currently not used by any U-Boot codes, but when we build U-Boot tools for other platform like Windows, this becomes a problem. Let's surround it with __linux__. Signed-off-by: Bin

[U-Boot] [PATCH v2 6/8] Add .gitattributes for line endings

2019-10-23 Thread Bin Meng
When building U-Boot host tools for Windows from Microsoft Azure Pipelines, we see tons of weird warnings and errors emitted from every Kconfig files: Kconfig:6:warning: ignoring unsupported character '' Kconfig:6:warning: ignoring unsupported character '' Kconfig:8:warning: ignoring

[U-Boot] [PATCH v2 7/8] tools: Avoid creating symbolic links for tools/version.h

2019-10-23 Thread Bin Meng
When building U-Boot host tools for Windows from Microsoft Azure Pipelines, the following errors were seen: HOSTCC tools/mkenvimage.o In file included from tools/mkenvimage.c:25: ./tools/version.h:1:1: error: expected identifier or ‘(’ before ‘.’ token 1 | ../include/version.h

[U-Boot] [PATCH v2 8/8] Add Micirosoft Azure pipelines configuration

2019-10-23 Thread Bin Meng
Microsoft Azure Pipelines provides unlimited CI/CD minutes and 10 parallel jobs to every open source project for free [1]. This adds a configuration file for Azure Pipelines to utilize the free Windows VM hosted by Microsoft to ensure no build broken in building U-Boot host tools for Windows.

[U-Boot] [PATCH v2 2/8] tools: mtk_image.h: Use portable uintXX_t instead of linux-specific __leXX

2019-10-23 Thread Bin Meng
__leXX has Linux kernel specific __attribute__((bitwise)) which is not portable. Use corresponding uintXX_t instead. Signed-off-by: Bin Meng --- Changes in v2: None tools/mtk_image.h | 86 +++ 1 file changed, 43 insertions(+), 43

[U-Boot] [PATCH v2 5/8] doc: Add documentation for how to build U-Boot host tools

2019-10-23 Thread Bin Meng
This adds a reST document for how to build U-Boot host tools, including information for both Linux and Windows. Signed-off-by: Bin Meng --- Changes in v2: None doc/build/index.rst | 9 + doc/build/tools.rst | 47 +++ doc/index.rst |

[U-Boot] [PATCH v2 3/8] tools: zynqmpbif: Use compiler builtin instead of linux-specific __swab32

2019-10-23 Thread Bin Meng
__swab32() is a Linux specific macro defined in linux/swab.h. Let's use the compiler equivalent builtin function __builtin_bswap32() for better portability. Signed-off-by: Bin Meng --- Changes in v2: None tools/zynqmpbif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 1/8] tools: image.h: Use portable uint32_t instead of linux-specific __be32

2019-10-23 Thread Bin Meng
__be32 has Linux kernel specific __attribute__((bitwise)) which is not portable. Use uint32_t instead. Signed-off-by: Bin Meng --- Changes in v2: None include/image.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/image.h b/include/image.h index

[U-Boot] [PATCH v2 0/8] tools: Support building U-Boot host tools for Windows via MSYS2

2019-10-23 Thread Bin Meng
Per current U-Boot README, building Windows versions of the utilities in the tools directory is done via the MinGW toolchain. But testing shows that it is broken and actually it must have been broken for quite a long time. Fixing MinGW build seems quite amount of work as developers of U-Boot

Re: [U-Boot] [PATCH] ddr: socfpga: gen5: constify altera_gen5_sdram_ops

2019-10-23 Thread Ley Foon Tan
On Wed, 2019-10-23 at 22:19 +0200, Simon Goldschmidt wrote: > Make the function pointer struct const, as it does not need to be > writable. This doesn't really change anything other than moving this > variable to a different section. No functional change. > > Signed-off-by: Simon Goldschmidt

Re: [U-Boot] [PATCH] spi: cadence_qspi: support DM_CLK

2019-10-23 Thread Ley Foon Tan
On Wed, 2019-10-23 at 22:27 +0200, Simon Goldschmidt wrote: > Support loading clk speed via DM instead of requiring ad-hoc code. > > Signed-off-by: Simon Goldschmidt > --- > >  drivers/spi/cadence_qspi.c | 20 ++-- >  1 file changed, 18 insertions(+), 2 deletions(-) > > diff

Re: [U-Boot] [PATCH] socfpga: fix include guard in misc.h (arch vs. global)

2019-10-23 Thread Ley Foon Tan
On Wed, 2019-10-23 at 22:32 +0200, Simon Goldschmidt wrote: > The file arch/arm/mach-socfpga/include/mach/misc.h used the same > include > guard as the global include/misc.h. > > Fix this by giving the arch file an arch prefix. > > Signed-off-by: Simon Goldschmidt Reviewed-by: Ley Foon Tan >

[U-Boot] [PATCH 08/10] rkmux: Convert to Python 3

2019-10-23 Thread Simon Glass
Convert this tool to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- tools/rkmux.py | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/rkmux.py b/tools/rkmux.py index 11c192a0737..1226ee201c3 100755 ---

[U-Boot] [PATCH 10/10] pylibfdt: Convert to Python 3

2019-10-23 Thread Simon Glass
Build this swig module with Python 3. Signed-off-by: Simon Glass --- scripts/dtc/pylibfdt/Makefile | 2 +- scripts/dtc/pylibfdt/libfdt.i_shipped | 2 +- scripts/dtc/pylibfdt/setup.py | 2 +- tools/binman/entry.py | 16 ++--

[U-Boot] [PATCH 09/10] RFC: binman: Move to use Python 3

2019-10-23 Thread Simon Glass
Update this tool to use Python 3 to meet the 2020 deadline. Unfortunately this introduces a test failure due to a problem in pylibfdt on Python 3. I will investigate. Signed-off-by: Simon Glass --- tools/binman/binman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 07/10] move_config: Convert to Python 3

2019-10-23 Thread Simon Glass
Convert this tool to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- tools/moveconfig.py | 82 ++--- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index

[U-Boot] [PATCH 04/10] test_fdt: Move to use Python 3

2019-10-23 Thread Simon Glass
Update this test to use Python 3 to meet the 2020 deadline. Signed-off-by: Simon Glass --- tools/dtoc/test_fdt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py index 028c8cbaa80..3316757e61e 100755 ---

[U-Boot] [PATCH 03/10] buildman: Convert to Python 3

2019-10-23 Thread Simon Glass
Convert buildman to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- tools/buildman/board.py | 7 +-- tools/buildman/bsettings.py | 20 +++ tools/buildman/builder.py | 45 tools/buildman/builderthread.py | 24

[U-Boot] [PATCH 02/10] patman: Move to use Python 3

2019-10-23 Thread Simon Glass
Update this tool to use Python 3 to meet the 2020 deadline. Signed-off-by: Simon Glass --- tools/patman/patman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/patman.py b/tools/patman/patman.py index 9605a36eff2..fe82f24c673 100755 ---

[U-Boot] [PATCH 06/10] microcode_tool: Convert to Python 3

2019-10-23 Thread Simon Glass
Convert this tool to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- tools/microcode-tool.py | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tools/microcode-tool.py b/tools/microcode-tool.py index

[U-Boot] [PATCH 05/10] test_dtoc: Move to use Python 3

2019-10-23 Thread Simon Glass
Update this test to use Python 3 to meet the 2020 deadline. Also make it executable while we are here. Signed-off-by: Simon Glass --- tools/dtoc/dtoc.py | 2 +- tools/dtoc/test_dtoc.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755

[U-Boot] [PATCH 01/10] patman: Adjust 'command' to return strings instead of bytes

2019-10-23 Thread Simon Glass
At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result

[U-Boot] [PATCH 00/10] scripts: Convert to Python 3

2019-10-23 Thread Simon Glass
This converts some of the scripts that I've been involved in to use Python 3. There is still one problem in that fdt_property_stub() doesn't work correctly in pylibfdt: ftest.TestFunctional.testExtractAllEntries Traceback (most recent call last): TypeError: in method 'fdt_property_stub',

Re: [U-Boot] [PATCH] clk: imx: imx8mm: Fix the first root clock in imx8mm_ahb_sels[]

2019-10-23 Thread Peng Fan
> Subject: Re: [PATCH] clk: imx: imx8mm: Fix the first root clock in > imx8mm_ahb_sels[] > > Hi Frieder, > > On Wed, Oct 23, 2019 at 1:36 PM Schrempf Frieder > wrote: > > > > From: Frieder Schrempf > > > > The 24MHz oscillator clock is referenced by "clock-osc-24m" and not > > "osc_24m". > >

Re: [U-Boot] [PATCH 3/3] mx7ulp: Move SoC base address to a common file

2019-10-23 Thread Peng Fan
> Subject: [PATCH 3/3] mx7ulp: Move SoC base address to a common file > > SoC base addresses should better go into a common SoC file instead of > repeating the definition in each board file. > > Signed-off-by: Fabio Estevam > --- > arch/arm/include/asm/arch-mx7ulp/imx-regs.h | 4 >

Re: [U-Boot] [PATCH] clk: imx: imx8mm: Fix the first root clock in imx8mm_ahb_sels[]

2019-10-23 Thread Peng Fan
> Subject: [PATCH] clk: imx: imx8mm: Fix the first root clock in > imx8mm_ahb_sels[] > > From: Frieder Schrempf > > The 24MHz oscillator clock is referenced by "clock-osc-24m" and not > "osc_24m". > > Signed-off-by: Frieder Schrempf > --- > drivers/clk/imx/clk-imx8mm.c | 2 +- > 1 file

Re: [U-Boot] [PATCH 2/3] mx7ulp_evk: Remove unneeded SDHC definitions

2019-10-23 Thread Peng Fan
> Subject: [PATCH 2/3] mx7ulp_evk: Remove unneeded SDHC definitions > > As we use the driver model for ESDHC there is no need for defining > CONFIG_SYS_FSL_USDHC_NUM and CONFIG_SYS_FSL_ESDHC_ADDR, so > simply remove them. > > Signed-off-by: Fabio Estevam > --- > include/configs/mx7ulp_evk.h |

Re: [U-Boot] [PATCH 1/3] mx7ulp_evk: Disable CONFIG_NET

2019-10-23 Thread Peng Fan
> Subject: [PATCH 1/3] mx7ulp_evk: Disable CONFIG_NET > > Currently the following build warning is seen: > > = WARNING == This board > does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please > update the board to use CONFIG_DM_ETH before the

Re: [U-Boot] [PATCH V1 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-23 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH V1 5/6] net: fec_mxc: support i.MX8M with > CLK_CCF > > On 22.10.19 05:30, Peng Fan wrote: > > Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 > > drivers/net/ethernet/freescale/fec_main.c. > > > > Since i.MX8MQ not support CLK_CCF, so add a check to

Re: [U-Boot] [PATCHv2 08/13] test/py: test_efi_selftest.py: Updates for python 3 support

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > - In python 3 you must use raw strings for regex as other forms are > deprecated and would require further changes to the pattern here. > In one case this lets us have a simpler match pattern. > - As strings are now Unicode our complex tests

Re: [U-Boot] [PATCHv2 06/13] test/py: Manual python3 fixes

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > - Modern pytest is more visible in telling us about parameters that we > had not described, so describe a few more. > - ConfigParser.readfp(...) is now configparser.read_file(...) > - As part of the "strings vs bytes" conversions in Python 3, we

Re: [U-Boot] [PATCHv2 13/13] test/py: Use raw strings more to avoid deprecation warnings

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > We have two further uses of raw string usage in the test/py codebase > that are used under CI. The first of which is under the bind test and > is a direct update. The second of which is to strip VT100 codes from > the match buffer. While

Re: [U-Boot] [PATCHv2 11/13] test/py: Update docs, add requirements.txt for pip

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > To be more closely aligned with Python community best practices, we need > to better document our usage of pip and make use of a requirements.txt > file that shows the versions of the tools that we are using. This will > aide in ensuring

Re: [U-Boot] [PATCHv2 07/13] test/py: test_ut.py: Ensure we use bytes

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > In the case of some unit tests we are working with providing a fake > flash device that we have written some text strings in to. In this case > we want to tell Python to encode things to bytes for us. > > Reviewed-by: Stephen Warren >

Re: [U-Boot] [PATCHv2 10/13] test/py: Rework test.py to be a different kind of wrapper

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > Now that we have moved to being based on pytest for python3 we need to > make our test.py wrapper more robust in terms of only calling python3 > rather than possibly finding and using python2. To do this, change from > execvp()'ing pytest to

Re: [U-Boot] [PATCHv2 12/13] gitlab/travis: Rework how and when we use virtualenv in order to use python3

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > As things stand today, we have tools that CI requires where "python" > must be "python2". We need to use a virtualenv and pip in order to > ensure that our pytest tests can be run. Rework things slightly so > that: > - On Travis-CI, we install

Re: [U-Boot] [PATCHv2 03/13] test/py: Split mark to multiple lines

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > We inconsistently note multiple dependencies today in our tests, > sometimes with a single line that declares multiple and sometimes > multiple single lines. Current pytest seems to fail on the single line > format so change to multiple

Re: [U-Boot] [PATCHv2 09/13] test/py: Update test_fs to decode check_output calls

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > The check_output function from the subprocess Python module by default > returns data as encoded bytes and leaves decoding to the application. > Given our uses of the call, it makes the most sense to immediately > decode the results. > >

Re: [U-Boot] [PATCHv2 04/13] test/py: Fix pytest4 deprecation warnings

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > From: Marek Vasut > > Fix the following spit from pytest: > > u-boot/test/py/conftest.py:438: RemovedInPytest4Warning: MarkInfo objects are > deprecated as they contain merged marks which are hard to deal with correctly. > Please use

Re: [U-Boot] [PATCHv2 05/13] test/py: Automated conversion to Python 3

2019-10-23 Thread Simon Glass
On Tue, 22 Oct 2019 at 21:20, Tom Rini wrote: > > Use the 2to3 tool to perform numerous automatic conversions from Python > 2 syntax to Python 3. Also fix whitespace problems that Python 3 > catches that Python 2 did not. > > Reviewed-by: Stephen Warren > Signed-off-by: Tom Rini > --- >

Re: [U-Boot] [EXTERNAL] Re: Need help with verified u-boot on Tegra TX2

2019-10-23 Thread Rayees Shamsuddin
Hi Simon, I got the ramdisk loading problem sorted out by modifying values of initrd_high and fdt_high setenv initrd_high 82F4EFFF; setenv fdt_high 824F This resulted in: ramdisk load start = 0x82a0, ramdisk load end = 0x82f4eaa2 ## device tree at 920989cc ...

Re: [U-Boot] [PATCHv2 10/13] test/py: Rework test.py to be a different kind of wrapper

2019-10-23 Thread Tom Rini
On Wed, Oct 23, 2019 at 03:11:57PM -0600, Stephen Warren wrote: > On 10/23/19 12:17 PM, Tom Rini wrote: > > On Wed, Oct 23, 2019 at 12:04:30PM -0600, Stephen Warren wrote: > > > On 10/23/19 11:29 AM, Stephen Warren wrote: > > > > On 10/23/19 11:12 AM, Tom Rini wrote: > > > > > On Wed, Oct 23, 2019

Re: [U-Boot] [PATCHv2 10/13] test/py: Rework test.py to be a different kind of wrapper

2019-10-23 Thread Stephen Warren
On 10/23/19 12:17 PM, Tom Rini wrote: On Wed, Oct 23, 2019 at 12:04:30PM -0600, Stephen Warren wrote: On 10/23/19 11:29 AM, Stephen Warren wrote: On 10/23/19 11:12 AM, Tom Rini wrote: On Wed, Oct 23, 2019 at 11:03:38AM -0600, Stephen Warren wrote: On 10/23/19 10:58 AM, Tom Rini wrote: On

Re: [U-Boot] [RFC PATCH v2 00/18] arm: socfpga: gen5: move to DM

2019-10-23 Thread Simon Goldschmidt
Am 15.10.2019 um 22:10 schrieb Simon Goldschmidt: This is an RFC series with the target to move SPL code from arch to DM drivers. I've sent a few patches of this series now as non-RFC, as I don't know if I will make it this merge window: I still have trouble getting the existing defconfigs

Re: [U-Boot] [PATCH v2 07/41] board: ge: bx50v3: use imx wdt

2019-10-23 Thread Fabio Estevam
On Wed, Oct 23, 2019 at 3:22 PM Robert Beckett wrote: > > Enable DM imx WDT > Enable SYSRESET_WATCHDOG to maintain WDT based reset ability > > Signed-off-by: Robert Beckett > --- > arch/arm/dts/imx6q-bx50v3.dts | 4 > configs/ge_bx50v3_defconfig | 3 +++ > 2 files changed, 7

[U-Boot] [PATCH] socfpga: fix include guard in misc.h (arch vs. global)

2019-10-23 Thread Simon Goldschmidt
The file arch/arm/mach-socfpga/include/mach/misc.h used the same include guard as the global include/misc.h. Fix this by giving the arch file an arch prefix. Signed-off-by: Simon Goldschmidt --- arch/arm/mach-socfpga/include/mach/misc.h | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: [U-Boot] [PATCH v2 00/41] convert GE boards to DM

2019-10-23 Thread Fabio Estevam
Hi Robert, On Wed, Oct 23, 2019 at 3:23 PM Robert Beckett wrote: > > This patch series converts GE boards to use DM features. > Most of the patches are GE board specific to modify the board code to > use the DM drivers, or modify the device tree. I think this series could be simplified if you

[U-Boot] [PATCH] spi: cadence_qspi: support DM_CLK

2019-10-23 Thread Simon Goldschmidt
Support loading clk speed via DM instead of requiring ad-hoc code. Signed-off-by: Simon Goldschmidt --- drivers/spi/cadence_qspi.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c index

[U-Boot] [PATCH] timer: dw-apb: add reset handling

2019-10-23 Thread Simon Goldschmidt
To use this DM timer on socfpga as system tick, it needs to take itself out of reset. Signed-off-by: Simon Goldschmidt --- drivers/timer/dw-apb-timer.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/timer/dw-apb-timer.c

[U-Boot] [PATCH] ddr: socfpga: gen5: constify altera_gen5_sdram_ops

2019-10-23 Thread Simon Goldschmidt
Make the function pointer struct const, as it does not need to be writable. This doesn't really change anything other than moving this variable to a different section. No functional change. Signed-off-by: Simon Goldschmidt --- drivers/ddr/altera/sdram_gen5.c | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH] Makefile: Fix printing problem in size_check on overflow

2019-10-23 Thread Simon Goldschmidt
Am 23.10.2019 um 21:39 schrieb Tom Rini: When we have an excess size growth, fix the "limit" printf call to pass in just the limit variable rather than the string bytes to the format character. Signed-off-by: Tom Rini Reviewed-by: Simon Goldschmidt --- Makefile | 2 +- 1 file changed,

[U-Boot] [PATCH v4 4/7] Makefile: rockchip: Use u-boot preferred spl name

2019-10-23 Thread Jagan Teki
Most of the platforms uses the platform type and particular boot stage on their image naming conventions in makefile like, u-boot-sunxi-with-spl.bin - Allwinner U-Boot with SPL u-boot-spl-mtk.bin - Mediatek SPL bin This would help to understand the users to what that particular image belongs to?

[U-Boot] [PATCH v4 6/7] rockchip: Add Single boot image (with binman, pad_cat)

2019-10-23 Thread Jagan Teki
All rockchip platforms support TPL or SPL-based bootloader in mainline with U-Boot proper as final stage. For each stage we need to burn the image on to flash with respective offsets. This patch creates a single boot image component using - binman, for arm32 rockchip platforms - pad_cat, for

[U-Boot] [PATCH v4 5/7] arm: dts: rk3036: Add rk3036-u-boot.dtsi

2019-10-23 Thread Jagan Teki
Add U-Boot specific dtsi file for rk3036 SoC. This would help to add U-Boot specific dts nodes, properties which are common across rk3036. Right now, the file is empty, will add required changes in future patches. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3036-sdk-u-boot.dtsi | 2 ++

[U-Boot] [PATCH v4 7/7] doc: boards: Add rockchip documentation

2019-10-23 Thread Jagan Teki
Rockchip has documentation file, doc/README.rockchip but which is not so readable to add or understand the existing contents. Even the format that support is legacy readme in U-Boot. Add rockchip specific documentation file using new rst format, which describes the information about Rockchip

[U-Boot] [PATCH v4 3/7] Makefile: rockchip: Support SPL-alone mkimage

2019-10-23 Thread Jagan Teki
Add SPL-alone mkimage tooling support via Makefile for few platforms or boards used in rockchip family. With this users would get rid of explicitly creating mkimage tool for rockchip rksd or rkspi boot modes. Signed-off-by: Jagan Teki --- Makefile | 10 +- 1 file changed, 9

[U-Boot] [PATCH v4 2/7] Makefile: rockchip: Suffix platform type with tpl name

2019-10-23 Thread Jagan Teki
Most of the platforms uses the platform type on their boot stage image naming conventions in makefile like, u-boot-x86-start16-tpl.bin - x86 start16 TPL bin u-boot-spl-mtk.bin - Mediatek SPL bin This would help to understand the users to what that particular image belongs to? and less confused.

[U-Boot] [PATCH v4 1/7] Makefile: Add rockchip image type

2019-10-23 Thread Jagan Teki
Add rockchip image type support. right now the image type marked with rksd, So create image type variable with required image type like rksd or rkspi. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- Makefile | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-)

[U-Boot] [PATCH v4 0/7] rockchip: Add Binman support

2019-10-23 Thread Jagan Teki
This is v4 set for Binman support in rockchip, [1] here is previous patchset. This series add single boot image with binman for arm32 and pad_cat for arm64 rockchip platforms both TPL + SPL and SPL-alone targets. Changes for v4: - support all rockchip platforms - add new patches for dtsi changes

Re: [U-Boot] [PATCH] spl: fix SPI config dependencies

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 1:35 AM Simon Goldschmidt wrote: > > As SPL_SPI_FLASH_SUPPORT cannot work without SPL_SPI_SUPPORT, fix > dependencies to prevent enabling SPI flash support without basic SPI > support. > > Also SYS_SPI_U_BOOT_OFFS does not make sense without > SPL_SPI_FLASH_SUPPORT

Re: [U-Boot] [PATCH] configs: spi: Miss the SPI_FLASH_BAR for ESPI

2019-10-23 Thread Jagan Teki
On Tue, Oct 22, 2019 at 3:21 PM Xiaowei Bao wrote: > > > > > -Original Message- > > From: Priyanka Jain > > Sent: 2019年10月22日 17:45 > > To: Xiaowei Bao ; Jagdish Gediya > > ; ja...@amarulasolutions.com; > > u-boot@lists.denx.de > > Cc: Xiaowei Bao > > Subject: RE: [U-Boot] [PATCH]

[U-Boot] [PATCH] Makefile: Fix printing problem in size_check on overflow

2019-10-23 Thread Tom Rini
When we have an excess size growth, fix the "limit" printf call to pass in just the limit variable rather than the string bytes to the format character. Signed-off-by: Tom Rini --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index

Re: [U-Boot] [PATCH] spi-nor-ids: Add support for Adesto AT25SL321

2019-10-23 Thread Jagan Teki
On Mon, Oct 21, 2019 at 7:21 PM Fabio Estevam wrote: > > From: Fabio Estevam > > Add an entry for the Adesto AT25SL321 SPI NOR chip. > > This SPI NOR chip is found in the Embedded Artist i.MX7ULP COM board. > > Signed-off-by: Fabio Estevam > --- > drivers/mtd/spi/spi-nor-ids.c | 1 + > 1 file

Re: [U-Boot] [PATCH 0/7] am57xx: Implement Android 10 boot flow

2019-10-23 Thread Sam Protsenko
Hi Eugeniu, On Thu, Sep 19, 2019 at 9:23 PM Eugeniu Rosca wrote: > > Hi Sam, > > On Thu, Sep 19, 2019 at 08:28:15PM +0300, Sam Protsenko wrote: > > Android 10 brings a lot of new requirements for bootloaders: [1]. This > > patch series attempts to implement such a boot process on BeagleBoard > >

Re: [U-Boot] [PULL] u-boot-usb/master

2019-10-23 Thread Marek Vasut
On 10/23/19 9:26 PM, Tom Rini wrote: > On Sun, Oct 20, 2019 at 05:08:37PM +0200, Marek Vasut wrote: > >> The following changes since commit 6891152a4596d38ac25d2fe1238e3b6a938554b8: >> >> Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019-10-14 >> 21:00:10 -0400) >> >> are

Re: [U-Boot] [PATCH] clk: imx: imx8mm: Fix the first root clock in imx8mm_ahb_sels[]

2019-10-23 Thread Fabio Estevam
Hi Frieder, On Wed, Oct 23, 2019 at 1:36 PM Schrempf Frieder wrote: > > From: Frieder Schrempf > > The 24MHz oscillator clock is referenced by "clock-osc-24m" and not > "osc_24m". Is the kernel clock driver also wrong then? ___ U-Boot mailing list

Re: [U-Boot] [PATCHv2 06/13] test/py: Manual python3 fixes

2019-10-23 Thread Stephen Warren
On 10/23/19 1:01 PM, Tom Rini wrote: On Wed, Oct 23, 2019 at 12:50:12PM -0600, Stephen Warren wrote: On 10/22/19 9:20 PM, Tom Rini wrote: - Modern pytest is more visible in telling us about parameters that we had not described, so describe a few more. - ConfigParser.readfp(...) is now

Re: [U-Boot] [PULL] Pull request: u-boot-stm32 u-boot-stm32-2019-10-23

2019-10-23 Thread Tom Rini
On Wed, Oct 23, 2019 at 09:45:24AM +, Patrick DELAUNAY wrote: > Hi Tom > > Please pull the STM32 related patches for u-boot-stm32-2019-10-23 > > With the following changes: > - Disable CONFIG_NET flag for MCU STM32 > - Fix ramdisk_addr_r for stm32f746-disco > - Fix USB product id for

Re: [U-Boot] [PATCH v3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 1:11 PM Schrempf Frieder wrote: > > From: Frieder Schrempf > > Most boards currently use SPI_FLASH_MTD only in U-Boot proper, not in > SPL. They often rely on hacks in the board header files to include > this option conditionally. To be able to fix this, we previously >

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

2019-10-23 Thread Tom Rini
On Tue, Oct 22, 2019 at 04:28:11AM +, Priyanka Jain wrote: > Dear Tom, > > > > Please find my pull-request for u-boot-fsl-qoriq/master > https://travis-ci.org/p-priyanka-jain/u-boot/builds/600659013 > > Summary > Add LS1027A, LS1018A, LS1017A support > Few updates related to usb, ls1012a,

Re: [U-Boot] [PATCH 3/3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 12:57 PM Stefan Roese wrote: > > On 23.10.19 09:09, Jagan Teki wrote: > > On Wed, Oct 23, 2019 at 12:35 PM Schrempf Frieder > > wrote: > >> > >> Hi Jagan, > >> > >> On 22.10.19 20:16, Jagan Teki wrote: > >>> On Sat, Sep 14, 2019 at 4:14 AM Schrempf Frieder > >>> wrote: >

Re: [U-Boot] [PULL] u-boot-usb/master

2019-10-23 Thread Tom Rini
On Sun, Oct 20, 2019 at 05:08:37PM +0200, Marek Vasut wrote: > The following changes since commit 6891152a4596d38ac25d2fe1238e3b6a938554b8: > > Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019-10-14 > 21:00:10 -0400) > > are available in the Git repository at: > >

Re: [U-Boot] [PATCH 3/3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 12:56 PM Schrempf Frieder wrote: > > On 23.10.19 09:09, Jagan Teki wrote: > > On Wed, Oct 23, 2019 at 12:35 PM Schrempf Frieder > > wrote: > >> > >> Hi Jagan, > >> > >> On 22.10.19 20:16, Jagan Teki wrote: > >>> On Sat, Sep 14, 2019 at 4:14 AM Schrempf Frieder > >>>

Re: [U-Boot] [RFC PATCH v2 08/18] socfpga: gen5: add new tool to create handoff dtsi files

2019-10-23 Thread Simon Goldschmidt
Am 23.10.2019 um 18:03 schrieb Dalon L Westergreen: On Tue, 2019-10-22 at 19:13 +0200, Simon Goldschmidt wrote: Dalon L Westergreen > schrieb am Di., 22. Okt. 2019, 19:10: I mentioned this before, it would be great to not rely on the generated

Re: [U-Boot] [PATCH v3 0/3] spi-nor: spi-nor-ids: Fix 4 Byte addressing for n25q*

2019-10-23 Thread Jagan Teki
On Fri, Oct 11, 2019 at 1:28 PM Vignesh Raghavendra wrote: > > n25q variants do not support stateless 4 byte addressing opcodes by default, > therefore first patch disables this flag for those parts. Second patch > adds entries for mt25q variants which are similar to n25q but supports > stateless

Re: [U-Boot] [PATCH v3 3/3] spi-nor: spi-nor-ids: Add USE_FSR flag for mt25q* and n25q* entry

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 10:49 AM Vignesh Raghavendra wrote: > > Hi Jagan, > > On 23/10/19 12:00 AM, Jagan Teki wrote: > > Hi Vignesh, > > > > On Fri, Oct 11, 2019 at 1:28 PM Vignesh Raghavendra wrote: > >> > >> n25q* and mt25q* (both 256Mb and 512Mb) flashes support Flag status > >> register

Re: [U-Boot] [PATCH v5 00/26]MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 5:28 PM Tom Rini wrote: > > On Mon, Oct 21, 2019 at 01:42:08PM +0530, Jagan Teki wrote: > > Hi Miquel, > > > > On Mon, Oct 21, 2019 at 1:38 PM Miquel Raynal > > wrote: > > > > > > Hi Jagan, > > > > > > Gentle ping. > > > > > > As discussed half a year ago, please do not

Re: [U-Boot] [PATCHv2 06/13] test/py: Manual python3 fixes

2019-10-23 Thread Tom Rini
On Wed, Oct 23, 2019 at 12:50:12PM -0600, Stephen Warren wrote: > On 10/22/19 9:20 PM, Tom Rini wrote: > > - Modern pytest is more visible in telling us about parameters that we > >had not described, so describe a few more. > > - ConfigParser.readfp(...) is now configparser.read_file(...) > >

Re: [U-Boot] [PATCHv2 06/13] test/py: Manual python3 fixes

2019-10-23 Thread Stephen Warren
On 10/22/19 9:20 PM, Tom Rini wrote: - Modern pytest is more visible in telling us about parameters that we had not described, so describe a few more. - ConfigParser.readfp(...) is now configparser.read_file(...) - As part of the "strings vs bytes" conversions in Python 3, we use the

Re: [U-Boot] [PATCHv2 11/13] test/py: Update docs, add requirements.txt for pip

2019-10-23 Thread Tom Rini
On Wed, Oct 23, 2019 at 12:30:52PM -0600, Stephen Warren wrote: > On 10/22/19 9:20 PM, Tom Rini wrote: > > To be more closely aligned with Python community best practices, we need > > to better document our usage of pip and make use of a requirements.txt > > file that shows the versions of the

Re: [U-Boot] [PATCH v2 36/41] serial: mxc: add imx53 and imx21 compatible string

2019-10-23 Thread Fabio Estevam
On Wed, Oct 23, 2019 at 3:36 PM Robert Beckett wrote: > > Add compatible string for imx53 and imx21. > > Signed-off-by: Robert Beckett > --- > drivers/serial/serial_mxc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c > index

Re: [U-Boot] [PATCH v2 4/5] imx: nandbcb: refactor update function

2019-10-23 Thread Max Krummenacher
On Mon, 2019-10-21 at 16:38 +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > Move code for writing FCB/DBBT pages to a separate function > > Signed-off-by: Igor Opaniuk Tested-by: Max Krummenacher ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH v2 38/41] pmic: allow dump command for non contiguous register maps

2019-10-23 Thread Robert Beckett
From: Martin Fuzzey Some PMICs (such as the DA9063) have non-contiguous register maps. Attempting to read the non implemented registers returns an error rather than a dummy value which causes 'pmic dump' to terminate prematurely. Fix this by allowing the PMIC driver to return -ENODATA for such

[U-Boot] [PATCH v2 23/41] rtc: rx8010sj: fix DM initialization

2019-10-23 Thread Robert Beckett
pass the udevice by reference instead of double ref Signed-off-by: Robert Beckett --- drivers/rtc/rx8010sj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rx8010sj.c b/drivers/rtc/rx8010sj.c index 81560e16ce..2876692a37 100644 --- a/drivers/rtc/rx8010sj.c +++

Re: [U-Boot] [PATCHv2 11/13] test/py: Update docs, add requirements.txt for pip

2019-10-23 Thread Stephen Warren
On 10/22/19 9:20 PM, Tom Rini wrote: To be more closely aligned with Python community best practices, we need to better document our usage of pip and make use of a requirements.txt file that shows the versions of the tools that we are using. This will aide in ensuring reproducibility of our

[U-Boot] [PATCH v2 15/41] board: ge: convert vpd to use i2c eeprom

2019-10-23 Thread Robert Beckett
convert vpd reader to use DM i2c eeprom driver. remove old VPD definitions. Signed-off-by: Robert Beckett --- board/ge/bx50v3/Kconfig | 2 -- board/ge/common/Kconfig | 14 -- board/ge/common/vpd_reader.c | 37 ++-- board/ge/mx53ppd/Kconfig

[U-Boot] [PATCH v2 37/41] board: ge: mx53ppd: use DM for uart

2019-10-23 Thread Robert Beckett
Set chose stdout-path in DT Add uart1 and associated pinctrl definitions in DT Remove legacy uart pad and iomux code Enable DM serial and mxc uart Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 17 + board/ge/mx53ppd/mx53ppd.c | 14 --

[U-Boot] [PATCH v2 35/41] board: ge: bx50v3: use DM for uart

2019-10-23 Thread Robert Beckett
Set chosen stdout-path in DT Add uart3 and associated pinctrl definitions in DT Remove legacy uart pad and iomux code Enable DM serial and mxc uart Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3.dts | 20 board/ge/bx50v3/bx50v3.c | 24

[U-Boot] [PATCH v2 22/41] board: ge: mx53ppd: add i2c eeprom bootcount storage

2019-10-23 Thread Robert Beckett
Add bootcount node, linking to i2c eeprom "bootcount" partitions for storage. Enable i2c eeprom bootcount backend storage. Enable bootcount command and use it for failbootcmd. Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 5 + configs/mx53ppd_defconfig | 8 +---

Re: [U-Boot] [PATCH v2 5/5] imx: nandbcb: add support for writing BCB only

2019-10-23 Thread Max Krummenacher
On Mon, 2019-10-21 at 16:38 +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > Add subcommand for add writing BCB only, where we provide appropriate > offsets for firmware1 and firmware2 and size. > > Example of usage: > - nandbcb bcbonly 0x0018 0x0008 0x0020 > Writing 1024 bytes

[U-Boot] [PATCH v2 10/41] board: ge: mx53ppd: Add i2c bus descritpion

2019-10-23 Thread Robert Beckett
Add i2c bus devicetree description Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 176 + 1 file changed, 176 insertions(+) diff --git a/arch/arm/dts/imx53-ppd.dts b/arch/arm/dts/imx53-ppd.dts index 909a76731b..84b20cdc55 100644 ---

[U-Boot] [PATCH v2 17/41] dm: i2c: EEPROM simulator allow tests visibility of addr and offset

2019-10-23 Thread Robert Beckett
Improve i2c EEPROM simulator testing by providing access functions to check the previous chip addr and offset. Given that we can now directly test the offsets, also simplified the offset mapping and allow for wrapping acceses. Signed-off-by: Robert Beckett --- arch/sandbox/include/asm/test.h |

[U-Boot] [PATCH v2 26/41] board: ge: mx53ppd: remove redundant power config

2019-10-23 Thread Robert Beckett
Remove unused power configuration. The code never calls pmic_init, so this was not being used, and stops the build if left enabled when CONFIG_DM_I2C_COMPAT is diabled. Signed-off-by: Robert Beckett --- include/configs/mx53ppd.h | 9 - 1 file changed, 9 deletions(-) diff --git

[U-Boot] [PATCH v2 19/41] misc: i2c_eeprom: set offset len and chip addr offset mask

2019-10-23 Thread Robert Beckett
Set the correct offset length and chip address offset mask for each device to allow correct access to total capacity of the devices. Signed-off-by: Robert Beckett --- drivers/misc/i2c_eeprom.c | 35 +++ 1 file changed, 35 insertions(+) diff --git

[U-Boot] [PATCH v2 34/41] board: ge: mx53ppd: Use DM for ethernet

2019-10-23 Thread Robert Beckett
Add fec ethernet and pinctrl DT config. Remove legacy iomux setup for fec. Enable phylib and DM fec. Use Kconfig for enabling fec. Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 24 board/ge/mx53ppd/mx53ppd.c | 26 --

[U-Boot] [PATCH v2 16/41] i2c: add support for offset overflow in to address

2019-10-23 Thread Robert Beckett
Some devices (2 wire eeproms for example) use some bits from the chip address to represent the high bits of the offset instead of or as well as using multiple bytes for the offset, effectively stealing chip addresses on the bus. Add a chip offset mask that can be set for any i2c chip which gets

[U-Boot] [PATCH v2 09/41] board: ge: bx50v3: Add i2c bus description

2019-10-23 Thread Robert Beckett
Add i2c bus devicetree description Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3.dts | 351 ++ 1 file changed, 351 insertions(+) diff --git a/arch/arm/dts/imx6q-bx50v3.dts b/arch/arm/dts/imx6q-bx50v3.dts index 2e2e3bbc24..4dd2ce3038 100644 ---

[U-Boot] [PATCH v2 40/41] power: regulator: add driver for Dialog DA9063 PMIC

2019-10-23 Thread Robert Beckett
From: Martin Fuzzey Add a driver for the regulators in the the DA9063 PMIC. Robert Beckett: move regulator modes to header so board code can set modes. Correct mode mask used in ldo_set_mode. Signed-off-by: Martin Fuzzey Signed-off-by: Robert Beckett --- drivers/power/regulator/Kconfig |

[U-Boot] [PATCH v2 24/41] board: ge: bx50v3, mx53ppd: use DM rtc

2019-10-23 Thread Robert Beckett
Convert common code to use DM rtc. Remove old (pre-DM) rtc defines and config. Add uboot specific devicetree binding name for bx50v3 rtc Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3.dts | 2 +- board/ge/common/ge_common.c | 17 ++--- configs/ge_bx50v3_defconfig |

  1   2   3   >