Hello,
Small issues, today, with dtoverlay gpio-shutdown/poweroff
[root@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@mypi ~]# dtoverlay gpio-poweroff su: user pi does not exist su: user pi does not exist [root@mypi ~]#
Even if I add a fake user "PI", this does not work better.
[root@mypi ~]# useradd -r pi -p pi [root@mypi ~]# [root@mypi ~]# [root@mypi ~]# dtoverlay gpio-poweroff * Failed to apply overlay '2_gpio-poweroff' (kernel) [root@mypi ~]# dtoverlay gpio-shutdown * Failed to apply overlay '2_gpio-shutdown' (kernel) [root@mypi ~]#
But when I check the overlay list, I get:
[root@mypi ~]# dtoverlay -l Overlays (in load order): 0: gpio-shutdown 1: gpio-poweroff [root@mypi ~]#
At least, something is done :-)
Last problems: [root@mypi ~]# dtoverlay -h gpio-shutdown * Help file not found [root@mypi ~]# dtoverlay -h gpio-poweroff * Help file not found [root@mypi ~]# dtoverlay -h rpi-rtc * Help file not found [root@mypi ~]# dtoverlay -h rpi-display * Help file not found [root@mypi ~]#
In case ... [root@mypi ~]# cat /proc/version Linux version 4.14.65-v7.1.el7 (mockbuild@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@mypi ~]#
[root@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@mypi ~]#
Stephan.
Stephan, sorry for the delay
El 10/9/18 a las 12:28, Stephan Guilloux escribió:
Hello,
Small issues, today, with dtoverlay gpio-shutdown/poweroff
[root@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@mypi ~]# dtoverlay gpio-poweroff su: user pi does not exist su: user pi does not exist [root@mypi ~]#
That seems to come from here (https://github.com/raspberrypi/userland/blob/master/host_applications/linux/...). If you run as root, it tries to run as the user "pi", as a normal user(any), you shouldn't have that problem
Even if I add a fake user "PI", this does not work better.
[root@mypi ~]# useradd -r pi -p pi [root@mypi ~]# [root@mypi ~]# [root@mypi ~]# dtoverlay gpio-poweroff * Failed to apply overlay '2_gpio-poweroff' (kernel) [root@mypi ~]# dtoverlay gpio-shutdown * Failed to apply overlay '2_gpio-shutdown' (kernel) [root@mypi ~]#
That bit seems to come from here (https://github.com/raspberrypi/userland/blob/2448644657e5fbfd82299416d218396...), it fails to check if the overlay was actually applied
But when I check the overlay list, I get:
[root@mypi ~]# dtoverlay -l Overlays (in load order): 0: gpio-shutdown 1: gpio-poweroff [root@mypi ~]#
At least, something is done :-)
That is a little stranger, why does it say it did something when the command before said it failed???
Last problems: [root@mypi ~]# dtoverlay -h gpio-shutdown * Help file not found [root@mypi ~]# dtoverlay -h gpio-poweroff * Help file not found [root@mypi ~]# dtoverlay -h rpi-rtc * Help file not found [root@mypi ~]# dtoverlay -h rpi-display * Help file not found [root@mypi ~]#
I guess I'll have to add some debugging info and check in my rpi (as time permits)
In case ... [root@mypi ~]# cat /proc/version Linux version 4.14.65-v7.1.el7 (mockbuild@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@mypi ~]#
[root@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@mypi ~]#
2 questions 1) has it ever worked before? 2) which rpi exactly are you using? (don't know if it is really relevant).
Thanks. Pablo.
Stephan.
P.S.: Today we built 4.14.71 and will be released as soon as it passes the tests.
Le 20/09/2018 à 13:02, Pablo Sebastián Greco a écrit :
Stephan, sorry for the delay
No problemo. Clearly, it's not an emergency. Thx for your reply.
El 10/9/18 a las 12:28, Stephan Guilloux escribió:
Hello,
Small issues, today, with dtoverlay gpio-shutdown/poweroff
[root@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@mypi ~]# dtoverlay gpio-poweroff su: user pi does not exist su: user pi does not exist [root@mypi ~]#
That seems to come from here (https://github.com/raspberrypi/userland/blob/master/host_applications/linux/...). If you run as root, it tries to run as the user "pi", as a normal user(any), you shouldn't have that problem
well ... not so sure :-)
[stephan@myrpi ~]$ dtoverlay gpio-poweroff * Must be run as root - try 'sudo dtoverlay ...' [stephan@myrpi ~]$ sudo dtoverlay gpio-poweroff [sudo] password for stephan: su: user pi does not exist su: user pi does not exist [stephan@myrpi ~]$ dtoverlay -l Overlays (in load order): 0: gpio-poweroff [stephan@myrpi ~]$
Then, I don't understand why it needs to be run with SUDO from any user to gain ROOT access ?
[root@myrpi ~]# dtoverlay gpio-shutdown su: user pi does not exist su: user pi does not exist [root@CrisalidBox-C9A58C ~]# dtoverlay -l Overlays (in load order): 0: gpio-poweroff 1: gpio-shutdown [root@myrpi ~]#
Just funny :-)
Even if I add a fake user "PI", this does not work better.
[root@mypi ~]# useradd -r pi -p pi [root@mypi ~]# [root@mypi ~]# [root@mypi ~]# dtoverlay gpio-poweroff * Failed to apply overlay '2_gpio-poweroff' (kernel) [root@mypi ~]# dtoverlay gpio-shutdown * Failed to apply overlay '2_gpio-shutdown' (kernel) [root@mypi ~]#
That bit seems to come from here (https://github.com/raspberrypi/userland/blob/2448644657e5fbfd82299416d218396...), it fails to check if the overlay was actually applied
But when I check the overlay list, I get:
[root@mypi ~]# dtoverlay -l Overlays (in load order): 0: gpio-shutdown 1: gpio-poweroff [root@mypi ~]#
At least, something is done :-)
That is a little stranger, why does it say it did something when the command before said it failed???
Last problems: [root@mypi ~]# dtoverlay -h gpio-shutdown * Help file not found [root@mypi ~]# dtoverlay -h gpio-poweroff * Help file not found [root@mypi ~]# dtoverlay -h rpi-rtc * Help file not found [root@mypi ~]# dtoverlay -h rpi-display * Help file not found [root@mypi ~]#
I guess I'll have to add some debugging info and check in my rpi (as time permits)
In case ... [root@mypi ~]# cat /proc/version Linux version 4.14.65-v7.1.el7 (mockbuild@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@mypi ~]#
[root@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@mypi ~]#
2 questions
- has it ever worked before?
Well... never tried before. I was just comparing the result between CentOS and R@spbi@n...
- which rpi exactly are you using? (don't know if it is really relevant).
Standard RPI 3b.
Thanks. Pablo.
Stephan.
P.S.: Today we built 4.14.71 and will be released as soon as it passes the tests.
Great ! What's new for RPI, I mean compared to 68, 69 and 70 ?
Summary of status as of now.
System updated to latest available RPMS, including the kernel: [pi@myrpi ~]$ cat /proc/version Linux version 4.14.101-v7.1.el7 (mockbuild@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@myrpi ~]$
Issue #1 : Help file not found Issue identified. It comes from a missing README file. To solve, temporarily: [pi@myrpi ~]$ sudo cp /usr/share/raspberrypi2-kernel/4.14.101-v7.1.el7/boot/overlays/README /boot/overlays/. [pi@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@myrpi ~]$ sudo dtoverlay gpio-poweroff [pi@myrpi ~]$ sudo dtoverlay gpio-poweroff * Failed to apply overlay '17_gpio-poweroff' (kernel) [pi@myrpi ~]$
[pi@myrpi ~]$ sudo dtoverlay gpio-shutdown [pi@myrpi ~]$ sudo dtoverlay gpio-shutdown * Failed to apply overlay '18_gpio-shutdown' (kernel) [pi@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@spbi@n 2016 (no 2017/2018/2019 available in lab for a test) [pi@myrpi ~]$ sudo dtoverlay i2c-gpio i2c_gpio_sda=0 i2c_gpio_scl=1 * Failed to apply overlay '18_i2c-gpio' (kernel) [pi@myrpi ~]$ rpm -q --qf '%{name} %{version} %{release}\n' raspberrypi-vc-utils raspberrypi-vc-utils 20170705 502.gitaa39775.el7 [pi@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@myrpi ~]$
This is fixed with latest vc-utils, rebuilt from upstream (jan 2019): [pi@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@myrpi ~]$
Now, my I2C adapter is visible on i2c-3 [pi@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@myrpi ~]$ sudo dtoverlay i2c-gpio i2c_gpio_sda=0 i2c_gpio_scl=1 [pi@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@0/i2c-3 [pi@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@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@mypi ~]# dtoverlay gpio-poweroff su: user pi does not exist su: user pi does not exist [root@mypi ~]#
Even if I add a fake user "PI", this does not work better.
[root@mypi ~]# useradd -r pi -p pi [root@mypi ~]# [root@mypi ~]# [root@mypi ~]# dtoverlay gpio-poweroff * Failed to apply overlay '2_gpio-poweroff' (kernel) [root@mypi ~]# dtoverlay gpio-shutdown * Failed to apply overlay '2_gpio-shutdown' (kernel) [root@mypi ~]#
But when I check the overlay list, I get:
[root@mypi ~]# dtoverlay -l Overlays (in load order): 0: gpio-shutdown 1: gpio-poweroff [root@mypi ~]#
At least, something is done :-)
Last problems: [root@mypi ~]# dtoverlay -h gpio-shutdown * Help file not found [root@mypi ~]# dtoverlay -h gpio-poweroff * Help file not found [root@mypi ~]# dtoverlay -h rpi-rtc * Help file not found [root@mypi ~]# dtoverlay -h rpi-display * Help file not found [root@mypi ~]#
In case ... [root@mypi ~]# cat /proc/version Linux version 4.14.65-v7.1.el7 (mockbuild@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@mypi ~]#
[root@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@mypi ~]#
Stephan.