All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] /etc//init.d init scripts in buildroot
Date: Wed, 19 Jul 2017 17:03:07 +0200	[thread overview]
Message-ID: <20170719170307.3b75e0a4@windsurf> (raw)
In-Reply-To: <CALtfCQYjVE502OVpbTcbhpAGoLXuf-01ZRm+HjAY1hqaMZ4izA@mail.gmail.com>

Hello,

On Wed, 19 Jul 2017 17:00:19 +0200, Oscar Gomez Fuente wrote:

> I need goes high pin 26 at the end of the halt command. I've tried with
> this .dts:
> 
> /dts-v1/;
> /plugin/;
> 
> / {
>     compatible = "brcm,bcm2709";
>     fragment at 0 {
>         target-path = "/";
>         __overlay__ {
>             power_ctrl: power_ctrl {
>                 compatible = "gpio-poweroff";
>                 gpios = <&gpio 26 1>;
>             };
>         };
>     };
> 
> };
> 
> But it doesn't work and I get this error:
> 
> ...
> [    0.576179] mousedev: PS/2 mouse device common for all mice
> -->[    0.576225] poweroff-gpio power_ctrl: gpio_poweroff_probe:  
> pm_power_off function already registered
> -->[    0.576237] poweroff-gpio: probe of power_ctrl failed with error -16  
> [    0.576632] bcm2835-cpufreq: min=1200000 max=1200000
> [    0.576799] sdhci: Secure Digital Host Controller Interface driver
> ...
> 
> I have activated in the kernel config file: CONFIG_POWER_RESET=y and
> CONFIG_POWER_RESET_GPIO=y
> 
> Does anyone any suggestion?

This is no longer a Buildroot question, so not very appropriate on this
mailing list.

Some other driver or architecture code is registering a pm_power_off
hook, so you'd have to find which one.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

      reply	other threads:[~2017-07-19 15:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14 10:16 [Buildroot] /etc//init.d init scripts in buildroot Oscar Gomez Fuente
2017-07-14 12:38 ` Peter Korsgaard
2017-07-14 13:18   ` Thomas Petazzoni
2017-07-14 13:31     ` Peter Korsgaard
2017-07-14 13:31   ` Oscar Gomez Fuente
2017-07-14 13:42     ` Oscar Gomez Fuente
2017-07-19 15:00       ` Oscar Gomez Fuente
2017-07-19 15:03         ` Thomas Petazzoni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170719170307.3b75e0a4@windsurf \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.