openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Error:"Failed to find the pwm0_gpio40 line"
@ 2020-11-05  6:02 khader basha shaik
       [not found] ` <405411604558303@mail.yandex-team.ru>
  0 siblings, 1 reply; 2+ messages in thread
From: khader basha shaik @ 2020-11-05  6:02 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 1631 bytes --]

Hi Team,

we are trying to control our board with RPI bmc.we are trying to control
power on, off and reset

we compiled x86-power-control with openbmc and create a patch for the sane
with the GPIO name "pwm0_gpio40". and when we are try to use this.
we are facing the below error.

root@akky:~# systemctl status
xyz.openbmc_project.Chassis.Control.Power.service
● xyz.openbmc_project.Chassis.Control.Power.service - Power Control
Loaded: loaded
(/lib/systemd/system/xyz.openbmc_project.Chassis.Control.Power.service;
enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:13 UTC; 33s
ago
Process: 310 ExecStart=/usr/bin/power-control (code=exited,
status=255/EXCEPTION)
Main PID: 310 (code=exited, status=255/EXCEPTION)
Jan 01 00:00:13 akky systemd[1]:
xyz.openbmc_project.Chassis.Control.Power.service: Scheduled restart job,
restart counter is at 2.
Jan 01 00:00:13 akky systemd[1]: Stopped Power Control.
Jan 01 00:00:13 akky systemd[1]:
xyz.openbmc_project.Chassis.Control.Power.service: Start request repeated
too quickly.
Jan 01 00:00:13 akky systemd[1]:
xyz.openbmc_project.Chassis.Control.Power.service: Failed with result
'exit-code'.
Jan 01 00:00:13 akky systemd[1]: Failed to start Power Control.
root@akky:~# /usr/bin/power-control -h
Start Chassis power control service...
Failed to find the pwm0_gpio40 line

Could someone help me how to fix this or some pointers regarding this error.

Also is physcial connection between the bmc and the server is needed or we
can test this through someother way.

Thanks & Regards,
Khader B Shaik

[-- Attachment #2: Type: text/html, Size: 2645 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error:"Failed to find the pwm0_gpio40 line"
       [not found] ` <405411604558303@mail.yandex-team.ru>
@ 2020-11-05 12:30   ` khader basha shaik
  0 siblings, 0 replies; 2+ messages in thread
From: khader basha shaik @ 2020-11-05 12:30 UTC (permalink / raw)
  To: Konstantin Klubnichkin; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 3394 bytes --]

Thanks alot Konstantin for the information.

We wanted to verify if the Chassis info is populated properly,
(redfish/v1/Chassis).We need to get the Chassis info and we are using curl
command on path, /redfidh/v1/Chassis.But no information is being populated.

Is there any way to verify chassis information ?

We have used the x86-power-control to populate the /redfish/v1/chassis, but
we no luck with this too. We did not see any data through this .

Any suggestions or input on this would be appreciated.

Thanks & Regards,
Khader B Shaik



On Thu, 5 Nov 2020 at 12:14, Konstantin Klubnichkin <kitsok@yandex-team.ru>
wrote:

> - все
>
> Hello!
>
> This error means GPIO library unable to find line with this name.
> To check you can
> cat /sys/kernel/debug/gpio | grep pwm0_gpio40
> or
> gpioinfo | grep pwm0_gpio40
>
> The most probably cause is missing line name in DTS.
> There must be something like this:
> &gpio {
> status = "okay";
> pinctrl-names = "pass-through";
> pinctrl-0 = <&pinctrl_gpid0_default
> &pinctrl_gpid2_default>;
> gpio-line-names =
> /* A0-A7 */ "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7",
> /* B0-B7 */ "B0", "B1", "B2", "POST_COMPLETE", "B4", "B5", "PS_PWROK",
> "B7",
> ................
> };
>
> I don't have PI on hands so my example is for AST2500 SoC, but as far as I
> remember there are many guides how to patch DTS for Raspberry.
>
> 05.11.2020, 09:03, "khader basha shaik" <shaikkhaderbasha601@gmail.com>:
>
> Hi Team,
>
> we are trying to control our board with RPI bmc.we are trying to control
> power on, off and reset
>
> we compiled x86-power-control with openbmc and create a patch for the sane
> with the GPIO name "pwm0_gpio40". and when we are try to use this.
> we are facing the below error.
>
> root@akky:~# systemctl status
> xyz.openbmc_project.Chassis.Control.Power.service
> ● xyz.openbmc_project.Chassis.Control.Power.service - Power Control
> Loaded: loaded
> (/lib/systemd/system/xyz.openbmc_project.Chassis.Control.Power.service;
> enabled; vendor preset: enabled)
> Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:13 UTC; 33s
> ago
> Process: 310 ExecStart=/usr/bin/power-control (code=exited,
> status=255/EXCEPTION)
> Main PID: 310 (code=exited, status=255/EXCEPTION)
>
> Jan 01 00:00:13 akky systemd[1]:
> xyz.openbmc_project.Chassis.Control.Power.service: Scheduled restart job,
> restart counter is at 2.
> Jan 01 00:00:13 akky systemd[1]: Stopped Power Control.
> Jan 01 00:00:13 akky systemd[1]:
> xyz.openbmc_project.Chassis.Control.Power.service: Start request repeated
> too quickly.
> Jan 01 00:00:13 akky systemd[1]:
> xyz.openbmc_project.Chassis.Control.Power.service: Failed with result
> 'exit-code'.
> Jan 01 00:00:13 akky systemd[1]: Failed to start Power Control.
> root@akky:~# /usr/bin/power-control -h
> Start Chassis power control service...
> Failed to find the pwm0_gpio40 line
>
> Could someone help me how to fix this or some pointers regarding this
> error.
>
> Also is physcial connection between the bmc and the server is needed or we
> can test this through someother way.
>
> Thanks & Regards,
> Khader B Shaik
>
>
>
>
> --
> Best regards,
> Konstantin Klubnichkin,
> lead firmware engineer,
> server hardware R&D group,
> Yandex Moscow office.
> tel: +7-903-510-33-33
>
>

[-- Attachment #2: Type: text/html, Size: 7253 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-05 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05  6:02 Error:"Failed to find the pwm0_gpio40 line" khader basha shaik
     [not found] ` <405411604558303@mail.yandex-team.ru>
2020-11-05 12:30   ` khader basha shaik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).