<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Pablo,</div><div>Found the cause for the Help problem. <br></div><div>On CentOS, /boot/overlays/README is missing. It contains the help for all the dtoverlay commands...</div><div><br></div><div>I got the file from its original distro, and I put it under /boot/overlays/README.rasp for the demo:</div><div>  [pi@myrpi ~]$ dtoverlay -h i2c-gpio<br>  * Help file not found<br>  [pi@myrpi ~]$ sudo mv /boot/overlays/README.rasp /boot/overlays/README<br>  [pi@myrpi ~]$ dtoverlay -h i2c-gpio  <br>  Name:   i2c-gpio<br>  <br>  Info:   Adds support for software i2c controller on gpio pins<br>  <br>  Usage:  dtoverlay=i2c-gpio,<param>=<val><br>  <br>  Params: i2c_gpio_sda            GPIO used for I2C data (default "23")<br>  <br>          i2c_gpio_scl            GPIO used for I2C clock (default "24")<br>  <br>          i2c_gpio_delay_us       Clock delay in microseconds<br>                                 (default "2" = ~100kHz)<br>  <br>  [pi@myrpi ~]$ <br><br></div>Unfortunatelly, the files under this folder seem to belong to no package...</div><div dir="ltr">  [pi@myrpi ~]$ rpm -qf /boot/overlays/i2c-gpio.dtbo <br>  file /boot/overlays/i2c-gpio.dtbo is not owned by any package<br>  [pi@myrpi ~]$ <br><br></div><div dir="ltr"><div>So, I'm stuck there, for now ...</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 24 sept. 2018 à 14:12, Stephan Guilloux <<a href="mailto:stephan.guilloux@crisalid.com">stephan.guilloux@crisalid.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="gmail-m_-9013173568705842717moz-cite-prefix">Le 24/09/2018 à 10:46, Pablo Sebastian
      Greco a écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div><br>
      </div>
      <div><br>
        El 24 sept 2018, a las 04:41, Stephan Guilloux <<a href="mailto:stephan.guilloux@crisalid.com" target="_blank">stephan.guilloux@crisalid.com</a>>
        escribió:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          
          <tt>    Hello Pablo,<br>
            <br>
            Sorry for the direct mail.<br>
          </tt></div>
      </blockquote>
      No problem. I'm on vacation this week so it is probably better<br>
    </blockquote>
    Enjoy ;-)<br>
    <br>
    <blockquote type="cite">
      <blockquote type="cite">
        <div><tt> <br>
          </tt><tt><tt>I'll have a look, this week, but I need the
              sources that CentOS delivers.<br>
            </tt>I </tt><tt><tt>Tried to check on <a href="http://vault.centos.org" target="_blank">vault.centos.org</a>,
              but no armhfp (only aarch64).<br>
            </tt></tt></div>
      </blockquote>
      You're right. I had touble finding it myself. It got lost when
      moving from the old to the new build system.
      <div>Try here <a href="https://armv7.dev.centos.org/repodir/c7-extras-1/raspberrypi-vc/20170705-502.gitaa39775.el7.centos/" target="_blank">https://armv7.dev.centos.org/repodir/c7-extras-1/raspberrypi-vc/20170705-502.gitaa39775.el7.centos/</a></div>
      <div>I'll update the srpm and probably github when I'm back but if
        you find the problems, better.  Hehe<br>
      </div>
    </blockquote>
    OK. Got it there.<br>
    Will inform you through the list, in case I find anything.<br>
    <br>
    <br>
    <blockquote type="cite">
      <div>
        <blockquote type="cite">
          <div><tt><tt> <br>
              </tt>Can you indicate where to find the current
              raspberrypi-vc-utils.src.rpm ?<br>
              <br>
                  Regards,<br>
              <br>
                      Stéphan.<br>
            </tt></div>
        </blockquote>
        Thanks, Pablo<br>
        <blockquote type="cite">
          <div><tt> <br>
              <br>
            </tt>
            <div class="gmail-m_-9013173568705842717moz-cite-prefix">Le 20/09/2018 à 13:02, Pablo
              Sebastián Greco a écrit :<br>
            </div>
            <blockquote type="cite">
              
              <p><font size="-1"><font face="Courier New, Courier,
                    monospace">Stephan, sorry for the delay</font></font><br>
              </p>
              <div class="gmail-m_-9013173568705842717moz-cite-prefix">El 10/9/18 a las 12:28,
                Stephan Guilloux escribió:<br>
              </div>
              <blockquote type="cite">
                
                <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="gmail-m_-9013173568705842717moz-txt-link-freetext" href="https://github.com/raspberrypi/userland/blob/master/host_applications/linux/apps/dtoverlay/dtoverlay-pre" target="_blank">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"><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="gmail-m_-9013173568705842717moz-txt-link-freetext" href="https://github.com/raspberrypi/userland/blob/2448644657e5fbfd82299416d218396ee1115ece/host_applications/linux/apps/dtoverlay/dtoverlay_main.c#L982" target="_blank">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"><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"><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"><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="gmail-m_-9013173568705842717moz-txt-link-abbreviated" href="mailto:mockbuild@armhfp-03.bsys.centos.org" target="_blank">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"><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>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>