I'm not really sure here. There was a driver that worked with this board, but it had a lot of problems. Looking at that driver and this data, the only thing I can see is that the other driver terminated the message with a 0x0d, not a 0x0a. It may be best to send both, so I'm attaching a patch to do that.

-corey

Jonathan Fournier wrote:
I'm getting this with debug:

ipmi message handler version 39.1
IPMI Serial System Interface driver
ipmi_serial: Registering TerminalMode codec
ipmi_serial(ttyS4): Found a matching serial port
ipmi_serial(ttyS4): Outgoing data: 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( ) ipmi_serial(ttyS4): Outgoing data: 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( ) ipmi_serial(ttyS4): Outgoing data: 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( ) ipmi_serial(ttyS4): Outgoing data:<7>ipmi_serial(ttyS4): Incoming char: 5b '['
ipmi_serial(ttyS4): Incoming char: 45 'E'
ipmi_serial(ttyS4): Incoming char: 52 'R'
ipmi_serial(ttyS4): Incoming char: 52 'R'
ipmi_serial(ttyS4): Incoming char: 20 ' '
ipmi_serial(ttyS4): Incoming char: 63 'c'
ipmi_serial(ttyS4): Incoming char: 31 '1'
ipmi_serial(ttyS4): Incoming char: 5d ']'
ipmi_serial(ttyS4): Incoming char: 0a ' '
ipmi_serial(ttyS4): Incoming char: 0d ' '
 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( )
ipmi_serial(ttyS4): Outgoing data: 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( ) ipmi_serial(ttyS4): Outgoing data: 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( ) ipmi_serial(ttyS4): Outgoing data: 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( ) ipmi_serial(ttyS4): Outgoing data: 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( ) ipmi_serial(ttyS4): Outgoing data: 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( ) ipmi_serial(ttyS4): Outgoing data: 5b([) 31(1) 38(8) 30(0) 30(0) 30(0) 31(1) 5d(]) 0a( ) ipmi_serial(ttyS4): codec initialization timed out, interface is not usable


For serial terminal mode, send a carraige return along with the line
feed in case some systems need this.

Signed-off-by: Corey Minyard <[EMAIL PROTECTED]>

Index: linux-2.6.23/drivers/char/ipmi/ipmi_serial_terminal_mode.c
===================================================================
--- linux-2.6.23.orig/drivers/char/ipmi/ipmi_serial_terminal_mode.c
+++ linux-2.6.23/drivers/char/ipmi/ipmi_serial_terminal_mode.c
@@ -274,6 +274,8 @@ static void format_msg(struct ipmi_seria
 	len++;
 	c[len] = 0x0a;
 	len++;
+	c[len] = 0x0d; /* We definitely have room for this byte. */
+	len++;
 
 	data->xmit_chars_pos = 0;
 	data->xmit_chars_len = len;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to