FreeBSD, unlike Linux, is actually pays attention to the direction of ioctl parameters. It would be nice if OpenIPMI fix ioctl direction too.
2009/12/28 Andy Cress <[email protected]>: > > FYI. Shortly after this email, I did get this issue resolved in > ipmiutil-2.5.2. > After the pragma_pack, I also had to change the IOCTL definitions, since they > are slightly different between Linux and FreeBSD. > > Andy > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Andy Cress > Sent: Friday, December 04, 2009 9:47 AM > To: [email protected]; Mark Lokowich > Cc: [email protected] > Subject: RE: [Freeipmi-devel] 64-bit issues with OpenIPMI driver on > FreeBSD-7.2 > > Mark, > > There is definitely an interface incompatibility between the FreeBSD ipmi > driver and the Linux OpenIPMI driver. The same code to talk to /dev/ipmi0 on > Linux does not work on FreeBSD (either 32-bit or 64-bit). I haven't > diagnosed why exactly, but the ipmi_req size is a start. If we had a > solution, it could be implemented with #ifdef's. It's on my TODO list, but > keeps getting bumped by more urgent issues. > > I believe that both FreeIPMI and ipmiutil use the direct I/O approach instead > for FreeBSD. > Does anyone know of any code that DOES work with the FreeBSD /dev/ipmi0 > interface? > > Andy > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Al Chu > Sent: Thursday, December 03, 2009 4:51 PM > To: Mark Lokowich > Cc: freeipmi-devel ([email protected]) > Subject: Re: [Freeipmi-devel] 64-bit issues with OpenIPMI driver on > FreeBSD-7.2 > > Hi Mark, > > I don't personally have experience w/ the OpenIPMI driver on FreeBSD. > As an FYI, you may want to try the OpenIPMI mailing list too to see if anyone > else there has experience w/ the driver on FreeBSD. > > Al > > On Thu, 2009-12-03 at 14:58 -0600, Mark Lokowich wrote: >> I’m having problems using the OpenIPMI driver on a 64-bit FreeBSD-7.2 >> system. Seems that the ipmi_req structure is being sized at 0x20 >> bytes when it should be 0x28. This is causing incorrect encoding of >> the ioctl IPMICTL_SEND_COMMAND, failing the operation. I tried using >> the 32-bit compatibility mode, but this was creating other problems >> with casting and pointer widths. This problem is only evident from a >> C++ application that uses the driver, not when built as a standalone >> IPMI test utility. Any help? >> >> >> >> Thanks, >> >> Mark ([email protected]) >> >> >> _______________________________________________ >> Freeipmi-devel mailing list >> [email protected] >> http://*lists.gnu.org/mailman/listinfo/freeipmi-devel > -- > Albert Chu > [email protected] > Computer Scientist > High Performance Systems Division > Lawrence Livermore National Laboratory > > > > _______________________________________________ > Freeipmi-devel mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/freeipmi-devel > > > > > > _______________________________________________ > Freeipmi-devel mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/freeipmi-devel > > _______________________________________________ Freeipmi-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/freeipmi-devel
