Re: [U-Boot] [PATCH 1/5] common: Add symbol handling for generic lists into Makefile

2012-10-02 Thread Joe Hershberger
...@denx.de Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Mike Frysinger vap...@gentoo.org --- Tested-by: Joe Hershberger joe.hershber...@ni.com Acked-by: Joe Hershberger joe.hershber...@ni.com ___ U-Boot mailing list U-Boot@lists.denx.de http

Re: [U-Boot] [PATCH 3/5] common: Add .u_boot_list into all linker files

2012-10-02 Thread Joe Hershberger
Hershberger joe.hershber...@gmail.com Cc: Mike Frysinger vap...@gentoo.org --- Tested-by: Joe Hershberger joe.hershber...@ni.com Acked-by: Joe Hershberger joe.hershber...@ni.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u

Re: [U-Boot] [PATCH 4/5] common: Convert the U-Boot commands to LG-arrays

2012-10-02 Thread Joe Hershberger
instead of directly using linker-generated symbols. Signed-off-by: Marek Vasut ma...@denx.de Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Mike Frysinger vap...@gentoo.org --- Tested-by: Joe Hershberger joe.hershber...@ni.com Acked-by: Joe Hershberger joe.hershber...@ni.com

Re: [U-Boot] [PATCH 5/5] common: Discard the __u_boot_cmd section

2012-10-02 Thread Joe Hershberger
associated with this section from include/command.h . Signed-off-by: Marek Vasut ma...@denx.de Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Mike Frysinger vap...@gentoo.org --- Tested-by: Joe Hershberger joe.hershber...@ni.com Acked-by: Joe Hershberger joe.hershber...@ni.com

Re: [U-Boot] [PATCH 05/12] tools/env: Serialize calls to fw_*env

2012-10-02 Thread Joe Hershberger
Hi Mike, Sorry for the delay... I've been distracted. On Wed, Aug 22, 2012 at 10:33 PM, Mike Frysinger vap...@gentoo.org wrote: On Friday 17 August 2012 16:49:39 Joe Hershberger wrote: Use a lock file at /var/lock/fw_printenv.lock. the lock should be per-MTD, not per-system. I'm not sure

[U-Boot] [PATCH] net: fix netconsole filtering

2012-10-03 Thread Joe Hershberger
Adjustment of Michael Walle's fix patch Commit 8a0eccb1056b313b45ab62e3aac400f339aa71b4 breaks netconsole. src_ip must not be converted to host byte order, because nc_ip is already stored in network byte order (see string_to_ip(), called by getenv_IPaddr()). Signed-off-by: Joe Hershberger

[U-Boot] [PATCH v2 1/5] tools/env: Use a board-specific default env

2012-10-03 Thread Joe Hershberger
of config.h Need to define TEXT_BASE when building the fw_env tool so that the default env will be correct for environments which use it. Define __ASSEMBLY__ when calling #include config.h so that we only get #defines (all we're interested in). Signed-off-by: Joe Hershberger joe.hershber...@ni.com

[U-Boot] [PATCH v2 5/5] env: Check for NULL pointer in envmatch()

2012-10-03 Thread Joe Hershberger
If the pointer passed into envmatch() is NULL, return -1 instead of crashing. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_nvedit.c | 3 +++ tools/env/fw_env.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 3474bc6

[U-Boot] [PATCH v2 3/5] tools/env: Don't call env_init() in fw_getenv()

2012-10-03 Thread Joe Hershberger
We will only call fw_getenv when the env has already been initialized. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- tools/env/fw_env.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index af879f1..f883804 100644 --- a/tools/env

[U-Boot] [PATCH v2 0/5] Cleanup fw_*env and a few common env

2012-10-03 Thread Joe Hershberger
This is a gutted version of my previous env series in an effort to reduce the risk to the release that is approaching shortly. Changes in v2: - Further simplified based Mike's comments Joe Hershberger (5): tools/env: Use a board-specific default env tools/env: Remove unneeded complexity

[U-Boot] [PATCH v2 2/5] tools/env: Remove unneeded complexity

2012-10-03 Thread Joe Hershberger
The length included the name length, and then it was subtracted back out on each use. Now we don't include it in the first place. Also realloc as we process arguments and eliminate memset. Use memcpy instead of manually copying each byte. Signed-off-by: Joe Hershberger joe.hershber...@ni.com

[U-Boot] [PATCH v2 4/5] tools/env: Serialize calls to fw_*env

2012-10-03 Thread Joe Hershberger
Use a lock file at /var/lock/fw_printenv.lock. Avoids seriously confusing the MTD driver. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- tools/env/fw_env_main.c | 59 +++-- 1 file changed, 37 insertions(+), 22 deletions(-) diff --git

Re: [U-Boot] [PATCH] Change dead code in test cmd to debug output

2012-10-03 Thread Joe Hershberger
Hi Mike, On Fri, Aug 17, 2012 at 6:41 PM, Mike Frysinger vap...@gentoo.org wrote: On Friday 17 August 2012 16:56:12 Joe Hershberger wrote: --- a/common/cmd_test.c +++ b/common/cmd_test.c -#if 0 +#ifdef DEBUG { - printf(test:); + debug(test(%d):, argc

[U-Boot] [PATCH 2/2] Cleanup cache command prints

2012-10-03 Thread Joe Hershberger
Only print when queried, not every time the setting is changed. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_cache.c b/common/cmd_cache.c index 13cc3d8..5512f92 100644 --- a/common

[U-Boot] [PATCH 1/2] Fix checkpatch.pl complaints in cmd_cache.c

2012-10-03 Thread Joe Hershberger
Old code that is not compliant. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_cache.c | 47 ++- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/common/cmd_cache.c b/common/cmd_cache.c index 9c228e2..13cc3d8 100644

[U-Boot] [PATCH v2] Add a new ini command

2012-10-03 Thread Joe Hershberger
This allows you to read ini-formatted data from anywhere and then import one of the sections into the environment This is based on rev 16 at http://code.google.com/p/inih/ Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v2: - Documented in README - Made all functions static

[U-Boot] [PATCH v2] Add a command to access the system timer

2012-10-03 Thread Joe Hershberger
Two sub-commands... start and get. * start sets the reference. * get prints out the time since the last start (in sec.msec format). If get is called without start, returns time since boot. Simple way to benchmark an operation: timer start;commands-to-measure;timer get Signed-off-by: Joe

[U-Boot] [PATCH v2] Output strings from echo with puts where easy

2012-10-03 Thread Joe Hershberger
Change echo to puts characters together where it knows about them together. This improves netconsole performance by greatly reducing the number of packets that are sent. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v2: - Check for someone to specify \c more than once

Re: [U-Boot] [PATCH 1/6] fdt: Check error codes returned from fdtlib when loading ITB

2012-10-04 Thread Joe Hershberger
Hi Jerry, On Fri, Aug 17, 2012 at 3:34 PM, Joe Hershberger joe.hershber...@ni.com wrote: Before this patch, error codes returned from fdtlib were ignored and continued access would cause a crash. Now just check if the image is truncated and error if so. Signed-off-by: Joe Hershberger

[U-Boot] [PATCH] tools: Add a README note about fw_printenv lock file

2012-10-04 Thread Joe Hershberger
Add a mention of the lock file to the README for the fw_printenv tool. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reported-by: Luka Perkov ub...@lukaperkov.net --- This patch is independent of the series, but should be applied afterward tools/env/README | 4 1 file changed, 4

[U-Boot] [PATCH] Improve license declaration for cmd_ini.h

2012-10-04 Thread Joe Hershberger
Instead of referenceing the source webpage (which can change) include the license in the source file. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reported-by: Igor Grinberg grinb...@compulab.co.il Cc: Igor Grinberg grinb...@compulab.co.il Cc: Tom Rini tr...@ti.com Cc: Wolfgang Denk w

[U-Boot] [PATCH] env: cosmetic: Consilidate the default env definition

2012-10-12 Thread Joe Hershberger
There used to be a huge structure duplicated 3 times in the source. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/env_common.c | 97 +--- common/env_embedded.c | 104 ++ include/env_default.h | 135

[U-Boot] [PATCH] tools/env: Fix build failure from missing header include

2012-10-12 Thread Joe Hershberger
This was introduced in: 8679d0ffdcc0beafea8e6942c0c67cf859afa18e - COMMON: Use __stringify() instead of MK_STR() The header is now needed since common.h is not included in this tool. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- tools/env/fw_env.c | 1 + 1 file changed, 1

Re: [U-Boot] [PATCH] tools/env: Fix build failure from missing header include

2012-10-12 Thread Joe Hershberger
Hi Marek, On Fri, Oct 12, 2012 at 5:20 PM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, This was introduced in: 8679d0ffdcc0beafea8e6942c0c67cf859afa18e - COMMON: Use __stringify() instead of MK_STR() The header is now needed since common.h is not included in this tool

Re: [U-Boot] [STATUS] v2012.10 released, Merge Window is OPEN

2012-10-15 Thread Joe Hershberger
Hi Wolfgang, On Mon, Oct 15, 2012 at 1:57 PM, Wolfgang Denk w...@denx.de wrote: Dear Stefano Babic, In message 507c3b70.4060...@denx.de you wrote: Hopefully I do nid run Jonathan Corbet's gitdm in a wrong way (git log -p -M v2012.07..v2012.10 | gitdm -u -s -a -o /tmp/results -h

Re: [U-Boot] [PATCH v4] tools/env: add posibility to inject configuration

2012-10-15 Thread Joe Hershberger
Hi Andreas, On Tue, Jan 24, 2012 at 3:10 AM, Andreas Bießmann andreas.de...@googlemail.com wrote: From: Andreas Bießmann biessm...@corscience.de If one want to use fw_printenv/fw_setenv in special variants (eg compiled in MTD parameters without configuration file) he need to change the

Re: [U-Boot] [PATCH v2] Add support for MMC to fw_printenv/setenv

2012-10-15 Thread Joe Hershberger
Hi Christian, On Thu, Jan 5, 2012 at 6:30 PM, Christian Daudt cs...@daudt.org wrote: Changes from previous: - Changed // to /* */ - Ran through checkpatch.pl, cleaned up a number of line-too-big and extra space in the code that was shifted due to being in the new 'if'. Your patch appears to

Re: [U-Boot] [PATCH v2] Add support for MMC to fw_printenv/setenv

2012-10-15 Thread Joe Hershberger
Hi Christian, On Thu, Jan 5, 2012 at 6:30 PM, Christian Daudt cs...@daudt.org wrote: Changes from previous: - Changed // to /* */ - Ran through checkpatch.pl, cleaned up a number of line-too-big and extra space in the code that was shifted due to being in the new 'if'. Thanks, csd

[U-Boot] [PATCH 1/2] tools/env: Fix variable delete operation

2012-10-15 Thread Joe Hershberger
Fix crash introduced by a073d63a36524453a817ab029fad5b188f46127e when attempting to delete a variable. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- tools/env/fw_env.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c

[U-Boot] [PATCH 2/2] tools/env: Improve debug prints

2012-10-15 Thread Joe Hershberger
Provide more information when using redundant environments Consistently print debug info to stderr Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- tools/env/fw_env.c | 27 ++- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/tools/env/fw_env.c b

Re: [U-Boot] [PATCH 03/11] arm: ks8695eth: Use MAC address from environment

2012-10-18 Thread Joe Hershberger
Hi Yann, On Fri, Oct 5, 2012 at 7:09 AM, Yann Vernier yann.vern...@orsoc.se wrote: Removed board specific MAC reading code from driver. Should move the reading to the cm4008/cm41xx board code. --- drivers/net/ks8695eth.c | 38 +- 1 file changed, 9

Re: [U-Boot] [PATCH 1/6 V5] common: Add symbol handling for generic lists into Makefile

2012-10-19 Thread Joe Hershberger
...@denx.de Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Mike Frysinger vap...@gentoo.org --- Acked-by: Joe Hershberger joe.hershber...@ni.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/6 V5] common: Add symbol handling for generic lists into Makefile

2012-10-19 Thread Joe Hershberger
...@denx.de Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Mike Frysinger vap...@gentoo.org --- Tested on Panda Board. Tested-by: Joe Hershberger joe.hershber...@ni.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u

Re: [U-Boot] [PATCH] serial: add environment control for SERIAL_MULTI

2012-10-25 Thread Joe Hershberger
Hi Allen, On Thu, Oct 25, 2012 at 4:59 PM, Allen Martin amar...@nvidia.com wrote: Add a new special environment variable serial that allows selection of serial device when CONFIG_SERIAL_MULTI is defined. This replaces the existing calls to serial_assign() from cmd_nvedit.c and iomux.c that

Re: [U-Boot] [PATCH 3/6] serial: Reorder serial_assign()

2012-10-25 Thread Joe Hershberger
Hi Allen, On Thu, Oct 25, 2012 at 4:19 PM, Allen Martin amar...@nvidia.com wrote: On Thu, Oct 25, 2012 at 02:02:55PM -0700, Simon Glass wrote: Hi, On Thu, Oct 25, 2012 at 12:03 PM, Marek Vasut ma...@denx.de wrote: Dear Simon Glass, Hi, On Mon, Oct 22, 2012 at 10:23 AM, Allen Martin

Re: [U-Boot] [PATCH] serial: add environment control for SERIAL_MULTI

2012-10-25 Thread Joe Hershberger
Hi Stephen, On Thu, Oct 25, 2012 at 5:43 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/25/2012 03:59 PM, Allen Martin wrote: Add a new special environment variable serial that allows selection of serial device when CONFIG_SERIAL_MULTI is defined. This replaces the existing calls to

Re: [U-Boot] [PATCH] serial: add environment control for SERIAL_MULTI

2012-10-25 Thread Joe Hershberger
Hi Stephen, On Thu, Oct 25, 2012 at 5:45 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/25/2012 04:36 PM, Joe Hershberger wrote: Hi Allen, On Thu, Oct 25, 2012 at 4:59 PM, Allen Martin amar...@nvidia.com wrote: Add a new special environment variable serial that allows selection

Re: [U-Boot] [PATCH] serial: add environment control for SERIAL_MULTI

2012-10-25 Thread Joe Hershberger
Hi Allen, On Thu, Oct 25, 2012 at 5:50 PM, Allen Martin amar...@nvidia.com wrote: On Thu, Oct 25, 2012 at 03:46:01PM -0700, Joe Hershberger wrote: Hi Stephen, On Thu, Oct 25, 2012 at 5:43 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/25/2012 03:59 PM, Allen Martin wrote: Add

Re: [U-Boot] [PATCH] serial: add environment control for SERIAL_MULTI

2012-10-25 Thread Joe Hershberger
Hi Allen, On Thu, Oct 25, 2012 at 5:53 PM, Allen Martin amar...@nvidia.com wrote: On Thu, Oct 25, 2012 at 03:47:09PM -0700, Joe Hershberger wrote: Hi Stephen, On Thu, Oct 25, 2012 at 5:45 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/25/2012 04:36 PM, Joe Hershberger wrote: Hi

Re: [U-Boot] [PATCH] serial: remove calls to serial_assign()

2012-10-25 Thread Joe Hershberger
is exptectd. Signed-off-by: Allen Martin amar...@nvidia.com --- Acked-by: Joe Hershberger joe.hershber...@ni.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 0/2] Standardize on run-time board ID variables

2012-10-26 Thread Joe Hershberger
Hi Tom, On Wed, Oct 24, 2012 at 2:32 PM, Tom Rini tr...@ti.com wrote: On Wed, Oct 24, 2012 at 01:05:16PM -0600, Stephen Warren wrote: On 10/24/2012 12:41 PM, Tom Rini wrote: On Wed, Oct 24, 2012 at 11:50:38AM -0600, Stephen Warren wrote: On 10/24/2012 11:28 AM, Tom Rini wrote: Hey all,

Re: [U-Boot] [PATCH 3/6] serial: Reorder serial_assign()

2012-10-26 Thread Joe Hershberger
Hi Marek, On Fri, Oct 26, 2012 at 5:22 AM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, Hi Allen, On Thu, Oct 25, 2012 at 4:19 PM, Allen Martin amar...@nvidia.com wrote: On Thu, Oct 25, 2012 at 02:02:55PM -0700, Simon Glass wrote: Hi, On Thu, Oct 25, 2012 at 12:03 PM, Marek

Re: [U-Boot] [PATCH 0/2] Standardize on run-time board ID variables

2012-10-29 Thread Joe Hershberger
Hi Stephen, On Mon, Oct 29, 2012 at 1:13 PM, Tom Rini tr...@ti.com wrote: On Mon, Oct 29, 2012 at 09:15:41AM -0600, Stephen Warren wrote: On 10/26/2012 01:45 AM, Joe Hershberger wrote: Hi Tom, On Wed, Oct 24, 2012 at 2:32 PM, Tom Rini tr...@ti.com wrote: On Wed, Oct 24, 2012 at 01:05

Re: [U-Boot] [PATCH] cmd_fdt.c: Use %p when printing pointers

2012-10-29 Thread Joe Hershberger
Hi Tom, On Mon, Oct 29, 2012 at 7:53 PM, Tom Rini tr...@ti.com wrote: When putting pointers into a format string use %p to ensure that they are printed correctly regardless of bitsize. This fixes warnings on sandbox on 64bit systems. Cc: Joe Hershberger joe.hershber...@ni.com Cc: Gerald

Re: [U-Boot] [PATCH] cmd_fdt.c: Use %p when printing pointers

2012-10-30 Thread Joe Hershberger
warnings on sandbox on 64bit systems. Cc: Joe Hershberger joe.hershber...@ni.com Cc: Gerald Van Baren vanba...@cideas.com Signed-off-by: Tom Rini tr...@ti.com --- common/cmd_fdt.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c

[U-Boot] Linker errors from .u_boot_list in powerpc

2012-10-30 Thread Joe Hershberger
Hi Marek, Not sure if you were already aware of this, but I ran across these errors with MAKEALL on PPC. alpr: powerpc-linux-gnu-ld: section .bootpg loaded at [f000,f27f] overlaps section .u_boot_list loaded at [ee8c,f3cb] powerpc-linux-gnu-ld:

Re: [U-Boot] Linker errors from .u_boot_list in powerpc

2012-10-30 Thread Joe Hershberger
Hi Tom, On Tue, Oct 30, 2012 at 1:08 PM, Tom Rini tr...@ti.com wrote: On Tue, Oct 30, 2012 at 01:00:06PM -0500, Joe Hershberger wrote: Hi Marek, Not sure if you were already aware of this, but I ran across these errors with MAKEALL on PPC. alpr: powerpc-linux-gnu-ld: section .bootpg

Re: [U-Boot] Linker errors from .u_boot_list in powerpc

2012-10-30 Thread Joe Hershberger
Hi Andy, On Tue, Oct 30, 2012 at 1:00 PM, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Marek, Not sure if you were already aware of this, but I ran across these errors with MAKEALL on PPC. alpr: powerpc-linux-gnu-ld: section .bootpg loaded at [f000,f27f

Re: [U-Boot] [PATCH] lib/vsprintf.c: don't special-case pointers to address null

2012-10-30 Thread Joe Hershberger
accessing the data at address null makes perfect sense. Remove the special case in lib/vsprintf.c using #if 0 with a comment to make clear this was an intentional change and to stop re-adding this code. Signed-off-by: Wolfgang Denk w...@denx.de --- Acked-by: Joe Hershberger joe.hershber...@ni.com

[U-Boot] [PATCH 2/2] MAKEALL: Add options for incremental building

2012-10-30 Thread Joe Hershberger
--continue will allow you to ctrl-c the MAKEALL and pick up where you left off. --rebuild-errors will allow you to rebuild only those boards which had trouble on the last run of MAKEALL, allowing you to quickly test a simple fix on just those boards. Signed-off-by: Joe Hershberger joe.hershber

[U-Boot] [PATCH 1/2] MAKEALL: Fix kill_children

2012-10-30 Thread Joe Hershberger
When building in parallel, make sure that we look up the children based on the the actual process group id instead of just assuming that the MAKEALL pid is the process group id. Also ensure that logs from incomplete builds are deleted in the process. Signed-off-by: Joe Hershberger joe.hershber

Re: [U-Boot] [PATCH] Add board_name to CONFIG_ENV_VARS_UBOOT_CONFIG

2012-10-31 Thread Joe Hershberger
CONFIG_ENV_VARS_UBOOT_CONFIG also set a default value for board_name, so that variable is always available. Signed-off-by: Stephen Warren swar...@nvidia.com --- Acked-by: Joe Hershberger joe.hershber...@ni.com ___ U-Boot mailing list U-Boot@lists.denx.de http

Re: [U-Boot] [PATCH] usb gadget ether: Fix warning in is_eth_addr_valid()

2012-10-31 Thread Joe Hershberger
was emitting a warning about a set but unused variable. The solution to both is that after checking the string contents we use the standard test for a valid MAC. Cc: Joe Hershberger joe.hershber...@ni.com Cc: Marek Vasut ma...@denx.de Signed-off-by: Tom Rini tr...@ti.com --- Acked-by: Joe

[U-Boot] [PATCH v3 09/18] env: Add a bootfile env handler

2012-11-01 Thread Joe Hershberger
Remove the hard-coded bootfile handler and use a callback instead Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_nvedit.c| 9 - include/env_callback.h | 1 + net/net.c | 17 + 3 files changed, 18 insertions(+), 9 deletions

[U-Boot] [PATCH v3 18/18] env: Handle write-once ethaddr and serial# generically

2012-11-01 Thread Joe Hershberger
Use the variable access flags to implement the protection for ethaddr and serial# instead of hard-coding them. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/env_flags.c | 19 --- include/env_flags.h | 22 ++ tools/env/fw_env.c | 17

[U-Boot] [PATCH v3 10/18] env: Add a baudrate env handler

2012-11-01 Thread Joe Hershberger
Remove the hard-coded baudrate handler and use a callback instead Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_nvedit.c | 47 - drivers/serial/serial.c | 70 + include/env_callback.h

[U-Boot] [PATCH v3 0/18] Add environment call-back and flags capability

2012-11-01 Thread Joe Hershberger
. - Removed checkpatch.pl warning Changes in v2: - Added much-needed documentation - Factored out prevch and nextch in env_attr_lookup() Joe Hershberger (18): Make linux kernel string funcs available to tools env: Refactor do_apply to a flag env: Consolidate common code in hsearch_r() env

[U-Boot] [PATCH v3 01/18] Make linux kernel string funcs available to tools

2012-11-01 Thread Joe Hershberger
-by: Joe Hershberger joe.hershber...@ni.com --- include/linux/linux_string.h | 8 +++ include/linux/string.h | 5 + lib/Makefile | 1 + lib/linux_string.c | 51 lib/string.c | 39

[U-Boot] [PATCH v3 16/18] env: Add a command to display details about env flags

2012-11-01 Thread Joe Hershberger
Similar to the env callback command, this will show details about the options available, the static list, and the currently active variables. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- README | 1 + common/cmd_nvedit.c | 56

[U-Boot] [PATCH v3 13/18] env: Add a silent env handler

2012-11-01 Thread Joe Hershberger
The silent variable now updates the global data flag anytime it is changed as well as after the env relocation (in case its value is different from the default env in such cases as NAND env) Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/console.c | 23

[U-Boot] [PATCH v3 08/18] env: Add a command to view callbacks

2012-11-01 Thread Joe Hershberger
The callbacks can be bound, but are otherwise invisible. Add a command to show what callbacks are available. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- README | 1 + common/cmd_nvedit.c | 77 + 2 files changed, 78

[U-Boot] [PATCH v3 12/18] env: Add a console env handler

2012-11-01 Thread Joe Hershberger
Remove the hard-coded console handler and use a callback instead Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_nvedit.c| 33 +++-- common/console.c | 44 include/env_callback.h | 1 + 3

[U-Boot] [PATCH v3 04/18] env: Refactor apply into change_ok

2012-11-01 Thread Joe Hershberger
access to the whole data structure. Pass an enum to the callback that specifies the operation being approved. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: - Split hdelete_r() into the core delete and the validation before delete - Delete vars on failed insertion common

[U-Boot] [PATCH v3 15/18] tools/env: Add environment variable flags support

2012-11-01 Thread Joe Hershberger
, but prevents the need to have every definition in the environment distracting you. Need to build in _ctype for isdigit for Linux. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/env_attr.c | 7 + common/env_flags.c | 75

[U-Boot] [PATCH v3 06/18] env: Hide '.' variables in env print by default

2012-11-01 Thread Joe Hershberger
When printing all variables with env print, don't print variables that begin with '.'. If env print is called with a '-a' switch, then include variables that begin with '.' (just like the ls command). Variables printed explicitly will be printed even without the -a. Signed-off-by: Joe

[U-Boot] [PATCH v3 11/18] env: Add a loadaddr env handler

2012-11-01 Thread Joe Hershberger
Remove the hard-coded loadaddr handler and use a callback instead Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_nvedit.c| 12 common/image.c | 21 + include/env_callback.h | 1 + 3 files changed, 22 insertions(+), 12 deletions

[U-Boot] [PATCH v3 03/18] env: Consolidate common code in hsearch_r()

2012-11-01 Thread Joe Hershberger
The same chunk of code was replicated in two places and the following changes will make that chunk grow a bit, so combine into a static func. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- lib/hashtable.c | 71 ++--- 1 file changed

[U-Boot] [PATCH v3 14/18] env: Add environment variable flags

2012-11-01 Thread Joe Hershberger
in the environment distracting you. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- README | 37 ++ common/Makefile| 2 + common/cmd_nvedit.c| 53 + common/env_common.c| 2 +- common/env_flags.c | 314

[U-Boot] [PATCH v3 05/18] env: Use getenv_yesno() more generally

2012-11-01 Thread Joe Hershberger
Move the getenv_yesno() to env_common.c and change most checks for 'y' or 'n' to use this helper. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- arch/arm/lib/board.c| 4 +--- arch/m68k/lib/board.c | 3 +-- arch/microblaze/lib/board.c | 4 +--- arch

[U-Boot] [PATCH v3 02/18] env: Refactor do_apply to a flag

2012-11-01 Thread Joe Hershberger
Use a flag in hsearch_r for insert mode passed from import to allow the behavior be different based on use. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: - Rebase onto Gerlando Falauto's env patches - Refactor himport_r() and hsearch_r()'s parameters common

[U-Boot] [PATCH v3 17/18] env: Add support for access control to .flags

2012-11-01 Thread Joe Hershberger
Add support for read-only, write-once, and change-default. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- README| 13 - common/cmd_nvedit.c | 31 -- common/env_common.c | 18 ++ common/env_flags.c| 153

[U-Boot] [PATCH v3 07/18] env: Add support for callbacks to environment vars

2012-11-01 Thread Joe Hershberger
Add support for per-variable callbacks to the hashtable functions. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: - Use Marek's linker lists instead of implementing it directly - Rebase onto latest master - Add flags parameter to callbacks - Implement reverse search

[U-Boot] [PATCH 2/2] serial: Make nulldev a serial device

2012-11-01 Thread Joe Hershberger
This allows the default console to be specified as the nulldev. This is specifically helpful when the real serial console's init() cannot run early in the boot process. When the init can be run, then the console can be switched to the real device using the std* env vars. Signed-off-by: Joe

[U-Boot] [PATCH 1/2] serial: Remove the serial console device

2012-11-01 Thread Joe Hershberger
Each serial device is added as a console device. There was also the serial device that points to the most-recently-assigned-to-some- console-handle device. This can be confusing. Instead, only show the actual serial devices. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common

[U-Boot] [PATCH 1/2] ubi: Only read the actual size of the VID header

2012-11-01 Thread Joe Hershberger
If sub-page reads are supported, this will save reading unneeded data Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- drivers/mtd/ubi/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index 8423894..23660e3 100644

[U-Boot] [PATCH 2/2] nand: Move the sub-page read support enable to a flag

2012-11-01 Thread Joe Hershberger
Use a flag instead of a hard-coded macro so that sub-page reads can be enabled in other cases (such as on-die ecc). Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- drivers/mtd/nand/nand_base.c | 9 +++-- include/linux/mtd/nand.h | 7 --- 2 files changed, 11 insertions(+), 5

[U-Boot] [PATCH v2] Add a simple load option to setexpr

2012-11-01 Thread Joe Hershberger
Make setexpr accept a 2 parameter variant that will simply load a value into a variable. This is useful for loading a value from memory. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v2: - Replaced memory get command with option to setexpr common/cmd_setexpr.c | 19

[U-Boot] [PATCH] ubifs: Allow ubifsmount volume reference by number

2012-11-01 Thread Joe Hershberger
number 0, volume Y; * o ubiX:NAME - mount UBI device X, volume with name NAME; * o ubi:NAME - mount UBI device 0, volume with name NAME. Now any name passed in any of the above forms are allowed. Also update the configs that referenced ubifsmount. Signed-off-by: Joe Hershberger joe.hershber

[U-Boot] [PATCH] net: Fix endianness bug in link-local

2012-11-01 Thread Joe Hershberger
The ip is stored in network order, so we can't test it in host order. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- net/link_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/link_local.c b/net/link_local.c index d52f13a..8a8f605 100644 --- a/net

Re: [U-Boot] [PATCH 1/2] MAKEALL: Fix kill_children

2012-11-04 Thread Joe Hershberger
Hi Tom, On Sat, Nov 3, 2012 at 5:54 PM, Tom Rini tr...@ti.com wrote: On Tue, Oct 30, 2012 at 08:55:20PM -0500, Joe Hershberger wrote: When building in parallel, make sure that we look up the children based on the the actual process group id instead of just assuming that the MAKEALL pid

Re: [U-Boot] [PATCH v3 0/18] Add environment call-back and flags capability

2012-11-04 Thread Joe Hershberger
Hi Wolfgang, On Fri, Nov 2, 2012 at 5:40 PM, Wolfgang Denk w...@denx.de wrote: Dear Joe Hershberger, In message 1351787996-24560-1-git-send-email-joe.hershber...@ni.com you wrote: When a variable with a registered callback is inserted, deleted, or overwritten the callback is called

Re: [U-Boot] [PATCH 1/2] serial: Remove the serial console device

2012-11-04 Thread Joe Hershberger
Hi Marek, On Fri, Nov 2, 2012 at 8:35 PM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, Each serial device is added as a console device. There was also the serial device that points to the most-recently-assigned-to-some- console-handle device. This can be confusing. Instead, only

Re: [U-Boot] [PATCH 2/2] serial: Make nulldev a serial device

2012-11-04 Thread Joe Hershberger
Hi Marek, On Fri, Nov 2, 2012 at 8:37 PM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, This allows the default console to be specified as the nulldev. This is specifically helpful when the real serial console's init() cannot run early in the boot process. When the init can be run

Re: [U-Boot] [PATCH] net: Fix endianness bug in link-local

2012-11-04 Thread Joe Hershberger
Hi Kim, On Fri, Nov 2, 2012 at 2:58 PM, Kim Phillips kim.phill...@freescale.com wrote: On Thu, 1 Nov 2012 22:05:54 -0500 Joe Hershberger joe.hershber...@ni.com wrote: The ip is stored in network order, so we can't test it in host order. Signed-off-by: Joe Hershberger joe.hershber...@ni.com

[U-Boot] [PATCH v2] net: Fix endianness bug in link-local

2012-11-05 Thread Joe Hershberger
The ip is stored in network order, so we can't test it in host order. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v2: - Changed htonl() to ntohl() net/link_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/link_local.c b/net/link_local.c

[U-Boot] [PATCH v2 2/2] nand: Move the sub-page read support enable to a flag

2012-11-05 Thread Joe Hershberger
Use a flag instead of a hard-coded macro so that sub-page reads can be enabled in other cases (such as on-die ecc). This is the same as a5ff4f102937a3492bca4a9ff0c341d78813414c in Linux Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v2: - Added Linux commit ID to commit

[U-Boot] [PATCH v2 1/2] ubi: Only read the actual size of the VID header

2012-11-05 Thread Joe Hershberger
If sub-page reads are supported, this will save reading unneeded data Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- drivers/mtd/ubi/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index 8423894..23660e3 100644

Re: [U-Boot] [PATCH] ubifs: Allow ubifsmount volume reference by number

2012-11-05 Thread Joe Hershberger
Hi Vikram, On Mon, Nov 5, 2012 at 10:43 AM, Vikram Narayanan vikram...@gmail.com wrote: On 11/2/2012 8:24 AM, Joe Hershberger wrote: UBI can mount volumes by name or number The current code forces you to name the volume by prepending every name with ubi:. From fs/ubifs/super.c

Re: [U-Boot] [PATCH] ubifs: Allow ubifsmount volume reference by number

2012-11-05 Thread Joe Hershberger
Hi Vikram, On Mon, Nov 5, 2012 at 11:36 AM, Vikram Narayanan vikram...@gmail.com wrote: Hi Joe, On 11/5/2012 10:19 PM, Joe Hershberger wrote: Hi Vikram, On Mon, Nov 5, 2012 at 10:43 AM, Vikram Narayananvikram...@gmail.com wrote: On 11/2/2012 8:24 AM, Joe Hershberger wrote: UBI can

Re: [U-Boot] [PATCH] ubifs: Allow ubifsmount volume reference by number

2012-11-05 Thread Joe Hershberger
Hi Vikram, On Mon, Nov 5, 2012 at 12:41 PM, Vikram Narayanan vikram...@gmail.com wrote: On 11/5/2012 11:48 PM, Joe Hershberger wrote: Hi Vikram, On Mon, Nov 5, 2012 at 11:36 AM, Vikram Narayananvikram...@gmail.com wrote: Hi Joe, On 11/5/2012 10:19 PM, Joe Hershberger wrote: Hi

Re: [U-Boot] [PATCH 1/2] serial: Remove the serial console device

2012-11-05 Thread Joe Hershberger
Hi Marek, On Mon, Nov 5, 2012 at 5:11 PM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, Hi Marek, On Fri, Nov 2, 2012 at 8:35 PM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, Each serial device is added as a console device. There was also the serial device

Re: [U-Boot] [PATCH 2/2] serial: Make nulldev a serial device

2012-11-05 Thread Joe Hershberger
Hi Marek. On Mon, Nov 5, 2012 at 5:10 PM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, Hi Marek, On Fri, Nov 2, 2012 at 8:37 PM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, This allows the default console to be specified as the nulldev. This is specifically

Re: [U-Boot] [PATCH 2/2] serial: Make nulldev a serial device

2012-11-05 Thread Joe Hershberger
Hi Marek, On Mon, Nov 5, 2012 at 6:47 PM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, Hi Marek. On Mon, Nov 5, 2012 at 5:10 PM, Marek Vasut ma...@denx.de wrote: Dear Joe Hershberger, Hi Marek, On Fri, Nov 2, 2012 at 8:37 PM, Marek Vasut ma...@denx.de wrote: Dear Joe

Re: [U-Boot] [PATCH v2 1/2] ubi: Only read the actual size of the VID header

2012-11-06 Thread Joe Hershberger
Hi Stefan, On Tue, Nov 6, 2012 at 2:19 AM, Stefan Roese s...@denx.de wrote: On 11/05/2012 05:46 PM, Joe Hershberger wrote: If sub-page reads are supported, this will save reading unneeded data Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- drivers/mtd/ubi/io.c | 2 +- 1 file

[U-Boot] [PATCH 2/2] hush: Prevent pipe errors from being silently ignored

2012-11-08 Thread Joe Hershberger
Disallow commands like true and false || true Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/hush.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/common/hush.c b/common/hush.c index 43edcfa..1427557 100644 --- a/common/hush.c +++ b/common

[U-Boot] [PATCH 1/2] hush: Treat trailing || and as incomplete statements

2012-11-08 Thread Joe Hershberger
A || or at the end of a command should behave just like an if statment that is not complete. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/hush.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/common/hush.c b/common/hush.c index 4c84c2f

[U-Boot] [PATCH] Allow CONFIG_BOARD_SIZE_LIMIT to be specified in hex

2012-11-08 Thread Joe Hershberger
Use the printf command to convert the number in any valid format into the expected decimal format. The resulting errors should be printed to stderr. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

Re: [U-Boot] [PATCH 1/2] hush: Treat trailing || and as incomplete statements

2012-11-08 Thread Joe Hershberger
Hi Wolfgang, On Thu, Nov 8, 2012 at 5:04 PM, Wolfgang Denk w...@denx.de wrote: Dear Joe, In message 1352405756-401-1-git-send-email-joe.hershber...@ni.com you wrote: A || or at the end of a command should behave just like an if statment that is not complete. Signed-off-by: Joe Hershberger

Re: [U-Boot] [RFC PATCH 00/50] net: net subsystem ops cleanup

2012-11-13 Thread Joe Hershberger
Hi Tomas, On Sat, Nov 3, 2012 at 6:23 PM, Tomas Hlavacek tmshl...@gmail.com wrote: Dear Wolfgang, On Sat, Nov 3, 2012 at 4:09 PM, Wolfgang Denk w...@denx.de wrote: Dear Tomas Hlavacek, In message 1351876722-5183-1-git-send-email-tmshl...@gmail.com you wrote: This patchset is a first stage

Re: [U-Boot] Bug in netconsole?

2012-11-15 Thread Joe Hershberger
Hi Nick, On Wed, Nov 14, 2012 at 3:59 AM, Nick Thompson nick.thomp...@ge.com wrote: I think there might be a bug in this commit: http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commitdiff;h=2c8fe5120f8da013cbd789be2f10cce880972836 The commit makes the netconsole buffer size

<    4   5   6   7   8   9   10   11   12   13   >