nv to not allow sets before the
env is relocated.
Signed-off-by: Joe Hershberger
---
Changes in v3: None
Changes in v2: None
common/cmd_mtdparts.c | 23 +--
common/cmd_nvedit.c | 4
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/common/cmd_mtdpart
Part, Read, and Write functionality that will be used by env_ubi.
Signed-off-by: Joe Hershberger
---
Changes in v3: None
Changes in v2:
- Added curly braces on "multi-line" statements
- Added extern consistently in header
common/cmd_ubi.
The prints are out of control. SILENCE!
Signed-off-by: Joe Hershberger
---
Changes in v3:
- Changed the silence to opt-in and added the options to README
Changes in v2:
- Cleaned up the msg print silencing
README| 10 ++
common/cmd_ubi.c | 3 +++
drivers/mtd
Hi Michael,
I just tested this on my Zynq target and it worked. However, you make
a good point that it is possible for there to be more traces after the
eth_halt call. I can't imagine the stack would like that in all
situations (since eth_init() will not be called again by netconsole).
I think t
Hi Michael,
On Wed, Apr 10, 2013 at 5:07 AM, Michael Walle wrote:
> On Wed, April 10, 2013 03:51, Joe Hershberger wrote:
>> Hi Michael,
>>
>> I just tested this on my Zynq target and it worked. However, you make
>> a good point that it is possible for there
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 37 +
arch/powerpc/include/asm/gpio.h | 38 +
board/freescale/mpc8313erdb/mpc8313erdb.c|9 +
drivers/gpio/Makefile
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
include/configs/MPC8313ERDB.h |5 -
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/include/configs/MPC8313ERDB.h b/include/configs/MPC8313ERDB.h
index 92c54d0..9bf38df 100644
--- a/include/configs
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2
board/freescale/mpc8313erdb/mpc8313erdb.c |9 +
include/configs/MPC8313ERDB.h |5 -
2 files
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Improved names of INIT constants (to include "CONFIG_")
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2
arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 37 +
On Tue, Aug 9, 2011 at 5:15 PM, Scott Wood wrote:
> On 08/09/2011 05:31 PM, Joe Hershberger wrote:
>> diff --git a/arch/powerpc/include/asm/arch-mpc83xx/gpio.h
>> b/arch/powerpc/include/asm/arch-mpc83xx/gpio.h
>> new file mode 100644
>> index 000..4319d07
>
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2
Changes for v3:
- Renamed gpio_init_* to mpc83xx_gpio_init_*
- Added board_early_init_r support to MPC8313ERDB targets
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Improved names of INIT constants (to include "CONFIG_")
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2
Changes for v3:
- gpio_init_* is now mpc83xx_gpio_ini
On Tue, Aug 9, 2011 at 5:54 PM, Kim Phillips wrote:
> On Tue, 9 Aug 2011 17:31:29 -0500 Joe Hershberger
> wrote:
>
>> + /* Update the local output buffer soft copy */
>> + gpio_output_value[ctrlr] =
>> + (gpio_output_value[ctrlr] & ~lineMa
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2
Changes for v3:
- Renamed gpio_init_* to mpc83xx_gpio_init_*
- Added board_early_init_r support to MPC8313ERDB targets
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Improved names of INIT constants (to include "CONFIG_")
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2
Changes for v3:
- gpio_init_* is now mpc83xx_gpio_init_*
C
Common GPIO API used by cmd_gpio should be available to any arch
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v4:
- Split out of patch 1/2
arch/arm/include/asm/gpio.h | 39 +--
arch/powerpc/include/asm/gpio.h
Enable the command and the shim driver
Configure the pads to allow access to the button on GPIO_121 and the 2 LEDS on
GPIO_7 and GPIO_8
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Sandeep Paulraj
---
board/ti/panda/panda_mux_data.h |6 +++---
include/configs/omap4_panda.h
Add a shim driver to drivers/gpio that maps the standard GPIO API to the OMAP
GPIO API
Empty gpio.h is needed in the asm/arch dirs for omap3 and omap4 due to include
in asm/gpio.h
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Sandeep Paulraj
---
arch/arm/include/asm/arch-omap3
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Sandeep Paulraj
---
.gitignore |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
index dbf545f..f86ec35 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@
# Top-level generic files
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Sandeep Paulraj
---
include/configs/omap4_panda.h |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h
index e313231..a3f13e5 100644
--- a/include
Add quiet parameter to cmd_gpio for use when part of a script
Enable repeat... especially useful when used with input and toggle
Add "outstate" command that will return and print the state of an output
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Mike Frysinger
---
common/
Previously only the last N were included based on the current one in use.
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Mingkai Hu
Cc: Andy Fleming
Cc: Kumar Gala
Cc: Detlev Zundel
---
drivers/net/tsec.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a
On Wed, Aug 10, 2011 at 7:29 AM, Detlev Zundel wrote:
>> diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
>> index 78ffc95..1805ca0 100644
>> --- a/drivers/net/tsec.c
>> +++ b/drivers/net/tsec.c
>> @@ -250,8 +250,8 @@ static void startup_tsec(struct eth_device *dev)
>> txIdx = 0;
>>
>>
On Wed, Aug 10, 2011 at 9:10 AM, Andy Fleming wrote:
>
> On Aug 10, 2011, at 2:12 AM, Joe Hershberger wrote:
>
>> Previously only the last N were included based on the current one in use.
>>
>> Signed-off-by: Joe Hershberger
>> Cc: Joe Hershberger
>> Cc:
Hi Albert,
On Wed, Aug 10, 2011 at 12:54 AM, Albert ARIBAUD
wrote:
> Hi Joe,
>
> Le 10/08/2011 07:21, Joe Hershberger a écrit :
>> Signed-off-by: Joe Hershberger
>> Cc: Joe Hershberger
>> Cc: Sandeep Paulraj
>> ---
>> .gitignore | 1 +
>>
Hi Mike,
On Wed, Aug 10, 2011 at 8:33 PM, Mike Frysinger wrote:
> On Wednesday, August 10, 2011 02:27:42 Joe Hershberger wrote:
>> Add quiet parameter to cmd_gpio for use when part of a script
>> Enable repeat... especially useful when used with input and toggle
>> Add &q
The register this is written to is named ddr.cs_config, so name the #define
similarly to reduce confusion
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
board/freescale/mpc8313erdb/sdram.c |2 +-
board/freescale/mpc8349emds/mpc8349emds.c |2 +-
board
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2
Changes for v3:
- Renamed gpio_init_* to mpc83xx_gpio_init_*
- Added board_early_init_r support to MPC8313ERDB targets
Changes
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Improved names of INIT constants (to include "CONFIG_")
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2
Changes for v3:
- gpio_init_* is now mpc83xx_gpio_init_*
Chan
Common GPIO API used by cmd_gpio should be available to any arch
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
Cc: Mike Frysinger
---
Changes for v4:
- Split out of patch 1/2
Changes for v5:
- Moved asm/arch/gpio.h include to asm/gpio.h
arch/arm/include/asm/gpio.h
On Fri, Aug 12, 2011 at 1:38 AM, Joe Hershberger wrote:
> Attempt to make 83xx use constants consistently.
> In the course of switching from numerics to field constants, a number of
> reserved fields being assigned were found.
> Those places that seemed broken I marked with [RF
Hershberger
Cc: Kim Phillips
Joe Hershberger (4):
powerpc/mpc83xx: Whitespace changes
powerpc/mpx83xx: Cleanup usage of BAT constants
powerpc/mpc83xx: Cleanup usage of DDR constants
powerpc/mpc83xx: Cleanup usage of LBC constants
arch/powerpc/cpu/mpc83xx/spd_sdram.c |9 ++
arch/powerpc
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Split
include/configs/MPC8315ERDB.h | 13 +++--
include/configs/MPC8323ERDB.h |6 +++---
include/configs/MPC832XEMDS.h |6 +++---
include/configs/MPC8349EMDS.h | 36
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Split
arch/powerpc/cpu/mpc83xx/spd_sdram.c |9 +
include/configs/MPC8308RDB.h |5 ++-
include/configs/MPC8313ERDB.h| 10 --
include/configs/MPC8315ERDB.h|5
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2
Changes for v3:
- Renamed gpio_init_* to mpc83xx_gpio_init_*
- Added board_early_init_r support to MPC8313ERDB targets
Changes
Common GPIO API used by cmd_gpio should be available to any arch
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Mike Frysinger
---
Changes for v4:
- Split out of patch 1/2
Changes for v5:
- Moved asm/arch/gpio.h include to asm/gpio.h
Changes for v6:
arch/arm/include/asm/gpio.h
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Kim Phillips
---
Changes for v2:
- Improved names of INIT constants (to include "CONFIG_")
- Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2
Changes for v3:
- gpio_init_* is now mpc83xx_gpio_init_*
Chan
Change "int gp" to "unsigned gpio"
Update the 2 existing arm implementations to match the new API
Remove the gpio_toggle() implementation (never used)
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Mike Frysinger
---
Changes for v6:
- Linuxize gpio API
drive
Acked-by: Joe Hershberger
On Sun, Aug 14, 2011 at 11:09 PM, Kim Phillips
wrote:
> On Mon, 15 Aug 2011 02:20:18 +
> shawn Bai wrote:
>
>> In my opinion,the third member in struct gtm83xx if numbered from zero
>> should be defined as u8 res1[11] not u8 res1[10].
>&g
Hi u-boot,
What is the recommended way to handle a patch series that depends on
another patch series (already sent but not integrated)?
How about a patch that was sent, that at the time didn't depend on
another series, but after review and changes, now depends on those
changes?
Even a bit more g
Enable the command and the shim driver
Configure the pads to allow access to the button on GPIO_121 and the 2 LEDS on
GPIO_7 and GPIO_8
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Sandeep Paulraj
---
Changes for v2:
board/ti/panda/panda_mux_data.h |6 +++---
include/configs
Add a shim driver to drivers/gpio that maps the standard GPIO API to the OMAP
GPIO API
Empty gpio.h is needed in the asm/arch dirs for omap3 and omap4 due to include
in asm/gpio.h
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Sandeep Paulraj
---
Changes for v2:
- Changed API to
On Tue, Aug 16, 2011 at 11:56 AM, Scott Wood wrote:
> On 08/16/2011 02:06 AM, Simon Schwarz wrote:
>> On 08/16/2011 03:20 AM, Joe Hershberger wrote:
>>> Even a bit more generally, some of the series are getting quite long
>>> due to small dependencies. This ten
Rename CONFIG_SYS_DDR_CONFIG to include which CS it is configuring
Cleanup the setting of the csnbds to respect the setting of
CONFIG_SYS_DDR_SDRAM_BASE
Use __ilog2 instead of writing the code to compute it
Disable unused CS configs
Ensure ddrlaw.bar is configured
Signed-off-by: Joe Hershberger
On Wed, Aug 24, 2011 at 5:46 PM, Wolfgang Denk wrote:
> Dear Joe Hershberger,
>
> In message
> you
> wrote:
>>
>> It fixes something that was wrong before you committed
>> 063c12633d5ad74d52152d9c358e715475e17629, but at this point, it's just
>>
On Tue, Aug 16, 2011 at 5:17 PM, Joe Hershberger wrote:
> Add a shim driver to drivers/gpio that maps the standard GPIO API to the OMAP
> GPIO API
> Empty gpio.h is needed in the asm/arch dirs for omap3 and omap4 due to
> include in asm/gpio.h
>
> Signed-off-by: Joe Hers
On Wed, Sep 14, 2011 at 2:52 PM, Paulraj, Sandeep wrote:
>
>
>> On Tue, Aug 16, 2011 at 5:17 PM, Joe Hershberger
>> wrote:
>> > Add a shim driver to drivers/gpio that maps the standard GPIO API to the
>> OMAP GPIO API
>> > Empty gpio.h is needed in th
Hi Mike,
On Fri, Aug 3, 2012 at 3:59 PM, Joe Hershberger 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
> the
Hi Michal,
On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote:
> The driver is used on Xilinx Zynq platform.
>
> Signed-off-by: Michal Simek
> ---
> drivers/serial/Makefile |1 +
> drivers/serial/serial_xpssuart.c | 218
> ++
> 2 files changed
Hi Michal,
On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote:
> Device driver for Zynq Gem IP.
>
> Signed-off-by: Michal Simek
> CC: Joe Hershberger
> ---
> drivers/net/Makefile |1 +
> drivers/net/xilinx_gem.c | 514
> +
Hi Michal,
On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote:
> Add timer driver.
>
> Signed-off-by: Michal Simek
> ---
> arch/arm/cpu/armv7/zynq/Makefile | 48
> arch/arm/cpu/armv7/zynq/timer.c | 151
> ++
> 2 files changed, 199 insertion
Hi Michal,
On Tue, Aug 14, 2012 at 7:15 AM, Michal Simek wrote:
> Add support for Xilinx Zynq board.
>
> Signed-off-by: Michal Simek
>
> ---
> v2: Forget to also add config file
> ---
> board/xilinx/zynq/Makefile| 57 +
> board/xilinx/zynq/board.c | 64 ++
Hi Michal,
On Tue, Aug 14, 2012 at 11:28 AM, Michal Simek wrote:
> On 08/14/2012 05:36 PM, Joe Hershberger wrote:
>>
>> Hi Michal,
>>
>> On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote:
>>>
>>> Add timer driver.
>>>
>>> Sig
Hi Michal,
On Tue, Aug 14, 2012 at 11:38 AM, Michal Simek wrote:
> On 08/14/2012 04:09 PM, Joe Hershberger wrote:
>>
>> Hi Michal,
>>
>> On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote:
>>>
>>> The driver is used on Xilinx Zynq
Hi Michal,
On Tue, Aug 14, 2012 at 12:11 PM, Michal Simek wrote:
> On 08/14/2012 06:41 PM, Joe Hershberger wrote:
>>
>> Hi Michal,
>>
>> On Tue, Aug 14, 2012 at 11:28 AM, Michal Simek wrote:
>>>
>>> On 08/14/2012 05:36 PM, Joe Hershberger wrote:
&g
Hi Michal,
On Tue, Aug 14, 2012 at 12:39 PM, Michal Simek wrote:
> On 08/14/2012 07:15 PM, Joe Hershberger wrote:
>>
>> Hi Michal,
>>
>> On Tue, Aug 14, 2012 at 12:11 PM, Michal Simek wrote:
>>>
>>> On 08/14/2012 06:41 PM, Joe Hershberger wrote:
&g
Hi Michal,
On Wed, Aug 15, 2012 at 3:49 AM, Michal Simek wrote:
> Hi Joe,
>
> sorry missed this one.
>
>
> On 08/14/2012 05:48 PM, Joe Hershberger wrote:
>>
>> Are you thinking that this will be the one and only Zynq board?
>> Perhaps a layout like wha
Hi Michal,
On Thu, Aug 16, 2012 at 1:12 AM, Michal Simek wrote:
> Hi Joe,
>
>
> On 08/15/2012 07:31 PM, Joe Hershberger wrote:
>>
>> Hi Michal,
>>
>> I believe this is a fundamental misunderstanding of the Zynq architecture.
>
>
> I don't thin
This series depends on this patch:
http://patchwork.ozlabs.org/patch/174282/
Joe Hershberger (2):
net: Allow netconsole settings to change after nc_start
net: Filter incoming netconsole packets by IP
drivers/net/netconsole.c | 104 ---
include
Check the incoming packets' source IP address... if ncip isn't set to a
broadcast address, only listen to the client at ncip.
Signed-off-by: Joe Hershberger
---
drivers/net/netconsole.c | 8 ++--
include/net.h| 3 ++-
net/net.c| 1 +
3 files
Refresh the netconsole settings from the env before each packet instead
of only on netconsole init.
Signed-off-by: Joe Hershberger
---
drivers/net/netconsole.c | 96
1 file changed, 65 insertions(+), 31 deletions(-)
diff --git a/drivers/net
When setting up the clocks in the sdhci driver, the "spec version"
must be masked off. Otherwise any time the vendor version is not 0,
the check will allways assume the interface is version 3. This breaks
when the interface is actually version 1 or 2.
Signed-off-by: Joe H
Some boards have no Card Detect wired. In that case, set the CD test
bits in the standard interface.
Signed-off-by: Joe Hershberger
---
drivers/mmc/sdhci.c | 17 +++--
include/sdhci.h | 7 ++-
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc
default.
${VAR:+default}
If VAR is set and non-null, expands to the empty string.
Otherwise, expands to default.
Signed-off-by: Joe Hershberger
---
common/hush.c | 43 ---
1 file changed, 40 insertions(+), 3 deletions(-)
diff --git a/common
set my_user_string Bob\'s favorite device
Panda # print my_user_string
my_user_string=Bob's favorite device
Panda # echo $my_user_string
Bob's favorite device
Signed-off-by: Joe Hershberger
---
common/hush.c | 64 +++
Make debugging script problems easier just like non-u-boot.
Signed-off-by: Joe Hershberger
---
common/hush.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/common/hush.c b/common/hush.c
index 4c84c2f..1db8a53 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -383,9
ARM boards need to change device tree settings as well
Signed-off-by: Joe Hershberger
---
arch/arm/lib/bootm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 599547d..2e0b0c1 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
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
---
common/cmd_nand.c| 2
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/nand_util.c
NAND unlock command allows an invert bit to be set to unlock all but
the selected page range.
Signed-off-by: Joe Hershberger
---
common/cmd_nand.c| 13 ++---
drivers/mtd/nand/nand_util.c | 9 ++---
include/nand.h | 4 ++--
3 files changed, 18 insertions
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
---
common/image.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/common/image.c b/common
).
Signed-off-by: Joe Hershberger
---
common/image.c | 41 +
include/image.h | 4
2 files changed, 45 insertions(+)
diff --git a/common/image.c b/common/image.c
index 4252e63..948ce0d 100644
--- a/common/image.c
+++ b/common/image.c
@@ -2494,6 +2494,36
Scripts in the ITB format will have spaces in them and will end in a
newline charachter. Make sure that these are considered printable.
Signed-off-by: Joe Hershberger
---
common/cmd_fdt.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/cmd_fdt.c b/common
Designed to be able to access itb files on a filesystem or an mtd
partition.
Supports print and list (like the fdt command) and also offset for
finding the offset and size of a given property in an FDT file.
This is especially helpful when reading properties from an ITB file.
Signed-off-by: Joe
Add commands to access data in the fdt. This allows data from a dtb
or itb to be accessed from the shell scripts.
Signed-off-by: Joe Hershberger
---
common/cmd_fdt.c | 144 +++
1 file changed, 144 insertions(+)
diff --git a/common/cmd_fdt.c
Prevent printing the entire image in a itb. It is most likely unhelpful
to have the hex of the entire image scroll for minutes on your slow
serial console.
Signed-off-by: Joe Hershberger
---
common/cmd_fdt.c | 36
1 file changed, 24 insertions(+), 12
Added an optional check in the CFI driver to evaluate if the sector is
already blank before issuing an erase command. Improves erase time by
over a factor of 10 if already blank.
Signed-off-by: Joe Hershberger
---
drivers/mtd/cfi_flash.c | 26 ++
1 file changed, 26
Check for ctrlc() in operations that take time and loop over the flash
addresses.
In netconsole, tstc() is expensive. Only check once in a while to not
slow down the operation significantly.
Signed-off-by: Joe Hershberger
---
common/cmd_flash.c | 3 ++-
common/flash.c | 3
After the env is relocated, make sure that the serial baudrate is
applied in case it's different (such as the env_nand case).
Signed-off-by: Joe Hershberger
---
common/env_common.c | 19 +++
1 file changed, 19 insertions(+)
diff --git a/common/env_common.c b/common/env_com
e same variable name to the
"acl" variable.
Joe Hershberger (12):
tools/env: Use a board-specific default env
tools/env: Remove unneeded complexity
tools/env: Don't call env_init() in fw_getenv()
tools/env: Reduce the impact on real-time processes
tools/env: Ser
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.
Signed-off-by: Joe Hershberger
---
tools/env/fw_env.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tools/env/fw_env.c b/tool
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 so that we only
get #defines (all we're interested in).
Signed-off-by: Joe Hershberger
---
tools/en
If the pointer passed into envmatch() is NULL, return -1 instead of
crashing.
Signed-off-by: Joe Hershberger
---
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 bd52fa4..76cdd87 100644
--- a
We will only call fw_getenv when the env has already been initialized.
Signed-off-by: Joe Hershberger
---
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 a461dbd..8bb7f9a 100644
--- a/tools/env/fw_env.c
+++ b/tools/env
Use a lock file at /var/lock/fw_printenv.lock.
Avoids seriously confusing the MTD driver.
Signed-off-by: Joe Hershberger
---
tools/env/fw_env_main.c | 59 +++--
1 file changed, 37 insertions(+), 22 deletions(-)
diff --git a/tools/env/fw_env_main.c b
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
---
common/cmd_nvedit.c | 16
common/env_common.c | 8
Add support for read-only and write-once.
Signed-off-by: Joe Hershberger
---
README | 13 +++-
common/cmd_nvedit.c | 51
common/env_acl.c| 38 +
include/env_acl.h | 14
tools/env
Use variables that define the access type to the env. This will
simplify validation of access with the ACL.
If deleting a variable that doesn't exist, do nothing
Signed-off-by: Joe Hershberger
---
common/cmd_nvedit.c | 101 +++-
tool
There used to be a huge structure duplicated 3 times in the source.
Signed-off-by: Joe Hershberger
---
common/env_common.c | 99 +--
common/env_embedded.c | 114 ++--
include/env_default.h | 142
Modify fw_printenv to read in chunks of 0x20 at a time.
Signed-off-by: Joe Hershberger
---
tools/env/fw_env.c | 25 -
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 8bb7f9a..9ecc22a 100644
--- a/tools/env
static definitions, but prevents
the need to have every definition in the environment distracting you.
Move min macro from fw_env.c to fw_env.h... it is needed by env_acl.c
when building for Linux.
Need to build in _ctype for isdigit for Linux.
Signed-off-by: Joe Hershberger
---
README
Define the new "-2" value for bootdelay to mean autoboot with no delay
and don't check for an abort key (while "0" value means do check).
Signed-off-by: Joe Hershberger
---
README| 2 ++
common/main.c | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(
Only print when queried, not every time the setting is changed.
Signed-off-by: Joe Hershberger
---
common/cmd_cache.c | 49 +++--
1 file changed, 27 insertions(+), 22 deletions(-)
diff --git a/common/cmd_cache.c b/common/cmd_cache.c
index 9c228e2
Change echo to puts charachters 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
---
common/cmd_echo.c | 20
1 file changed, 12 insertions(+), 8
Improve debug output for test by indicating the number of parameters
and quoting the parameters to make it clear exactly what each contains
Signed-off-by: Joe Hershberger
---
common/cmd_test.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/cmd_test.c b/common
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
---
common/Makefile | 1 +
common/cmd_ini.c | 256
Two sub-commands... start and get.
* start sets the reference.
* get prints out the time since the last start (in "." format).
If get is called without start, returns time since boot.
Simple way to benchmark an operation: "timer start;;timer
get"
Signed-off-by: Joe Hers
This command allows you to read the value of a memory address and store
it in an environment variable.
Signed-off-by: Joe Hershberger
---
common/cmd_mem.c | 47 +++
1 file changed, 47 insertions(+)
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
Provide access to the lzo decompressor from the command line.
Signed-off-by: Joe Hershberger
---
common/Makefile| 3 +++
common/cmd_unlzo.c | 65 ++
2 files changed, 68 insertions(+)
create mode 100644 common/cmd_unlzo.c
diff --git a
Provide access to the lzma decompressor from the command line.
Signed-off-by: Joe Hershberger
---
common/Makefile | 3 +++
common/cmd_unlzma.c | 69 +
2 files changed, 72 insertions(+)
create mode 100644 common/cmd_unlzma.c
diff --git a
601 - 700 of 4631 matches
Mail list logo