Closed Bigcaibird closed 3 years ago
phosphor-hwmon-readd is working
327 1 root S 9200 4% 0% phosphor-hwmon-readd -i ce7d9e13a44d4639a24ae52c28396b7b0d60b331a595b4a7972d7462f65bf78e -o /iio-hwmon
261 1 root S 9096 4% 0% phosphor-hwmon-readd -i 90dc5dd3857daeb224c11f832395c5c454995ef20ee9cda4c1747f544f1f8541 -o /iio-hwmon-battery
257 1 root S 9096 2% 0% phosphor-hwmon-readd -i c29b1870b1b136904a427110ab84ccf9af799a14bb660d5f1429ae187cc8636a -o /ahb/apb/bus@1e78a000/i2c-bus@c0/nst175@48
I wonder if you're hitting https://github.com/openbmc/phosphor-hwmon/blob/master/README.iio.md
I wonder if you're hitting https://github.com/openbmc/phosphor-hwmon/blob/master/README.iio.md Does this mean that I can only use one between hwmon-iio and hwmon-iio-battery? I tried to remove the hwmon-iio-battery node from the device tree, but the ADC information defined in hwmon-iio is still not displayed on WebUI
solved
Hello Bigcaibird
Can you explain how to fixed this issue? I have same question.
Hello Bigcaibird
Can you explain how to fixed this issue? I have same question.
You need to provide more information so that I can help you analyze the problem.Such as your dts and .conf
I use the sensor driver I write. My dts as below
&i2c6 {
status = "okay";
it8728f@2d {
compatible = "ite,it8728f";
reg = <0x2d>;
};
};
and .conf
LABEL_in0=VCORE
GAIN_in0=0.012
WARNHI_in0=1650
WARNLO_in0=0
CRITHI_in0=1800
CRITLO_in0=0
LABEL_in1=VMEM
GAIN_in1=0.012
WARNHI_in1=1210
WARNLO_in1=1100
CRITHI_in1=1320
CRITLO_in1=1045
LABEL_in2=+12V
GAIN_in2=0.0516
WARNHI_in2=12540
WARNLO_in2=11385
CRITHI_in2=13200
CRITLO_in2=10780
LABEL_in3=+5V
GAIN_in3=0.0218
WARNHI_in3=5232
WARNLO_in3=4752
CRITHI_in3=5471
CRITLO_in3=4490
LABEL_in4=+5V_SB
GAIN_in4=0.048
WARNHI_in4=5232
WARNLO_in4=4752
CRITHI_in4=5471
CRITLO_in4=4490
LABEL_in5=VBAT
GAIN_in5=0.024
WARNHI_in5=3144
WARNLO_in5=2832
CRITHI_in5=3288
CRITLO_in5=2688
I see the error as below
Jan 01 00:01:17 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Main process exited, code=dumped, status=6/ABRT
Jan 01 00:01:17 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Failed with result 'core-dump'.
Jan 01 00:01:18 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Scheduled restart job, restart counter is at 1.
Jan 01 00:01:20 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Main process exited, code=dumped, status=6/ABRT
Jan 01 00:01:20 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Failed with result 'core-dump'.
Jan 01 00:01:21 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Scheduled restart job, restart counter is at 2.
I can cat the value on /sys/bus/i2c/devices/6-002d/hwmon/hwmon0/in1_input I think driver is work.
Many thanks for you help.
Try busctl | grep Hwmon -> busctl tree "insert the name"
,Can you see these sensors on dubs?
I run busctl | grep Hwmon
and get nothing.
Is I missing something?
I run
busctl | grep Hwmon
and get nothing. Is I missing something? Did you mentioned the .conf file at phosphor-hwmon_%.bbappend?
like that
EXTRA_OEMESON_append_s2500 = " -Dnegative-errno-on-fail=true"
CHIPS = " \
bus@1e78a000/i2c-bus@c0/nst175@48 \
bus@1e78a000/i2c-bus@c0/nst175@49 \
bus@1e78a000/i2c-bus@c0/nst175@4a \
bus@1e78a000/i2c-bus@c0/nst175@4b \
bus@1e78a000/i2c-bus@100/psu@58 \
bus@1e78a000/i2c-bus@100/psu@59 \
pwm-tacho-controller@1e786000 \
"
ITEMSFMT = "ahb/apb/{0}.conf"
ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}"
ITEMS += "iio-hwmon.conf"
ITEMS += "iio-hwmon-battery.conf"
ENVS = "obmc/hwmon/{0}"
SYSTEMD_ENVIRONMENT_FILE_${PN}_append_s2500 = " ${@compose_list(d, 'ENVS', 'ITEMS')}"
My file as below
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
EXTRA_OECONF_append_bmc7830 = " --enable-negative-errno-on-fail"
CHIPS = " \
bus@1e78a000/i2c-bus@1c0/it8728f@2d \
"
ITEMSFMT = "ahb/apb/{0}.conf"
ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}"
ITEMS += "iio-hwmon.conf"
ENVS = "obmc/hwmon/{0}"
SYSTEMD_ENVIRONMENT_FILE_${PN}_append_bmc7830 = " ${@compose_list(d, 'ENVS', 'ITEMS')}"
And I can fine it8728f@2d.conf (/etc/default/obmc/hwmon/ahb/apb/bus\@1e78a000/i2c-bus\@1c0/it8728f\@2d.conf )
I use the sensor driver I write. My dts as below
&i2c6 { status = "okay"; it8728f@2d { compatible = "ite,it8728f"; reg = <0x2d>; }; };
and .conf
**Should start with LABEL_in1=xxxx** LABEL_in0=VCORE GAIN_in0=0.012 WARNHI_in0=1650 WARNLO_in0=0 CRITHI_in0=1800 CRITLO_in0=0 LABEL_in1=VMEM GAIN_in1=0.012 WARNHI_in1=1210 WARNLO_in1=1100 CRITHI_in1=1320 CRITLO_in1=1045 **Try use LABEL_in2=P12V(Use a-z A-Z,and``_``)** LABEL_in2=+12V GAIN_in2=0.0516 WARNHI_in2=12540 WARNLO_in2=11385 CRITHI_in2=13200 CRITLO_in2=10780 LABEL_in3=+5V GAIN_in3=0.0218 WARNHI_in3=5232 WARNLO_in3=4752 CRITHI_in3=5471 CRITLO_in3=4490 LABEL_in4=+5V_SB GAIN_in4=0.048 WARNHI_in4=5232 WARNLO_in4=4752 CRITHI_in4=5471 CRITLO_in4=4490 LABEL_in5=VBAT GAIN_in5=0.024 WARNHI_in5=3144 WARNLO_in5=2832 CRITHI_in5=3288 CRITLO_in5=2688
I see the error as below
Jan 01 00:01:17 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Main process exited, code=dumped, status=6/ABRT Jan 01 00:01:17 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Failed with result 'core-dump'. Jan 01 00:01:18 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Scheduled restart job, restart counter is at 1. Jan 01 00:01:20 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Main process exited, code=dumped, status=6/ABRT Jan 01 00:01:20 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Failed with result 'core-dump'. Jan 01 00:01:21 bmc7830 systemd[1]: xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x401c0-it8728f\x402d.service: Scheduled restart job, restart counter is at 2.
I can cat the value on /sys/bus/i2c/devices/6-002d/hwmon/hwmon0/in1_input I think driver is work.
Many thanks for you help.
Thanks your advice, I can see the sensors now!
hi, all: i'm try to porting romulus to our hardware, so i add 4 temp sensor at i2c2 (addr:0x48;0x49;0x4a;0x4b)and add iio-hwmon to Monitor voltage,but now i have a problem that only one temp sensor(ox48) show at webui and no voltage info show. Can you give me some advice? thanks a lot! here is some info below:
1.my dts i2c
5.
6.
8.jouralctl