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

login
register
mail settings
Submitter Michal Simek
Date April 22, 2013, 2:41 p.m.
Message ID <cf0759e066fa3dd1413a0a6ee6bd6fa89db9d3aa.1366641621.git.michal.simek@xilinx.com>
Download mbox | patch
Permalink /patch/238545/
State Superseded
Delegated to: Michal Simek
Headers show

Comments

Michal Simek - April 22, 2013, 2:41 p.m.
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>
---
 include/configs/microblaze-generic.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

--
1.8.2.1

Patch

diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index d172e56..2b7ccf4 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 1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV 1
+
 /* Use the HUSH parser */
 #define CONFIG_SYS_HUSH_PARSER