On 02/11/2016 06:19 PM, Michael Fun wrote:
> Hi Corey,
>
> Thank you so much for your info! I will try to make the ipmisim 
> working. Is there any instruction to set it up and instructions to 
> configure the config file?
>

There is a file named "README.yourownbmc" that's a start, along with the 
man pages for the config files that it points out.

Note that this is not an exercise for the faint of heart, there's a lot 
of things to get right for a fully compliant BMC.  And there may be 
things that the documentation still doesn't cover.  But it should be 
easy to get it up and running so you can make IPMI LAN connections to it 
and do basic things and then add on from there.

You will have to write SDRs, which sucks, but there is a compiler that 
makes the suckage not so bad.

There is also an example in the "marvell-bmc" directory.

-corey

> Corey, thanks all you help and your time. Really appreciate your 
> kindness and all the emails you responded.
>
> Thanks,
> Mike
>
> On Wed, Feb 3, 2016 at 1:04 PM, Corey Minyard <miny...@acm.org 
> <mailto:miny...@acm.org>> wrote:
>
>     On 02/02/2016 06:39 PM, Michael Fun wrote:
>
>         Thank you, Corey! I am trying to use open source code to
>         implement BMC server side code (Our BMC is arm based and runs
>         on embedded linux). I tried to use lanserv code for receiving
>         and decoding rmcp message. Looking for open source RMCP + IPMI
>         implementation for the BMC server side code. Corey, if you
>         know any information about this, please let me know. Really
>         appreciate your helps!
>
>     Two main executables come out of the lanserv directory, ipmilan
>     (which gives LAN access to a local BMC through the Linux IPMI
>     driver) and ipmisim, which is a full BMC. ipmisim works and is
>     well tested, it has been used as a real BMC in systems.  I have
>     kept ipmilan compiling as common code has changed, but I have not
>     tested it in a long time. So the RMCP side of things should be
>     solid, but things are probably missing in ipmilan.
>
>     I had worked in the past on splitting out the RMCP code into a
>     separate library, but it's tied around user management and some
>     other things and it's not simple.  So I haven't done it.
>
>     If you want to try to get ipmilan working, I'm happy to take
>     patches, but I can't work on it at the moment.
>
>     -corey
>
>         Thanks a lot!
>         Michael
>
>
>         On Fri, Jan 29, 2016 at 11:53 AM, Corey Minyard
>         <miny...@acm.org <mailto:miny...@acm.org>
>         <mailto:miny...@acm.org <mailto:miny...@acm.org>>> wrote:
>
>             What are you trying to do here? ipmilan is kind of a hack
>         and I
>             should probably remove it.  But it lets you sort of make
>         an IPMI
>             LAN connection to a local BMC.  I haven't tested it in
>         many years,
>             it may very well be broken.
>
>             -corey
>
>             On 01/27/2016 05:08 PM, Michael Fun wrote:
>
>                 Hello,
>
>                 I am newbie to ipmi and really appreciate your helps.
>
>                 When I run ipmilan and got coredump. It looks like it read
>                 config file and some configuration is not right.
>
>                 Is there any good lan.conf file available so I can run
>         ipmilan
>                 without coredump? My goal is using lanserv or ipmi_sim
>         as base
>                 to develop my own bmc firmware.
>
>                 Thank you!
>                 Mike
>
>                 1.) coredump stack
>         ============================================================
>
>                 (gdb) where
>                 #0  0x000003ff874baad0 in strlen () from /lib64/libc.so.6
>                 #1  0x000003ff875eda7c in get_fname
>                 (sfx=sfx@entry=0x3ff875f2300 "",
>                     p=0x2f5ea670) at persist.c:186
>                 #2  0x000003ff875ee544 in read_persist (
>                     name=name@entry=0x3ff875f0e50 "lanparm.mc
>         <http://lanparm.mc>
>                 <http://lanparm.mc> <http://lanparm.mc>%2.2x.%d") at
>         persist.c:280
>                 #3  0x000003ff875e9024 in read_lan_config (lan=0x2f5ea8a0)
>                     at lanserv_ipmi.c:3096
>                 #4  ipmi_lan_init (lan=lan@entry=0x2f5ea8a0) at
>                 lanserv_ipmi.c:3177
>                 #5  0x00000000004020d0 in main (argc=<optimized out>,
>                 argv=0x2f5ea8c8)
>                     at lanserv.c:845
>
>
>                 2.) lan.conf file
>         ===========================================================
>
>                 # lan.conf
>                 # A configuration file for lanserv or ipmi_sim to
>         configure
>                 the various
>                 # communication parameters for the device.
>
>                 # This is a name used to identify this instance, and
>         used to
>                 create
>                 # the default name of the emulator startup command
>         file and
>                 eventually
>                 # the storage facility for permanent storage.
>                 name "AXP-SERVER"
>
>                 #
>                 # Work on the BMC first
>                 set_working_mc 0x20
>
>                   # Define a LAN channel on channel 1 (eth1)
>                   startlan 1
>                     # Define an IP address and port to listen on. You can
>                 define more
>                     # than one address/port to listen on multiple
>         addresses.
>                 The ::
>                     # listens on all addresses.
>                     addr 0.0.0.0 623
>
>                     # Maximum privilege limit on the channel.
>                     priv_limit admin
>
>                     # Allowed IPMI 1.5 authorization types
>                     #allowed_auths_callback none md2 md5 straight
>                     #allowed_auths_user none md2 md5 straight
>                     #allowed_auths_operator none md2 md5 straight
>                     #allowed_auths_admin none md2 md5 straight
>
>                     # guid for IPMI 2.0 authorization  You can also
>         use a string
>                     #guid a123456789abcdefa123456789abcdef
>                     guid "vos92Gk2Ols901ls"
>
>                     # You can specify a BMC key for IPMI 2.0
>         authorization.         See the
>                     # spec for details.
>                     #bmc_key "abcdefghijklmnopqrst"
>
>                     # A program to get and set the LAN configuration
>         of the
>                 interface.
>                     lan_config_program "/etc/ipmi/lancontrol eth1"
>                   endlan
>
>                   # Define a LAN channel on channel 2 (eth0)
>                   startlan 2
>                     # We don't define a listen address, as it is not
>                 necessary, the
>                     # one from channel 1 covers everything.
>
>                     # Maximum privilege limit on the channel.
>                     priv_limit admin
>
>                     # Allowed IPMI 1.5 authorization types
>                     #allowed_auths_callback none md2 md5 straight
>                     #allowed_auths_user none md2 md5 straight
>                     #allowed_auths_operator none md2 md5 straight
>                     #allowed_auths_admin none md2 md5 straight
>
>                     # guid for IPMI 2.0 authorization  You can also
>         use a string
>                     #guid a123456789abcdefa123456789abcdef
>                     guid "vos92Gk2Ols901ls"
>
>                     # You can specify a BMC key for IPMI 2.0
>         authorization.         See the
>                     # spec for details.
>                     #bmc_key "abcdefghijklmnopqrst"
>
>                     # A program to get and set the LAN configuration
>         of the
>                 interface.
>                     lan_config_program "/etc/ipmi/lancontrol eth0"
>                   endlan
>
>                   # Now add some users.  User 0 is invalid, user 1 is the
>                 special "anonymous"
>                   # user and cannot take a username.  Note that the
>         users here
>                 are only
>                   # used if the persistent user config doesn't exist.
>                   #    # valid name      passw   priv-lim max-sess
>         allowed-auths
>                   user 1 false ""        "test"  user     10  none md2
>                 md5 straight
>                   user 2 true  "ADMIN"   "ADMIN" admin    10  none md2
>                 md5 straight
>
>                 #
>                 # Target board 1
>                 #
>                 set_working_mc 1
>
>
>                 #
>                 # Target board 2
>                 #
>                 set_working_mc 2
>
>
>                 #
>                 # Target board 3
>                 #
>                 set_working_mc 3
>
>
>                 #
>                 # Target board 5
>                 #
>                 set_working_mc 5
>
>
>                 #
>                 # Target board 6
>                 #
>                 set_working_mc 6
>
>
>
>                 # Allow a console connection to perform emulation
>         commands.
>                 #console localhost 9000
>
>                 # Dynamically load a module to extend the simulator.
>         After the
>                 module is
>                 # loaded, if the function "ipmi_sim_module_init" is
>         defined in
>                 the module,
>                 # it will be called with the following parameters:
>                 #  int ipmi_sim_module_init(sys_data_t *sys, char
>         *initstr);
>                 # where initstr is the init string passed on the
>         module load line.
>                 # It should return 0 on success or an errno no failure.
>                 loadlib "/usr/lib/ipmi_sim/marvell_mod.so" ""
>
>
>         
> ------------------------------------------------------------------------------
>                 Site24x7 APM Insight: Get Deep Visibility into Application
>                 Performance
>                 APM + Mobile APM + RUM: Monitor 3 App instances at
>         just $35/Month
>                 Monitor end-to-end web transactions and take corrective
>                 actions now
>                 Troubleshoot faster and improve end-user experience.
>         Signup Now!
>         http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>
>
>                 _______________________________________________
>                 Openipmi-developer mailing list
>         Openipmi-developer@lists.sourceforge.net
>         <mailto:Openipmi-developer@lists.sourceforge.net>
>                 <mailto:Openipmi-developer@lists.sourceforge.net
>         <mailto:Openipmi-developer@lists.sourceforge.net>>
>         https://lists.sourceforge.net/lists/listinfo/openipmi-developer
>
>
>
>
>
>         
> ------------------------------------------------------------------------------
>         Site24x7 APM Insight: Get Deep Visibility into Application
>         Performance
>         APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>         Monitor end-to-end web transactions and take corrective
>         actions now
>         Troubleshoot faster and improve end-user experience. Signup Now!
>         http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>
>
>         _______________________________________________
>         Openipmi-developer mailing list
>         Openipmi-developer@lists.sourceforge.net
>         <mailto:Openipmi-developer@lists.sourceforge.net>
>         https://lists.sourceforge.net/lists/listinfo/openipmi-developer
>
>
>


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Openipmi-developer mailing list
Openipmi-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to