If you want to implement this, you can probably steal some of the code
from the IPMI driver for the protocol engines and start with the driver
interface code in OpenIPMI (lib/ipmi_smi.c). You'll need to implement
the session stuff. You can look in lib/ipmi_lan.c, to, but the LAN code
is pretty complex. You probably want to implement the configuration bits
for the serial interface, too, you can look in lib/lanparm.c for an
example of how to do that.
I said it wouldn't be terribly hard, but it won't be easy either. It
will take some time to figure things out. I assume you don't need modem
operation, that would be a lot harder as you would need to modify
OpenIPMI quite a bit for disconnect/reconnect type of operation.
-corey
On 07/07/2010 11:59 PM, WANG Yong ming wrote:
Corey,
Yes, you right, ipmitool and freeipmi do not have this implemented either.
Andrew
------------------------------------------------------------------------
*From:* Corey Minyard [mailto:miny...@acm.org]
*Sent:* Wednesday, July 07, 2010 9:58 PM
*To:* WANG Yong ming
*Cc:* openipmi-developer@lists.sourceforge.net
*Subject:* Re: [Openipmi-developer] Is session used for UART payload
interface?
On 07/06/2010 11:54 PM, WANG Yong ming wrote:
Hi,
I am implementing a payload interface based on UART, from the spec,
serial channel is session based, but I could not find the openIPMI
source code for the serial channel session establishment, so the
question is,
Is openIPMI has a UART payload interface implementation?
It depends on what you mean. There is no code in the OpenIPMI library
for handling the serial interface as specified in the specification.
There is code for the Linux IPMI driver that handles serial
interfaces, but they aren't exactly compliant with the specification;
they don't do any of the session stuff, they are just serial
interfaces to the BMC. Some of them use the basic protocols defined
in the IPMI specification. This is not part of the mainstream kernel,
as it requires changes to the serial core to handle the
run-to-completion operations at panic and shutdown time.
I don't think any of the other main open source IPMI software does
this either, but you can check ipmitool and freeipmi.
This could be added to OpenIPMI, of course, and it wouldn't be
terribly hard.
-corey
If yes, is session used for the interface?
Thanks,
Andrew
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Openipmi-developer mailing list
Openipmi-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openipmi-developer