Hope below BKM can help
A guide to install IPMI smb driver on Chesnee
Author: Liang, Daming
Environment:
Platform: Chesnee (with Intel mBMC)
OS: RHEL40u1
Kernel: Standard Kernel 2.6.10
Patch:
linux-ipmi-2.6.10-smb.diff,
linux-ipmi-2.6.10-base.diff,
linux-i2c-2.6.10-nonblock.diff,
linux-i2c-2.6.10-i801_nonblock.diff
Step:
Install OS on Chesnee machine
/*Note: Because the Chesnee use SCSI disk, you must not use Auto partition
during system isntall procedure. You must use manual partition.*/
Download kernel from yoda:/kernel.
mount yoda:/kernel /mnt
cd mnt
cd v2.6
cp linux-2.6.10.tar.gz /usr/src/
Download patch from SourceForge OpenIPMI to /usr/src
http://sourceforge.net/project/showfiles.php?group_id=36127&package_id=110139&release_id=305484
linux-ipmi-2.6.10-smb.diff,
linux-ipmi-2.6.10-base.diff,
linux-i2c-2.6.10-nonblock.diff,
linux-i2c-2.6.10-i801_nonblock.diff
Extract the kernel file
tar xzvf linux-2.6.10.tar.gz
Apply patch
patch -p0 < linux-ipmi-2.6.10-base.diff
patch -p0 < linux-ipmi-2.6.10-smb.diff
patch -p0 < linux-i2c-2.6.10-nonblock.diff
patch -p0 < linux-i2c-2.6.10-i801_nonblock.diff
Build kernel
cd linux-2.6.10
/*Copy a correct config file to linux-2.6.10.tar.gz */
cp xxx.config /usr/src/ linux-2.6.10
/*or you can make menuconfig , if you know how to configure it
correctly*/
make oldconfig /*Note: make sure ipmi smb moduel is selected*/
make -j4
make modules_install
make install
Reboot the system
/*Set the grub.conf on /boot/grub/grub.conf
Modify the default field value to 0, let it point to the newly built
kernel */
reboot
/*If you can enter the system, then congratulation.
If you meet a kernel panic, then check whether it is a config file problem and
have to rebuild the kernel*/
Check Modules
cd /lib/modules/2.6.10y/kernel/drivers/char/ipmi/
ls
/*Check modules: ipmi_devintf.ko ipmi_si.ko ipmi_watchdog.ko
ipmi_msghandler.ko ipmi_smb.ko are exist*/
Run ipmi device script:
./ipmi.sh stop
./ipmi.sh start
The script is like the following:
#!/bin/bash
case "$1" in
start)
# make sure the module is loaded
# (modprobe will not re-load if already loaded)
/sbin/modprobe ipmi_msghandler
/sbin/modprobe ipmi_devintf
/sbin/modprobe ipmi_smb addr=0,0x42
/sbin/modprobe ipmi_watchdog
grep ipmidev /proc/devices
if [ $? != 0 ]; then
echo "No IPMI device existed\n"
exit 1;
fi
rm -f /dev/ipmi0
mknod /dev/ipmi0 c `grep ipmidev /proc/devices | awk "{print \\$1}"` 0
# set permissions
chgrp root /dev/ipmi0
chmod 644 /dev/ipmi0
;;
stop)
# Unload the ipmi driver
/sbin/modprobe -r ipmi_devintf
/sbin/modprobe -r ipmi_watchdog
/sbin/modprobe -r ipmi_smb
/sbin/modprobe -r ipmi_msghandler
# remove device nodes
rm -f /dev/ipmi0
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
/*Note : You can use dmidecode |grep I2C to check the I2C slave address*/
dmidecode| grep I2C
I2C Slave Address: 0x42
The smb interface use 0x42 for I2C address. See:
/sbin/modprobe ipmi_smb addr=0,0x42
Install IPMI Util to check whether smb driver is well install
Downlaod IPMI Util package from yoda, ipmiutil-1.6.2-1.i386.rpm
rpm -ivh ipmiutil-1.6.2-1.i386.rpm
Type sensor , if the installation is correct, the response are:
sensor: version 1.32
-- mBMC version 2.39, IPMI version 1.5
_ID_ SDR_Type_xx Sz Own Typ S_Num Sens_Description Hex & Interp Reading
0001 SDR EvtO 03 15 20 01 snum 01 LAN Scrty = 00 00 00 00 OK
0002 SDR EvtO 03 14 20 01 snum 02 Password = 00 00 00 00 OK
0003 SDR EvtO 03 14 20 01 snum 03 PWRGOOD# = 00 00 00 00 OK
0004 SDR EvtO 03 12 20 01 snum 04 Button = 00 00 00 00 OK
0005 SDR EvtO 03 15 20 01 snum 05 Watchdog2 = 00 00 00 00 OK
0006 SDR EvtO 03 19 20 01 snum 06 SyS Boot Init = 00 00 00 00 OK
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corey Minyard
Sent: 2006年2月10日 21:49
To: Chi Min Wang
Cc: [email protected]
Subject: Re: [Openipmi-developer] OpenIPMI with Intel SE7520JR2 onboard mBMC
Have you loaded the i2c-i801 module?
-Corey
Chi Min Wang wrote:
>Hi,
> I have several servers with Intel SE7520JR2 Motherboard running
>Linux fedora core 3 with 2.6.15 kernel. I have applied the ipmi patches
>to the
>kernel so it seems the mBMC could been detected correctly
>
>
>
>>ipmi message handler version 38.0
>>IPMI SMB Interface driver
>>ipmi_smb: DMI specifies SSIF @ 0x42
>>ipmi_smb: DMI specifies slave address at 0x20
>>
>>
>
>
>
>>/proc/devices
>>Character devices:
>>253 ipmidev
>>
>>
>
>I am using ipmitool to view sensor values. The problem is the ipmitool
>report "Could not open device at /dev/ipmi0 or /dev/ipmi/0 or
>/dev/ipmidev/0: No such file or directory" although I had create
>/dev/ipmi0 with "mknod ipmi0 c 253 0"....How should I do next??
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems? Stop! Download the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>_______________________________________________
>Openipmi-developer mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/openipmi-developer
>
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer