[Arm-dev] Different issues with "DTOVERLAY".

Stephan Guilloux stephan.guilloux at crisalid.com
Tue Feb 26 09:24:59 UTC 2019


Summary of status as of now.

System updated to latest available RPMS, including the kernel:
[pi at myrpi ~]$ cat /proc/version
Linux version 4.14.101-v7.1.el7 (mockbuild at armhfp-03.bsys.centos.org) 
(gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)) #1 SMP Mon Feb 18 
20:13:54 UTC 2019
[pi at myrpi ~]$


Issue #1 : Help file not found
     Issue identified. It comes from a missing README file. To solve, 
temporarily:
         [pi at myrpi ~]$ sudo cp 
/usr/share/raspberrypi2-kernel/4.14.101-v7.1.el7/boot/overlays/README 
/boot/overlays/.
         [pi at myrpi ~]$

     Fixed by test kernel 103, provided by Pablo, yesterday.

Issue #2 : missing user PI, on CentOS.
     Don't know if it worse it to create it, but seems like some (many ? 
few ?) tools require explicitely this user.

Issue #3 :
     [pi at myrpi ~]$ sudo dtoverlay gpio-poweroff
     [pi at myrpi ~]$ sudo dtoverlay gpio-poweroff
     * Failed to apply overlay '17_gpio-poweroff' (kernel)
     [pi at myrpi ~]$

     [pi at myrpi ~]$ sudo dtoverlay gpio-shutdown
     [pi at myrpi ~]$ sudo dtoverlay gpio-shutdown
     * Failed to apply overlay '18_gpio-shutdown' (kernel)
     [pi at myrpi ~]$

     ok. let's say it's not a real problem ...

Issue #4:
     This one is more problematic for me.
     And it works fine on R at spbi@n 2016 (no 2017/2018/2019 available in 
lab for a test)
         [pi at myrpi ~]$ sudo dtoverlay i2c-gpio i2c_gpio_sda=0 i2c_gpio_scl=1
         * Failed to apply overlay '18_i2c-gpio' (kernel)
         [pi at myrpi ~]$ rpm -q --qf '%{name} %{version} %{release}\n' 
raspberrypi-vc-utils
         raspberrypi-vc-utils 20170705 502.gitaa39775.el7
         [pi at myrpi ~]$ ll /sys/class/i2c-adapter/
         total 0
         lrwxrwxrwx. 1 root root 0 26 févr. 09:05 i2c-1 -> 
../../devices/platform/soc/3f804000.i2c/i2c-1
         [pi at myrpi ~]$

     This is fixed with latest vc-utils, rebuilt from upstream (jan 2019):
         [pi at myrpi ~]$ rpm -qa 'raspberrypi-vc*'
raspberrypi-vc-libs-devel-20190109-999.git6da49bc.el7.armv7hl
         raspberrypi-vc-static-20190109-999.git6da49bc.el7.armv7hl
raspberrypi-vc-demo-source-20190109-999.git6da49bc.el7.noarch
         raspberrypi-vc-libs-20190109-999.git6da49bc.el7.armv7hl
         raspberrypi-vc-utils-20190109-999.git6da49bc.el7.armv7hl
         [pi at myrpi ~]$

     Now, my I2C adapter is visible on i2c-3
     [pi at myrpi ~]$ ll /sys/class/i2c-adapter/
         total 0
         lrwxrwxrwx. 1 root root 0 26 févr. 09:05 i2c-1 -> 
../../devices/platform/soc/3f804000.i2c/i2c-1
         [pi at myrpi ~]$ sudo dtoverlay i2c-gpio i2c_gpio_sda=0 i2c_gpio_scl=1
         [pi at myrpi ~]$ ll /sys/class/i2c-adapter/
         total 0
         lrwxrwxrwx. 1 root root 0 26 févr. 09:05 i2c-1 -> 
../../devices/platform/soc/3f804000.i2c/i2c-1
         lrwxrwxrwx. 1 root root 0 26 févr. 09:05 i2c-3 -> 
../../devices/platform/i2c at 0/i2c-3
         [pi at myrpi ~]$

     Need to see if all works fine :-)


Le 10/09/2018 à 17:28, Stephan Guilloux a écrit :
> Hello,
>
> Small issues, today, with dtoverlay gpio-shutdown/poweroff
>
>     [root at mypi ~]# dtoverlay gpio-shutdown
>     su: user pi does not exist
>     * Failed to apply overlay '1_gpio-shutdown' (kernel)
>     su: user pi does not exist
>     [root at mypi ~]# dtoverlay gpio-poweroff
>     su: user pi does not exist
>     su: user pi does not exist
>     [root at mypi ~]#
>
> Even if I add a fake user "PI", this does not work better.
>
>     [root at mypi ~]# useradd -r pi -p pi
>     [root at mypi ~]#
>     [root at mypi ~]#
>     [root at mypi ~]# dtoverlay gpio-poweroff
>     * Failed to apply overlay '2_gpio-poweroff' (kernel)
>     [root at mypi ~]# dtoverlay gpio-shutdown
>     * Failed to apply overlay '2_gpio-shutdown' (kernel)
>     [root at mypi ~]#
>
> But when I check the overlay list, I get:
>
>     [root at mypi ~]# dtoverlay -l
>     Overlays (in load order):
>     0:  gpio-shutdown
>     1:  gpio-poweroff
>     [root at mypi ~]#
>
> At least, something is done :-)
>
> Last problems:
>     [root at mypi ~]# dtoverlay -h gpio-shutdown
>     * Help file not found
>     [root at mypi ~]# dtoverlay -h gpio-poweroff
>     * Help file not found
>     [root at mypi ~]# dtoverlay -h rpi-rtc
>     * Help file not found
>     [root at mypi ~]# dtoverlay -h rpi-display
>     * Help file not found
>     [root at mypi ~]#
>
>
>
> In case ...
>     [root at mypi ~]# cat /proc/version
>     Linux version 4.14.65-v7.1.el7 
> (mockbuild at armhfp-03.bsys.centos.org) (gcc version 4.8.5 20150623 (Red 
> Hat 4.8.5-28) (GCC)) #1 SMP Mon Aug 20 19:04:20 UTC 2018
>     [root at mypi ~]#
>
>     [root at mypi ~]# rpm -qa 'raspberrypi-vc*'
> raspberrypi-vc-demo-source-20170705-502.gitaa39775.el7.noarch
>     raspberrypi-vc-libs-20170705-502.gitaa39775.el7.armv7hl
>     raspberrypi-vc-utils-20170705-502.gitaa39775.el7.armv7hl
>     [root at mypi ~]#
>
>
> Stephan.
>



More information about the Arm-dev mailing list