<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="-1"><font face="Courier New, Courier, monospace">Stephan,
sorry for the delay</font></font><br>
</p>
<div class="moz-cite-prefix">El 10/9/18 a las 12:28, Stephan
Guilloux escribió:<br>
</div>
<blockquote type="cite"
cite="mid:7fcd8f95-324e-dea1-75b3-55f9a357b763@crisalid.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<tt>Hello,<br>
<br>
Small issues, today, with dtoverlay gpio-shutdown/poweroff<br>
<br>
[root@mypi ~]# dtoverlay gpio-shutdown<br>
su: user pi does not exist<br>
* Failed to apply overlay '1_gpio-shutdown' (kernel)<br>
su: user pi does not exist<br>
[root@mypi ~]# dtoverlay gpio-poweroff<br>
su: user pi does not exist<br>
su: user pi does not exist<br>
[root@mypi ~]# <br>
</tt></blockquote>
<tt>That seems to come from here
(<a class="moz-txt-link-freetext" href="https://github.com/raspberrypi/userland/blob/master/host_applications/linux/apps/dtoverlay/dtoverlay-pre">https://github.com/raspberrypi/userland/blob/master/host_applications/linux/apps/dtoverlay/dtoverlay-pre</a>).
If you run as root, it tries to run as the user "pi", as a normal
user(any), you shouldn't have that problem</tt><br>
<blockquote type="cite"
cite="mid:7fcd8f95-324e-dea1-75b3-55f9a357b763@crisalid.com"><tt>
<br>
</tt><tt><tt>Even if I add a fake user "PI", this does not work
better.<br>
<br>
[root@mypi ~]# useradd -r pi -p pi<br>
[root@mypi ~]# <br>
[root@mypi ~]# <br>
[root@mypi ~]# dtoverlay gpio-poweroff<br>
* Failed to apply overlay '2_gpio-poweroff' (kernel)<br>
[root@mypi ~]# dtoverlay gpio-shutdown<br>
* Failed to apply overlay '2_gpio-shutdown' (kernel)<br>
[root@mypi ~]# <br>
</tt></tt></blockquote>
<tt>That bit seems to come from here
(<a class="moz-txt-link-freetext" href="https://github.com/raspberrypi/userland/blob/2448644657e5fbfd82299416d218396ee1115ece/host_applications/linux/apps/dtoverlay/dtoverlay_main.c#L982">https://github.com/raspberrypi/userland/blob/2448644657e5fbfd82299416d218396ee1115ece/host_applications/linux/apps/dtoverlay/dtoverlay_main.c#L982</a>),
it fails to check if the overlay was actually applied</tt><br>
<blockquote type="cite"
cite="mid:7fcd8f95-324e-dea1-75b3-55f9a357b763@crisalid.com"><tt><tt>
<br>
But when I check the overlay list, I get:<br>
<br>
[root@mypi ~]# dtoverlay -l<br>
Overlays (in load order):<br>
0: gpio-shutdown<br>
1: gpio-poweroff<br>
[root@mypi ~]# <br>
<br>
At least, something is done :-)<br>
<br>
</tt></tt></blockquote>
<tt>That is a little stranger, why does it say it did something when
the command before said it failed???</tt><br>
<blockquote type="cite"
cite="mid:7fcd8f95-324e-dea1-75b3-55f9a357b763@crisalid.com"><tt><tt>
Last problems:<br>
[root@mypi ~]# dtoverlay -h gpio-shutdown<br>
* Help file not found<br>
[root@mypi ~]# dtoverlay -h gpio-poweroff<br>
* Help file not found<br>
[root@mypi ~]# dtoverlay -h rpi-rtc<br>
* Help file not found<br>
[root@mypi ~]# dtoverlay -h rpi-display<br>
* Help file not found<br>
[root@mypi ~]# <br>
<br>
<br>
<br>
</tt></tt></blockquote>
<tt>I guess I'll have to add some debugging info and check in my rpi
(as time permits)</tt><br>
<blockquote type="cite"
cite="mid:7fcd8f95-324e-dea1-75b3-55f9a357b763@crisalid.com"><tt><tt>
</tt></tt><tt><tt>In case ... <br>
</tt></tt><tt> [root@mypi ~]# cat /proc/version<br>
Linux version 4.14.65-v7.1.el7 (<a
class="moz-txt-link-abbreviated"
href="mailto:mockbuild@armhfp-03.bsys.centos.org"
moz-do-not-send="true">mockbuild@armhfp-03.bsys.centos.org</a>)
(gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)) #1 SMP Mon
Aug 20 19:04:20 UTC 2018<br>
[root@mypi ~]# <br>
<br>
[root@mypi ~]# rpm -qa 'raspberrypi-vc*'<br>
raspberrypi-vc-demo-source-20170705-502.gitaa39775.el7.noarch<br>
raspberrypi-vc-libs-20170705-502.gitaa39775.el7.armv7hl<br>
raspberrypi-vc-utils-20170705-502.gitaa39775.el7.armv7hl<br>
[root@mypi ~]# <br>
<br>
</tt></blockquote>
<tt>2 questions<br>
1) has it ever worked before?<br>
2) which rpi exactly are you using? (don't know if it is really
relevant).<br>
<br>
Thanks.<br>
Pablo.</tt><br>
<blockquote type="cite"
cite="mid:7fcd8f95-324e-dea1-75b3-55f9a357b763@crisalid.com"><tt>
<br>
Stephan.<br>
</tt><br>
</blockquote>
<tt>P.S.: Today we built 4.14.71 and will be released as soon as it
passes the tests.</tt><br>
</body>
</html>