[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Freeipmi-devel] 64-bit issues with OpenIPMI driver on FreeBSD-7.2
From: |
Andy Cress |
Subject: |
RE: [Freeipmi-devel] 64-bit issues with OpenIPMI driver on FreeBSD-7.2 |
Date: |
Mon, 28 Dec 2009 06:57:05 -0800 |
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: address@hidden [mailto:address@hidden On Behalf Of Andy Cress
Sent: Friday, December 04, 2009 9:47 AM
To: address@hidden; Mark Lokowich
Cc: address@hidden
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: address@hidden [mailto:address@hidden On Behalf Of Al Chu
Sent: Thursday, December 03, 2009 4:51 PM
To: Mark Lokowich
Cc: freeipmi-devel (address@hidden)
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 (address@hidden)
>
>
> _______________________________________________
> Freeipmi-devel mailing list
> address@hidden
> http://*lists.gnu.org/mailman/listinfo/freeipmi-devel
--
Albert Chu
address@hidden
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
_______________________________________________
Freeipmi-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/freeipmi-devel