Re: [U-Boot] [PATCH] ARM: zynq: Add support for SYZYGY Hub board

2017-09-26 Thread Michal Simek
On 12.9.2017 20:05, Tom McLeod wrote: > Add the Zynq-based SYZYGY Hub board from Opal Kelly. The board > contains a Xilinx Zynq xc7z012s SoC, 1GB DDR3 RAM, and supports > booting from SD. > > Signed-off-by: Tom McLeod > --- > arch/arm/dts/Makefile

Re: [U-Boot] [PATCH v2 15/19] arm: socfpga: Add support to memory allocation in SPL

2017-09-26 Thread Chee, Tien Fong
On Sel, 2017-09-26 at 12:37 +0200, Marek Vasut wrote: > On 09/26/2017 07:06 AM, Chee, Tien Fong wrote: > > > > On Isn, 2017-09-25 at 11:21 +0200, Marek Vasut wrote: > > > > > > On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee

Re: [U-Boot] [PATCH] mmc: uniphier-sd: Update the file to match V3 patchset

2017-09-26 Thread Jaehoon Chung
On 09/27/2017 03:05 AM, Marek Vasut wrote: > Old version of the uniphier-sd 64bit IO support patchset V1 was > applied by the maintainer, update the uniphier-sd.c with the > changes from the V3 of the patchset. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada

Re: [U-Boot] [PATCH v2 10/19] arm: socfpga: Rename the gen5 sdram driver to more specific name

2017-09-26 Thread Chee, Tien Fong
On Sel, 2017-09-26 at 12:33 +0200, Marek Vasut wrote: > On 09/26/2017 10:23 AM, Chee, Tien Fong wrote: > > > > On Isn, 2017-09-25 at 11:15 +0200, Marek Vasut wrote: > > > > > > On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee

Re: [U-Boot] [PATCH v2 12/19] arm: socfpga: Add DDR driver for Arria 10

2017-09-26 Thread Chee, Tien Fong
On Sel, 2017-09-26 at 12:35 +0200, Marek Vasut wrote: > On 09/26/2017 10:20 AM, Chee, Tien Fong wrote: > > > > On Isn, 2017-09-25 at 11:19 +0200, Marek Vasut wrote: > > > > > > On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee

Re: [U-Boot] Antwort: Re: QSPI "sf probe ...", "sf read ..." on Altera SoC FPGA

2017-09-26 Thread Hannes Schmelzer
On 09/22/2017 02:20 PM, Clément Péron wrote: Sorry these are my local commits you can find them here : https://patchwork.ozlabs.org/patch/765992/ https://patchwork.ozlabs.org/patch/765996/ https://patchwork.ozlabs.org/patch/765997/ https://patchwork.ozlabs.org/patch/765998/ Hi, just tested

Re: [U-Boot] [PATCH v2 16/19] arm: socfpga: Enhance Intel SoCFPGA program header to support Arria 10

2017-09-26 Thread Chee, Tien Fong
On Sel, 2017-09-26 at 12:37 +0200, Marek Vasut wrote: > On 09/26/2017 06:42 AM, Chee, Tien Fong wrote: > > > > On Isn, 2017-09-25 at 11:23 +0200, Marek Vasut wrote: > > > > > > On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee

Re: [U-Boot] [PATCH v2 17/19] arm: socfpga: Adding clock frequency info for U-boot

2017-09-26 Thread Chee, Tien Fong
On Isn, 2017-09-25 at 11:23 +0200, Marek Vasut wrote: > On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Clock frequency info is required in U-boot. > > > > Signed-off-by: Tien Fong Chee > I want a

Re: [U-Boot] [PATCH v2 19/19] arm: socfpga: Enable SPL loading U-boot to DDR and booting U-boot

2017-09-26 Thread Chee, Tien Fong
On Sel, 2017-09-26 at 12:38 +0200, Marek Vasut wrote: > On 09/26/2017 06:31 AM, Chee, Tien Fong wrote: > > > > On Isn, 2017-09-25 at 11:24 +0200, Marek Vasut wrote: > > > > > > On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee

Re: [U-Boot] [PATCH v2 02/19] doc: dtbinding: Description on FPGA RBF properties at Arria 10 FPGA manager

2017-09-26 Thread Chee, Tien Fong
On Sel, 2017-09-26 at 12:30 +0200, Marek Vasut wrote: > On 09/26/2017 10:54 AM, Chee, Tien Fong wrote: > > > > On Isn, 2017-09-25 at 11:00 +0200, Marek Vasut wrote: > > > > > > On 09/25/2017 10:39 AM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee

[U-Boot] [PATCH] fs/ext4/ext4fs.c: Free dirnode in error path of ext4fs_ls

2017-09-26 Thread Tom Rini
As reported by Coverity, we did not free dirnode in the case of failure. Do so now. Reported-by: Coverity (CID: 131221) Cc: Stefan Brüns Signed-off-by: Tom Rini --- fs/ext4/ext4fs.c | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH] tools/fit_image.c: Update some return code paths

2017-09-26 Thread Tom Rini
Coverity has found some problems with the return paths in parts of this code. We have a case where we were going to the wrong part of the unwind (open() failed so we cannot close the fd), a case where we were only free()ing our buf on the error path and finally a case where we did not munmap in

Re: [U-Boot] u-boot Boot issue about rk3188

2017-09-26 Thread Andy Yan
Hi Pawel: On 2017年09月26日 19:34, Paweł Jarosz wrote: Hi, W dniu 25.09.2017 o 12:29, Heiko Stübner pisze: Hi Andy, Am Montag, 25. September 2017, 17:45:03 CEST schrieb Andy Yan: On 2017年09月22日 13:56, Heiko Stuebner wrote: Am Freitag, 22. September 2017, 08:50:49 CEST schrieb Andy Yan: Hi

[U-Boot] [PATCH] usb: kbd: Don't fail with iomux

2017-09-26 Thread Rob Clark
stdin might not be set, which would cause iomux_doenv() to fail therefore causing probe_usb_keyboard() to fail. Furthermore if we do have iomux enabled, the sensible thing (in terms of user experience) would be to simply add ourselves to the list of stdin devices. This fixes an issue with usbkbd

[U-Boot] [PATCH] cmd/time.c: Initialize 'repeatable' variable

2017-09-26 Thread Tom Rini
We cannot leave this uninitialized, set it to 0. Reported-by: Coverity (CID: 144426) Signed-off-by: Tom Rini --- cmd/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/time.c b/cmd/time.c index de57e3b9dd5e..2cd8b1a5 100644 --- a/cmd/time.c

[U-Boot] [PATCH] cmd/pxe.c: Rework initrd and bootargs handling slightly

2017-09-26 Thread Tom Rini
For the initrd portion of handling our bootm arguments we do not have a sufficiently long enough buffer for some improbable 64bit cases. Expand this buffer to allow for a 64bit address and almost 256MB initrd to be used. Make use of strncpy/strncat when constructing the values here since we know

[U-Boot] [PATCH] cmd/nvedit.c: Update input handling to cover overflow cases

2017-09-26 Thread Tom Rini
When we have multiple messages provided, we need to be sure that we do not exceed the length of our 'message' buffer. In the for loop, make sure that pos is not larger than message. Only copy in at most however much of the message buffer remains. Finally, if we have not reached the end of the

Re: [U-Boot] [PATCH 06/14] arm: socfpga: stratix10: Add misc support for Stratix10 SoC

2017-09-26 Thread Dinh Nguyen
On Tue, Sep 19, 2017 at 4:22 AM, wrote: > From: Chin Liang See > > Add misc support for Stratix SoC Just because the file is call misc.c doesn't mean you can just keep the commit message that simple. Can you add what functions are you adding?

Re: [U-Boot] [PATCH 04/14] arm: socfpga: stratix10: Add Reset Manager driver for Stratix10 SoC

2017-09-26 Thread Dinh Nguyen
On Tue, Sep 19, 2017 at 4:22 AM, wrote: > From: Chin Liang See > > Add Reset Manager driver support for Stratix SoC > > Signed-off-by: Chin Liang See > --- > arch/arm/mach-socfpga/Makefile | 1

Re: [U-Boot] [PATCH 03/14] arm: socfpga: stratix10: Add Clock Manager driver for Stratix10 SoC

2017-09-26 Thread Dinh Nguyen
On Tue, Sep 19, 2017 at 4:22 AM, wrote: > From: Chin Liang See > > Add Clock Manager driver support for Stratix SoC > > Signed-off-by: Chin Liang See > --- > arch/arm/mach-socfpga/Makefile | 4

Re: [U-Boot] [PATCH 02/14] arm: dts: Add dts for Stratix10 SoC

2017-09-26 Thread Dinh Nguyen
On Tue, Sep 19, 2017 at 4:22 AM, wrote: > From: Chin Liang See > > Device tree for Stratix10 SoC > > Signed-off-by: Chin Liang See > --- > arch/arm/dts/Makefile| 3 +- >

Re: [U-Boot] [PATCH 02/14] arm: dts: Add dts for Stratix10 SoC

2017-09-26 Thread Dinh Nguyen
On Tue, Sep 19, 2017 at 4:22 AM, wrote: > From: Chin Liang See > > Device tree for Stratix10 SoC > > Signed-off-by: Chin Liang See > --- > arch/arm/dts/Makefile| 3 +- >

Re: [U-Boot] Issues with mx6 (cubox/wandboard) with 2017.09

2017-09-26 Thread Fabio Estevam
On Tue, Sep 26, 2017 at 2:50 PM, Peter Robinson wrote: > I tested a build with 6.4 from Fedora 25 and I saw the same issue so > I'm not sure where the problem is coming from but I'm also > travelling/meetings so haven't had time to dig further into the issue In the

Re: [U-Boot] [PATCH] test/dm: Fix string handling issues in the eth test

2017-09-26 Thread Joe Hershberger
On Tue, Sep 26, 2017 at 1:08 PM, Tom Rini wrote: > Coverity scan has identified potential buffer overruns in these tests. > Correct this by zeroing our buffer and using strncpy not strcpy. > > Reported-by: Coverity (CID: 155462, 155463) > Cc: Joe Hershberger

[U-Boot] [PATCH v2 13/14] log: test: Add a pytest for logging

2017-09-26 Thread Simon Glass
Add a test which tries out various filters and options to make sure that logging works as expected. Signed-off-by: Simon Glass --- Changes in v2: - Change log levels to match new header - Only execute log tests if CONFIG_LOG is enabled - Rename LOGL_WARN to LOGL_WARNING

[U-Boot] [PATCH v2 12/14] log: sandbox: Enable logging

2017-09-26 Thread Simon Glass
Enable all logging features on sandbox so that the tests can be run. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Change sandbox log level to 6 configs/sandbox_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH v2 06/14] Drop the log buffer

2017-09-26 Thread Simon Glass
This does not appear to be used by any boards. Before introducing a new log system, remove this old one. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None cmd/Makefile | 1 - cmd/log.c

[U-Boot] [PATCH v2 04/14] Move debug and logging support to a separate header

2017-09-26 Thread Simon Glass
Before adding new features, move these definitions to a separate header to avoid further cluttering common.h. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/common.h | 64 +

[U-Boot] [PATCH v2 08/14] log: Add a console driver

2017-09-26 Thread Simon Glass
It is useful to display log messages on the console. Add a simple driver to handle this. Note that this driver outputs to the console, which may be serial or video. It does not specifically select serial output. Signed-off-by: Simon Glass Reviewed-by: Bin Meng

[U-Boot] [PATCH v2 10/14] log: Add a test command

2017-09-26 Thread Simon Glass
Add a command which exercises the logging system. Signed-off-by: Simon Glass --- Changes in v2: - Fix function called when test command is selected - Fix help output for 'log test' - Rename LOGL_WARN to LOGL_WARNING MAINTAINERS | 1 + cmd/Kconfig | 3 +-

[U-Boot] [PATCH v2 14/14] log: Add documentation

2017-09-26 Thread Simon Glass
Add documentation for the log system. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Drop the special log() functions from the README doc/README.log | 214 + 1 file changed,

[U-Boot] [PATCH v2 05/14] mtdparts: Correct use of debug()

2017-09-26 Thread Simon Glass
The debug() macro now evaluates its expression so does not need #ifdef protection. In fact the current code causes a warning with the new log implementation. Adjust the code to fix this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2:

[U-Boot] [PATCH v2 09/14] log: Add a 'log level' command

2017-09-26 Thread Simon Glass
Add a command for adjusting the log level. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None cmd/Kconfig | 7 +++ cmd/Makefile | 1 + cmd/log.c| 55 +++ 3 files

[U-Boot] [PATCH v2 11/14] log: Plumb logging into the init sequence

2017-09-26 Thread Simon Glass
Set up logging both before and after relocation. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None common/board_f.c | 5 - common/board_r.c | 2 ++ common/log.c | 1 +

[U-Boot] [PATCH v2 03/14] Revert "sandbox: Drop special case console code for sandbox"

2017-09-26 Thread Simon Glass
While sandbox works OK without the special-case code, it does result in console output being stored in the pre-console buffer while sandbox starts up. If there is a crash or a problem then there is no indication of what is going on. For ease of debugging it seems better to revert this change

[U-Boot] [PATCH v2 01/14] Revert "sandbox: remove os_putc() and os_puts()"

2017-09-26 Thread Simon Glass
While sandbox works OK without the special-case code, it does result in console output being stored in the pre-console buffer while sandbox starts up. If there is a crash or a problem then there is no indication of what is going on. For ease of debugging it seems better to revert this change.

[U-Boot] [PATCH v2 07/14] log: Add an implemention of logging

2017-09-26 Thread Simon Glass
Add the logging header file and implementation with some configuration options to control it. Signed-off-by: Simon Glass --- Changes in v2: - Add a comment as to why CONFIG_LOG_MAX_LEVEL is not defined - Drop MAINTAINERS entries for files not added by this patch - Drop the

[U-Boot] [PATCH v2 02/14] sandbox: Adjust pre-console address to avoid conflict

2017-09-26 Thread Simon Glass
We cannot use sandbox memory at 0 since other things use memory at that address. Move it up out of the way. Note that the pre-console buffer is currently disabled with sandbox, but this change will avoid confusion if it is manually enabled. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v2 00/14] log: Add a new logging feature

2017-09-26 Thread Simon Glass
U-Boot currently has fairly rudimentary logging features. A basic printf() provides console output and debug() provides debug output which is activated if DEBUG is defined in the file containing the debug() statements. It would be useful to have a few more features: - control of debug output at

Re: [U-Boot] [PATCH] test/overlay: Fix various malloc/free leaks

2017-09-26 Thread Tom Rini
On Tue, Sep 26, 2017 at 06:28:40PM +, Langer, Thomas wrote: > Hello Tom, > > I just read some days ago about the kernel Coding-Style: > > > Choose label names which say what the goto does or why the goto exists. An > example of a good name could be ``out_free_buffer:`` if the goto frees >

Re: [U-Boot] [PATCH] test/dm: Fix string handling issues in the eth test

2017-09-26 Thread Simon Glass
On 26 September 2017 at 12:08, Tom Rini wrote: > Coverity scan has identified potential buffer overruns in these tests. > Correct this by zeroing our buffer and using strncpy not strcpy. > > Reported-by: Coverity (CID: 155462, 155463) > Cc: Joe Hershberger

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

2017-09-26 Thread Simon Glass
Hi Masahiro, On 20 September 2017 at 11:19, Masahiro Yamada wrote: > Hi Simon, > > > 2017-09-20 22:49 GMT+09:00 Simon Glass : >> Hi Masahiro, >> >> On 19 September 2017 at 20:51, Masahiro Yamada >> wrote: >>> Hi

Re: [U-Boot] [PATCH 07/13] log: Add a console driver

2017-09-26 Thread Simon Glass
Hi Bin, On 17 September 2017 at 23:45, Bin Meng wrote: > On Sun, Sep 17, 2017 at 5:23 AM, Simon Glass wrote: >> It is useful to display log messages on the console. Add a simple driver >> to handle this. >> >> Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH] test/overlay: Fix various malloc/free leaks

2017-09-26 Thread Langer, Thomas
Hello Tom, I just read some days ago about the kernel Coding-Style: Choose label names which say what the goto does or why the goto exists. An example of a good name could be ``out_free_buffer:`` if the goto frees ``buffer``. Avoid using GW-BASIC names like ``err1:`` and ``err2:``, as you

[U-Boot] [PATCH] test/dm: Fix string handling issues in the eth test

2017-09-26 Thread Tom Rini
Coverity scan has identified potential buffer overruns in these tests. Correct this by zeroing our buffer and using strncpy not strcpy. Reported-by: Coverity (CID: 155462, 155463) Cc: Joe Hershberger Cc: Simon Glass Cc: Bin Meng

[U-Boot] [PATCH 6/6] usb: Drop the EHCI RCar Gen3

2017-09-26 Thread Marek Vasut
Since we use EHCI generic driver on RCar Gen3 , this driver is useless. Remove it. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/usb/host/Kconfig | 8 --- drivers/usb/host/Makefile | 1 -

[U-Boot] [PATCH 3/6] ARM: rmobile: Move HSUSB configuration to board on ULCB

2017-09-26 Thread Marek Vasut
In order to use ehci-generic driver, move the configuration of HSUSB block into the board file. This configuration should not have been in the Gen3 EHCI USB driver in the first place, so move it to the board file until there is a proper infrastructure and driver for the HSUSB block.

[U-Boot] [PATCH 2/6] ARM: rmobile: Move HSUSB configuration to board on Salvator-X

2017-09-26 Thread Marek Vasut
In order to use ehci-generic driver, move the configuration of HSUSB block into the board file. This configuration should not have been in the Gen3 EHCI USB driver in the first place, so move it to the board file until there is a proper infrastructure and driver for the HSUSB block.

[U-Boot] [PATCH 4/6] ARM: rmobile: Enable EHCI generic on Salvator-X

2017-09-26 Thread Marek Vasut
Enable the EHCI generic driver, which is superior to ad-hoc SoC specific one. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r8a7795_salvator-x_defconfig | 1 + configs/r8a7796_salvator-x_defconfig | 1 + 2 files changed, 2

[U-Boot] [PATCH] ARM: rmobile: Move CONFIG_CMD_ from rcar-gen3-common to configs

2017-09-26 Thread Marek Vasut
Just move those config options from macros to configs. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r8a7795_salvator-x_defconfig | 4 configs/r8a7795_ulcb_defconfig | 5 + configs/r8a7796_salvator-x_defconfig |

[U-Boot] [PATCH] mmc: uniphier-sd: Update the file to match V3 patchset

2017-09-26 Thread Marek Vasut
Old version of the uniphier-sd 64bit IO support patchset V1 was applied by the maintainer, update the uniphier-sd.c with the changes from the V3 of the patchset. Signed-off-by: Marek Vasut Cc: Masahiro Yamada Cc: Jaehoon Chung

[U-Boot] [PATCH 5/6] ARM: rmobile: Enable EHCI generic on ULCB

2017-09-26 Thread Marek Vasut
Enable the EHCI generic driver, which is superior to ad-hoc SoC specific one. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r8a7795_ulcb_defconfig | 1 + configs/r8a7796_ulcb_defconfig | 1 + 2 files changed, 2 insertions(+)

[U-Boot] [PATCH 1/6] ARM: rmobile: dts: Add EHCI USB nodes to r8a7796

2017-09-26 Thread Marek Vasut
The R8A7796 EHCI USB nodes are missing from r8a7796 dtsi, add them. These nodes don't come from mainline Linux, yet the DT binding is similar enough to R8A7795 which already has those in mainline and once the nodes hit mainline, this DT should be resynched. Signed-off-by: Marek Vasut

[U-Boot] [PATCH] ARM: rmobile: Switch to UniPhier SD driver on Gen3

2017-09-26 Thread Marek Vasut
The UniPhier SD driver handles the same Matsushita IP as is used in the Renesas RCar SoCs, yet the driver is significantly better than the SH SDHI one. Switch over to the Uniphier driver. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu ---

Re: [U-Boot] Issues with mx6 (cubox/wandboard) with 2017.09

2017-09-26 Thread Peter Robinson
>>> I'm seeing some issues with some of the i.MX6 devices with the latest >>> stable release. It loads the SPL and then just seems to loop: >>> >>> U-Boot SPL 2017.09 (Sep 25 2017 - 18:42:10) >>> Trying to boot from MMC1 >>> >>> U-Boot SPL 2017.09 (Sep 25 2017 - 18:42:10) >>> Trying to boot from

Re: [U-Boot] ZynqMP qspi

2017-09-26 Thread Liam Beguin
Hi, On 26/09/17 01:28 AM, Siva Durga Prasad Paladugu wrote: > Hi, > >> -Original Message- >> From: Jagan Teki [mailto:jagannadh.t...@gmail.com] >> Sent: Tuesday, September 26, 2017 10:17 AM >> To: Liam Beguin >> Cc: u-boot@lists.denx.de; Michal Simek

[U-Boot] [PATCH RESEND] DW SPI: Get clock value from Device Tree

2017-09-26 Thread Eugeniy Paltsev
Add option to set spi controller clock frequency via device tree using standard clock bindings. Old way of setting spi controller clock frequency (via implementation of 'cm_get_spi_controller_clk_hz' function in platform specific code) remains supported. Signed-off-by: Eugeniy Paltsev

Re: [U-Boot] ZynqMP qspi

2017-09-26 Thread Siva Durga Prasad Paladugu
Hi, > -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Tuesday, September 26, 2017 10:17 AM > To: Liam Beguin > Cc: u-boot@lists.denx.de; Michal Simek ; Siva Durga > Prasad Paladugu > Subject:

Re: [U-Boot] ZynqMP qspi

2017-09-26 Thread Liam Beguin
Resending with proper CC since the email came back. On 24/09/17 09:36 PM, Liam Beguin wrote: > Hi, > > I'm testing a new Xilinx zynqmp dev board and was not able to probe the > qspi with the latest mainline U-Boot. I see that there is a 'zynqmp_qspi' > driver in the Xilinx tree [1] but nothing

Re: [U-Boot] [PATCH] ARM: zynq: Add support for SYZYGY Hub board

2017-09-26 Thread Tom McLeod
Hi Michal, I wanted to check in and see if you've had a chance to review this patch yet. Please let me know if you need me to make any changes or if it's good to go. Thanks, -Tom On Tue, Sep 12, 2017 at 11:05 AM, Tom McLeod wrote: > Add the Zynq-based SYZYGY Hub

Re: [U-Boot] [PATCH 00/15] spl: atf: update booting images via ATF to use info from FIT images

2017-09-26 Thread Michal Simek
Hi Philipp, On 13.9.2017 21:29, Philipp Tomsich wrote: > > A number of things about how we boot the RK3368 and RK3399 through ATF > are less than ideal today, especially when considering future > platforms that will follow a similar boot concept: > - the auto-detection of images from the FIT

Re: [U-Boot] Issues with mx6 (cubox/wandboard) with 2017.09

2017-09-26 Thread Diego Dorta
Hi Peter, 2017-09-25 16:00 GMT-03:00 Fabio Estevam : > Hi Peter, > > On Mon, Sep 25, 2017 at 3:54 PM, Peter Robinson wrote: >> Hi Fabio, >> >> I'm seeing some issues with some of the i.MX6 devices with the latest >> stable release. It loads the SPL and

Re: [U-Boot] [PATCH v2 3/9] dm: clk: add clk driver support for stm32h7 SoCs

2017-09-26 Thread Vikas MANOCHA
Thanks Patrice, > -Original Message- > From: Patrice CHOTARD > Sent: Tuesday, September 26, 2017 5:27 AM > To: Vikas MANOCHA ; u-boot@lists.denx.de; > albert.u.b...@aribaud.net; s...@chromium.org > Cc: Patrick DELAUNAY ; Christophe KERELLO

[U-Boot] "usb storage" command issues

2017-09-26 Thread Stefan Roese
Hi, I'm currently testing USB on my x86 platform. And noticed, that the "usb storage" command does not work as expected: => usb reset resetting USB... USB0: Register 7000820 NbrPorts 7 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 5 USB Device(s) found scanning

[U-Boot] [PATCH] test/overlay: Fix various malloc/free leaks

2017-09-26 Thread Tom Rini
With the overlay tests now being built in sandbox Coverity has found a number of issues in the tests. In short, if malloc ever failed we would leak the previous mallocs, so we need to do the usual goto pattern to free each in turn. Finally, we always looked at the free()d location to see how

[U-Boot] Please pull u-boot-cfi-flash/master

2017-09-26 Thread Stefan Roese
Hi Tom, please pull the following 2 patches from Marek for the CFI driver. Thanks, Stefan The following changes since commit 1f6049e2501b5c35c61435dbc05ba96743202674: tools/mkimage: Make the path to the dtc binary that mkimage calls configurable (2017-09-24 07:33:03 -0400) are available in

Re: [U-Boot] [PATCH] mtd: cfi: Add support for status register polling

2017-09-26 Thread Stefan Roese
On 12.09.2017 19:09, Marek Vasut wrote: The status register is optional in the AMD command sets, but it's presence can be checked by reading out CFI table entry 0xc bit 0. If the register is present, prefer using it's bit 7 to determine if the flash is busy over reading the flash ; this is

Re: [U-Boot] [PATCH] mtd: cfi: Zap cfi_flash_base in DM case

2017-09-26 Thread Stefan Roese
On 12.09.2017 19:09, Marek Vasut wrote: Embed the flash base into struct flash_info instead of having ad-hoc static array in the code. This does not only remove static variable, but also allows CFI-like controllers, ie. HyperFlash ones, to use most of the CFI flash code by populating the

Re: [U-Boot] [PATCH V3 1/5] mmc: uniphier-sd: Factor out register IO

2017-09-26 Thread Masahiro Yamada
2017-09-22 22:54 GMT+09:00 Jaehoon Chung : > On 08/21/2017 12:11 AM, Marek Vasut wrote: >> This patch prepares the driver to support controller(s) with registers >> at locations shifted by constant. Pull out the readl()/writel() from >> the driver into separate functions,

Re: [U-Boot] u-boot-usb/master sandbox unit test failure

2017-09-26 Thread Bin Meng
+Simon, On Tue, Sep 26, 2017 at 10:14 PM, Bin Meng wrote: > On Tue, Sep 26, 2017 at 5:32 PM, Bin Meng wrote: >> Hi Stephen, >> >> On Tue, Sep 26, 2017 at 1:11 AM, Stephen Warren >> wrote: >>> On 09/25/2017 10:40 AM, Marek Vasut

Re: [U-Boot] [PATCH v2 4/4] fs-test: Add test for a filename using '..' to go back to the root

2017-09-26 Thread Tom Rini
On Mon, Sep 25, 2017 at 10:06:34PM +0300, Tuomas Tynkkynen wrote: > The previous commit fixed a problem in FAT code where going back to the > root directory using '..' wouldn't work correctly on FAT12 or FAT16. > Add a test to exercise this case (which was once fixed in commit > 18a10d46f26 "fat:

Re: [U-Boot] [PATCH v2 2/4] fs-test: Add FAT16 support

2017-09-26 Thread Tom Rini
On Mon, Sep 25, 2017 at 10:06:32PM +0300, Tuomas Tynkkynen wrote: > Currently we can only test FAT32 which is the default FAT version that > mkfs.vfat creates by default. Instead make it explicitly create either a > FAT16 or a FAT32 volume. This allows us to exercise more code, for > instance the

Re: [U-Boot] [PATCH v2 1/4] fs/ext4: Fix group descriptor checksum calculation

2017-09-26 Thread Tom Rini
On Mon, Sep 25, 2017 at 10:06:31PM +0300, Tuomas Tynkkynen wrote: > The current code doesn't compute the group descriptor checksum correctly > for the filesystems that e2fsprogs 1.43.4 creates (they have > 'Group descriptor size: 64' as reported by tune2fs). Extend the checksum > calculation to be

Re: [U-Boot] strange behaviors with setexpr syntax error and '==' != '-eq"

2017-09-26 Thread Clément Péron
Dear Wolfgang Denk, Thanks a lot for your explanations ! Clement > I'm tempted to rephrase: you made some errors :-) >> The first one is when I try to do a mask from a memory address and >> store it to an env variable. >> >> => setexpr toto *{loadaddr} & 0xFF >> syntax error >> => setexpr toto

Re: [U-Boot] [PATCH] fs/fat: Fix 'CACHE: Misaligned operation at range' warnings

2017-09-26 Thread Tom Rini
On Tue, Sep 26, 2017 at 03:21:25PM +0300, Tuomas Tynkkynen wrote: > The 'block' field of fat_itr needs to be properly aligned for DMA and > while it does have '__aligned(ARCH_DMA_MINALIGN)', the fat_itr structure > itself needs to be properly aligned as well. > > While at it use

Re: [U-Boot] [PATCHv2] GPT: fix memory leaks identified by Coverity

2017-09-26 Thread Tom Rini
On Tue, Sep 26, 2017 at 07:42:28AM -0700, ali...@peloton-tech.com wrote: > From: Alison Chaiken > > Create a common exit for most of the error handling code in > do_rename_gpt_parts. Delete the list elements in disk_partitions > before calling INIT_LIST_HEAD from

[U-Boot] [PATCHv2] GPT: fix memory leaks identified by Coverity

2017-09-26 Thread alison
From: Alison Chaiken Create a common exit for most of the error handling code in do_rename_gpt_parts. Delete the list elements in disk_partitions before calling INIT_LIST_HEAD from get_gpt_info() a second time. The SIZEOF_MISMATCH error is not addressed, since that

Re: [U-Boot] [PATCHv2] GPT: fix memory leaks identified by Coverity

2017-09-26 Thread Bin Meng
Hi, On Tue, Sep 26, 2017 at 10:39 PM, wrote: > From: Alison Chaiken > > Create a common exit for most of the error handling code in > do_rename_gpt_parts. Delete the list elements in disk_partitions > before calling INIT_LIST_HEAD from

Re: [U-Boot] strange behaviors with setexpr syntax error and '==' != '-eq"

2017-09-26 Thread Wolfgang Denk
Dear Clément Péron, In message you wrote: > > I write a script on u-boot but i found 2 strange behaviors. I'm tempted to rephrase: you made some errors :-) > The first one is when I try to do a mask from a memory address and

[U-Boot] [PATCHv2] GPT: fix memory leaks identified by Coverity

2017-09-26 Thread alison
From: Alison Chaiken Create a common exit for most of the error handling code in do_rename_gpt_parts. Delete the list elements in disk_partitions before calling INIT_LIST_HEAD from get_gpt_info() a second time. The SIZEOF_MISMATCH error is not addressed, since that

Re: [U-Boot] [PATCH] sunxi: clk: fix N formula for CPUX clocks

2017-09-26 Thread Maxime Ripard
On Tue, Sep 26, 2017 at 02:02:47PM +, Quentin Schulz wrote: > As explained in arch/arm/mach-sunxi/clock_sun8i_a83t.c, clk for CPU > clusters is computed as clk = 24*n. However, the current formula is clk > = 24*(n-1). > > This results in a clock set to a frequency that isn't specified as >

[U-Boot] strange behaviors with setexpr syntax error and '==' != '-eq"

2017-09-26 Thread Clément Péron
Hi, I write a script on u-boot but i found 2 strange behaviors. The first one is when I try to do a mask from a memory address and store it to an env variable. => setexpr toto *{loadaddr} & 0xFF syntax error => setexpr toto *{loadaddr} & 0x3F syntax error => setexpr toto 0x3F & *{loadaddr}

Re: [U-Boot] u-boot-usb/master sandbox unit test failure

2017-09-26 Thread Bin Meng
On Tue, Sep 26, 2017 at 5:32 PM, Bin Meng wrote: > Hi Stephen, > > On Tue, Sep 26, 2017 at 1:11 AM, Stephen Warren wrote: >> On 09/25/2017 10:40 AM, Marek Vasut wrote: >>> >>> On 09/25/2017 06:13 PM, Stephen Warren wrote: Marek, >>> >>> >>>

[U-Boot] [PATCH] sunxi: clk: fix N formula for CPUX clocks

2017-09-26 Thread Quentin Schulz
As explained in arch/arm/mach-sunxi/clock_sun8i_a83t.c, clk for CPU clusters is computed as clk = 24*n. However, the current formula is clk = 24*(n-1). This results in a clock set to a frequency that isn't specified as possible for CPUs. Let's use the correct formula. Fixes: f542948b1e8c

Re: [U-Boot] [PATCH v2 3/9] dm: clk: add clk driver support for stm32h7 SoCs

2017-09-26 Thread Patrice CHOTARD
Hi Vikas On 09/26/2017 10:51 AM, Patrice CHOTARD wrote: > Hi Vikas > > On 09/25/2017 09:51 AM, Patrice CHOTARD wrote: >> Hi Vikas >> >> On 09/20/2017 03:39 AM, Vikas Manocha wrote: >>> Hi Patrice, >>> >>> On 09/13/2017 09:00 AM, patrice.chot...@st.com wrote: From: Patrice Chotard

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

2017-09-26 Thread Tom Rini
On Mon, Sep 25, 2017 at 06:41:58PM +0200, Marek Vasut wrote: > The following changes since commit 1f6049e2501b5c35c61435dbc05ba96743202674: > > tools/mkimage: Make the path to the dtc binary that mkimage calls > configurable (2017-09-24 07:33:03 -0400) > > are available in the git repository

[U-Boot] [PATCH] fs/fat: Fix 'CACHE: Misaligned operation at range' warnings

2017-09-26 Thread Tuomas Tynkkynen
The 'block' field of fat_itr needs to be properly aligned for DMA and while it does have '__aligned(ARCH_DMA_MINALIGN)', the fat_itr structure itself needs to be properly aligned as well. While at it use malloc_cache_aligned() for other aligned allocations in the file. Fixes: 2460098cffacd1

Re: [U-Boot] [GIT PULL] Please pull u-boot-mmc master

2017-09-26 Thread Tom Rini
On Mon, Sep 25, 2017 at 02:31:03PM +0900, Jaehoon Chung wrote: > Dear Tom, > > Could you pull these patches into u-boot/master? > If there is a problem, let me know, plz. > > Other patches needs to check more, so i didn't apply them. > If i need to send PR again, i will send the PR as "take v2"

Re: [U-Boot] Pull request: u-boot-spi/master

2017-09-26 Thread Tom Rini
On Mon, Sep 25, 2017 at 01:21:35PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks! > Jagan. > > The following changes since commit 1f6049e2501b5c35c61435dbc05ba96743202674: > > tools/mkimage: Make the path to the dtc binary that mkimage calls > configurable

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

2017-09-26 Thread Stefano Babic
On 26/09/2017 13:19, Fabio Estevam wrote: > Hi Stefano, > > On Wed, Sep 20, 2017 at 8:17 PM, Fabio Estevam wrote: >> From: Fabio Estevam >> >> Add support for the latest MX6QP wandboard variant. >> >> Based on Richard Hu's work from Technexion's

Re: [U-Boot] u-boot Boot issue about rk3188

2017-09-26 Thread Paweł Jarosz
Hi, W dniu 25.09.2017 o 12:29, Heiko Stübner pisze: Hi Andy, Am Montag, 25. September 2017, 17:45:03 CEST schrieb Andy Yan: On 2017年09月22日 13:56, Heiko Stuebner wrote: Am Freitag, 22. September 2017, 08:50:49 CEST schrieb Andy Yan: Hi Heiko: On 2017年09月22日 08:24, Andy Yan wrote: Hi

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

2017-09-26 Thread Fabio Estevam
Hi Stefano, On Wed, Sep 20, 2017 at 8:17 PM, Fabio Estevam wrote: > From: Fabio Estevam > > Add support for the latest MX6QP wandboard variant. > > Based on Richard Hu's work from Technexion's U-Boot tree. > > Signed-off-by: Fabio Estevam

Re: [U-Boot] [PATCH v2 09/19] arm: socfpga: Add drivers for programing FPGA from flash

2017-09-26 Thread Marek Vasut
On 09/26/2017 11:52 AM, Chee, Tien Fong wrote: > On Isn, 2017-09-25 at 11:14 +0200, Marek Vasut wrote: >> On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> These drivers handle FPGA program operation from flash loading >>> RBF

Re: [U-Boot] [PATCH v2 19/19] arm: socfpga: Enable SPL loading U-boot to DDR and booting U-boot

2017-09-26 Thread Marek Vasut
On 09/26/2017 06:31 AM, Chee, Tien Fong wrote: > On Isn, 2017-09-25 at 11:24 +0200, Marek Vasut wrote: >> On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Enable SPL loading U-boot from SDMMC to DDR and booting U-boot. >> This

Re: [U-Boot] [PATCH v2 11/19] arm: socfpga: Add DRAM bank size initialization function

2017-09-26 Thread Marek Vasut
On 09/26/2017 10:20 AM, Chee, Tien Fong wrote: > On Isn, 2017-09-25 at 11:15 +0200, Marek Vasut wrote: >> On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Add function for both multiple DRAM bank and single DRAM bank size >>>

Re: [U-Boot] [PATCH v2 10/19] arm: socfpga: Rename the gen5 sdram driver to more specific name

2017-09-26 Thread Marek Vasut
On 09/26/2017 10:23 AM, Chee, Tien Fong wrote: > On Isn, 2017-09-25 at 11:15 +0200, Marek Vasut wrote: >> On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Current sdram driver is only applied to gen5 device, hence it is >>>

Re: [U-Boot] [PATCH v2 12/19] arm: socfpga: Add DDR driver for Arria 10

2017-09-26 Thread Marek Vasut
On 09/26/2017 10:20 AM, Chee, Tien Fong wrote: > On Isn, 2017-09-25 at 11:19 +0200, Marek Vasut wrote: >> On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Add DDR driver suppport for Arria 10. >>> >>> Signed-off-by: Tien Fong

Re: [U-Boot] [PATCH v2 16/19] arm: socfpga: Enhance Intel SoCFPGA program header to support Arria 10

2017-09-26 Thread Marek Vasut
On 09/26/2017 06:42 AM, Chee, Tien Fong wrote: > On Isn, 2017-09-25 at 11:23 +0200, Marek Vasut wrote: >> On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Enhance preloader header with both additional program length and >>>

Re: [U-Boot] [PATCH v2 15/19] arm: socfpga: Add support to memory allocation in SPL

2017-09-26 Thread Marek Vasut
On 09/26/2017 07:06 AM, Chee, Tien Fong wrote: > On Isn, 2017-09-25 at 11:21 +0200, Marek Vasut wrote: >> On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Add support to memory allocation in SPL for preparation to enable >>>

Re: [U-Boot] [PATCH v2 09/19] arm: socfpga: Add drivers for programing FPGA from flash

2017-09-26 Thread Marek Vasut
On 09/26/2017 10:30 AM, Chee, Tien Fong wrote: > On Isn, 2017-09-25 at 11:14 +0200, Marek Vasut wrote: >> On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> These drivers handle FPGA program operation from flash loading >>> RBF

  1   2   >