[U-Boot] [PATCH 11/28] net: Refactor IP, UPD, and ICMP header writing functions

2012-01-20 Thread Joe Hershberger
ICMP (ping) was reimplementing IP header code... it now shares code. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- include/net.h |4 +++- net/bootp.c |6 +++--- net/net.c | 47

[U-Boot] [PATCH 22/28] net: Fix net buffer initialization

2012-01-20 Thread Joe Hershberger
A new non-static function NetInit() will initialize buffers and read from the env Only update from the env on each entry to NetLoop() Check when attempting to send a packet that the buffers were initialized Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber

[U-Boot] [PATCH 04/28] net: Make the MAC-seeded random number generator available to /net

2012-01-20 Thread Joe Hershberger
MAC-seeded rand() will be needed by link-local as well, so give it an interface Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/Makefile |1 + net/bootp.c| 69

[U-Boot] [PATCH 25/28] net: Add option CONFIG_BOOTP_CAN_FAIL

2012-01-20 Thread Joe Hershberger
This is useful if you want to look for a DHCP server, but try some other settings if not available Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- README |7 +++ net/bootp.c |5 + 2

[U-Boot] [PATCH 03/28] net: Move mv64x6x_eth_initialize() to board_eth_init()

2012-01-20 Thread Joe Hershberger
Clears up checkpatch.pl complaint about extern in c file Completes the effort started by Ben Warren in 2008 to generalize eth init Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- board/Marvell/db64360/db64360

[U-Boot] [PATCH 23/28] net: Refactor NetSendUDPPacket to share more code

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/net.c | 44 +--- 1 files changed, 25 insertions(+), 19 deletions(-) diff --git a/net/net.c b/net/net.c index

[U-Boot] [PATCH 20/28] net: Fix compile warning if CONFIG_BOOTP_SERVERIP is not defined

2012-01-20 Thread Joe Hershberger
There is no reason to use compiler magic to fix this Actually move the definition inside the #ifdef Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/bootp.c |7 +++ 1 files changed, 3 insertions

[U-Boot] [PATCH 15/28] net: Refactor to call NetSendPacket() instead of calling eth_send()

2012-01-20 Thread Joe Hershberger
Use this entry-point consistently across the net/ code Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/arp.c |6 +++--- net/cdp.c |2 +- net/net.c |2 +- net/ping.c |3 +-- 4 files

[U-Boot] [PATCH 18/28] net: Add NetUpdateEther() to handle ARP or Ping replies (VLAN or SNAP)

2012-01-20 Thread Joe Hershberger
NetUpdateEther() will preserve the original Ethernet packet header and simply replace the src and dest MACs and the protocol Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- include/net.h |1 + net/arp.c

[U-Boot] [PATCH 26/28] net: Add link-local addressing support

2012-01-20 Thread Joe Hershberger
Code based on networking/zcip.c in busybox - commit 8531d76a15890c2c535908ce888b2e2aed35b172 Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- README | 15 +++- common/cmd_net.c | 30

[U-Boot] [PATCH 12/28] net: Refactor packet length computations

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/arp.c | 13 - net/ping.c |7 --- net/rarp.c |6 -- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/net/arp.c b

[U-Boot] [PATCH 19/28] net: Don't write the serverip env var if told not to in the config

2012-01-20 Thread Joe Hershberger
Before this patch, bootp would not overwrite the value, but the value was still clobbered in the env Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- common/cmd_net.c |4 ++-- 1 files changed, 2

[U-Boot] [PATCH 21/28] net: Remove unneeded static allocation for MAC address in PingSend()

2012-01-20 Thread Joe Hershberger
Don't force ARP clients to return the MAC address if they don't care about it (such as ping) Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/arp.c |9 + net/ping.c | 10 +++--- 2

[U-Boot] [PATCH 06/28] net: Move ARP out of net.c

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- include/net.h |3 +- net/Makefile |1 + net/arp.c | 213 + net/arp.h | 30

[U-Boot] [PATCH 01/28] net: Remove volatile from all of net except the eth driver interface

2012-01-20 Thread Joe Hershberger
The mv_eth driver should not redefine the net function definition Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- board/Marvell/db64360/mv_eth.c |2 -- board/Marvell/db64460/mv_eth.c |2 -- board/esd

[U-Boot] [PATCH 16/28] net: Refactor to protect access to the NetState variable

2012-01-20 Thread Joe Hershberger
Changes to NetState now go through an accessor function called NetSetState() Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- drivers/net/netconsole.c |6 +++--- include/net.h| 13

[U-Boot] [PATCH 07/28] net: Move PING out of net.c

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- include/configs/am3517_crane.h |2 +- include/configs/am3517_evm.h |2 +- include/configs/origen.h |2 +- net/Makefile

[U-Boot] [PATCH 13/28] net: Refactor bootp packet length computations

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/bootp.c | 26 ++ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/net/bootp.c b/net/bootp.c index 0c2af48..0d5f4cf

[U-Boot] [PATCH 14/28] net: Refactor ping recieve handler

2012-01-20 Thread Joe Hershberger
There is no need to call through the handler when we can handle it inline Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/ping.c | 19 ++- 1 files changed, 2 insertions(+), 17 deletions

[U-Boot] [PATCH 27/28] net: Work-around for brain-damaged Cisco routers with arp-proxy

2012-01-20 Thread Joe Hershberger
and will delay replying to the ARP request for 5ms so that the first packet is sent to the Cisco equipment and all following packets are sent to our device Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/arp.c

[U-Boot] [PATCH 17/28] net: Refactor to separate the UDP handler from the ARP handler

2012-01-20 Thread Joe Hershberger
Only call the handlers if one was registered... don't require protocols to register a handler (eliminating dummies) NetConsole now uses the ARP handler when waiting on arp (instead of needing a #define hack in arp.c) Clear handlers at the end of net loop Signed-off-by: Joe Hershberger

[U-Boot] [PATCH 24/28] net: Don't copy every packet that waits for an ARP

2012-01-20 Thread Joe Hershberger
Use the NetArpTxPacket for the ARP packet, not to hold what used to be in NetTxPacket This saves a copy and makes the code easier to understand Generalize the formation of the ARP packet Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc

[U-Boot] [PATCH 09/28] net: cosmetic: Un-typedef variables in net

2012-01-20 Thread Joe Hershberger
Un-typedef IP_t, Ethernet_t, VLAN_Ethernet_t, ARP_t, ICMP_t Rename IP header related things to IP_UDP The existing definition of IP_t includes UDP header, so name it to accurately describe the structure Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber

[U-Boot] [PATCH 00/28] Add link-local addressing support

2012-01-20 Thread Joe Hershberger
. Joe Hershberger (28): net: Remove volatile from all of net except the eth driver interface net: cosmetic: checkpatch compliance net: Move mv64x6x_eth_initialize() to board_eth_init() net: Make the MAC-seeded random number generator available to /net net: Move CDP out of net.c net

[U-Boot] [PATCH 10/28] net: cosmetic: Improve variable names and code readability

2012-01-20 Thread Joe Hershberger
remove related BOOTP_SIZE which was unused and doesn't take into account VLAN packets Rename tmp to reply_ip_addr in arp.c Alphabetize includes in net.c Replace magic numbers in arp.c with constants Add a more explicit comment about 802.2 Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc

[U-Boot] [PATCH 28/28] net: Allow filtering on debug traces in the net subsystem

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- drivers/net/netconsole.c |6 ++ net/arp.c| 12 net/link_local.c | 31 +++ net/net.c

[U-Boot] [PATCH 08/28] net: Move RARP receive logic out of net.c

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- net/net.c | 25 + net/rarp.c | 38 +++--- net/rarp.h |1 + 3 files changed, 29 insertions(+), 35

[U-Boot] [PATCH 05/28] net: Move CDP out of net.c

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- arch/powerpc/cpu/mpc8xx/fec.c |2 +- include/net.h |9 +- net/Makefile |1 + net/cdp.c | 380

Re: [U-Boot] [PATCH 01/28] net: Remove volatile from all of net except the eth driver interface

2012-01-20 Thread Joe Hershberger
Hi Simon, On Fri, Jan 20, 2012 at 10:22 AM, Simon Glass s...@chromium.org wrote: Hi Joe, On Thu, Jan 19, 2012 at 4:53 PM, Joe Hershberger joe.hershber...@ni.com wrote: The mv_eth driver should not redefine the net function definition Signed-off-by: Joe Hershberger joe.hershber...@ni.com

Re: [U-Boot] [PATCH 02/28] net: cosmetic: checkpatch compliance

2012-01-20 Thread Joe Hershberger
Hi Simon, On Fri, Jan 20, 2012 at 10:30 AM, Simon Glass s...@chromium.org wrote: Hi Joe, On Thu, Jan 19, 2012 at 4:53 PM, Joe Hershberger joe.hershber...@ni.com wrote: Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w

Re: [U-Boot] [PATCH 01/28] net: Remove volatile from all of net except the eth driver interface

2012-01-23 Thread Joe Hershberger
Hi Simon, On Tue, Jan 24, 2012 at 12:09 AM, Simon Glass s...@chromium.org wrote: Hi Joe, On Fri, Jan 20, 2012 at 12:15 PM, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Fri, Jan 20, 2012 at 10:22 AM, Simon Glass s...@chromium.org wrote: Hi Joe, On Thu, Jan 19, 2012 at 4

Re: [U-Boot] [PATCH 13/28] net: Refactor bootp packet length computations

2012-01-23 Thread Joe Hershberger
Hi Simon, On Tue, Jan 24, 2012 at 1:05 AM, Simon Glass s...@chromium.org wrote: Hi Joe, On Thu, Jan 19, 2012 at 4:53 PM, Joe Hershberger joe.hershber...@ni.com wrote: Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w

Re: [U-Boot] [PATCH 00/28] Add link-local addressing support

2012-01-25 Thread Joe Hershberger
Hi Stefano, On Wed, Jan 25, 2012 at 4:27 AM, Stefano Babic sba...@denx.de wrote: On 20/01/2012 01:53, Joe Hershberger wrote: Link-local support allows the bootloader to get a usable network address regardless of network environment.  Given that bootloaders may not always have access to a DHCP

Re: [U-Boot] [PATCH 01/28] net: Remove volatile from all of net except the eth driver interface

2012-02-07 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 5:44 AM, Mike Frysinger vap...@gentoo.org wrote: in general, i like this.  my only concern would be the drivers that might break due to incorrect cache management (which the volatile markers happen to work around for them). having the API accept a volatile but

Re: [U-Boot] [PATCH 17/28] net: Refactor to separate the UDP handler from the ARP handler

2012-02-08 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 6:21 AM, Mike Frysinger vap...@gentoo.org wrote: On Thursday 19 January 2012 19:53:20 Joe Hershberger wrote: Only call the handlers if one was registered... don't require    protocols to register a handler (eliminating dummies) NetConsole now uses the ARP

Re: [U-Boot] [PATCH 09/28] net: cosmetic: Un-typedef variables in net

2012-02-09 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 6:05 AM, Mike Frysinger vap...@gentoo.org wrote: On Thursday 19 January 2012 19:53:12 Joe Hershberger wrote: Un-typedef IP_t, Ethernet_t, VLAN_Ethernet_t, ARP_t, ICMP_t i'm not sure about this.  i don't mind the typedefs myself and they have the advantage

Re: [U-Boot] [PATCH 18/28] net: Add NetUpdateEther() to handle ARP or Ping replies (VLAN or SNAP)

2012-02-09 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 6:25 AM, Mike Frysinger vap...@gentoo.org wrote: On Thursday 19 January 2012 19:53:21 Joe Hershberger wrote: --- a/net/net.c +++ b/net/net.c +int +NetUpdateEther(struct Ethernet_t *et, uchar *addr, uint prot) +{ +     ushort protlen; + +     memcpy(et

Re: [U-Boot] [PATCH 22/28] net: Fix net buffer initialization

2012-02-10 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 6:37 AM, Mike Frysinger vap...@gentoo.org wrote: On Thursday 19 January 2012 19:53:25 Joe Hershberger wrote: @@ -627,6 +639,12 @@ NetSendUDPPacket +     /* make sure the NetTxPacket is initialized (NetInit() was called) */ +     if (NetTxPacket == NULL

Re: [U-Boot] [PATCH 04/28] net: Make the MAC-seeded random number generator available to /net

2012-02-10 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 5:51 AM, Mike Frysinger vap...@gentoo.org wrote: On Thursday 19 January 2012 19:53:07 Joe Hershberger wrote: --- a/net/bootp.c +++ b/net/bootp.c +#ifdef CONFIG_BOOTP_RANDOM_DELAY +#include net_rand.h +#endif let's push this CONFIG_xxx check into net_rand.h

Re: [U-Boot] [PATCH 26/28] net: Add link-local addressing support

2012-02-13 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 6:42 AM, Mike Frysinger vap...@gentoo.org wrote: On Thursday 19 January 2012 19:53:29 Joe Hershberger wrote: +     NetOurGatewayIP = 0; +     ip_to_string(NetOurGatewayIP, tmp); +     setenv(gatewayip, tmp); + +     ip_to_string(NetOurSubnetMask, tmp

Re: [U-Boot] [PATCH 07/28] net: Move PING out of net.c

2012-02-13 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 6:07 AM, Mike Frysinger vap...@gentoo.org wrote: hmm, thinking a bit more, i wonder if it makes more sense to split all of icmp out of net.c This would also be fine. Are you thinking that icmp would include all of icmp or would we still have ping separate?

Re: [U-Boot] [PATCH v2 05/10] powerpc/ppc4xx: Support gdsys multichannel iocon hardware

2013-05-06 Thread Joe Hershberger
Hi Wolfgang, On Mon, May 6, 2013 at 2:15 PM, Wolfgang Denk w...@denx.de wrote: Dear Dirk, In message 3628fded6de7e6b4286d3444a7e5e...@gdsys.cc you wrote: total: 3 errors, 0 warnings, 509 lines checked OK, thanks, that makes sense. Which version of checkpatch are you using? Latest u-boot

Re: [U-Boot] [PATCH] usb: asix: Move software resets to basic_init

2013-05-13 Thread Joe Hershberger
On Mon, May 13, 2013 at 10:14 AM, Marek Vasut ma...@denx.de wrote: Dear Simon Glass, From: Julius Werner jwer...@chromium.org The ASIX driver calls a basic_init() function during get_info(), so that not all initialization tasks need to be redone on every init(). Unfortunately, the most

Re: [U-Boot] [Patch v2 2/4] NET: macb: support sama5d3x devices

2013-05-13 Thread Joe Hershberger
On Sun, May 12, 2013 at 6:33 AM, Andreas Bießmann andreas.de...@googlemail.com wrote: Dear Bo Shen, On 12.03.2013 07:15, Bo Shen wrote: Add macb support for sama5d3x devices Signed-off-by: Bo Shen voice.s...@atmel.com --- change in v2: No change --- drivers/net/macb.c |6

Re: [U-Boot] [PATCH 00/10] PXE support updates

2013-05-14 Thread Joe Hershberger
Hi Rob, On Tue, May 14, 2013 at 2:48 PM, Rob Herring robherri...@gmail.com wrote: On Sun, Dec 2, 2012 at 9:00 PM, Rob Herring robherri...@gmail.com wrote: From: Rob Herring rob.herr...@calxeda.com This is a series of various enhancements and fixes for u-boot pxe support. These patches are a

Re: [U-Boot] [PATCH v4 2/9] net: Add prototype for update_tftp

2013-05-15 Thread Joe Hershberger
include/net.h | 3 +++ 3 files changed, 4 insertions(+), 6 deletions(-) Reviewed-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 v4 3/9] main: Separate out the two abortboot() functions

2013-05-15 Thread Joe Hershberger
it static. At this point there is no further use of CONFIG_MENU in main.c. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger joe.hershber...@ni.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman

Re: [U-Boot] [Patch v2 2/4] NET: macb: support sama5d3x devices

2013-05-23 Thread Joe Hershberger
Hi, On Thu, May 23, 2013 at 1:51 AM, Andreas Bießmann andreas.de...@googlemail.com wrote: Hi Bo, On 22.05.13 10:45, Bo Shen wrote: Hi Andreas, On 5/14/2013 05:31, Joe Hershberger wrote: On Sun, May 12, 2013 at 6:33 AM, Andreas Bießmann andreas.de...@googlemail.com wrote: Dear Bo Shen

Re: [U-Boot] [PATCH 0/2] make u-boot/drivers/net/designware cache supportive

2013-06-13 Thread Joe Hershberger
Hi Frank, On Tue, Jan 22, 2013 at 10:11 PM, Vipin Kumar vipin.ku...@st.com wrote: On 1/22/2013 7:40 PM, Frank Dols wrote: Hello Vipin, As discussed, see included the patches to make your u-boot/drivers/net/designware Ethernet device driver cache support aware. You dont need to write

Re: [U-Boot] [PATCH] fdt: Ensure that libfdt_env.h comes from U-Boot

2013-06-14 Thread Joe Hershberger
Hi Simon, On Wed, Apr 17, 2013 at 10:35 AM, Tom Rini tr...@ti.com wrote: On Mon, Mar 11, 2013 at 09:30:27AM -0700, Simon Glass wrote: When building host utilities, we include libfdt.h from the host, not from U-Boot. This in turn brings in libfdt_env.h from the host, which can mess up the

Re: [U-Boot] [Patch v2 2/4] NET: macb: support sama5d3x devices

2013-06-16 Thread Joe Hershberger
Hi Bo, On Sun, Jun 16, 2013 at 8:11 PM, Bo Shen bard.s...@gmail.com wrote: Hi Joe, On 5/24/2013 05:58, Joe Hershberger wrote: Hi, On Thu, May 23, 2013 at 1:51 AM, Andreas Bießmann andreas.de...@googlemail.com wrote: Hi Bo, On 22.05.13 10:45, Bo Shen wrote: Hi Andreas, On 5/14

Re: [U-Boot] [PATCH 00/10] PXE support updates

2013-06-16 Thread Joe Hershberger
Hi Rob, On Sun, Jun 16, 2013 at 10:24 AM, Rob Herring robherri...@gmail.com wrote: On Tue, May 14, 2013 at 3:32 PM, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Rob, On Tue, May 14, 2013 at 2:48 PM, Rob Herring robherri...@gmail.com wrote: On Sun, Dec 2, 2012 at 9:00 PM, Rob Herring

Re: [U-Boot] [PATCH] vfat: Fix mkcksum argument sizes

2013-01-31 Thread Joe Hershberger
(name); i++) + for (i = 0; i 8; i++) ret = (((ret 1) 7) | ((ret 0xfe) 1)) + name[i]; - for (i = 0; i sizeof(ext); i++) + for (i = 0; i 3; i++) ret = (((ret 1) 7) | ((ret 0xfe) 1)) + ext[i]; return ret; Reviewed-by: Joe

[U-Boot] [PATCH 0/5] Add support for using an UBI volume for environment

2013-02-08 Thread Joe Hershberger
u-boot env. Joe Hershberger (5): ubi: Expose a few simple functions from the cmd_ubi ubi: ubifs: Turn off verbose prints mtd: Make mtdparts work with pre-reloc env env: Add support for UBI environment env: Add redundant env support to UBI env README| 21 + common

[U-Boot] [PATCH 5/5] env: Add redundant env support to UBI env

2013-02-08 Thread Joe Hershberger
Allow the user to specify two UBI volumes to use for the environment Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- README| 6 +++ common/env_ubi.c | 115 ++ include/environment.h | 3 ++ tools/env/fw_env.c

[U-Boot] [PATCH 3/5] mtd: Make mtdparts work with pre-reloc env

2013-02-08 Thread Joe Hershberger
to not allow sets before the env is relocated. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_mtdparts.c | 23 +-- common/cmd_nvedit.c | 4 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/common/cmd_mtdparts.c b/common/cmd_mtdparts.c

[U-Boot] [PATCH 1/5] ubi: Expose a few simple functions from the cmd_ubi

2013-02-08 Thread Joe Hershberger
Part, Read, and Write functionality that will be used by env_ubi. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_ubi.c| 146 include/ubi_uboot.h | 3 ++ 2 files changed, 83 insertions(+), 66 deletions(-) diff --git

[U-Boot] [PATCH 4/5] env: Add support for UBI environment

2013-02-08 Thread Joe Hershberger
UBI is a better place for the environment on NAND devices because it handles wear-leveling and bad blocks. Gluebi is needed in Linux to access the env as an MTD partition. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- README| 15 common/Makefile | 1

[U-Boot] [PATCH 2/5] ubi: ubifs: Turn off verbose prints

2013-02-08 Thread Joe Hershberger
The prints are out of control. SILENCE! Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_ubi.c | 3 +++ drivers/mtd/mtdpart.c | 14 -- drivers/mtd/ubi/ubi.h | 3 ++- fs/ubifs/ubifs.h | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff

[U-Boot] [PATCH] env: Avoid clobbering an edited variable on ctrl-c

2013-02-08 Thread Joe Hershberger
If readline says there was an error, don't write to the variable! Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_nvedit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 7633f0c..063536b 100644

[U-Boot] [PATCH] Allow u-boot to be silent without forcing Linux to be

2013-02-08 Thread Joe Hershberger
That's a bit presumptuous of you, u-boot! Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_bootm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 7ae5d5b..435c980 100644 --- a/common/cmd_bootm.c +++ b

[U-Boot] [PATCH] net: Correct check for link-local target IP conflict

2013-02-08 Thread Joe Hershberger
Make the link-local code conform more completely with the RFC. This will prevent ARP queries for the target (such as while it is rebooting) from causing the device to choose a different link-local address, thinking that its address is in use by another machine. Signed-off-by: Joe Hershberger

[U-Boot] [PATCH] CONFIG_BOOTDELAY default should not affect runtime

2013-02-08 Thread Joe Hershberger
at runtime. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/main.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/common/main.c b/common/main.c index e2d2e09..0973c59 100644 --- a/common/main.c +++ b/common/main.c @@ -95,7 +95,7 @@ extern void

Re: [U-Boot] [PATCH v2] MAKEALL: fix kill_children for BSD hosts

2013-02-08 Thread Joe Hershberger
. Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com Cc: 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-boot

[U-Boot] [PATCH] mtd: nand: Check if NAND is locked tight before lock cmds

2013-02-08 Thread Joe Hershberger
If the NAND is locked tight, commands such as lock and unlock will not work, but the NAND chip may not report an error. Check the lock tight status before attempting such operations so that an error status can be reported if we know the operation will not succeed. Signed-off-by: Joe Hershberger

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

2013-02-17 Thread Joe Hershberger
Hi Simon, On Sun, Feb 17, 2013 at 12:47 AM, Simon Glass s...@chromium.org wrote: Hi Joe, On Thu, Dec 20, 2012 at 6:29 PM, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Thu, Dec 13, 2012 at 8:21 PM, Simon Glass s...@chromium.org wrote: The Asix driver takes the link down

Re: [U-Boot] [RFC PATCH v2 02/15] at91: Correct CONFIG_AUTOBOOT_PROMPT definition for pm9263

2013-02-24 Thread Joe Hershberger
Hi Simon, On Sun, Feb 24, 2013 at 11:26 AM, Simon Glass s...@chromium.org wrote: This is not currently used, since autoboot is not enabled for this board, but the string is missing a parameter. Add it. Why not enable autoboot for this board so that this setting gets testing? Signed-off-by:

Re: [U-Boot] [RFC PATCH v2 01/15] Implement autoconf header file

2013-02-24 Thread Joe Hershberger
Hi Simon, On Sun, Feb 24, 2013 at 11:25 AM, Simon Glass s...@chromium.org wrote: Add support for generating an autoconf.h header file that can be used in the source instead of #ifdef. For example, instead of: #ifdef CONFIG_VERSION_VARIABLE setenv(ver, version_string); /* set

Re: [U-Boot] [RFC PATCH v2 03/15] net: Add prototype for update_tftp, and use autoconf

2013-02-24 Thread Joe Hershberger
size); /* get a random source port */ extern unsigned int random_port(void); +/* Update U-Boot over TFTP */ +extern int update_tftp(ulong addr); + /**/ #endif /* __NET_H__ */ -- 1.8.1.3 Acked-by: Joe Hershberger

Re: [U-Boot] [RFC PATCH v2 04/15] main: Separate out the two abortboot() functions

2013-02-24 Thread Joe Hershberger
[]; /* arch/$(ARCH)/lib/board.c */ -- 1.8.1.3 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Joe Hershberger joe.hershber...@ni.com ___ U-Boot

Re: [U-Boot] [RFC PATCH v2 05/15] main: Move boot_delay code into its own function

2013-02-24 Thread Joe Hershberger
) + process_boot_delay(); #if defined CONFIG_OF_CONTROL set_working_fdt_addr((void *)gd-fdt_blob); -- 1.8.1.3 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Joe Hershberger joe.hershber

Re: [U-Boot] [RFC PATCH v2 06/15] main: Use autoconf for boot retry feature

2013-02-24 Thread Joe Hershberger
file changed, 33 insertions(+), 41 deletions(-) Reviewed-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] [RFC PATCH v2 07/15] main: Remove CONFIG #ifdefs from the abortboot() code

2013-02-24 Thread Joe Hershberger
[]. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/main.c | 86 ++- 1 file changed, 32 insertions(+), 54 deletions(-) Reviewed-by: Joe Hershberger joe.hershber...@ni.com

Re: [U-Boot] [RFC PATCH v2 08/15] main: Use get/setenv_ulong()

2013-02-24 Thread Joe Hershberger
deletions(-) Reviewed-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] [RFC PATCH v2 09/15] main: Use autoconf for boot_delay code

2013-02-24 Thread Joe Hershberger
___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Joe Hershberger joe.hershber...@ni.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de

Re: [U-Boot] [RFC PATCH v2 10/15] main: Use autoconf for parser selection

2013-02-24 Thread Joe Hershberger
(CONFIG_HUSH_INIT_VAR) extern int hush_init_var (void); #endif -#endif -- 1.8.1.3 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Joe Hershberger joe.hershber...@ni.com

Re: [U-Boot] [RFC PATCH v2 11/15] main: Use autoconf in command line reading

2013-02-24 Thread Joe Hershberger
://lists.denx.de/mailman/listinfo/u-boot Reviewed-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] [RFC PATCH v2 12/15] main: Use autoconf in main_loop()

2013-02-24 Thread Joe Hershberger
___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-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] [RFC PATCH v2 14/15] main: Add debug_parser() to avoid #ifdefs

2013-02-24 Thread Joe Hershberger
+++--- 1 file changed, 23 insertions(+), 35 deletions(-) Reviewed-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] [RFC PATCH v2 15/15] main: Add debug_bootkeys to avoid #ifdefs

2013-02-24 Thread Joe Hershberger
file changed, 9 insertions(+), 10 deletions(-) Reviewed-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] [RFC PATCH v2 02/15] at91: Correct CONFIG_AUTOBOOT_PROMPT definition for pm9263

2013-02-27 Thread Joe Hershberger
Hi Simon, On Mon, Feb 25, 2013 at 11:28 PM, Simon Glass s...@chromium.org wrote: Hi Joe, On Sun, Feb 24, 2013 at 11:53 AM, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Sun, Feb 24, 2013 at 11:26 AM, Simon Glass s...@chromium.org wrote: This is not currently used, since

Re: [U-Boot] [RFC PATCH v2 01/15] Implement autoconf header file

2013-02-27 Thread Joe Hershberger
Hi Simon, On Mon, Feb 25, 2013 at 12:10 AM, Simon Glass s...@chromium.org wrote: Hi Joe, On Sun, Feb 24, 2013 at 11:50 AM, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Sun, Feb 24, 2013 at 11:25 AM, Simon Glass s...@chromium.org wrote: Add support for generating

Re: [U-Boot] [PATCH v3 09/16] main: Use autoconf for boot_delay code

2013-02-27 Thread Joe Hershberger
files changed, 42 insertions(+), 67 deletions(-) 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 v3 12/16] main: Use autoconf in command line reading

2013-02-27 Thread Joe Hershberger
...@chromium.org --- Changes in v3: None Changes in v2: None common/main.c | 164 -- include/command.h | 2 - include/common.h | 2 - 3 files changed, 73 insertions(+), 95 deletions(-) Reviewed-by: Joe Hershberger joe.hershber...@ni.com

Re: [U-Boot] [RFC PATCH v2 12/15] main: Use autoconf in main_loop()

2013-02-27 Thread Joe Hershberger
Hi Simon, On Mon, Feb 25, 2013 at 11:50 PM, Simon Glass s...@chromium.org wrote: Hi Joe, On Sun, Feb 24, 2013 at 1:33 PM, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Sun, Feb 24, 2013 at 11:26 AM, Simon Glass s...@chromium.org wrote: Convert main_loop() over to use

Re: [U-Boot] [PATCH v3 13/16] main: Use autoconf in main_loop()

2013-02-27 Thread Joe Hershberger
changed, 37 insertions(+), 45 deletions(-) Reviewed-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 v3 11/16] main: Fix typos and checkpatch warnings in command line reading

2013-02-27 Thread Joe Hershberger
: - Separate out checkpatch fixes in command line reading code into new patch Changes in v2: None common/main.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) Reviewed-by: Joe Hershberger joe.hershber...@ni.com ___ U

Re: [U-Boot] [PATCH] CONFIG_BOOTDELAY default should not affect runtime

2013-02-27 Thread Joe Hershberger
Hi Tom, On Mon, Feb 18, 2013 at 11:20 AM, Tom Rini tr...@ti.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/09/2013 11:21 AM, Otavio Salvador wrote: Hello Wolfgang, On Sat, Feb 9, 2013 at 4:54 AM, Wolfgang Denk w...@denx.de wrote: Dear Joe Hershberger, In message

[U-Boot] [PATCH v2] Allow u-boot to be silent without forcing Linux to be

2013-02-27 Thread Joe Hershberger
That's a bit presumptuous of you, u-boot! Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v2: - Added info about the change to README.silent common/cmd_bootm.c | 8 doc/README.silent | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/common

Re: [U-Boot] [PATCH] CONFIG_BOOTDELAY default should not affect runtime

2013-03-04 Thread Joe Hershberger
Hi Tom, On Fri, Mar 1, 2013 at 2:28 PM, Tom Rini tr...@ti.com wrote: On Wed, Feb 27, 2013 at 02:11:31PM -0600, Joe Hershberger wrote: Hi Tom, On Mon, Feb 18, 2013 at 11:20 AM, Tom Rini tr...@ti.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/09/2013 11:21 AM, Otavio

Re: [U-Boot] [PATCH 1/2] env_callback: Mark find_env_callback as static

2013-03-12 Thread Joe Hershberger
Hi Tom, On Tue, Mar 12, 2013 at 11:16 AM, Tom Rini tr...@ti.com wrote: This is not called outside of env_callback.c so mark static, remove from env_callback.h Cc: Joe Hershberger joe.hershber...@ni.com Signed-off-by: Tom Rini tr...@ti.com --- http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 2/2] SPL: Fix build of CONFIG_SPL_NET_SUPPORT

2013-03-12 Thread Joe Hershberger
not __start/__end symbol was generated. As the environment is not user modifiable in this particular run-time (for any variable that had a callback associated with it) we simply provide an empty env_callback_init in SPL. Cc: Joe Hershberger joe.hershber...@ni.com Cc: Scott Wood scottw...@freescale.com

Re: [U-Boot] [PATCH v2] net: Improve the speed of netconsole

2012-08-10 Thread Joe Hershberger
Hi Mike, On Fri, Aug 3, 2012 at 3:59 PM, Joe Hershberger joe.hershber...@ni.com wrote: Previously u-boot would initialize the network interface for every network operation and then shut it down again. This makes sense for most operations where the network in not known to be needed soon after

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

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek mon...@monstr.eu wrote: The driver is used on Xilinx Zynq platform. Signed-off-by: Michal Simek mon...@monstr.eu --- drivers/serial/Makefile |1 + drivers/serial/serial_xpssuart.c | 218

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

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek mon...@monstr.eu wrote: Device driver for Zynq Gem IP. Signed-off-by: Michal Simek mon...@monstr.eu CC: Joe Hershberger joe.hershber...@gmail.com --- drivers/net/Makefile |1 + drivers/net/xilinx_gem.c | 514

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek mon...@monstr.eu wrote: Add timer driver. Signed-off-by: Michal Simek mon...@monstr.eu --- arch/arm/cpu/armv7/zynq/Makefile | 48 arch/arm/cpu/armv7/zynq/timer.c | 151 ++ 2

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

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 7:15 AM, Michal Simek mon...@monstr.eu wrote: Add support for Xilinx Zynq board. Signed-off-by: Michal Simek mon...@monstr.eu --- v2: Forget to also add config file --- board/xilinx/zynq/Makefile| 57 +

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 11:28 AM, Michal Simek mon...@monstr.eu wrote: On 08/14/2012 05:36 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek mon...@monstr.eu wrote: Add timer driver. Signed-off-by: Michal Simek mon...@monstr.eu --- arch

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

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 11:38 AM, Michal Simek mon...@monstr.eu wrote: On 08/14/2012 04:09 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek mon...@monstr.eu wrote: The driver is used on Xilinx Zynq platform. Signed-off-by: Michal Simek mon

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 12:11 PM, Michal Simek mon...@monstr.eu wrote: On 08/14/2012 06:41 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 11:28 AM, Michal Simek mon...@monstr.eu wrote: On 08/14/2012 05:36 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14

  1   2   3   4   5   6   7   8   9   10   >