[Freeipmi-devel] Re: [Freeipmi-users] ipmi_open_inband
* Sharad Chandra [EMAIL PROTECTED] [14.12.2006 15:35]: Hi, I am trying to create and write sdr cache. For that purpose i am opening ipmi inband, by using function ipmi_open_inband provided in freeipmi/udm/ipmi-udm.h. but when i compile using -lfreeipmi it tells /var/tmp//cchg3LRe.o(.text+0x11a): In function `init_agent_cache()': : undefined reference to `ipmi_open_inband(ipmi_driver_type, int, unsigned short, unsigned char, char*, unsigned int)' I was looking for library to use that function.. this is linking problem.. What to do to resolve it? I am using freeipmi-0.3.0_1 version and trying on IBM machine eserver xSeries 346 -[884011U] This is on FreeBSD I suppose? Can You please provide compile command You using? I successfully test-compile with libfreeipmi: [EMAIL PROTECTED] ttyp1:~/tmp$pkg_info | grep freeipmi freeipmi-0.3.0_1Library and tools to support IPMI-capable hardware [EMAIL PROTECTED] ttyp1:~/tmp$cat fitest.c #include freeipmi/udm/ipmi-udm.h int main(void) { ipmi_open_inband(0, 0, 0, 0, 0, 0); return (0); } [EMAIL PROTECTED] ttyp1:~/tmp$cc -I/usr/local/include -L/usr/local/lib -lfreeipmi -o fitest fitest.c [EMAIL PROTECTED] ttyp1:~/tmp$ls -l fitest -rwxr-xr-x 1 frol frol 4777 14 дек 16:13 fitest* wbrw, dmitry. -- Dmitry Frolov [EMAIL PROTECTED] RISS-Telecom Network, Novosibirsk, Russia [EMAIL PROTECTED], +7 383 2278800, DVF-RIPE ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
[Freeipmi-devel] Re: [Freeipmi-users] ipmi_open_inband
Hi Sharad, Hmmm. Could you do a quick 'nm' just to make sure the symbol is there? nm /usr/lib64/libfreeipmi.a | grep ipmi_open_inband 0660 T ipmi_open_inband I'm not sure off the top of my head. Al On Thu, 2006-12-14 at 15:01 +0530, Sharad Chandra wrote: Hi, I am trying to create and write sdr cache. For that purpose i am opening ipmi inband, by using function ipmi_open_inband provided in freeipmi/udm/ipmi-udm.h. but when i compile using -lfreeipmi it tells /var/tmp//cchg3LRe.o(.text+0x11a): In function `init_agent_cache()': : undefined reference to `ipmi_open_inband(ipmi_driver_type, int, unsigned short, unsigned char, char*, unsigned int)' I was looking for library to use that function.. this is linking problem.. What to do to resolve it? I am using freeipmi-0.3.0_1 version and trying on IBM machine eserver xSeries 346 -[884011U] Thanks Sharad Chandra ___ Freeipmi-users mailing list Freeipmi-users@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-users -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] Re: [Freeipmi-users] ipmi_open_inband no such device on Ibm e325
,[ Albert Chu [EMAIL PROTECTED] ] | Hey Rene, | | Thanks. That verifies atleast why it's failing. | | /* At this point we only support SYSTEM_IO, i.e. inb/outb style IO. | If we cant find the bass address, we better exit. -- Anand Babu */ | if (dev-io.inband.locate_info.addr_space_id != | IPMI_ADDRESS_SPACE_ID_SYSTEM_IO) | { |errno = ENODEV; |return (-1); | } | | The IBM's use memory mapped io. This is the first machine (that | I've seen) with memory mapped rather than port based i/o for in-band | IPMI. ` Hi Rene, I got time to work on this only now. I think you have changed the pass code. OpenBSD guys got inband driver to work on IBM e325. This looks like a BMC firmware bug. Refer to http://undeadly.org/cgi?action=articlesid=20060105200847 Can you please try no-probing option. This will force the KCS driver to use successive reg-spacing (=1byte) and I/O mapped access. # bmc-info --no-probing Second thing I may try is to increase the value of libfreeipmi/src/ipmi-kcs-api.c:IPMI_KCS_SLEEP_USECS to something higher. Because MSI's BMC is slow in I/O. We may also need SDR firmware fixes. I will tell you what you need to report to IBM once we get the basic stuff to work. -- Anand Babu GPG Key ID: 0x62E15A31 Blog [http://ab.freeshell.org] The GNU Operating System [http://www.gnu.org] ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] Re: [Freeipmi-users] ipmi_open_inband no such device on Ibm e325
Second thing I may try is to increase the value of libfreeipmi/src/ipmi-kcs-api.c:IPMI_KCS_SLEEP_USECS to something higher. Because MSI's BMC is slow in I/O. Why don't we make it a command-line option for all in-band tools? Al -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory - Original Message - From: Anand Babu [EMAIL PROTECTED] Date: Sunday, April 2, 2006 10:54 pm Subject: Re: [Freeipmi-devel] Re: [Freeipmi-users] ipmi_open_inband no such device on Ibm e325 ,[ Albert Chu [EMAIL PROTECTED] ] | Hey Rene, | | Thanks. That verifies atleast why it's failing. | | /* At this point we only support SYSTEM_IO, i.e. inb/outb style IO. | If we cant find the bass address, we better exit. -- Anand Babu */ | if (dev-io.inband.locate_info.addr_space_id != | IPMI_ADDRESS_SPACE_ID_SYSTEM_IO) | { |errno = ENODEV; |return (-1); | } | | The IBM's use memory mapped io. This is the first machine (that | I've seen) with memory mapped rather than port based i/o for in-band | IPMI. ` Hi Rene, I got time to work on this only now. I think you have changed the pass code. OpenBSD guys got inband driver to work on IBM e325. This looks like a BMC firmware bug. Refer to http://undeadly.org/cgi?action=articlesid=20060105200847 Can you please try no-probing option. This will force the KCS driver to use successive reg-spacing (=1byte) and I/O mapped access. # bmc-info --no-probing Second thing I may try is to increase the value of libfreeipmi/src/ipmi-kcs-api.c:IPMI_KCS_SLEEP_USECS to something higher. Because MSI's BMC is slow in I/O. We may also need SDR firmware fixes. I will tell you what you need to report to IBM once we get the basic stuff to work. -- Anand Babu GPG Key ID: 0x62E15A31 Blog [http://ab.freeshell.org] The GNU Operating System [http://www.gnu.org] ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel