<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">Le 20/09/2018 à 13:02, Pablo Sebastián
Greco a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:48ce67bf-3d19-fb24-0c0f-69b26bc692e2@fliagreco.com.ar">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p><font size="-1"><font face="Courier New, Courier, monospace">Stephan,
sorry for the delay</font></font><br>
</p>
</blockquote>
<tt>No problemo. </tt><tt><br>
</tt><tt>Clearly, it's not an emergency.</tt><tt><br>
</tt><tt>Thx for your reply.</tt><tt><br>
</tt><br>
<blockquote type="cite"
cite="mid:48ce67bf-3d19-fb24-0c0f-69b26bc692e2@fliagreco.com.ar">
<p> </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"
moz-do-not-send="true">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>
<tt>well ... not so sure :-)<br>
<br>
[stephan@myrpi ~]$ dtoverlay gpio-poweroff<br>
* Must be run as root - try 'sudo dtoverlay ...'</tt><tt><br>
</tt><tt> [stephan@myrpi ~]$ sudo dtoverlay gpio-poweroff</tt><tt><br>
</tt><tt> [sudo] password for stephan: </tt><tt><br>
</tt><tt> su: user pi does not exist</tt><tt><br>
</tt><tt> su: user pi does not exist</tt><tt><br>
</tt><tt> [stephan@myrpi ~]$ dtoverlay -l</tt><tt><br>
</tt><tt> Overlays (in load order):</tt><tt><br>
</tt><tt> 0: gpio-poweroff</tt><tt><br>
</tt><tt> </tt><tt>[stephan@myrpi ~]$ <br>
<br>
Then, I don't understand why it needs to be run with SUDO from any
user to gain ROOT access ?<br>
<br>
[root@myrpi ~]# dtoverlay gpio-shutdown<br>
su: user pi does not exist<br>
su: user pi does not exist<br>
[root@CrisalidBox-C9A58C ~]# dtoverlay -l<br>
Overlays (in load order):<br>
0: gpio-poweroff<br>
1: gpio-shutdown<br>
</tt><tt><tt> [root@myrpi ~]#<br>
<br>
Just funny :-)<br>
<br>
<br>
<br>
</tt></tt>
<blockquote type="cite"
cite="mid:48ce67bf-3d19-fb24-0c0f-69b26bc692e2@fliagreco.com.ar">
<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"
moz-do-not-send="true">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>
<tt><br>
</tt>
<blockquote type="cite"
cite="mid:48ce67bf-3d19-fb24-0c0f-69b26bc692e2@fliagreco.com.ar">
<blockquote type="cite"
cite="mid:7fcd8f95-324e-dea1-75b3-55f9a357b763@crisalid.com"><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>
</tt></blockquote>
<tt>Well... never tried before.<br>
I was just comparing the result between CentOS and R@spbi@n...<br>
<br>
</tt>
<blockquote type="cite"
cite="mid:48ce67bf-3d19-fb24-0c0f-69b26bc692e2@fliagreco.com.ar"><tt>
2) which rpi exactly are you using? (don't know if it is really
relevant).<br>
</tt></blockquote>
<tt>Standard RPI 3b.<br>
<br>
</tt>
<blockquote type="cite"
cite="mid:48ce67bf-3d19-fb24-0c0f-69b26bc692e2@fliagreco.com.ar"><tt>
<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>
</blockquote>
<tt>Great !</tt><tt><br>
</tt><tt>What's new for RPI, I mean compared to 68, 69 and 70 ?</tt><tt><br>
</tt><br>
<br>
</body>
</html>