Re: [U-Boot] [PATCH v1 2/2] ppc4xx: Handle i2c stuck on combined xfer

2014-10-29 Thread Dirk Eibach
Hello Heiko, >> +++ b/drivers/i2c/ppc4xx_i2c.c >> @@ -289,6 +289,27 @@ static int _i2c_transfer(struct i2c_adapter *adap, >> /* Transfer aborted? */ >> if (status& IIC_EXTSTS_XFRA) >> result = IIC_NOK_XFRA; >> +

Re: [U-Boot] [PATCH v1 2/2] ppc4xx: Handle i2c stuck on combined xfer

2014-10-29 Thread Heiko Schocher
Hello Dirk, Am 29.10.2014 15:56, schrieb dirk.eib...@gdsys.cc: From: Dirk Eibach ppc4xx i2c master gets stuck on errors while repeated start is active. Can be easily reproduced by "i2c md" on an unpopulated i2c address. There is not stop condition given, scl remains pulled low. The only way out

Re: [U-Boot] [U-boot] [Patch] net: phy: marvell: add errata w/a for 88E151* chips

2014-10-29 Thread Stefan Roese
On 29.10.2014 19:38, Ivan Khoronzhuk wrote: From: Hao Zhang As per Marvell Release Notes - Alaska 88E1510/88E1518/88E1512/88E1514 Rev A0, Errata Section 3.1 Marvell PHY has an errata which requires that certain registers get written in order to restart autonegotiation. Signed-off-by: Hao Zhang

[U-Boot] [PATCH] Remove the CREDITS file

2014-10-29 Thread Masahiro Yamada
This file is not maintained these days. We use MAINTAINERS for the maintainership of the supported boards. For dead boards, we have some clues in doc/README.scrapyard and also imperishable history in git-log. Signed-off-by: Masahiro Yamada Cc: Wolfgang Denk --- CREDITS | 536 -

Re: [U-Boot] [RFC PATCH v1 9/9] sparc: Add support for gr712rc-board

2014-10-29 Thread Masahiro Yamada
Hi Francois, On Wed, 29 Oct 2014 10:53:07 +0200 Francois Retief wrote: > Add support of the Aeroflex Gaisler GR712RC-BOARD Development Kit. > > Signed-off-by: Francois Retief > --- > Thanks for your great job! I am sorry for bothering you work, but please let me do some cleanups before a

[U-Boot] [PATCH 5/5] sparc: move CONFIG_SYS_TEXT_BASE to Kconfig

2014-10-29 Thread Masahiro Yamada
Defining CONFIG_SYS_TEXT_BASE in config.mk is very old style. Create CONFIG_SYS_TEXT_BASE option in Kconfig, but let it depend on CONFIG_SPARC because we do not want to disturb the other architectures that still define CONFIG_SYS_TEXT_BASE in their header files. Signed-off-by: Masahiro Yamada Cc

[U-Boot] [PATCH 4/5] sparc: merge CONFIG_SYS_CPU and CONFIG_SYS_VENDOR defines

2014-10-29 Thread Masahiro Yamada
For now, all the SPARC boards in U-Boot are provided by Gaisler. Signed-off-by: Masahiro Yamada Cc: Daniel Hellstrom --- arch/sparc/Kconfig | 13 ++--- board/gaisler/gr_cpci_ax2000/Kconfig | 6 -- board/gaisler/gr_ep2s60/Kconfig | 6 -- board/gaisler/gr

[U-Boot] [PATCH 2/5] sparc: move CONFIG_{LEON, LEON2, LEON3} to Kconfig

2014-10-29 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada Cc: Daniel Hellstrom --- arch/sparc/Kconfig | 16 arch/sparc/cpu/leon2/config.mk | 2 -- arch/sparc/cpu/leon3/config.mk | 2 -- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig i

[U-Boot] [PATCH 1/5] sparc: Use nicer prompt for board select menu

2014-10-29 Thread Masahiro Yamada
The Board names in the board select menu were simply taken from the board directory name by a conversion tool when switching to Kconfig. Let's use more descriptive prompts taken from include/configs/gr*.h and board/gaisler/*/config.mk. Signed-off-by: Masahiro Yamada Cc: Daniel Hellstrom --- a

[U-Boot] [PATCH 3/5] sparc: merge arch/sparc/cpu/*/config.mk to arch/sparc/config.mk

2014-10-29 Thread Masahiro Yamada
Remove arch/sparc/cpu/{leon2,leon3}/config.mk and move duplicated defines of -fPIC to arch/sparc/config.mk. Signed-off-by: Masahiro Yamada Cc: Daniel Hellstrom --- arch/sparc/config.mk | 2 ++ arch/sparc/cpu/leon2/config.mk | 8 arch/sparc/cpu/leon3/config.mk | 8 3

[U-Boot] [PATCH 0/5] sparc: some refactoring before generic board conversion and a new board

2014-10-29 Thread Masahiro Yamada
Francois Retief has posted patch sets to convert SPARC boards into generic board and add a new board. Before the new work, let's do code cleanups by using Kconfig. I build all the SPARC boards and compared MD5SUM to confirm this series still produce the same result. Masahiro Yamada (5): spa

[U-Boot] [PATCH v3] zynq: Use GPLed files for SPL

2014-10-29 Thread Soren Brinkmann
The latest Xilinx tools generate ps7_init files that are explicitly available under GPL. Change the makefile to allow drop in of those files for building the SPL. Signed-off-by: Soren Brinkmann Acked-by: Jagannadha Sutradharudu Teki --- v3: - handle the case with ps7_init and ps7_init_gpl files

[U-Boot] [PATCH v4] powerpc/mpc85xx: modify erratum A007186

2014-10-29 Thread Zhao Qiang
T2080 v1.0 has this errata while v1.1 has fixed this errata by hardware, add a new function has_errata_a007186 to check the SVR_SOC_VER, SVR_MAJ and SVR_MIN first, if the sil has errata a007186, then run the errata code, if not, doesn't run the code. Signed-off-by: Zhao Qiang Change-Id: I19d79428

Re: [U-Boot] [RFC] Removal of CREDITS

2014-10-29 Thread Wolfgang Denk
Dear Masahiro, In message <20141030125733.259b.aa925...@jp.panasonic.com> you wrote: > > The "CREDITS" file at the top directory does not seem > to be used these days. Agreed. Actually it has never been systematically maintained. > I think we do not need the CREDITS file any more. That's OK w

[U-Boot] Query on the ci_udc driver for USB client implementation

2014-10-29 Thread Sanchayan Maity
Hello, I am currently implementing USB Host and client support for Freescale Vybrid platform in u-boot. I managed to get the host implementation working. For the host side, usb start calls usb_init(), which in turns call, usb_lowlevel_init(), from there into the ehic_hcd_init() of my implemen

Re: [U-Boot] [PATCH v5] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-10-29 Thread Suriyan Ramasami
Hello Simon, On Wed, Oct 29, 2014 at 12:31 PM, Simon Glass wrote: > Hi Suriyan, > > On 29 October 2014 13:29, Suriyan Ramasami wrote: >> Hello Simon, >> >> On Wed, Oct 29, 2014 at 12:20 PM, Simon Glass wrote: >>> Hi Suriyan, >>> >>> On 28 October 2014 17:00, Suriyan Ramasami wrote: The co

[U-Boot] [PATCH] drivers: usb: fsl: Check USB Erratum A007792 applicability

2014-10-29 Thread Nikhil Badola
Check USB Erratum A007792 applicability. If applicable, add corresponding property in the device tree via device tree fixup Signed-off-by: Nikhil Badola --- Depends on http://patchwork.ozlabs.org/patch/400407/ drivers/usb/host/ehci-fsl.c | 9 + include/fsl_usb.h | 23

Re: [U-Boot] [RFC] fs: make it possible to read the filesystem UUID

2014-10-29 Thread Stephen Warren
On 10/29/2014 06:15 AM, Christian Gmeiner wrote: > Hi all. > > Adding Stephen Warren, Simon Glass and Pavel Machek to CC list > (./scripts/get_maintainer.pl -f fs/fs.c). > > 2014-10-22 15:29 GMT+02:00 Christian Gmeiner : >> Some filesystems have a UUID stored in its superblock. To >> allow using

Re: [U-Boot] [PATCH v3 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-29 Thread Suriyan Ramasami
On Wed, Oct 29, 2014 at 9:40 PM, Suriyan Ramasami wrote: > Hello Jaehoon Chung, > > On Wed, Oct 29, 2014 at 6:17 PM, Jaehoon Chung wrote: >> On 10/30/2014 01:22 AM, Suriyan Ramasami wrote: >>> This change adds support for enabling the USB host features of the board. >>> This includes the USB3503A

Re: [U-Boot] [PATCH v3 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-29 Thread Suriyan Ramasami
Hello Jaehoon Chung, On Wed, Oct 29, 2014 at 6:17 PM, Jaehoon Chung wrote: > On 10/30/2014 01:22 AM, Suriyan Ramasami wrote: >> This change adds support for enabling the USB host features of the board. >> This includes the USB3503A hub and the SMC LAN9730 ethernet controller >> as well. >> >> Sig

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-29 Thread Stefan Roese
Hi Simon, On 30.10.2014 02:43, Simon Glass wrote: In my case I'm implementing the Designware master SPI driver for the SoCFPGA. And since its a new driver it really makes sense to use DM directly. I'm starting to get an overview now. One thing though that I noticed is, that the SPI DM implementa

Re: [U-Boot] verified boot of beaglebone black

2014-10-29 Thread Simon Glass
+U-Boot ML On 29 October 2014 21:09, Srinivasan S wrote: > Hi Simon > > > I am trying to implement verified boot process as mentioned in the below > link > > http://lists.denx.de/pipermail/u-boot/2014-June/180845.html > > > And am using the > /opt/ti-sdk-am335x-evm-07.00.00.00/board-support/u-boo

[U-Boot] Sync ARM subsystem repos with the upstream

2014-10-29 Thread Masahiro Yamada
Hi. Commit 2e07c249a67e055db294818ff063d502d15db0f8 (kconfig: arm: introduce symbol for ARM CPUs) touched lots of ARM Kconfigs. I recommend ARM SoC custodians synchronize their repos with u-boot/master. Otherwise, you may have to resolve conflicts lator. Best Regards Masahiro Yamada _

[U-Boot] [RFC] Removal of CREDITS

2014-10-29 Thread Masahiro Yamada
Hi. The "CREDITS" file at the top directory does not seem to be used these days. The contents are mostly credits of old board supports. We use MAINTAINERS for the maintainership of the supported boards. For dead boards, we have clues in doc/README.scrapyard and also imperishable history in git

Re: [U-Boot] [PATCH v2] zynq: Use GPLed files for SPL

2014-10-29 Thread Masahiro Yamada
Hi Soren, On Wed, 29 Oct 2014 10:33:14 -0700 Soren Brinkmann wrote: > The latest Xilinx tools generate ps7_init files that are explicitly > available under GPL. Change the makefile to allow drop in of those files > for building the SPL. > > Signed-off-by: Soren Brinkmann > Acked-by: Jagannad

[U-Boot] [PATCH] serial: UniPhier: borrow macros from linux/serial_reg.h

2014-10-29 Thread Masahiro Yamada
The same bit-field macros are defined in include/linux/serial_reg.h so let's include it and delete duplicated defines. Also, remove unnecessary inclusion of . Signed-off-by: Masahiro Yamada --- drivers/serial/serial_uniphier.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions

[U-Boot] FW: [PATCH] u_qe: add u_qe_upload_firmware for u_qe

2014-10-29 Thread qiang.z...@freescale.com
Hi York, This patch depends on the patch http://patchwork.ozlabs.org/patch/393256/ Best Regards Zhao Qiang > -Original Message- > From: Zhao Qiang [mailto:b45...@freescale.com] > Sent: Thursday, October 30, 2014 10:24 AM > To: u-boot@lists.denx.de; Sun York-R58495 > Cc: Xie Xiaobo-R6306

Re: [U-Boot] [PATCH 2/4] qe: add u-qe support to arm board

2014-10-29 Thread qiang.z...@freescale.com
Hi York, The 1/4 patch http://patchwork.ozlabs.org/patch/355241/ The 3/4 patch http://patchwork.ozlabs.org/patch/393569/ The 4/4 patch http://patchwork.ozlabs.org/patch/393568/ Best Regards Zhao Qiang > -Original Message- > From: Sun York-R58495 > Sent: Wednesday, October 15, 2014 3:04

[U-Boot] [PATCH] u_qe: add u_qe_upload_firmware for u_qe

2014-10-29 Thread Zhao Qiang
Signed-off-by: Zhao Qiang --- drivers/qe/qe.c | 125 +++- drivers/qe/qe.h | 1 + 2 files changed, 125 insertions(+), 1 deletion(-) diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 4de1881..5485672 100644 --- a/drivers/qe/qe.c +++ b/driver

[U-Boot] [PATCH 5/6] kbuild: sync misc scripts with Linux 3.18-rc1

2014-10-29 Thread Masahiro Yamada
This commit imports some updates in misc scripts from Linux 3.18-rc1. [1] commit cbb4d3e6510b99522719c5ef0 by Horia Geanta scripts/kernel-doc: handle object-like macros [2] commit 164f0d2efaaef83 by Michal Marek kbuild: Fix handling of backslashes in *.cmd files [3] commit 270a00963cd367214e by

[U-Boot] [PATCH 6/6] kbuild: Make scripts executable

2014-10-29 Thread Masahiro Yamada
From: Michal Marek The Makefiles call the respective interpreter explicitly, but this makes it easier to use the scripts manually. (This commit follows commit 06ed5c2bfaca of Linux Kernel) Signed-off-by: Michal Marek Signed-off-by: Masahiro Yamada --- scripts/binutils-version.sh

[U-Boot] [PATCH 4/6] kconfig: sync kconfig files with Linux 3.18-rc1

2014-10-29 Thread Masahiro Yamada
This commit imports Kconfig updates from Linux 3.18-rc1. 'kvmconfig' and 'tinyconfig' help message have been commented out since they are unavailable at least now; in the future perhaps we can implement 'tinyconfig' to disable most of CONFIG_CMD_* to create a very small U-Boot image. [1] commit

[U-Boot] [PATCH 5/6] kbuild: sync misc scripts with Linux 3.18-rc1

2014-10-29 Thread Masahiro Yamada
This commit imports some updates in misc scripts from Linux 3.18-rc1. [1] commit cbb4d3e6510b99522719c5ef0 by Horia Geanta scripts/kernel-doc: handle object-like macros [2] commit 164f0d2efaaef83 by Michal Marek kbuild: Fix handling of backslashes in *.cmd files [3] commit 270a00963cd367214e by

[U-Boot] [PATCH 4/6] kconfig: sync kconfig files with Linux 3.18-rc1

2014-10-29 Thread Masahiro Yamada
This commit imports Kconfig updates from Linux 3.18-rc1. 'kvmconfig' and 'tinyconfig' help message have been commented out since they are unavailable at least now; in the future perhaps we can implement 'tinyconfig' to disable most of CONFIG_CMD_* to create a very small U-Boot image. [1] commit

[U-Boot] [PATCH 3/6] kbuild: sync top Makefile with Linux 3.18-rc1

2014-10-29 Thread Masahiro Yamada
Since Linux 3.15, relative path feature and related fixes, cleanups have been merged to the top Makefile. The relative path feature looks stable enough, so let's import it to U-Boot along with various cleanups. Commits imported from Linux (some need adjustment) are: [1] commit 7e1c04779efd by Mi

[U-Boot] [PATCH 2/6] kbuild: improve multi-objs dependency and cleanups

2014-10-29 Thread Masahiro Yamada
Since Linux 3.18-rc1, Kbuild is able to handle multi-objs dependency correctly, which also allows us futher cleanups of some makefiles. This commit imports those commits: [1] commit c8589d1e9e01 by Masahiro Yamada kbuild: handle multi-objs dependency appropriately [2] commit 97e3226e6e98 by Masa

[U-Boot] [PATCH 1/6] kbuild: bug fixes and cleanups of Makefile.host

2014-10-29 Thread Masahiro Yamada
This commit imports updates of scripts/Makefile.host from Linux 3.18-rc1. Imported commits are: [1] commit d8d9efe22709 by Masahiro Yamada kbuild: fix a typo in scripts/Makefile.host [2] commit edb950c17de0 by Masahiro Yamada kbuild: fix a bug of C++ host program handling [3] commit 62e2210

[U-Boot] [PATCH 2/6] kbuild: improve multi-objs dependency and cleanups

2014-10-29 Thread Masahiro Yamada
Since Linux 3.18-rc1, Kbuild is able to handle multi-objs dependency correctly, which also allows us futher cleanups of some makefiles. This commit imports those commits: [1] commit c8589d1e9e01 by Masahiro Yamada kbuild: handle multi-objs dependency appropriately [2] commit 97e3226e6e98 by Masa

[U-Boot] [PATCH 6/6] kbuild: Make scripts executable

2014-10-29 Thread Masahiro Yamada
The Makefiles call the respective interpreter explicitly, but this makes it easier to use the scripts manually. (This commit follows commit 06ed5c2bfaca of Linux Kernel) Signed-off-by: Michal Marek Signed-off-by: Masahiro Yamada --- scripts/binutils-version.sh| 0 scripts/dtc-

[U-Boot] [PATCH 0/6] kbuild, kconfig: sync with Linux 3.18-rc1

2014-10-29 Thread Masahiro Yamada
Masahiro Yamada (6): kbuild: bug fixes and cleanups of Makefile.host kbuild: improve multi-objs dependency and cleanups kbuild: sync top Makefile with Linux 3.18-rc1 kconfig: sync kconfig files with Linux 3.18-rc1 kbuild: sync misc scripts with Linux 3.18-rc1 kbuild: Make scripts exe

[U-Boot] [PATCH 3/6] kbuild: sync top Makefile with Linux 3.18-rc1

2014-10-29 Thread Masahiro Yamada
Since Linux 3.15, relative path feature and related fixes, cleanups have been merged to the top Makefile. The relative path feature looks stable enough, so let's import it to U-Boot along with various cleanups. Commits imported from Linux (some need adjustment) are: [1] commit 7e1c04779efd by Mi

[U-Boot] [PATCH 0/6] kbuild, kconfig: sync with Linux 3.18-rc1

2014-10-29 Thread Masahiro Yamada
Masahiro Yamada (5): kbuild: bug fixes and cleanups of Makefile.host kbuild: improve multi-objs dependency and cleanups kbuild: sync top Makefile with Linux 3.18-rc1 kconfig: sync kconfig files with Linux 3.18-rc1 kbuild: sync misc scripts with Linux 3.18-rc1 Michal Marek (1): kbuil

[U-Boot] [PATCH 1/6] kbuild: bug fixes and cleanups of Makefile.host

2014-10-29 Thread Masahiro Yamada
This commit imports updates of scripts/Makefile.host from Linux 3.18-rc1. Imported commits are: [1] commit d8d9efe22709 by Masahiro Yamada kbuild: fix a typo in scripts/Makefile.host [2] commit edb950c17de0 by Masahiro Yamada kbuild: fix a bug of C++ host program handling [3] commit 62e2210

[U-Boot] [PATCH] kbuild: remove "clobber" target

2014-10-29 Thread Masahiro Yamada
Now we stick to Linux Kernel's build system, so squash "clobber" to "clean" target. Signed-off-by: Masahiro Yamada --- Makefile | 28 +++- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 603b6b7..4735cd5 100644 --- a/Makefile +++

[U-Boot] [PATCH] kbuild: drop clang-specific extra warnings

2014-10-29 Thread Masahiro Yamada
It is true clang has more warnings enabled by default but Jeroen Hofstee are making lots of efforts to eliminate warnings. Let's drop clang-related checks and continue to fix C code. Signed-off-by: Masahiro Yamada Cc: Jeroen Hofstee --- scripts/Makefile.extrawarn | 10 -- 1 file change

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-29 Thread Simon Glass
Hi Stefan, On 29 October 2014 07:02, Stefan Roese wrote: > Hi Simon! > > On 14.10.2014 07:41, Simon Glass wrote: >> >> Add a uclass which provides access to SPI buses and includes operations >> required by SPI. >> >> For a time driver model will need to co-exist with the legacy SPI >> interface >

Re: [U-Boot] [PATCH 02/10] Add some standard headers external code might need

2014-10-29 Thread Simon Glass
Hi Masahiro, On 29 October 2014 08:06, Masahiro YAMADA wrote: > Hi Simon, > > 2014-10-29 3:24 GMT+09:00 Simon Glass : >> Hi, >> >> On 28 October 2014 11:46, Jeroen Hofstee wrote: >>> Hello Simon, >>> >>> >>> On 28-10-14 18:33, Simon Glass wrote: Hi Masahiro, On 28 October 201

Re: [U-Boot] [RFC] fs: make it possible to read the filesystem UUID

2014-10-29 Thread Simon Glass
Hi, On 29 October 2014 13:57, Pavel Machek wrote: > Hi! > >> Adding Stephen Warren, Simon Glass and Pavel Machek to CC list >> (./scripts/get_maintainer.pl -f fs/fs.c). > > I'm not really fs maintainer, I added people that might be interested. >> >> 2014-10-22 15:29 GMT+02:00 Christian Gmeiner :

Re: [U-Boot] [PATCH v3 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-29 Thread Jaehoon Chung
On 10/30/2014 01:22 AM, Suriyan Ramasami wrote: > This change adds support for enabling the USB host features of the board. > This includes the USB3503A hub and the SMC LAN9730 ethernet controller > as well. > > Signed-off-by: Suriyan Ramasami > > --- > > Changes in v3: > * removed set_usb_etha

Re: [U-Boot] [PATCH v5] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-10-29 Thread Suriyan Ramasami
Hello Simon, On Wed, Oct 29, 2014 at 12:20 PM, Simon Glass wrote: > Hi Suriyan, > > On 28 October 2014 17:00, Suriyan Ramasami wrote: >> The commands fatls/ext4ls give negative values when dealing with files >> greater than 2GB. >> The commands fatsize/ext4size do not update the variable filesiz

Re: [U-Boot] [PATCH v5] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-10-29 Thread Simon Glass
Hi Suriyan, On 29 October 2014 13:29, Suriyan Ramasami wrote: > Hello Simon, > > On Wed, Oct 29, 2014 at 12:20 PM, Simon Glass wrote: >> Hi Suriyan, >> >> On 28 October 2014 17:00, Suriyan Ramasami wrote: >>> The commands fatls/ext4ls give negative values when dealing with files >>> greater tha

Re: [U-Boot] [PATCH v5] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-10-29 Thread Simon Glass
Hi Suriyan, On 28 October 2014 17:00, Suriyan Ramasami wrote: > The commands fatls/ext4ls give negative values when dealing with files > greater than 2GB. > The commands fatsize/ext4size do not update the variable filesize for > these files. > > To deal with this, the fs functions have been modif

[U-Boot] [PATCH 4/6] hush: fix segfault on syntax error

2014-10-29 Thread Rabin Vincent
Hush segfaults if it sees a syntax error while attempting to parse a command: $ ./u-boot -c "'" ... syntax error Segmentation fault (core dumped) This is due to a NULL pointer dereference of in_str->p in static_peek(). The problem is that the exit condition for the loop in parse_stream_outer(

[U-Boot] [PATCH 6/6] hush: add some tests for quoting

2014-10-29 Thread Rabin Vincent
Add a couple of tests for quoting. The indirect variable read test is a fixed version of the following expression from Fedora ARM's boot.scr. This unfixed expression stopped working after fe9ca3d ("hush: fix some quoted variable expansion issues"): setenv catcat setenv catout\;'setenv catX "sete

[U-Boot] [PATCH 2/6] sandbox: init cli for -c

2014-10-29 Thread Rabin Vincent
sandbox crashes if a variable is set in the -c command, because hush's top_vars is not allocated. Call cli_init() from sandbox to ensure this is done before we execute the -c command. $ ./u-boot -c 'a=1' ... Segmentation fault (core dumped) Signed-off-by: Rabin Vincent --- arch/sandbox/cpu/

[U-Boot] [PATCH 1/6] dlmalloc: ensure gd is set for early alloc

2014-10-29 Thread Rabin Vincent
Attempting to run the sandbox leads to a segfault, because some dynamic libraries (outside of u-boot) attempt to use malloc() to allocate memory before u-boot's gd variable is initialized. Check for gd not being NULL in the SYS_MALLOC_F_LEN handling, so that malloc() doesn't crash when called at t

[U-Boot] [PATCH 5/6] hush: make run_command() return an error on parsing failure

2014-10-29 Thread Rabin Vincent
run_command() returns success even if the command had a syntax error; correct this behaviour. Signed-off-by: Rabin Vincent --- common/cli_hush.c | 2 +- test/command_ut.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/cli_hush.c b/common/cli_hush.c index a07ae71..d6

[U-Boot] [PATCH 3/6] hush: return consistent codes from run_command()

2014-10-29 Thread Rabin Vincent
Attempting to run: - an empty string - a string with just spaces returns different error codes, 1 for the empty string and 0 for the string with just spaces. Make both of them return 0 for consistency. Signed-off-by: Rabin Vincent --- common/cli_hush.c | 4 +++- test/command_ut.c | 3 +++ 2

Re: [U-Boot] MKIMAGE u-boot.imx build error

2014-10-29 Thread Fabio Estevam
On Wed, Oct 29, 2014 at 12:34 PM, DaveKucharczyk wrote: > Fabio Estevam-2 wrote >> This command is not correct. You missed the bs=512 part. >> >> It should be: >> >> dd if=u-boot.imx of=/dev/sdX bs=512 seek=2; sync > > Sorry, I forgot the block size in my original email. Yes, I do include > bs=512

Re: [U-Boot] [RFC] fs: make it possible to read the filesystem UUID

2014-10-29 Thread Pavel Machek
Hi! > Adding Stephen Warren, Simon Glass and Pavel Machek to CC list > (./scripts/get_maintainer.pl -f fs/fs.c). I'm not really fs maintainer, I added people that might be interested. > > 2014-10-22 15:29 GMT+02:00 Christian Gmeiner : > > Some filesystems have a UUID stored in its superblock. To

Re: [U-Boot] [RFC] fs: make it possible to read the filesystem UUID

2014-10-29 Thread Simon Glass
Hi Christian, On 22 October 2014 07:29, Christian Gmeiner wrote: > Some filesystems have a UUID stored in its superblock. To > allow using root=UUID=... for the kernel command line we > need a way to read-out the filesystem UUID. This is what this > patch tries to do. > > Keep in mind that this p

Re: [U-Boot] [U-Boot, v2, 2/6] dm: sunxi: Add a new config for an FDT-based pcDuino3

2014-10-29 Thread Simon Glass
Hi Hans, On 29 October 2014 03:32, Hans de Goede wrote: > Hi, > > On 10/29/2014 04:02 AM, Simon Glass wrote: >> Hi Hans, >> >> On 28 October 2014 03:13, Hans de Goede wrote: >>> Hi, >>> >>> On 10/28/2014 01:04 AM, Simon Glass wrote: Hi Hans, On 24 October 2014 02:38, Hans de Goede

Re: [U-Boot] [PATCH v2 6/6] dm: sunxi: Add support for serial using driver model

2014-10-29 Thread Simon Glass
Hi Ian, On 29 October 2014 02:05, Ian Campbell wrote: > On Mon, 2014-10-27 at 18:06 -0600, Simon Glass wrote: >> Hi Ian, >> >> On 24 October 2014 03:42, Ian Campbell wrote: >> > On Wed, 2014-10-22 at 22:02 -0600, Simon Glass wrote: >> >> Add a driver for the designware serial UART used on sunxi.

Re: [U-Boot] Collapsing buildman output dir?

2014-10-29 Thread Simon Glass
Hi Tom, On 24 October 2014 13:12, Tom Rini wrote: > On Thu, Oct 23, 2014 at 12:28:10PM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 23 October 2014 07:03, Tom Rini wrote: >> > Hey, >> > >> > So a common use case for me is building a single board. I've updated my >> > wrapper script from BUILD_

[U-Boot] [PATCH v2 7/9] dm: at91: Convert snapper9260 to use driver model

2014-10-29 Thread Simon Glass
Convert this at91sam9260-based board to use driver model. This should serve as an example for other similar boards. Serial and GPIO are supported so far. Signed-off-by: Simon Glass Acked-by: Andreas Bießmann --- Changes in v2: - Update platform data and header #include for the new driver name

[U-Boot] [PATCH v2 9/9] dm: serial: Support changing the baud rate

2014-10-29 Thread Simon Glass
Implement this feature in the uclass so that the baudrate can be changed with 'setenv baudrate '. Signed-off-by: Simon Glass --- Changes in v2: - Add a patch to implement baud rate changes drivers/serial/serial-uclass.c | 67 ++ 1 file changed, 67 insert

[U-Boot] Please pull u-boot-x86

2014-10-29 Thread Simon Glass
Hi Tom, I am leaving out the common bootm change until I have looked into tests more. I doubt it will make RC1 at this stage. But here are the rest of the x86 pending changes before the 'raw' support starts. The following changes since commit 6c499abe05f93d9f53338b9831196efeede5f2e0: e1000:

[U-Boot] [PATCH v2 2/9] dm: at91: Move snapper9260 to generic baord

2014-10-29 Thread Simon Glass
This works correctly, so switch it over before the deadline. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/snapper9260.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/snapper9260.h b/include/configs/snapper9260.h index 6909e99..e2e623e 100644 --- a/in

[U-Boot] [PATCH v2 6/9] dm: at91: Add driver model support for the serial driver

2014-10-29 Thread Simon Glass
Add driver model support while retaining the existing legacy code. This allows the driver to support boards that have converted to driver model as well as those that have not. Signed-off-by: Simon Glass --- Changes in v2: - Rename header to atmel_serial.h and use atmel instead of at91 throughout

[U-Boot] [PATCH v2 3/9] dm: at91: Add driver model support for atmel GPIO driver

2014-10-29 Thread Simon Glass
Modify this driver to support driver model, with platform data required to determine the GPIOs that it controls. Signed-off-by: Simon Glass --- Changes in v2: - Remove unnecessary port number check - Use GPIO_PER_BANK instead of 32 in more places arch/arm/include/asm/arch-at91/gpio.h | 6 +

[U-Boot] [PATCH v2 4/9] dm: at91: Add platform data for GPIO on at91sam9260-based boards

2014-10-29 Thread Simon Glass
These boards all have the same GPIO arrangement, so add some common platform data that can be used by all boards. Remove the configs which are no longer required. Signed-off-by: Simon Glass --- Changes in v2: - Use PA/PB/PC instead of A/B/C for GPIO port names arch/arm/cpu/arm926ejs/at91/at91s

[U-Boot] [PATCH v2 5/9] dm: at91: Refactor serial driver slightly for driver model

2014-10-29 Thread Simon Glass
Before adding driver model support, split out a few of the functions so that they can be used by the driver model code. Signed-off-by: Simon Glass Acked-by: Andreas Bießmann --- Changes in v2: None drivers/serial/atmel_usart.c | 32 +++- 1 file changed, 23 insertio

[U-Boot] [PATCH v2 8/9] dm: at91: Add myself as maintainer for snapper9260

2014-10-29 Thread Simon Glass
The old maintainer has left, so take this over. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to add myself as maintainer for snapper9260 board/bluewater/snapper9260/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/bluewater/snapper9260/MAIN

[U-Boot] [PATCH v2 0/9] dm: Introduce driver model for Atmel at91

2014-10-29 Thread Simon Glass
This series adds driver model support for serial and GPIO for the Atmel AT91 series. The at91sam9260-based Snapper 9260 is converted over as an example. For both drivers the old behaviour is retained, so driver model becomes optional, not mandatory. This series is available at u-boot-dm/atmel-wor

[U-Boot] [PATCH v2 1/9] dm: at91: Correct text base for snapper9260

2014-10-29 Thread Simon Glass
The value should be 0x21f0. Fix it. Signed-off-by: Simon Glass --- Changes in v2: - Use a text base of 0x21f0 include/configs/snapper9260.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/snapper9260.h b/include/configs/snapper9260.h index 1ebee71..6

Re: [U-Boot] putc

2014-10-29 Thread Simon Glass
Hi Martin, On 28 October 2014 07:23, Martin Dorwig wrote: > Hello, > after updating u-boot from git v2014.10 > i just noticed that my standalone application outputs garbage using putc. > after some investigation i found that the gd->jt[XF_putc] is assigned a > dev->putc pointer in "common/consol

Re: [U-Boot] Sandbox support for extra features

2014-10-29 Thread Simon Glass
Hi Jagan, On 28 October 2014 09:15, Jagan Teki wrote: > Hi Simon, > > On 28 October 2014 06:35, Simon Glass wrote: >> Hi Jagan, >> >> Now that SPI has support for 2- and 4-bit, fast/slow mode, etc., >> sandbox has fallen behind. I wonder if we could add these features to >> sandbox without much

Re: [U-Boot] u-boot, fsl_espi.c driver

2014-10-29 Thread Joakim Tjernlund
"mingkai...@freescale.com" wrote on 2014/10/28 12:17:24: > > Hi Joakim and York, Hi yourself, been travelling or a few days. > > I apologize for the delayed response and thanks for your catch up, Joakim > In order to get a higher transfer speed, the eSPI controller was designed to transfer

[U-Boot] [U-boot] [Patch] net: phy: marvell: add errata w/a for 88E151* chips

2014-10-29 Thread Ivan Khoronzhuk
From: Hao Zhang As per Marvell Release Notes - Alaska 88E1510/88E1518/88E1512/88E1514 Rev A0, Errata Section 3.1 Marvell PHY has an errata which requires that certain registers get written in order to restart autonegotiation. Signed-off-by: Hao Zhang Signed-off-by: Ivan Khoronzhuk --- drivers

[U-Boot] [PATCH] MIPS: refactor setting of compiler options

2014-10-29 Thread Daniel Schwierzeck
Refactor and unify all compiler settings in arch/mips/config.mk. Also add tune flags for each supported CPU type. Signed-off-by: Daniel Schwierzeck --- This patch depends on the patch series "MIPS Kconfig updates" arch/mips/config.mk| 42 +-

Re: [U-Boot] Buildman cookbook

2014-10-29 Thread Daniel Schwierzeck
Hi Simon, >> >> - I work a lot with local branches, and regularly run into this: >> >> -> tools/buildman/buildman -n -b tq-generic-board >> No section: 'make-flags' >> Branch 'tq-generic-board' not found or has no upstream >> >> Can we not avoid this? Or add a default to "master"? > > I

[U-Boot] [PATCH] MIPS: add .padding section to linker script

2014-10-29 Thread Daniel Schwierzeck
Commit 79fd7e649e287228a1445820a72f7dd33baedb96 MIPS: always keep all sections in u-boot ELF binary. Always keep all sections in u-boot ELF binary. Move all unneeded sections after _end to avoid allocating space in the final binary. Also remove .deadcode section which is now obsol

[U-Boot] [PATCH 1/2][v2] powerpc/mpc85xx:Put errata number for T104x NAND boot issue

2014-10-29 Thread Prabhakar Kushwaha
When device is configured to load RCW from NAND flash IFC_A[16:31] are driven low after RCW loading. Hence Devices connected on IFC_CS[1:7] and using IFC_A[16:31] lines are not accessible. Workaround is already in-place. Put the errata number to adhere errata handling framework. Signed-off-by: Pr

[U-Boot] [PATCH v2] zynq: Use GPLed files for SPL

2014-10-29 Thread Soren Brinkmann
The latest Xilinx tools generate ps7_init files that are explicitly available under GPL. Change the makefile to allow drop in of those files for building the SPL. Signed-off-by: Soren Brinkmann Acked-by: Jagannadha Sutradharudu Teki --- This works, but I wonder whether there is a more elegant w

[U-Boot] [PATCH] arm: imx: make bmode command work with SPL/U-Boot combo

2014-10-29 Thread Nikita Kiryanov
The bmode command forces the SoC to use a specific boot device by writing its boot mode into SRC_GPR9, and notifying the SoC of the change using SRC_GPR10[28] bit: if the bit is on, bootROM uses the value in SRC_GPR9 instead of SRC_SMBR1 to determine the boot device. SPL on the other hand is obliv

[U-Boot] [PATCH 2/2][v2] board/t104xrdb: Conditional workaround of errata A-008044

2014-10-29 Thread Prabhakar Kushwaha
Workaround of Errata A-008044 was implemented without errata number and it is enabled by default. Errata A-008044 is only valid for T1040 Rev 1.0. So put errata number and make it conditional. Signed-off-by: Prabhakar Kushwaha --- Changes for v2: - updated CONFIG_A08044_WORKAROUND to CO

Re: [U-Boot] MKIMAGE u-boot.imx build error

2014-10-29 Thread Stefano Babic
Hi Dave, On 29/10/2014 14:52, DaveKucharczyk wrote: > I was able to build using V=1 and noticed the entry point, > CONFIG_SYS_TEXT_BASE, wasn't defined in include/configs/mx53_xxx.h file. We > previously had it defined in /board/freescale/mx53_xxx/config.mk. Now > everything builds without error.

Re: [U-Boot] Flat Image Tree and boot arguments

2014-10-29 Thread Stephen Warren
On 10/29/2014 08:22 AM, Weiß Christoph wrote: Dear all, I am trying to get my own build of U-Boot to boot Linux on a Jetson TK1 board. As we are pushing for verified boot I am using the Flat Image Tree (unifying kernel image, device tree blob, ...) to describe my system. U-Boot can load the I

[U-Boot] [PATCH v3 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-29 Thread Suriyan Ramasami
This change adds support for enabling the USB host features of the board. This includes the USB3503A hub and the SMC LAN9730 ethernet controller as well. Signed-off-by: Suriyan Ramasami --- Changes in v3: * removed set_usb_ethaddr() and related code as the GUID registers do not seem to be doc

[U-Boot] [PATCH v3 2/3] arm: odroid: enable/disable usb host phy for exynos4412

2014-10-29 Thread Suriyan Ramasami
Enable/disable the usb host phy on the odroid U/X2 boards which are based on the Exynos4412 SOC. Signed-off-by: Suriyan Ramasami --- Changes in v3: * Minkyu - do not mix cpu_is... and proid_is... Changes in v2: * Jaehoon - separate this patch out Changes in v1: * First try arch/arm/cpu/armv

[U-Boot] [PATCH v3 1/3] arm: odroid: pmic77686: allow buck voltage settings

2014-10-29 Thread Suriyan Ramasami
Allow to set the buck voltage for the max77686. This will be used to reset the SMC LAN9730 ethernet on the odroids. Signed-off-by: Suriyan Ramasami --- Changes in v3: * Correct ldo and buck validation logic * Jaehoon/Przemyslaw - Use negative errno values for error condistions * Albert - its bu

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-29 Thread Stefan Roese
Hi Jagan! On 29.10.2014 16:39, Jagan Teki wrote: diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c +int spi_post_bind(struct udevice *dev) +{ + /* Scan the bus for devices */ + return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); +} SoCFPGA curren

Re: [U-Boot] [PATCH V2 2/4] arm: mx6: cm_fx6: detect 1GB DRAM correctly on solo

2014-10-29 Thread Nikita Kiryanov
Forgot the changelog: On 29/10/14 17:56, Nikita Kiryanov wrote: The 1GB DRAM configuration on mx6 solo uses 2 chip selects, but the code tests 1GB DRAM configuration as if it is all present on one chip select, and thus cannot see the full range of available memory. Refactor the check to detect

Re: [U-Boot] [PATCH V2 1/4] arm: mx6: cm_fx6: change issd gpio order

2014-10-29 Thread Nikita Kiryanov
Forgot the changelog: On 29/10/14 17:56, Nikita Kiryanov wrote: Change the order in which GPIOs are toggled in SATA init sequence to accomodate both SanDisk and Phison SSDs. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Stefano Babic --- Changes in V2: - No changes. board

Re: [U-Boot] [PATCH V2 4/4] arm: mx6: cm_fx6: power down sata on OS boot

2014-10-29 Thread Otavio Salvador
On Wed, Oct 29, 2014 at 1:56 PM, Nikita Kiryanov wrote: > If sata is used by U-Boot, the Linux kernel fails to detect the ssd > correctly afterwards. Power off sata on OS boot so that Linux will have > a clean state to work with. > > Signed-off-by: Nikita Kiryanov > Cc: Igor Grinberg > Cc: Stefa

Re: [U-Boot] [PATCH V2 3/4] common: introduce board_preboot_os hook

2014-10-29 Thread Otavio Salvador
On Wed, Oct 29, 2014 at 1:56 PM, Nikita Kiryanov wrote: > Introduce board specific function board_preboot_os() to allow for board > specific config before we boot. > > Signed-off-by: Nikita Kiryanov > Cc: Igor Grinberg > Cc: Stefano Babic > Cc: Tom Rini > Cc: Jeroen Hofstee > Cc: Otavio Salva

[U-Boot] [PATCH V2 0/4] cm-fx6 updates

2014-10-29 Thread Nikita Kiryanov
This patchset contains a bug fix for DRAM detection, support for Phison SSD, and a new preboot hook. Cc: Igor Grinberg Cc: Stefano Babic Changes in V2: - Added board_preboot_os to bootm.h - Split "common: introduce board_preboot_os hook" into 2 patches Nikita Kiryanov (4): ar

[U-Boot] [PATCH V2 2/4] arm: mx6: cm_fx6: detect 1GB DRAM correctly on solo

2014-10-29 Thread Nikita Kiryanov
The 1GB DRAM configuration on mx6 solo uses 2 chip selects, but the code tests 1GB DRAM configuration as if it is all present on one chip select, and thus cannot see the full range of available memory. Refactor the check to detect 1GB DRAM correctly. Signed-off-by: Nikita Kiryanov Cc: Igor Grinb

[U-Boot] [PATCH V2 1/4] arm: mx6: cm_fx6: change issd gpio order

2014-10-29 Thread Nikita Kiryanov
Change the order in which GPIOs are toggled in SATA init sequence to accomodate both SanDisk and Phison SSDs. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Stefano Babic --- board/compulab/cm_fx6/cm_fx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/compulab

[U-Boot] [PATCH V2 3/4] common: introduce board_preboot_os hook

2014-10-29 Thread Nikita Kiryanov
Introduce board specific function board_preboot_os() to allow for board specific config before we boot. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Cc: Jeroen Hofstee Cc: Otavio Salvador --- Changes in V2: - Added board_preboot_os to bootm.h

  1   2   >