<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am newbie with the OpenBMC. We are porting OpenBMC for a platform which has 7 fan modules with two fans in each module. I defined the
<a href="mailto:pwm-tacho-controller@1e786000.conf">pwm-tacho-controller@1e786000.conf</a>, and when I run it, I see the following errors from the fansenor service. Here I pasted logs from the service, my conf file and other important information. I did not
understand why the service is giving these errors. Appreciate your help. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">tacuser@fenderbmc:~# journalctl -u xyz.openbmc_project.fansensor.service<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">-- Logs begin at Thu 1970-01-01 00:00:08 UTC, end at Thu 2021-04-15 17:26:28 UTC. --<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:24 fenderbmc systemd[1]: Started Fan Sensor.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan9_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan13_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan1_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan4_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan7_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan11_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan14_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan2_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan5_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan8_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan12_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan3_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan6_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan10_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">tacuser@fenderbmc:~#<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">tacuser@fenderbmc:~# ls -ls /sys/class/hwmon/hwmon0/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 lrwxrwxrwx 1 tacuser root 0 Jan 1 1970 device -> ../../../1e786000.pwm-tacho-controller<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan10_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan11_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan12_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan13_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan14_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Jan 1 1970 fan1_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan2_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan3_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan4_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan5_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan6_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan7_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan8_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan9_input<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 name<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 lrwxrwxrwx 1 tacuser root 0 Jan 1 1970 of_node -> ../../../../../../../firmware/devicetree/base/ahb/apb/pwm-tacho-controller@1e786000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm3<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm4<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm5<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm6<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm7<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 lrwxrwxrwx 1 tacuser root 0 Jan 1 1970 subsystem -> ../../../../../../../class/hwmon<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 0 -rw-r--r-- 1 tacuser root 4096 Jan 1 1970 uevent<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">tacuser@fenderbmc:~#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">tacuser@fenderbmc:~# cat /etc/default/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""># Fender has 7 fan modules with two fans in each module<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan1 = "fanA0"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan2 = "fanA1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan3 = "fanB0"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan4 = "fanB1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan5 = "fanC0"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan6 = "fanC1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan7 = "fanD0"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan8 = "fanD1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan9 = "fanE0"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan10 = "fanE1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan11 = "fanF0"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan12 = "fanF2"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan13 = "fanG0"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">LABEL_fan14 = "fanG1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">PWM_TARGET_1 = "fanA"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">PWM_TARGET_2 = "fanB"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">PWM_TARGET_3 = "fanC"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">PWM_TARGET_4 = "fanD"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">PWM_TARGET_5 = "fanE"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">PWM_TARGET_6 = "fanF"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">PWM_TARGET_7 = "fanG"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">tacuser@fenderbmc:~#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">tacuser@fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0# ls<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">device fan11_input fan13_input fan1_input fan3_input fan5_input fan7_input fan9_input of_node pwm2 pwm4 pwm6 subsystem<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">fan10_input fan12_input fan14_input fan2_input fan4_input fan6_input fan8_input name pwm1 pwm3 pwm5 pwm7 uevent<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><a href="mailto:tacuser@fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0#"><span style="color:windowtext;text-decoration:none">tacuser@fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0#</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>