Hi Pablo, Found the cause for the Help problem. On CentOS, /boot/overlays/README is missing. It contains the help for all the dtoverlay commands...
I got the file from its original distro, and I put it under /boot/overlays/README.rasp for the demo: [pi@myrpi ~]$ dtoverlay -h i2c-gpio * Help file not found [pi@myrpi ~]$ sudo mv /boot/overlays/README.rasp /boot/overlays/README [pi@myrpi ~]$ dtoverlay -h i2c-gpio Name: i2c-gpio
Info: Adds support for software i2c controller on gpio pins
Usage: dtoverlay=i2c-gpio,<param>=<val>
Params: i2c_gpio_sda GPIO used for I2C data (default "23")
i2c_gpio_scl GPIO used for I2C clock (default "24")
i2c_gpio_delay_us Clock delay in microseconds (default "2" = ~100kHz)
[pi@myrpi ~]$
Unfortunatelly, the files under this folder seem to belong to no package... [pi@myrpi ~]$ rpm -qf /boot/overlays/i2c-gpio.dtbo file /boot/overlays/i2c-gpio.dtbo is not owned by any package [pi@myrpi ~]$
So, I'm stuck there, for now ...
Le lun. 24 sept. 2018 à 14:12, Stephan Guilloux < stephan.guilloux@crisalid.com> a écrit :
Le 24/09/2018 à 10:46, Pablo Sebastian Greco a écrit :
El 24 sept 2018, a las 04:41, Stephan Guilloux < stephan.guilloux@crisalid.com> escribió:
Hello Pablo,
Sorry for the direct mail.
No problem. I'm on vacation this week so it is probably better
Enjoy ;-)
I'll have a look, this week, but I need the sources that CentOS delivers. I Tried to check on vault.centos.org, but no armhfp (only aarch64).
You're right. I had touble finding it myself. It got lost when moving from the old to the new build system. Try here https://armv7.dev.centos.org/repodir/c7-extras-1/raspberrypi-vc/20170705-502... I'll update the srpm and probably github when I'm back but if you find the problems, better. Hehe
OK. Got it there. Will inform you through the list, in case I find anything.
Can you indicate where to find the current raspberrypi-vc-utils.src.rpm ?
Regards, Stéphan.
Thanks, Pablo
Le 20/09/2018 à 13:02, Pablo Sebastián Greco a écrit :
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
- has it ever worked before?
- 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.
Hello Stephan, nice finding!
El 23/2/19 a las 23:00, Stephan Guilloux escribió:
Hi Pablo, Found the cause for the Help problem. On CentOS, /boot/overlays/README is missing. It contains the help for all the dtoverlay commands...
I got the file from its original distro, and I put it under /boot/overlays/README.rasp for the demo: [pi@myrpi ~]$ dtoverlay -h i2c-gpio * Help file not found [pi@myrpi ~]$ sudo mv /boot/overlays/README.rasp /boot/overlays/README [pi@myrpi ~]$ dtoverlay -h i2c-gpio Name: i2c-gpio
Info: Adds support for software i2c controller on gpio pins
Usage: dtoverlay=i2c-gpio,<param>=<val>
Params: i2c_gpio_sda GPIO used for I2C data (default "23")
i2c_gpio_scl GPIO used for I2C clock (default "24")
i2c_gpio_delay_us Clock delay in microseconds (default "2" = ~100kHz)
[pi@myrpi ~]$
Unfortunatelly, the files under this folder seem to belong to no package... [pi@myrpi ~]$ rpm -qf /boot/overlays/i2c-gpio.dtbo file /boot/overlays/i2c-gpio.dtbo is not owned by any package [pi@myrpi ~]$
So, I'm stuck there, for now ...
All those files are copied by the raspberrypi kernel from /usr/share/raspberrypi2-kernel/<version>/boot/overlays (https://github.com/CentOS/sig-core-AltArch/blob/master/raspberrypi2/SPECS/ra...) and that dir also contains the missing README. I'll try to update the spec for the next kernel update
<snip>
Thanks for looking into this.
Pablo.