Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#7 Porting OpenIPMI library to FreeBSD

open
nobody
None
5
2010-04-19
2010-04-19
Anonymous
No

I'm trying to build OpenIPMI library (cvs version) on FreeBSD amd64. After minimal patching (please see attached patch) it successfully build, but do not work:

$ cvs -d:pserver:anonymous@openipmi.cvs.sourceforge.net:/cvsroot/openipmi login
$ cvs -z3 -d:pserver:anonymous@openipmi.cvs.sourceforge.net:/cvsroot/openipmi co -P OpenIPMI
$ cd OpenIPMI
$ patch -p1 < ../patch-OpenIPMI.txt
$ ./bootstrap
$ CFLAGS="-Werror" CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure --with-openssl --with-glib --with-perl=no --with-python=no --prefix=/var/tmp/openipmi
$ gmake
$ gmake install

$ ldd /var/tmp/openipmi/bin/ipmi_ui
/var/tmp/openipmi/bin/ipmi_ui:
libOpenIPMIui.so.1 => /var/tmp/openipmi/lib/libOpenIPMIui.so.1 (0x800639000)
libOpenIPMIutils.so.0 => /var/tmp/openipmi/lib/libOpenIPMIutils.so.0 (0x800767000)
libOpenIPMI.so.0 => /var/tmp/openipmi/lib/libOpenIPMI.so.0 (0x800870000)
libm.so.5 => /lib/libm.so.5 (0x800a98000)
libOpenIPMIposix.so.0 => /var/tmp/openipmi/lib/libOpenIPMIposix.so.0 (0x800bb7000)
libncurses.so.8 => /lib/libncurses.so.8 (0x800cbe000)
libnetsnmp.so.16 => /usr/local/lib/libnetsnmp.so.16 (0x800e0a000)
libcrypto.so.6 => /lib/libcrypto.so.6 (0x800fce000)
libgdbm.so.3 => /usr/local/lib/libgdbm.so.3 (0x801267000)
libc.so.7 => /lib/libc.so.7 (0x80136c000)

$ /var/tmp/openipmi/bin/ipmi_ui lan 10.2.2.1 623 md5 user root changeme

───────────────────────────────────────┬────────────────────────────────────────
Welcome to the IPMI UI version 2.0.16 │
display_win - Sets the display window│
(left window) for scrolling │
log_win - Sets the log window (right │
window) for scrolling │
entities - list all the entities the │
UI knows about │
entity <entity name> - list all the i│
nfo about an entity │
hs_get_act_time <entity name> - Get t│
he host-swap auto-activate time │
hs_set_act_time <entity name> <time i│
n nanoseconds> - Set the host-swap auto│
-activate time │1271682606.011494: Starting setup, wait
hs_get_deact_time <entity name> - Get│until complete before entering commands.
the host-swap auto-deactivate time │
hs_set_deact_time <entity name> <time│
───────────────────────────────────────┴────────────────────────────────────────
>

and nothing :-(

if i try use -dmsg option,

───────────────────────────────────────┬────────────────────────────────────────
Welcome to the IPMI UI version 2.0.16 │
display_win - Sets the display window│
(left window) for scrolling │
log_win - Sets the log window (right │
window) for scrolling │
entities - list all the entities the │
UI knows about │1271682669.855054: Starting setup, wait
entity <entity name> - list all the i│until complete before entering commands.
nfo about an entity │
hs_get_act_time <entity name> - Get t│1271682669.860969: DEBG: first 0 outgoin
he host-swap auto-activate time │g msg to IPMI addr = 0c 00 00 00 0f 00 0
hs_set_act_time <entity name> <time i│0 00
n nanoseconds> - Set the host-swap auto│ msg = netfn=app(c):06 cmd=GetChAuthCap
-activate time │:38 data_len=2
hs_get_deact_time <entity name> - Get│ data(len=2.) =
the host-swap auto-deactivate time │ 0e 02
hs_set_deact_time <entity name> <time│
───────────────────────────────────────┴────────────────────────────────────────
>

Linux buld work fine. And ipmitool on this FreeBSD also work fine:

$ ipmitool -I lan -H 10.2.2.1 -U root -P changeme fru
FRU Device Description : Builtin FRU Device (ID 0)
Product Manufacturer : ASPEED
Product Name : BMC CONTROLLERhandl3bar
Product Part Number : AST2000

FRU Device Description : /SYS (ID 27)
Chassis Type : Rack Mount Chassis
....

Could you please help me ?

Thanks a lot!

Discussion