IPMI(4)
π NAME π
ipmi β OpenIPMI compatible IPMI interface driver. Yes bestie, this is the IPMI(4) page, and weβre gonna make it make sense, okay?
β¨ SYNOPSIS β¨
Okay so the core vibe is literally this:
device ipmi
To manually specify I/O attachment in /boot/device.hints:
hint.ipmi.0.at="isa"
hint.ipmi.0.port="0xCA2"
hint.ipmi.0.spacing="8"
hint.ipmi.0.mode="KCS"
To manually specify memory attachment in /boot/device.hints:
hint.ipmi.0.at="isa"
hint.ipmi.0.maddr="0xf0000000"
hint.ipmi.0.spacing="8"
hint.ipmi.0.mode="SMIC"
Meaning of spacing:
8β 8 bit alignment16β 16 bit alignment32β 32 bit alignment
β οΈ If the port and spacing are not specified the interface type default will be used. Only specify either the port for I/O access or maddr for memory access.
π¦ DESCRIPTION π¦
So IPMI (Intelligent Platform Management Interface) is a standard for monitoring system hardware by permitting generic code to detect and monitor the sensors in a system. It offers watchdog support, an FRU database, and other support extensions. It is currently being adopted by the makers of many single board and embedded system manufacturers.
The ipmi driver in FreeBSD is heavily adopted from the standard and Linux driver; however, not all features described in the standard are supported. Ngl, that part matters β donβt assume every standard feature is here.
The ipmi driver implements the power cycling option to shutdown(8) to implement power cycling of the system. The motherboardβs BMC must support the chassis device and the optional power cycle subcomand of the chassis control command as described in section 28.3 of the IPMI standard. The length of time the system is off will be at least one second, but may be longer if the power cycle interval has been set (see section 28.9).
π IOCTLS π
Sending and receiving messages through the ipmi driver requires the use of ioctl(2). The ioctls are used due to the complexity of data sent to and from the device. The ioctl(2) command codes below are defined in <sys/ipmi.h>. The third argument to ioctl(2) should be a pointer to the type indicated.
Currently the following ioctls are supported:
IPMICTL_RECEIVE_MSG(struct ipmi_recv) β receive a message. Possible error values:[EAGAIN]β no messages are in the process queue.[EFAULT]β an address supplied was invalid.[EMSGSIZE]β the address could not fit in the message buffer and will remain in the buffer.
IPMICTL_RECEIVE_MSG_TRUNC(struct ipmi_recv) β likeIPMICTL_RECEIVE_MSGbut if the message cannot fit into the buffer, it will truncate the contents instead of leaving the data in the buffer.IPMICTL_SEND_COMMAND(struct ipmi_req) β send a message to the interface. Possible error values:[EFAULT]β an address supplied was invalid.[ENOMEM]β buffers could not be allowed for the command, out of memory.
IPMICTL_SET_MY_ADDRESS_CMD(unsigned int) β set the slave address for source messages.IPMICTL_GET_MY_ADDRESS_CMD(unsigned int) β get the slave address for source messages.IPMICTL_SET_MY_LUN_CMD(unsigned int) β set the slave LUN for source messages.IPMICTL_GET_MY_LUN_CMD(unsigned int) β get the slave LUN for source messages.
π Unimplemented Ioctls π
IPMICTL_REGISTER_FOR_CMD(struct ipmi_cmdspec) β register to receive a specific command. Possible error values:[EFAULT]β an supplied address was invalid.[EBUSY]β the network function/command is already in use.[ENOMEM]β could not allocate memory.
IPMICTL_UNREGISTER_FOR_CMD(struct ipmi_cmdspec) β unregister to receive a specific command. Possible error values:[EFAULT]β an address supplied was invalid.[ENOENT]β the network function/command was not found.
π Stub Only Ioctl π
IPMICTL_SET_GETS_EVENTS_CMD(int) β set whether this interface receives events. Possible error values:[EFAULT]β an address supplied was invalid.
π SEE ALSO π
β HISTORY β
The ipmi driver first appeared in FreeBSD 6.2.
π AUTHORS π
The ipmi driver was written by Doug Ambrisko <ambrisko@FreeBSD.org>. This manual page was written by Tom Rhodes <trhodes@FreeBSD.org>.
π BUGS π
Not all features of the MontaVista driver are supported.
Currently, IPMB and BT modes are not implemented. So yeah, those modes are a no-go for now π
Source/version and date: Debian, October 25, 2017 β thatβs the footer, bestie, mwah ππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2006 Tom Rhodes
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms