[U-Boot] [PATCH 4/4] Add parameter to md5sum to save the md5 sum

2012-08-17 Thread Joe Hershberger
Add a parameter that allows you to store the md5 sum to either a memory location or a variable. Signed-off-by: Joe Hershberger --- common/cmd_md5sum.c | 41 + 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/common/cmd_md5sum.c b/common

[U-Boot] [PATCH 1/4] Implement verify option for sha1sum command

2012-08-17 Thread Joe Hershberger
Loosely based on CONFIG_CRC32_VERIFY. The sum to verify against can be in memory, in a variable, or the last parameter to the function directly. Signed-off-by: Joe Hershberger --- common/cmd_sha1sum.c | 105 +++ 1 file changed, 105 insertions

[U-Boot] [PATCH 2/4] Add parameter to sha1sum to save the SHA1 sum

2012-08-17 Thread Joe Hershberger
Add a parameter that allows you to store the SHA1 sum to either a memory location or a variable. Signed-off-by: Joe Hershberger --- common/cmd_sha1sum.c | 41 + 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/common/cmd_sha1sum.c b/common

[U-Boot] [PATCH 3/4] Implement verify option for md5sum command

2012-08-17 Thread Joe Hershberger
Loosely based on CONFIG_CRC32_VERIFY. The sum to verify against can be in memory, in a variable, or the last parameter to the function directly. Signed-off-by: Joe Hershberger --- common/cmd_md5sum.c | 105 1 file changed, 105 insertions

Re: [U-Boot] [PATCH v2] net: asix: add support for AX88772B

2012-08-20 Thread Joe Hershberger
Hi Lucas, On Mon, Aug 20, 2012 at 12:52 PM, Lucas Stach wrote: > There are multiple changes needed to make AX88772B work: > > 1. add vendor and product ID (trivial) > > 2. We need to read out the MAC address from the EEPROM and write > it into the NodeID register manually. > > 3. The packet lengt

Re: [U-Boot] [PATCH 6/6] fdt: Add a Linux tool for reading values from FDT files

2012-08-20 Thread Joe Hershberger
Hi Mike, On Fri, Aug 17, 2012 at 6:35 PM, Mike Frysinger wrote: > On Friday 17 August 2012 16:34:40 Joe Hershberger wrote: >> Designed to be able to access itb files on a filesystem or an mtd >> partition. >> >> Supports print and list (like the fdt command) and als

Re: [U-Boot] [PATCH 6/6] fdt: Add a Linux tool for reading values from FDT files

2012-08-20 Thread Joe Hershberger
Hi Mike, On Mon, Aug 20, 2012 at 7:24 PM, Mike Frysinger wrote: > On Monday 20 August 2012 19:40:45 Joe Hershberger wrote: >> On Fri, Aug 17, 2012 at 6:35 PM, Mike Frysinger wrote: >> > On Friday 17 August 2012 16:34:40 Joe Hershberger wrote: >> >> Designed to be

Re: [U-Boot] [PATCH 2/6] net: usbeth: remove misleading warning

2012-08-22 Thread Joe Hershberger
Hi Lucas / Marek, On Wed, Aug 22, 2012 at 1:32 PM, Lucas Stach wrote: > Am Mittwoch, den 22.08.2012, 20:22 +0200 schrieb Marek Vasut: >> Dear Lucas Stach, >> >> > If the environment doesn't provide a MAC address it's not an >> > error to use the one provided by the eth adapter. Actually it >> > s

Re: [U-Boot] [PATCH 1/6] net: introduce transparent driver private in ueth_data

2012-08-22 Thread Joe Hershberger
Hi Lucas, On Wed, Aug 22, 2012 at 5:09 AM, Lucas Stach wrote: > Avoid clutter in ueth_data. Individual drivers should not mess > with structures belonging to the core like this. > > Signed-off-by: Lucas Stach Acked-by: Joe Hershberger __

Re: [U-Boot] [PATCH 3/6] net: asix: split out basic reset function

2012-08-22 Thread Joe Hershberger
call it > from asix_eth_get_info(), so that it only gets called once. > > Signed-off-by: Lucas Stach Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 5/6] net: asix: add read_mac function

2012-08-22 Thread Joe Hershberger
ices that have their initial MAC stored in > EEPROM. Call this function inasix_eth_get_info(). > > Signed-off-by: Lucas Stach > --- Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 6/6] net: asix: add AX88772B support

2012-08-22 Thread Joe Hershberger
default configuration. So stop > enumeration after we found them to avoid overwriting the > endpoint config with a non-working one. > > Signed-off-by: Lucas Stach > --- Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 4/6] net: asix: add write_hwaddr function

2012-08-22 Thread Joe Hershberger
Hi Lucas, On Wed, Aug 22, 2012 at 5:09 AM, Lucas Stach wrote: > All ASIX chipsets aside from AX88172 are able to set the MAC > address on the hardware level. Add a function to expose this > ability. > > To differentiate between chip types we now carry flags as driver > private data. Also while to

Re: [U-Boot] [PATCH 1/3] nand: Add support for unlock.invert

2012-08-22 Thread Joe Hershberger
Hi Scott, On Fri, Aug 17, 2012 at 3:53 PM, Scott Wood wrote: > On 08/17/2012 03:31 PM, Joe Hershberger wrote: >> NAND unlock command allows an invert bit to be set to unlock all but >> the selected page range. >> >> Signed-off-by: Joe Hershberger >> --- >

Re: [U-Boot] [PATCH V1 1/3] phy: add phy_connect_by_mask

2012-08-22 Thread Joe Hershberger
Hi Andy, On Wed, Aug 22, 2012 at 3:40 PM, Andy Fleming wrote: > On Wed, Aug 22, 2012 at 2:59 PM, Troy Kisky > wrote: >> On 8/20/2012 5:35 PM, Andy Fleming wrote: >> The same way it works currently. I removed no features. > > > Agreed. But the way it works currently is bad. Many drivers do this:

Re: [U-Boot] [PATCHv2 3/5] net: asix: add write_hwaddr function

2012-08-22 Thread Joe Hershberger
e data. Also while touching the asix_dongles array > constify this. > > Signed-off-by: Lucas Stach > --- Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v2 2/4] nand: Change ulong to loff_t and size_t

2012-08-22 Thread Joe Hershberger
Missed in previous cleanup. Signed-off-by: Joe Hershberger --- Changes in v2: - Added loff_t cleanup to series drivers/mtd/nand/nand_util.c | 5 +++-- include/nand.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd

[U-Boot] [PATCH v2 1/4] nand: Add support for unlock.invert

2012-08-22 Thread Joe Hershberger
NAND unlock command allows an invert bit to be set to unlock all but the selected page range. Signed-off-by: Joe Hershberger --- Changes in v2: - Changed invert to allexcept - Changed unlock printf to debug print - Dropped cast in unlock debug print common/cmd_nand.c| 13

[U-Boot] [PATCH v2 3/4] nand: consolidate duplicated constants

2012-08-22 Thread Joe Hershberger
NAND_CMD_ constants for lock/unlock should be in the header Signed-off-by: Joe Hershberger --- drivers/mtd/nand/nand_util.c | 6 -- include/linux/mtd/nand.h | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand

[U-Boot] [PATCH v2 4/4] nand: Make NAND lock status compatible with Micron

2012-08-22 Thread Joe Hershberger
Micron NAND flash (e.g. MT29F4G08ABADAH4) BLOCK LOCK READ STATUS is not the same as others. Instead of bit 1 being lock, it is #lock_tight. To make the driver support either format, ignore bit 1 and use only bit 0 and bit 2. Signed-off-by: Joe Hershberger --- Changes in v2: - Added comment

Re: [U-Boot] [PATCH 1/3] nand: Add support for unlock.invert

2012-08-23 Thread Joe Hershberger
Hi Scott, On Wed, Aug 22, 2012 at 8:38 PM, Scott Wood wrote: > On 08/22/2012 03:34 PM, Joe Hershberger wrote: >> Hi Scott, >> >> On Fri, Aug 17, 2012 at 3:53 PM, Scott Wood wrote: >>> On 08/17/2012 03:31 PM, Joe Hershberger wrote: >>>> NAND unlock

Re: [U-Boot] [PATCH 01/12] tools/env: Use a board-specific default env

2012-08-23 Thread Joe Hershberger
Hi Mike, On Wed, Aug 22, 2012 at 10:17 PM, Mike Frysinger wrote: > On Friday 17 August 2012 16:49:35 Joe Hershberger wrote: >> */ >> #define CONFIG_FILE "/etc/fw_env.config" >> >> +#ifndef CONFIG_FILE > > this doesn't make any sense. CONF

Re: [U-Boot] [PATCH 04/12] tools/env: Reduce the impact on real-time processes

2012-08-23 Thread Joe Hershberger
Hi Mike, On Wed, Aug 22, 2012 at 10:30 PM, Mike Frysinger wrote: > On Friday 17 August 2012 16:49:38 Joe Hershberger wrote: >> + * Break reads up into very small chunks so fw_printenv doesn't >> + * block the kernel long enough to starve other kernel

Re: [U-Boot] [PATCH v4 1/5] net/bootp: add VCI support for BOOTP also

2012-08-29 Thread Joe Hershberger
Hi Ilya, On Sun, Aug 5, 2012 at 4:21 PM, Ilya Yanok wrote: > Vendor Class Identifier option is common to BOOTP and DHCP and > can be useful without PXE. So send VCI in both BOOTP and DHCP > requests if CONFIG_BOOTP_VCI_STRING is defined. > > Signed-off-by: Ilya Yanok > &g

Re: [U-Boot] [PATCH v5 4/5] OMAP: networking support for SPL

2012-08-29 Thread Joe Hershberger
Hi Ilya, On Tue, Aug 7, 2012 at 3:07 AM, Ilya Yanok wrote: > This patch adds support for networking in SPL. Some devices are > capable of loading SPL via network so it makes sense to load the > main U-Boot binary via network too. This patch tries to use > existing network code as much as possible

Re: [U-Boot] [PATCH] dm: net: Fixup the armada100 FEC driver

2012-09-05 Thread Joe Hershberger
Hi Prafulla, On Mon, Sep 3, 2012 at 4:09 AM, Prafulla Wadaskar wrote: > > >> -Original Message- >> From: Prafulla Wadaskar >> Sent: 30 July 2012 12:02 >> To: 'Marek Vasut'; u-boot@lists.denx.de >> Cc: Joe Hershberger; u-boot...@lists.de

Re: [U-Boot] [PATCH 2/2] bfin: Fix warning in bfin_mac

2012-09-12 Thread Joe Hershberger
buf' set but not used >> [-Wunused-but-set-variable] >> >> Signed-off-by: Marek Vasut >> Cc: Mike Frysinger > > Guess I should have Cced Joe too ... > Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 10/12] env: acl: Add environment variable access control list

2012-09-13 Thread Joe Hershberger
Hi Wolfgang, I guess you didn't see this the last time I sent it to you off list... On Thu, Sep 13, 2012 at 3:13 PM, Wolfgang Denk wrote: > Dear Joe Hershberger, > > In message <1345236586-19076-11-git-send-email-joe.hershber...@ni.com> you > wrote: >> Currently

Re: [U-Boot] [PATCH 2/4 v2] net: Add driver for Zynq Gem IP

2012-09-13 Thread Joe Hershberger
Hi Marek, On Thu, Sep 13, 2012 at 4:28 AM, Marek Vasut wrote: > Dear Michal Simek, >> + /* >> + * Following is the setup for Network Control register. >> + * Bit 2: Set to enable Receive operation. >> + * Bit 3: Set to enable Transmitt operation. >> + * Bit 4: Set to en

Re: [U-Boot] [PATCH 4/4 v3] xilinx: Add new Zynq board

2012-09-13 Thread Joe Hershberger
Hi Michal, On Thu, Aug 16, 2012 at 1:30 AM, Michal Simek wrote: > Add support for Xilinx Zynq board. > > Signed-off-by: Michal Simek > > --- > v2: Forget to also add config file > > v3: Change name for serial driver > Remove lowlevel_init from board folder > Remove XPSS part from timer b

Re: [U-Boot] [PATCH 1/4 v2] serial: Add Zynq serial driver

2012-09-13 Thread Joe Hershberger
Hi Marek, On Thu, Sep 13, 2012 at 9:01 AM, Marek Vasut wrote: > Dear Michal Simek, > >> On 09/13/2012 02:33 PM, Marek Vasut wrote: >> > Dear Michal Simek, >> > >> >> On 09/13/2012 11:21 AM, Marek Vasut wrote: >> >>> Dear Michal Simek, >> >>> >> The driver is used on Xilinx Zynq platform. >>

Re: [U-Boot] [PATCH 1/4 v2] serial: Add Zynq serial driver

2012-09-13 Thread Joe Hershberger
Hi Marek, On Thu, Sep 13, 2012 at 11:47 PM, Marek Vasut wrote: > Dear Joe Hershberger, > >> Hi Marek, >> >> On Thu, Sep 13, 2012 at 9:01 AM, Marek Vasut wrote: >> > Dear Michal Simek, >> > >> >> On 09/13/2012 02:33 PM, Marek Vasut wrote: >

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

2012-12-01 Thread Joe Hershberger
Hi Yann, On Mon, Nov 19, 2012 at 5:42 AM, Yann Vernier wrote: > On Fri, 26 Oct 2012 23:37:28 +0200 > Albert ARIBAUD wrote: > >> Hi Yann, >> >> On Fri, 19 Oct 2012 10:02:09 +0200, Yann Vernier >> wrote: >> >> > On Thu, 18 Oct 2012 15:55:31 -0500

Re: [U-Boot] [PATCH v2 10/23] Add generic hash API

2012-12-01 Thread Joe Hershberger
sh.c > new file mode 100644 > index 000..9a844b8 > --- /dev/null > +++ b/common/hash.c > @@ -0,0 +1,221 @@ > +/* > + * Copyright (c) 2012 The Chromium OS Authors. > + * > + * (C) Copyright 2011 > + * Joe Hershberger, National Instruments, joe.hershber...@ni.com >

Re: [U-Boot] [PATCH v2 12/23] Add hash command to perform hashing using various algorithms

2012-12-01 Thread Joe Hershberger
CONFIG_CMD_HASH) += cmd_hash.o > COBJS-$(CONFIG_CMD_IDE) += cmd_ide.o > COBJS-$(CONFIG_CMD_IMMAP) += cmd_immap.o > COBJS-$(CONFIG_CMD_INI) += cmd_ini.o > diff --git a/common/cmd_hash.c b/common/cmd_hash.c > new file mode 100644 > index 000..10ce03e > --- /dev/null >

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

2012-12-01 Thread Joe Hershberger
Hi Wolfgang, On Fri, Nov 2, 2012 at 5:40 PM, Wolfgang Denk 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 >> ov

[U-Boot] [PATCH v4 19/20] env: Implement the env delete command

2012-12-04 Thread Joe Hershberger
Implement a way to delete more than one variable at a time. Signed-off-by: Joe Hershberger --- Changes in v4: - Implement delete Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 35 --- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a

[U-Boot] [PATCH v4 04/20] env: Refactor apply into change_ok

2012-12-04 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 --- Changes in v4: None Changes in v3: - Split hdelete_r() into the core delete and the validation before delete - Delete vars on failed insertion Changes in

[U-Boot] [PATCH v4 0/20] Add environment call-back and flags capability

2012-12-04 Thread Joe Hershberger
verse search in env_attr_lookup() - Fix space skipping in env_attr_lookup() - All errors coming back from hsearch_r() are no longer fatal. Don't abort import on failed ENTER action. - Removed checkpatch.pl warning Changes in v2: - Added much-needed documentation - Factored out prevch and nextch in en

[U-Boot] [PATCH v4 10/20] env: Add a baudrate env handler

2012-12-04 Thread Joe Hershberger
Remove the hard-coded baudrate handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 47 - drivers/serial/serial.c | 70

[U-Boot] [PATCH v4 12/20] env: Add a console env handler

2012-12-04 Thread Joe Hershberger
Remove the hard-coded console handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c| 36 +++- common/console.c | 44

[U-Boot] [PATCH v4 14/20] env: Add environment variable flags

2012-12-04 Thread Joe Hershberger
ion in the environment distracting you. Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2: None README | 37 ++ common/Makefile| 2 + common/cmd_nvedit.c| 50 +--- common/env_common.c| 2 +- common/env_flags.c

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

2012-12-04 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 --- Changes in v4: None Changes in v3: None Changes in v2: None common/env_flags.c | 19 --- include/env_flags.h | 22

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

2012-12-04 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 --- Changes in v4: None Changes in v3: None Changes in v2: None README | 1 + common/cmd_nvedit.c | 77

[U-Boot] [PATCH v4 02/20] env: Refactor do_apply to a flag

2012-12-04 Thread Joe Hershberger
Use a flag in hsearch_r for insert mode passed from import to allow the behavior be different based on use. Now that "do_check" is called for all imports, ensure console init is complete before updating the console on relocation import Signed-off-by: Joe Hershberger --- Changes in v4:

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

2012-12-04 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 --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/lib/board.c| 4 +--- arch/m68k/lib/board.c | 3

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

2012-12-04 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

[U-Boot] [PATCH v4 11/20] env: Add a loadaddr env handler

2012-12-04 Thread Joe Hershberger
Remove the hard-coded loadaddr handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c| 12 common/image.c | 21 + include/env_callback.h | 1 + 3 files

[U-Boot] [PATCH v4 09/20] env: Add a bootfile env handler

2012-12-04 Thread Joe Hershberger
Remove the hard-coded bootfile handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c| 9 - include/env_callback.h | 1 + net/net.c | 17 + 3 files changed

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

2012-12-04 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 --- Changes in v4: - Add help text for env flags command Changes in v3: None Changes in v2: None README

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

2012-12-04 Thread Joe Hershberger
: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2: None include/linux/linux_string.h | 8 +++ include/linux/string.h | 5 + lib/Makefile | 1 + lib/linux_string.c | 51 lib/string.c

[U-Boot] [PATCH v4 18/20] env: Add setenv force support

2012-12-04 Thread Joe Hershberger
Now that we have support for permissions, add a way to override them. Signed-off-by: Joe Hershberger --- Changes in v4: - Add force support to setenv Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions

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

2012-12-04 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 --- Changes in v4: None Changes in v3: None Changes in v2: None lib/hashtable.c | 71

[U-Boot] [PATCH v4 13/20] env: Add a silent env handler

2012-12-04 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 --- Changes in v4: None Changes in v3: None Changes in v2: None common

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

2012-12-04 Thread Joe Hershberger
Add support for per-variable callbacks to the "hashtable" functions. Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: - Use Marek's linker lists instead of implementing it directly - Rebase onto latest master - Add flags parameter to callbacks - Implement re

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

2012-12-04 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 --- Changes in v4: None Changes in v3: None Changes in v2: None common/env_attr.c | 7 + common/env_flags.c | 75

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

2012-12-04 Thread Joe Hershberger
Add support for read-only, write-once, and change-default. Signed-off-by: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2: None README| 13 - common/cmd_nvedit.c | 31 -- common/env_common.c | 18 ++ common/env_flags.c| 153

[U-Boot] [PATCH] env: Fixup typos in callback

2012-12-11 Thread Joe Hershberger
Use the same command guard on the help and make the help accurate. Fix spelling in header. Signed-off-by: Joe Hershberger --- common/cmd_nvedit.c| 6 +++--- include/env_callback.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/cmd_nvedit.c b/common

[U-Boot] Pull request: u-boot-net.git master

2012-12-11 Thread Joe Hershberger
7680b9a758b257ea272c83518d9c76c3ef0a59b8: net: usb: smsc95xx: Pull out init of struct eth_ops (2012-12-10 14:28:03 -0600) Joe Hershberger (1): net: Fix endianness bug in link-local Michal Simek (1): phy: Add support for Marvell 88E1118R Ruchika

[U-Boot] [BUGFIX PATCH] mips: serial: Fix busted manual relocation

2012-12-11 Thread Joe Hershberger
serial_initialize() must be called after relocation to adjust the pointers to putc(), getc(), etc. This is busted ever since the serial driver-model-ification series. Signed-off-by: Joe Hershberger --- arch/mips/lib/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/lib

Re: [U-Boot] Pull request: u-boot-net.git master

2012-12-11 Thread Joe Hershberger
Hi Thomas, On Tue, Dec 11, 2012 at 5:47 PM, Langer Thomas (LQDE RD ST PON SW) wrote: > Hello Joe, > > These patches for static initialization of the struct eth_ops will break the > drivers on any architecture which needs manual relocation! > > I've send a comment regarding this, please see here:

[U-Boot] [PATCH v5 13/20] env: Add a silent env handler

2012-12-11 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 --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in

[U-Boot] [PATCH v5 10/20] env: Add a baudrate env handler

2012-12-11 Thread Joe Hershberger
Remove the hard-coded baudrate handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 47 - drivers/serial/serial.c | 70

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

2012-12-11 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 --- Changes in v5: None Changes in v4: - Add help text for env flags command Changes in v3: None Changes in v2: None

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

2012-12-11 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 --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/env_flags.c | 19 --- include/env_flags.h

[U-Boot] [PATCH v5 09/20] env: Add a bootfile env handler

2012-12-11 Thread Joe Hershberger
Remove the hard-coded bootfile handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c| 9 - include/env_callback.h | 1 + net/net.c | 17

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

2012-12-11 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

[U-Boot] [PATCH v5 12/20] env: Add a console env handler

2012-12-11 Thread Joe Hershberger
Remove the hard-coded console handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c| 36 +++- common/console.c | 44

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

2012-12-11 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 !!! fix callback command --- Changes in v5: - Fixed callbacks command help - Compare current callback against pre-relocation address manually Changes in

[U-Boot] [PATCH v5 0/20] Add environment call-back and flags capability

2012-12-11 Thread Joe Hershberger
needed documentation - Factored out prevch and nextch in env_attr_lookup() Joe Hershberger (20): Make linux kernel string funcs available to tools env: Refactor do_apply to a flag env: Consolidate common code in hsearch_r() env: Refactor apply into change_ok env: Use getenv_yesno() more g

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

2012-12-11 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 --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/lib/board.c| 4 +--- arch/m68k/lib/bo

[U-Boot] [PATCH v5 19/20] env: Implement the env delete command

2012-12-11 Thread Joe Hershberger
Implement a way to delete more than one variable at a time. Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: - Implement delete Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 35 --- 1 file changed, 32 insertions(+), 3

[U-Boot] [PATCH v5 18/20] env: Add setenv force support

2012-12-11 Thread Joe Hershberger
Now that we have support for permissions, add a way to override them. Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: - Add force support to setenv Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 29 +++-- 1 file changed, 23

[U-Boot] [PATCH v5 11/20] env: Add a loadaddr env handler

2012-12-11 Thread Joe Hershberger
Remove the hard-coded loadaddr handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c| 12 common/image.c | 21 + include

[U-Boot] [PATCH v5 02/20] env: Refactor do_apply to a flag

2012-12-11 Thread Joe Hershberger
Use a flag in hsearch_r for insert mode passed from import to allow the behavior be different based on use. Now that "do_check" is called for all imports, ensure console init is complete before updating the console on relocation import Signed-off-by: Joe Hershberger --- Changes i

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

2012-12-11 Thread Joe Hershberger
Add support for per-variable callbacks to the "hashtable" functions. Signed-off-by: Joe Hershberger !!!fix comment in callback --- Changes in v5: - Add support for CONFIG_NEEDS_MANUAL_RELOC boards - Fixed comment typo Changes in v4: None Changes in v3: - Use Marek's linker l

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

2012-12-11 Thread Joe Hershberger
: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/linux/linux_string.h | 8 +++ include/linux/string.h | 5 + lib/Makefile | 1 + lib/linux_string.c | 51

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

2012-12-11 Thread Joe Hershberger
Add support for read-only, write-once, and change-default. Signed-off-by: Joe Hershberger --- Changes in v5: - Fixed out-of-bounds array access in env_flags_parse_varaccess() Changes in v4: None Changes in v3: None Changes in v2: None README| 13 - common/cmd_nvedit.c

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

2012-12-11 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 --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/env_attr.c | 7 + common

[U-Boot] [PATCH v5 04/20] env: Refactor apply into change_ok

2012-12-11 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 --- Changes in v5: - Manually relocate change_ok() pointer Changes in v4: None Changes in v3: - Split hdelete_r() into the core delete and the validation

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

2012-12-11 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 --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None lib/hashtable.c | 71

[U-Boot] [PATCH v5 14/20] env: Add environment variable flags

2012-12-11 Thread Joe Hershberger
ion in the environment distracting you. Signed-off-by: Joe Hershberger --- Changes in v5: - Fixed out-of-bounds array access in env_flags_parse_vartype() Changes in v4: None Changes in v3: None Changes in v2: None README | 37 ++ common/Makefile| 2 + common/cmd_nvedit.

Re: [U-Boot] [PATCH] net: sh_eth: add support for SH7752

2012-12-11 Thread Joe Hershberger
Hi On Wed, Dec 12, 2012 at 12:37 AM, Nobuhiro Iwamatsu wrote: > Hi, Joe. > > Please pick this patch for your repository. Sure thing. Did you recently assign it to me in patchwork? I don't remember seeing it when I pulled patches a few days back. -Joe > Best regards, > Nobuhiro > > On Mon,

Re: [U-Boot] [PATCH] env: don't generate callback list entries for SPL

2012-12-14 Thread Joe Hershberger
break due to size limitations. > > A static inline function is used to provide a context in which we > can consume the callback, and thus avoid unused function warnings. > > Signed-off-by: Scott Wood Sorry about that. Acked-by: Joe Hershberger _

Re: [U-Boot] [PATCH 01/11] usb: net: asix: Do a fast init if link already established

2012-12-14 Thread Joe Hershberger
> } > > /* > diff --git a/include/usb_ether.h b/include/usb_ether.h > index 7c7aecb..6145210 100644 > --- a/include/usb_ether.h > +++ b/include/usb_ether.h > @@ -49,6 +49,7 @@ struct ueth_data { > unsigned char subclass; /* as in overview */ > unsigned

Re: [U-Boot] [PATCH 2/3] fw_env: fix incorrect usage of open(O_CREAT)

2012-12-15 Thread Joe Hershberger
m fw_env_main.c:42: > In function 'open', > inlined from 'main' at fw_env_main.c:97:9: > /usr/include/bits/fcntl2.h:50:24: error: call to '__open_missing_mode' > declared > with attribute error: open with O_CREAT in second argument needs 3 &

Re: [U-Boot] [PATCH 1/3] fw_env: fix type of len

2012-12-15 Thread Joe Hershberger
'%zu' expects argument of type 'size_t', > but argument 3 has type 'int' [-Wformat] > > Signed-off-by: Mike Frysinger > --- Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 3/3] fw_env: fix building w/out a config.h

2012-12-15 Thread Joe Hershberger
Hi Mike On Sat, Nov 10, 2012 at 11:47 PM, Mike Frysinger wrote: > Signed-off-by: Mike Frysinger > --- > tools/env/Makefile | 11 ++- > tools/env/fw_env.h | 25 - > 2 files changed, 10 insertions(+), 26 deletions(-) > > diff --git a/tools/env/Makefile b/tools/env/

[U-Boot] Pull request: u-boot-net.git master

2012-12-15 Thread Joe Hershberger
: sh_eth: add support for SH7752 (2012-12-15 12:28:24 -0600) Joe Hershberger (1): net: Fix endianness bug in link-local Michal Simek (1): phy: Add support for Marvell 88E1118R Ruchika Gupta (1): e1000e : Correct Rx

Re: [U-Boot] [PATCH] env: don't generate callback list entries for SPL

2012-12-17 Thread Joe Hershberger
Hi Tom, On Mon, Dec 17, 2012 at 1:58 PM, Tom Rini wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 12/17/12 14:55, Wolfgang Denk wrote: >> Dear Tom, >> >> In message <50cf6ea8.4050...@ti.com> you wrote: >>> >>> Since I'd assume 'sort' in make isn't sort -u, I'm not sure how >>> it'

Re: [U-Boot] [U-Boot,1/3] fw_env: fix type of len

2012-12-19 Thread Joe Hershberger
t; fw_env.c: In function 'fw_setenv': >> fw_env.c:409:5: warning: format '%zu' expects argument of type 'size_t', >> but argument 3 has type 'int' [-Wformat] >> >> Signed-off-by: Mike Frysinger >> Acked-by: Joe Hershberger >

Re: [U-Boot] [PATCH v2 1/7] usb: net: asix: Do a fast init if link already established

2012-12-20 Thread Joe Hershberger
--- > Changes in v2: None Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 5/7] usb: usbeth: smsc95xx: remove EEPROM loaded check

2012-12-20 Thread Joe Hershberger
ns. This prevents any reading or writing > unless a correctly programmed EEPROM is installed. > > Signed-off-by: Michael Spang > Signed-off-by: Simon Glass > Acked-by: Marek Vasut > --- Acked-by: Joe Hershberger ___ U-Boot mailing list U

Re: [U-Boot] [RFC] Is anyone interested IPv6 support for u-boot

2013-01-10 Thread Joe Hershberger
Hi Chris, On Wed, Jan 9, 2013 at 9:25 PM, Chris Packham wrote: > Hi, > > Here at $dayjob we make embedded network devices (routers & switches). > Because we have an interest in getting people to adopt IPv6 we've added code > to our local u-boot repository to add basic IPv6 support on our boards.

Re: [U-Boot] [RFC] Is anyone interested IPv6 support for u-boot

2013-01-10 Thread Joe Hershberger
Hi Chris, On Thu, Jan 10, 2013 at 3:34 PM, Chris Packham wrote: > > On Fri, Jan 11, 2013 at 8:16 AM, Joe Hershberger > wrote: >> >> Hi Chris, >> >> On Wed, Jan 9, 2013 at 9:25 PM, Chris Packham >> wrote: >> > Hi, >> > >> > He

Re: [U-Boot] [PATCH v5 07/20] env: Add support for callbacks to environment vars

2013-01-14 Thread Joe Hershberger
Hi Stefan, On Fri, Jan 11, 2013 at 2:06 AM, Stefan Roese wrote: > Hi Joe, > > On 12/12/2012 05:16 AM, Joe Hershberger wrote: >> Add support for per-variable callbacks to the "hashtable" functions. > > I just noticed using latest master branch that booting on a N

Re: [U-Boot] [RFC PATCH v2 0/5] Initial IPv6 support

2013-01-18 Thread Joe Hershberger
an ipv6 >> branch collecting my changes if anyone wants to pull it down for their >> own testing. If we want to apply some of the simple stuff early that's >> fine by me. > > I see no problem with handling this as a branch (for example in the > u-boot-net or u-boot-

Re: [U-Boot] [PATCH] phy: Add support for Marvell 88E1118R

2012-09-14 Thread Joe Hershberger
Hi Michal, On Fri, Sep 14, 2012 at 8:15 AM, Michal Simek wrote: > Hi Tom and Joe, > > > On 08/07/2012 02:23 PM, Michal Simek wrote: >> >> Marvell 88E1118R has different uid then 88E1118. >> >> Signed-off-by: Michal Simek >> CC: Andy Fleming >> CC: Zang Roy-R61911 >> CC: Kumar Gala >> --- >>

Re: [U-Boot] [PATCH 1/4 v3] serial: Add Zynq serial driver

2012-09-14 Thread Joe Hershberger
Hi Marek, On Fri, Sep 14, 2012 at 6:00 AM, Marek Vasut wrote: >> > I guess this platform won't make it into .10 release anyway. >> >> Why not? Any reason why these 4 patches should wait till the next release? > > MW is closed (Aug. 18) The first version of this series was sent on Aug 14. http://

Re: [U-Boot] [PATCH] net: sh_eth: Add support R8A7740 of rmobile (arm core)

2012-09-18 Thread Joe Hershberger
Hi Nobuhiro Iwamatsu, On Mon, Sep 17, 2012 at 8:11 PM, Nobuhiro Iwamatsu wrote: > Hi, Joe. > > Could you pick this patch to your repository? This is in my backlog. Thanks, -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/

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