diff mbox

[U-Boot,v2,2/4] microblaze: Enable netconsole

Message ID b93688009571cac956c84ea58b4aff06821fce3e.1366724011.git.michal.simek@xilinx.com
State Accepted
Delegated to: Michal Simek
Headers show

Commit Message

Michal Simek April 23, 2013, 1:33 p.m. UTC
From: Michal Simek <monstr@monstr.eu>

Setup environment and enable netconsole.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
Changes in v2:
- Remove trailing 1 for configurations
- Remove \; from nc variable

 include/configs/microblaze-generic.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

--
1.8.2.1

Comments

Tom Rini April 23, 2013, 6:47 p.m. UTC | #1
On Tue, Apr 23, 2013 at 03:33:37PM +0200, Michal Simek wrote:

> From: Michal Simek <monstr@monstr.eu>
> 
> Setup environment and enable netconsole.
> 
> Signed-off-by: Michal Simek <monstr@monstr.eu>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Reviewed-by: Tom Rini <trini@ti.com>
diff mbox

Patch

diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index d172e56..8c0353a 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -414,10 +414,17 @@ 
 					"nor0=flash-0\0"\
 					"mtdparts=mtdparts=flash-0:"\
 					"256k(u-boot),256k(env),3m(kernel),"\
-					"1m(romfs),1m(cramfs),-(jffs2)\0"
+					"1m(romfs),1m(cramfs),-(jffs2)\0"\
+					"nc=setenv stdout nc;"\
+					"setenv stdin nc\0" \
+					"serial=setenv stdout serial;"\
+					"setenv stdin serial\0"

 #define CONFIG_CMDLINE_EDITING

+#define CONFIG_NETCONSOLE
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
+
 /* Use the HUSH parser */
 #define CONFIG_SYS_HUSH_PARSER