Re: [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade

2015-05-07 Thread Markus Niebel
Hello Tim, Am 07.05.2015 um 17:55 schrieb Tim Harvey: > On Tue, Apr 28, 2015 at 10:31 AM, Tim Harvey wrote: >> On Tue, Apr 28, 2015 at 10:11 AM, Stefan Roese wrote: >>> Hi Tim, >>> >>> On 28.04.2015 17:44, Tim Harvey wrote: The MX6 has OTP bits specifying the processor speed grade as w

Re: [U-Boot] [PATCH v7 00/17] Add PSCI support for Jetson TK1/Tegra124 + CNTFRQ fix

2015-05-07 Thread Jan Kiszka
On 2015-04-21 07:18, Jan Kiszka wrote: > Changes in v7: > - rebased over master > - fixed issue that prevented secure boot with all cores >=> replace ap_pm_init with psci_board_init hook > - enable CONFIG_ARMV7_BOOT_SEC_DEFAULT for tegra to avoid problems with >default config of current

Re: [U-Boot] [PATCH 17/24] sandbox: spi: Add newline to printf() in sandbox_sf_probe

2015-05-07 Thread Jagan Teki
On 5 May 2015 at 02:36, Joe Hershberger wrote: > Hi Simon, > > On Mon, May 4, 2015 at 12:31 PM, Simon Glass wrote: >> This printf() should have a newline at the end. Add it. >> >> Signed-off-by: Simon Glass >> --- > Reviewed-by: Joe Hershberger Reviewed-by: Jagan Teki thanks! -- Jagan Teki,

Re: [U-Boot] [PATCH 03/24] bootstage: Add IDs for SPI flash reading and decompression

2015-05-07 Thread Jagan Teki
On 5 May 2015 at 02:27, Joe Hershberger wrote: > Hi Simon, > > On Mon, May 4, 2015 at 12:30 PM, Simon Glass wrote: >> We maintain an accumulator for time spent reading from SPI flash, since >> this can be significant on some platforms. Also add one for decompression >> time. >> >> Signed-off-by:

Re: [U-Boot] [PATCH v1 1/2] cmd_sf: Add command "sf info" to show current device info

2015-05-07 Thread Jagan Teki
On 8 May 2015 at 08:14, haikun.w...@freescale.com wrote: > On 5/7/2015 7:44 PM, Jagan Teki wrote: >> On 6 May 2015 at 02:30, Simon Glass wrote: >>> On 5 May 2015 at 05:37, haikun.w...@freescale.com >>> wrote: On 5/1/2015 9:54 AM, Simon Glass wrote: > Hi, > > On 29 April 2015 at

Re: [U-Boot] [PATCH v1 3/4] autoboot.c: Move config options to Kconfig

2015-05-07 Thread Masahiro Yamada
Hi Stefan, 2015-05-08 8:51 GMT+09:00 Simon Glass : > Hi Stefan, > > On 7 May 2015 at 06:13, Stefan Roese wrote: >> This patch moves the following config options to Kconfig: >> >> CONFIG_AUTOBOOT_KEYED >> CONFIG_AUTOBOOT_PROMPT >> CONFIG_AUTOBOOT_DELAY_STR >> CONFIG_AUTOBOOT_STOP_STR >> AUTOBOOT_K

Re: [U-Boot] [PATCH v2 0/9] PSCI v0.2 framework for ARMv8

2015-05-07 Thread Arnab Basu
Hi Bhupesh On Tue, May 5, 2015 at 2:47 PM, bhupesh.sha...@freescale.com < bhupesh.sha...@freescale.com> wrote: > Hi Albert, > > > -Original Message- > > From: Arnab Basu [mailto:arnab_b...@rocketmail.com] > > Apologies for the long delay, this is v2 of the series of patches that > > creat

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

2015-05-07 Thread Simon Glass
Hi Tom, This includes the real-time-clock uclass, a driver model test suite speed-up and part of Han's USB work (the rest need to wait for some patch respins). The following changes since commit 905e8f9e53766e606bd4a0ed46d804889e613f32: Prepare v2015.07-rc1 (2015-05-05 19:52:15 -0400) are av

Re: [U-Boot] [PATCH v1 1/2] cmd_sf: Add command "sf info" to show current device info

2015-05-07 Thread haikun.w...@freescale.com
On 5/7/2015 7:44 PM, Jagan Teki wrote: > On 6 May 2015 at 02:30, Simon Glass wrote: >> On 5 May 2015 at 05:37, haikun.w...@freescale.com >> wrote: >>> On 5/1/2015 9:54 AM, Simon Glass wrote: Hi, On 29 April 2015 at 04:40, Haikun Wang wrote: > Add command "sf info" to show the

Re: [U-Boot] [PATCH v4 00/26] Improve env var handling for net stack

2015-05-07 Thread Simon Glass
Hi Joe, On 7 May 2015 at 03:48, Joe Hershberger wrote: > This includes moving CONFIG_REGEX to Kconfig and adding support for > regex to the env_attr lists (when CONFIG_REGEX is enabled). > > This allows ethaddrs to all be checked for access and format by default. > Also use callbacks to keep netw

Re: [U-Boot] [PATCH v1 3/4] autoboot.c: Move config options to Kconfig

2015-05-07 Thread Simon Glass
Hi Stefan, On 7 May 2015 at 06:13, Stefan Roese wrote: > This patch moves the following config options to Kconfig: > > CONFIG_AUTOBOOT_KEYED > CONFIG_AUTOBOOT_PROMPT > CONFIG_AUTOBOOT_DELAY_STR > CONFIG_AUTOBOOT_STOP_STR > AUTOBOOT_KEYED_CTRLC > > Signed-off-by: Stefan Roese > Cc: Masahiro Yamad

Re: [U-Boot] [PATCH v1 2/4] autoboot.c: Remove CONFIG_AUTOBOOT_STOP_STR2 and CONFIG_AUTOBOOT_DELAY_STR2

2015-05-07 Thread Simon Glass
On 7 May 2015 at 06:13, Stefan Roese wrote: > > These defines for a 2nd autoboot stop and delay string are nearly unused. Only > sc3 defines CONFIG_AUTOBOOT_DELAY_STR2. And a patch to remove this most likely > unmaintained board is also posted to the list. > > By removing these defines the code wi

Re: [U-Boot] switching to single .config configuration issues

2015-05-07 Thread Simon Glass
+Tom Hi Masahiro, On 6 May 2015 at 22:04, Masahiro Yamada wrote: > Hi. > > 2015-05-05 20:16 GMT+09:00 Yehuda Yitschak : >> Hi Simon >> >>> -Original Message- >>> From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass >>> Sent: Tuesday, May 05, 2015 6:28 >>> To: Yehuda Yi

[U-Boot] [PULL] u-boot-socfpga/master

2015-05-07 Thread Marek Vasut
The following changes since commit 905e8f9e53766e606bd4a0ed46d804889e613f32: Prepare v2015.07-rc1 (2015-05-05 19:52:15 -0400) are available in the git repository at: git://git.denx.de/u-boot-socfpga.git HEAD for you to fetch changes up to 57cc4e64c13bc5f42cb5e8572d2c46e25cf7aea1: git-mai

Re: [U-Boot] [PATCH] git-mailrc: add Dinh Nguyen as a contact for SoCFPGA

2015-05-07 Thread Marek Vasut
On Friday, May 08, 2015 at 12:37:12 AM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Signed-off-by: Dinh Nguyen Applied, thanks! Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/list

[U-Boot] [PATCH] git-mailrc: add Dinh Nguyen as a contact for SoCFPGA

2015-05-07 Thread dinguyen
From: Dinh Nguyen Signed-off-by: Dinh Nguyen --- doc/git-mailrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/git-mailrc b/doc/git-mailrc index f0470e6..88fb3f9 100644 --- a/doc/git-mailrc +++ b/doc/git-mailrc @@ -64,7 +64,7 @@ alias rmobileuboot, iwamatsu ali

Re: [U-Boot] [PATCH 2/2] menu: Return an error code if Ctrl-C is pressed

2015-05-07 Thread Simon Glass
Hi Tuomas, On 7 May 2015 at 12:29, Tuomas Tynkkynen wrote: > Previously, if the menu activated by the 'sysboot' command gets > interrupted by a Ctrl-C, the behaviour is as if the menu timeout was > reached - i.e. boot the default menu entry. This patch fixes that > so a Ctrl-C now terminates the

[U-Boot] [PATCH 2/5] moveconfig: Add a mapping for the arc cross-compiler

2015-05-07 Thread Joe Hershberger
The arc architecture is supported by U-Boot, so add a mapping here for it as well. Signed-off-by: Joe Hershberger --- tools/moveconfig.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 30dc4f6..c81f32c 100755 --- a/tools/moveconfig.py +++ b/t

[U-Boot] [PATCH 4/5] moveconfig: Error if missing the include/autoconf.mk

2015-05-07 Thread Joe Hershberger
The main image autoconf.mk certainly had better exist. I'm not sure about SPL and TPL, but at least this one. Check for this and error if missing. Signed-off-by: Joe Hershberger --- tools/moveconfig.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/moveconfig.py

[U-Boot] [PATCH 5/5] moveconfig: Always run savedefconfig on the moved config

2015-05-07 Thread Joe Hershberger
This will ensure that the order of the defconfig entries will always match that of the Kconfig files. After one slightly painful (but still early in the process) pass over all boards, this should keep the defconfigs clean from here on. Signed-off-by: Joe Hershberger --- tools/moveconfig.py | 24

[U-Boot] [PATCH 1/5] moveconfig: Actually build autoconf.mk

2015-05-07 Thread Joe Hershberger
The existing target won't actually build the needed .mk file that is expected by the rest of the script. It seems that silentoldconfig does not actually cause this to be built any longer. Signed-off-by: Joe Hershberger --- This patch is based on: "Don't apply: tools: add a tool to move automatic

[U-Boot] [PATCH 3/5] moveconfig: Continue moving even if one board fails

2015-05-07 Thread Joe Hershberger
Some compilers are hard to come by or have so few boards they are not worth messing with for this tool. Provide a list that need manual intervention and continue moving the bulk of boards. Signed-off-by: Joe Hershberger --- tools/moveconfig.py | 29 +++-- 1 file changed,

Re: [U-Boot] [PATCH v2 0/6] ARM: socfpga: refactoring, move files to arch/arm/mach-socfpga

2015-05-07 Thread Marek Vasut
On Thursday, May 07, 2015 at 04:17:56 PM, Dinh Nguyen wrote: > On 5/7/15 6:06 AM, Marek Vasut wrote: > > On Thursday, May 07, 2015 at 01:03:28 PM, Pavel Machek wrote: > >> On Thu 2015-05-07 12:19:38, Marek Vasut wrote: > >>> On Thursday, May 07, 2015 at 06:15:51 AM, Masahiro Yamada wrote: > Hi

Re: [U-Boot] [PATCH v1 4/4] autoboot.c: Add feature to stop autobooting via SHA256 encrypted password

2015-05-07 Thread Magnus Lilja
Hi Stefan On 7 May 2015 at 14:13, Stefan Roese wrote: > This patch adds the feature to only stop the autobooting, and therefor > boot into the U-Boot prompt, when the input string / password matches > a values that is encypted via a SHA256 hash and saved in the environment. > > This feature is en

[U-Boot] [PATCH 2/2] menu: Return an error code if Ctrl-C is pressed

2015-05-07 Thread Tuomas Tynkkynen
Previously, if the menu activated by the 'sysboot' command gets interrupted by a Ctrl-C, the behaviour is as if the menu timeout was reached - i.e. boot the default menu entry. This patch fixes that so a Ctrl-C now terminates the command as the user would expect. Signed-off-by: Tuomas Tynkkynen -

[U-Boot] [PATCH 1/2] pxe: Fix crash if 'sysboot' is run without args

2015-05-07 Thread Tuomas Tynkkynen
Previously, a NULL pointer dereference would occur if the 'sysboot' command is executed without any arguments. Signed-off-by: Tuomas Tynkkynen --- common/cmd_pxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git common/cmd_pxe.c common/cmd_pxe.c index 4cbb2b1..abf0941 100644 --

Re: [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade

2015-05-07 Thread Christian Gmeiner
2015-05-07 17:55 GMT+02:00 Tim Harvey : > On Tue, Apr 28, 2015 at 10:31 AM, Tim Harvey wrote: >> On Tue, Apr 28, 2015 at 10:11 AM, Stefan Roese wrote: >>> Hi Tim, >>> >>> On 28.04.2015 17:44, Tim Harvey wrote: The MX6 has OTP bits specifying the processor speed grade as well as tem

Re: [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade

2015-05-07 Thread Stefano Babic
Hi Tim, On 07/05/2015 17:55, Tim Harvey wrote: > Stefano, > > I've cc'd all the maintainers I could find of MX6 based boards for > comment on adding this text to the mx6 print_cpuinfo. I would like to > see some ack/review from them otherwise I would think silence is > considered a thumbs up ;)

Re: [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade

2015-05-07 Thread Stefan Roese
On 07.05.2015 17:55, Tim Harvey wrote: On Tue, Apr 28, 2015 at 10:31 AM, Tim Harvey wrote: On Tue, Apr 28, 2015 at 10:11 AM, Stefan Roese wrote: Hi Tim, On 28.04.2015 17:44, Tim Harvey wrote: The MX6 has OTP bits specifying the processor speed grade as well as temperature grade. This seri

Re: [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade

2015-05-07 Thread Tim Harvey
On Tue, Apr 28, 2015 at 10:31 AM, Tim Harvey wrote: > On Tue, Apr 28, 2015 at 10:11 AM, Stefan Roese wrote: >> Hi Tim, >> >> On 28.04.2015 17:44, Tim Harvey wrote: >>> >>> The MX6 has OTP bits specifying the processor speed grade as well as >>> temperature grade. >>> >>> This series adds function

Re: [U-Boot] [PATCH] tools/kwbimage.c: Correct header size for SPI boot

2015-05-07 Thread Luka Perkov
Hi Stefan, On Thu, May 07, 2015 at 04:52:29PM +0200, Stefan Roese wrote: > On 17.03.2015 10:24, Stefan Roese wrote: > >On 16.03.2015 15:58, Kevin Smith wrote: > >>If defined, the macro CONFIG_SYS_SPI_U_BOOT_OFFS allows a board > >>to specify the offset of the payload image into the kwb image > >>f

Re: [U-Boot] [PATCH] tools/kwbimage.c: Correct header size for SPI boot

2015-05-07 Thread Stefan Roese
On 17.03.2015 10:24, Stefan Roese wrote: On 16.03.2015 15:58, Kevin Smith wrote: If defined, the macro CONFIG_SYS_SPI_U_BOOT_OFFS allows a board to specify the offset of the payload image into the kwb image file. This value was being used to locate the image, but was not used in the "header siz

Re: [U-Boot] [PATCH v2 0/6] ARM: socfpga: refactoring, move files to arch/arm/mach-socfpga

2015-05-07 Thread Dinh Nguyen
On 5/7/15 6:06 AM, Marek Vasut wrote: > On Thursday, May 07, 2015 at 01:03:28 PM, Pavel Machek wrote: >> On Thu 2015-05-07 12:19:38, Marek Vasut wrote: >>> On Thursday, May 07, 2015 at 06:15:51 AM, Masahiro Yamada wrote: Hi Marek, >>> >>> Hi! >>> 2015-05-07 12:25 GMT+09:00 Marek Vasut :

[U-Boot] [PATCH v2 6/6] x86: Update README.x86 for QEMU support

2015-05-07 Thread Bin Meng
Document how to build and test U-Boot with QEMU. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: None doc/README.x86 | 65 +++--- 1 file changed, 48 insertions(+), 17 deletions(-) diff --git a/doc/README.x86 b/doc/README.x

[U-Boot] [PATCH v2 5/6] x86: Change coreboot default build configuration to QEMU

2015-05-07 Thread Bin Meng
QEMU is much easier for us test booting U-Boot as a coreboot payload than having a real board like chromebook_link. Signed-off-by: Bin Meng Acked-by: Simon Glass Tested-by: Simon Glass --- Changes in v2: None board/coreboot/coreboot/Kconfig | 6 +++--- configs/coreboot-x86_defconfig | 1 +

[U-Boot] [PATCH v2 1/6] pci: Move pci_hose_phys_to_bus() to pci_common.c

2015-05-07 Thread Bin Meng
pci_hose_phys_to_bus() is needed by several drivers. Move it to pci_common.c to avoid a broken build when CONFIG_DM_PCI is on. Signed-off-by: Bin Meng --- Changes in v2: - Drop the patch to wrap CONFIG_E1000 driver with CONFIG_DM_PCI - New patch to move pci_hose_phys_to_bus() to pci_common.c

[U-Boot] [PATCH v2 4/6] x86: Set CONFIG_NR_DRAM_BANKS to 8 and move it to x86-common.h

2015-05-07 Thread Bin Meng
Some x86 boards set CONFIG_NR_DRAM_BANKS to 1, which causes incorrect DRAM size printed when booting from coreboot, like this: CPU: x86, vendor Intel, device 663h DRAM: 636 KiB Using default environment Change it to 8 which should be enough for both coreboot and bare case

[U-Boot] [PATCH v2 3/6] x86: Make QEMU the default vendor

2015-05-07 Thread Bin Meng
Now that we have QEMU support, make it the default vendor in the 'make menuconfig' screen. Signed-off-by: Bin Meng Acked-by: Simon Glass Tested-by: Simon Glass --- Changes in v2: None arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch

[U-Boot] [PATCH v2 2/6] x86: Support QEMU x86 targets

2015-05-07 Thread Bin Meng
This commit introduces the initial U-Boot support for QEMU x86 targets. U-Boot can boot from coreboot as a payload, or directly without coreboot. Signed-off-by: Bin Meng Acked-by: Simon Glass Tested-by: Simon Glass --- Changes in v2: None arch/x86/Kconfig | 5 +++ arch/

Re: [U-Boot] [PATCH] ppc: xilinx: Remove ancient ppc405 and ppc440 platforms

2015-05-07 Thread Michal Simek
Hi Stefan On 05/07/2015 02:39 PM, Stefan Roese wrote: > Hi Michal, > > On 07.05.2015 14:34, Michal Simek wrote: >> Remove ancient Xilinx platforms. >> >> Signed-off-by: Michal Simek >> --- >> >> arch/powerpc/cpu/ppc4xx/Kconfig| 20 >> arch/powerpc/cpu/ppc4xx/Makefile

Re: [U-Boot] [PATCH] ppc: xilinx: Remove ancient ppc405 and ppc440 platforms

2015-05-07 Thread Stefan Roese
Hi Michal, On 07.05.2015 14:34, Michal Simek wrote: Remove ancient Xilinx platforms. Signed-off-by: Michal Simek --- arch/powerpc/cpu/ppc4xx/Kconfig| 20 arch/powerpc/cpu/ppc4xx/Makefile | 3 - arch/powerpc/cpu/ppc4xx/cpu.c

[U-Boot] [PATCH] ppc: xilinx: Remove ancient ppc405 and ppc440 platforms

2015-05-07 Thread Michal Simek
Remove ancient Xilinx platforms. Signed-off-by: Michal Simek --- arch/powerpc/cpu/ppc4xx/Kconfig| 20 arch/powerpc/cpu/ppc4xx/Makefile | 3 - arch/powerpc/cpu/ppc4xx/cpu.c | 4 - arch/powerpc/cpu/ppc4xx/speed.c

Re: [U-Boot] [PATCH v1 1/4] Kconfig: Enable usage of escape char '\' in string values

2015-05-07 Thread Masahiro Yamada
Hi Stefan, 2015-05-07 21:46 GMT+09:00 Stefan Roese : > Hi Masahiro, > > > On 07.05.2015 14:41, Masahiro Yamada wrote: >> >> 2015-05-07 21:13 GMT+09:00 Stefan Roese : >>> >>> I might have missed something, but I failed to use the escape char '\' >>> in strings. To pass a printf format string like "

Re: [U-Boot] [PATCH v1 1/4] Kconfig: Enable usage of escape char '\' in string values

2015-05-07 Thread Stefan Roese
Hi Masahiro, On 07.05.2015 14:41, Masahiro Yamada wrote: 2015-05-07 21:13 GMT+09:00 Stefan Roese : I might have missed something, but I failed to use the escape char '\' in strings. To pass a printf format string like "foo %d bar\n" via Kconfig to the code. Right now its not possible to use th

Re: [U-Boot] [PATCH v1 1/4] Kconfig: Enable usage of escape char '\' in string values

2015-05-07 Thread Masahiro Yamada
Hi Stefan, 2015-05-07 21:13 GMT+09:00 Stefan Roese : > I might have missed something, but I failed to use the escape char '\' > in strings. To pass a printf format string like "foo %d bar\n" via > Kconfig to the code. > > Right now its not possible to use the escape character '\' in Kconfig > stri

[U-Boot] [PATCH v1 0/4] Add SHA256 encrypted stop string for autobooting

2015-05-07 Thread Stefan Roese
The main task for this patch series is to add the new feature to abort autobooting via a SHA256 encrypted password. For this, some of the old autobooting related config macros have been moved to Kconfig. This was a bit more complicated, since Kconfig currently apparently doesn't support using esca

[U-Boot] [PATCH v1 3/4] autoboot.c: Move config options to Kconfig

2015-05-07 Thread Stefan Roese
This patch moves the following config options to Kconfig: CONFIG_AUTOBOOT_KEYED CONFIG_AUTOBOOT_PROMPT CONFIG_AUTOBOOT_DELAY_STR CONFIG_AUTOBOOT_STOP_STR AUTOBOOT_KEYED_CTRLC Signed-off-by: Stefan Roese Cc: Masahiro Yamada Cc: Simon Glass --- common/Kconfig | 64 +++

Re: [U-Boot] [PATCH v1 1/2] cmd_sf: Add command "sf info" to show current device info

2015-05-07 Thread Jagan Teki
On 6 May 2015 at 02:30, Simon Glass wrote: > On 5 May 2015 at 05:37, haikun.w...@freescale.com > wrote: >> On 5/1/2015 9:54 AM, Simon Glass wrote: >>> Hi, >>> >>> On 29 April 2015 at 04:40, Haikun Wang wrote: Add command "sf info" to show the information of the current SPI flash devic

[U-Boot] [PATCH v1 4/4] autoboot.c: Add feature to stop autobooting via SHA256 encrypted password

2015-05-07 Thread Stefan Roese
This patch adds the feature to only stop the autobooting, and therefor boot into the U-Boot prompt, when the input string / password matches a values that is encypted via a SHA256 hash and saved in the environment. This feature is enabled by defined these config options: CONFIG_AUTOBOOT_KEYED

[U-Boot] [PATCH v1 2/4] autoboot.c: Remove CONFIG_AUTOBOOT_STOP_STR2 and CONFIG_AUTOBOOT_DELAY_STR2

2015-05-07 Thread Stefan Roese
These defines for a 2nd autoboot stop and delay string are nearly unused. Only sc3 defines CONFIG_AUTOBOOT_DELAY_STR2. And a patch to remove this most likely unmaintained board is also posted to the list. By removing these defines the code will become cleaner and moving the remaining compile optio

[U-Boot] [PATCH v1 1/4] Kconfig: Enable usage of escape char '\' in string values

2015-05-07 Thread Stefan Roese
I might have missed something, but I failed to use the escape char '\' in strings. To pass a printf format string like "foo %d bar\n" via Kconfig to the code. Right now its not possible to use the escape character '\' in Kconfig string values correctly to e.g. set this string value "test output\n"

Re: [U-Boot] [PATCH 3/5] x86: qemu: Wrap E1000 driver only when DM_PCI is not used

2015-05-07 Thread Bin Meng
Hi Simon, On Tue, May 5, 2015 at 11:43 PM, Simon Glass wrote: > Hi Bin, > > On 5 May 2015 at 09:35, Bin Meng wrote: >> Hi Simon, >> >> On Tue, May 5, 2015 at 11:24 PM, Bin Meng wrote: >>> E1000 driver has not been converted to driver model, so wrap it >>> only when DM_PCI is not used. >>> >>> S

Re: [U-Boot] [PATCH] ppc4xx: Remove sc3 board

2015-05-07 Thread Heiko Schocher
Hello Stefan, Am 07.05.2015 13:00, schrieb Stefan Roese: As this board seems to be unmaintained for quite some time, and its not moved to the generic board ingrastructure, lets remove it. This will also enable us to remove the CONFIG_AUTOBOOT_DELAY_STR2 and CONFIG_AUTOBOOT_STOP_STR2 macros, as

Re: [U-Boot] [PATCH v2 0/6] ARM: socfpga: refactoring, move files to arch/arm/mach-socfpga

2015-05-07 Thread Marek Vasut
On Thursday, May 07, 2015 at 01:03:28 PM, Pavel Machek wrote: > On Thu 2015-05-07 12:19:38, Marek Vasut wrote: > > On Thursday, May 07, 2015 at 06:15:51 AM, Masahiro Yamada wrote: > > > Hi Marek, > > > > Hi! > > > > > 2015-05-07 12:25 GMT+09:00 Marek Vasut : > > > > On Thursday, May 07, 2015 at 0

Re: [U-Boot] [PATCH v2 0/6] ARM: socfpga: refactoring, move files to arch/arm/mach-socfpga

2015-05-07 Thread Pavel Machek
On Thu 2015-05-07 12:19:38, Marek Vasut wrote: > On Thursday, May 07, 2015 at 06:15:51 AM, Masahiro Yamada wrote: > > Hi Marek, > > Hi! > > > 2015-05-07 12:25 GMT+09:00 Marek Vasut : > > > On Thursday, May 07, 2015 at 04:34:27 AM, Masahiro Yamada wrote: > > >> Hi Marek, > > > > > > Hi, > > > >

[U-Boot] [PATCH] ppc4xx: Remove sc3 board

2015-05-07 Thread Stefan Roese
As this board seems to be unmaintained for quite some time, and its not moved to the generic board ingrastructure, lets remove it. This will also enable us to remove the CONFIG_AUTOBOOT_DELAY_STR2 and CONFIG_AUTOBOOT_STOP_STR2 macros, as this sc3 board is the only one using one of this macros. A r

[U-Boot] [PATCH] mpc85xx/t104x, t102x: Update CPC debug register value in PBI commands

2015-05-07 Thread Priyanka Jain
Update PBI command in pbi_cfg files to keep register bit to default reset value while configuring CPC as SRAM Signed-off-by: Priyanka Jain --- board/freescale/t102xqds/t1024_pbi.cfg |2 +- board/freescale/t102xrdb/t1024_pbi.cfg |2 +- board/freescale/t1040qds/t1040_pbi.cfg |2 +- boa

Re: [U-Boot] [PATCH v2 0/6] ARM: socfpga: refactoring, move files to arch/arm/mach-socfpga

2015-05-07 Thread Marek Vasut
On Thursday, May 07, 2015 at 06:15:51 AM, Masahiro Yamada wrote: > Hi Marek, Hi! > 2015-05-07 12:25 GMT+09:00 Marek Vasut : > > On Thursday, May 07, 2015 at 04:34:27 AM, Masahiro Yamada wrote: > >> Hi Marek, > > > > Hi, > > > >> 2015-04-22 2:50 GMT+09:00 Marek Vasut : > >> > On Tuesday, April 2

[U-Boot] [PATCH v4 04/26] kconfig: Move REGEX to Kconfig

2015-05-07 Thread Joe Hershberger
Having this as a Kconfig allows it to be a dependent feature. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass Acked-by: Stefan Roese --- Changes in v4: None Changes in v3: None Changes in v2: None configs/acadia_defconfig | 1 + configs/bamboo_defconfig | 1 + con

[U-Boot] [PATCH v4 00/26] Improve env var handling for net stack

2015-05-07 Thread Joe Hershberger
This includes moving CONFIG_REGEX to Kconfig and adding support for regex to the env_attr lists (when CONFIG_REGEX is enabled). This allows ethaddrs to all be checked for access and format by default. Also use callbacks to keep network stack variables up to date instead of polling them on each cal

Re: [U-Boot] [PATCH v2 0/6] ARM: socfpga: refactoring, move files to arch/arm/mach-socfpga

2015-05-07 Thread Masahiro Yamada
Hi Marek, 2015-05-07 12:25 GMT+09:00 Marek Vasut : > On Thursday, May 07, 2015 at 04:34:27 AM, Masahiro Yamada wrote: >> Hi Marek, > > Hi, > >> 2015-04-22 2:50 GMT+09:00 Marek Vasut : >> > On Tuesday, April 21, 2015 at 01:38:17 PM, Masahiro Yamada wrote: >> >> Changes in v2: >> >> - Rebase on th

[U-Boot] [PATCH v4 24/26] test: env: Add test for verifying env attrs

2015-05-07 Thread Joe Hershberger
Add a test of the env_attr_lookup() function. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: -New for version 2 test/env/Makefile | 1 + test/env/attr.c | 62 +++ 2 files

[U-Boot] [PATCH v4 26/26] sandbox: Enable env unit tests

2015-05-07 Thread Joe Hershberger
Enable the new env unit tests on sandbox. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: -New for version 2 configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/san

[U-Boot] [PATCH v4 23/26] test: env: Add test framework for env

2015-05-07 Thread Joe Hershberger
Add a new "env" subcommand to the ut command. This will run unit tests on the env code. This should be targetable to any device that supports the env features needed for the tests. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: -Moved test from e

[U-Boot] [PATCH v4 25/26] test: env: Add a test of the new regex behavior for attrs

2015-05-07 Thread Joe Hershberger
The behavior of the env attrs depends on CONFIG_REGEX. Add an additional test if that variable is set. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: -New for version 2 test/env/attr.c | 27 +++ 1 file

[U-Boot] [PATCH v4 18/26] test: Move the unit tests to their own menu

2015-05-07 Thread Joe Hershberger
Make all unit tests selectable as a menu of test suites instead of just sitting in the top-level menu individually. Signed-off-by: Joe Hershberger Acked-by: Simon Glass --- Changes in v4: -Fixed bisectability issue Changes in v3: -New for version 3 Changes in v2: None configs/sandbox_defcon

[U-Boot] [PATCH v4 20/26] test: dm: eth: Handle failed test env cleanup

2015-05-07 Thread Joe Hershberger
Make sure that the env gets cleaned up after a test fails so that other tests aren't affected. Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: -New for version 3 Changes in v2: None test/dm/eth.c | 81 +-- 1 file ch

[U-Boot] [PATCH v4 21/26] test: Return values from the asserts compatible with cmds

2015-05-07 Thread Joe Hershberger
The asserts are sometimes called from the context of the test command itself so make sure that a return that happens as a result of a failure is compatible with that command return. When called within a test, the return value is ignored. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --

[U-Boot] [PATCH v4 19/26] test: dm: Don't bail on all tests if one test fails

2015-05-07 Thread Joe Hershberger
There's not much point in having a failure count if we always give up on the first failure. Also stop clearing the entire state between tests. Make sure that any failures are still passed out to the command line. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None C

[U-Boot] [PATCH v4 16/26] test: Add a common unit test command

2015-05-07 Thread Joe Hershberger
Add a command that all other unit tests should be a sub-command of. Also include a command that will run all tests. Signed-off-by: Joe Hershberger Acked-by: Simon Glass --- Changes in v4: None Changes in v3: -New for version 3 Changes in v2: None include/test/suites.h | 11 + test/Ma

[U-Boot] [PATCH v4 17/26] test: dm: Move the dm tests over to the ut command

2015-05-07 Thread Joe Hershberger
Unify the command for running unit tests further by moving the "dm test" command over to "ut dm". Signed-off-by: Joe Hershberger Acked-by: Simon Glass --- Changes in v4: None Changes in v3: -New for version 3 Changes in v2: None configs/sandbox_defconfig | 2 +- include/dm/test.h |

[U-Boot] [PATCH v4 22/26] test: dm: Recover the driver model tree after tests

2015-05-07 Thread Joe Hershberger
Put the driver model for the system back into a good state after completing the DM testing. Signed-off-by: Joe Hershberger Acked-by: Simon Glass --- Changes in v4: None Changes in v3: -New for version 3 Changes in v2: None test/dm/test-main.c | 5 + 1 file changed, 5 insertions(+) diff

[U-Boot] [PATCH v4 15/26] test: Generalize the unit test framework

2015-05-07 Thread Joe Hershberger
Separate the ability to define tests and assert status of test functions from the dm tests so they can be used more consistenly throughout all tests. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: -New for version 2 include/d

[U-Boot] [PATCH v4 14/26] net: Handle ethaddr changes as an env callback

2015-05-07 Thread Joe Hershberger
When the ethaddr is changed in the env, update the device pdata at the same time (only if it is probed for the DM case; only if registered for the non-DM case). Again this gets us closer to completely non-polled env needed to simplify the net_loop. This requires that the NET feature select the REG

[U-Boot] [PATCH v4 12/26] net: Add default flags for common net env vars

2015-05-07 Thread Joe Hershberger
Check that the common network stack's env vars conform to the proper format for IP addresses. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None include/env_flags.h | 12 +++- 1 file changed, 11 insertions(+), 1 dele

[U-Boot] [PATCH v4 10/26] net: Apply default format rules to all ethaddr

2015-05-07 Thread Joe Hershberger
Use a regular expression to apply the default formatting flags for all ethaddr env vars. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: -Added comments about the use of .flags in the dm eth test include/env_flags.h | 11 +

[U-Boot] [PATCH v4 13/26] net: Remove duplicate bootfile syncing functionality

2015-05-07 Thread Joe Hershberger
The bootfile env var is already kept up to date by the callback in net.c so there is no need to poll it too. Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: -New for version 3 Changes in v2: None net/eth.c | 12 1 file changed, 12 deletions(-) diff --git a/

[U-Boot] [PATCH v4 11/26] net: Use env callbacks for net variables

2015-05-07 Thread Joe Hershberger
Instead of checking for changes to the env each time we enter the net_loop, use the env callbacks to update the values of the variables. Don't update the variables when the source was programmatic, since the variables were the source of the new value. Signed-off-by: Joe Hershberger Reviewed-by: S

[U-Boot] [PATCH v4 09/26] env: Distinguish finer between source of env change

2015-05-07 Thread Joe Hershberger
We already could tell the difference in the callback between an import and "other" which we called interactive. Now add further distinction between interactive (i.e. running env set / env edit / env ask / etc. from the U-Boot command line) and programmatic (i.e. when u-boot source calls any variant

[U-Boot] [PATCH v4 05/26] env: Fix return values in env_attr_lookup()

2015-05-07 Thread Joe Hershberger
This function returned numbers for error codes. Change them to error codes. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None common/env_attr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commo

[U-Boot] [PATCH v4 08/26] env: Add regex support to env_attrs

2015-05-07 Thread Joe Hershberger
Allow the features that use env_attrs to specify regexs for the name Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: -Added description to README README | 8 + common/env_attr.c | 85 +

[U-Boot] [PATCH v4 06/26] env: Simplify the reverse_strstr() interface

2015-05-07 Thread Joe Hershberger
The logic to find the whole matching name was split needlessly between the reverse_strstr function and its caller. Fully contain it to make the interface for calling it more consistent. Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2: -Fix bisectability

[U-Boot] [PATCH v4 07/26] env: Allow env_attr_walk to pass a priv * to callback

2015-05-07 Thread Joe Hershberger
In some cases it can be helpful to have context in the callback about the calling situation. This is needed for following patches. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 10 ++ com

[U-Boot] [PATCH v4 03/26] sandbox: Enable some ENV commands

2015-05-07 Thread Joe Hershberger
Enable some additional ENV commands in sandbox to aid in build testing and run testing. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None include/configs/sandbox.h | 5 + 1 file changed, 5 insertions(+) diff --git a/in

[U-Boot] [PATCH v4 01/26] sandbox: Cleanup order and extra defines in defconfig

2015-05-07 Thread Joe Hershberger
The defconfigs should not be edited directly. They should be generated by editing the .config (through menuconfig or whatever) and then run make savedefconfig to have the Kconfig system generate a clean defconfig I did this for sandbox here with no actual changes. Signed-off-by: Joe Hershberger

[U-Boot] [PATCH v4 02/26] sandbox: Use defconfig to enable features

2015-05-07 Thread Joe Hershberger
Stop using the sandbox arch Kconfig to override defaults for config options. This is a bit of abuse and may be causing build problems. Signed-off-by: Joe Hershberger --- Changes in v4: -New for version 4 Changes in v3: None Changes in v2: None arch/sandbox/Kconfig | 15 --- c

[U-Boot] buildman for sandbox

2015-05-07 Thread Joe Hershberger
Hi Simon, Is there a way to make buildman compile sandbox with a non-system tool chain? I've tried creating an alias from sandbox to i386 and removing the "root" entry. It then simply claims not to have a sandbox tool chain. Thanks, -Joe ___ U-Boot mail

Re: [U-Boot] [WORKING PATCH 1/2] sandbox: Use defconfig to enable features

2015-05-07 Thread Joe Hershberger
Hi Simon, On Wed, May 6, 2015 at 5:00 PM, Simon Glass wrote: > Hi Joe, > > On 6 May 2015 at 11:54, Joe Hershberger wrote: >> Stop using the sandbox arch Kconfig to override defaults for config >> options. This is a bit of abuse and may be causing build problems. >> >> Signed-off-by: Joe Hershber