On 26/07/16 16:36, Jordi Sanfeliu wrote: > Hello, > > Following the Fabian Arrotin recommendation, I open here the request to > include the 'raspberrypi-vc' package into the CentOS 7 EPEL repository, > or in the main tree. > > This package includes a command called 'vcgencmd' which offers a set of > interesting values of the Raspberry Pi board; e.g. its temperature. > Check here <http://www.elinux.org/RPI_vcgencmd_usage> for more information. > > I've downloaded the SRPM package from here > <http://www.squeezecommunity.org/repo/fedora/24/pi/SRPMS/raspberrypi-vc-20160705-501.git0b8c195.fc24.src.rpm>, > and I realized that it was pretty easy to build on a full-updated CentOS > 7 (kernel 4.4.14-v7). > > The following are the small modifications I made on the .spec file to > accomplish it: > > --- raspberrypi-vc.spec 2016-07-05 23:23:13.000000000 +0200 > +++ raspberrypi-vc.spec.ok 2016-07-13 12:14:39.494059817 +0200 > @@ -21,12 +21,12 @@ > Patch1: raspberrypi-vc-EGL-dep.patch > > # dtoverlay > -BuildRequires: libfdt-devel >= 1.4.1-501.gitbeef80b%{?dist} > +##BuildRequires: libfdt-devel >= 1.4.1-501.gitbeef80b%{?dist} > Requires: libfdt >= 1.4.1-501.gitbeef80b%{?dist} > > BuildRequires: cmake, gcc-c++ > > -ExclusiveArch: armv6hl armv7hnl > +ExclusiveArch: armv7hl > > %description > Libraries, utilities and demos for the Raspberry Pi BCM2835/6 SOC GPU > @@ -34,7 +34,7 @@ > > %package libs > Summary: Libraries for accessing the Raspberry Pi GPU > -Requires: %{name}-firmware >= 20150212git47bd0f0-501 > +##Requires: %{name}-firmware >= 20150212git47bd0f0-501 > > #Provides: libEGL.so > #Provides: libGLESv1_CM.so > > > The build generated successfully the following packages: > > [root at rpi3 rpmbuild]# l -R RPMS/ > RPMS/: > total 8 > drwxr-xr-x 2 root root 4096 Jul 26 15:59 armv7hl > drwxr-xr-x 2 root root 4096 Jul 13 12:23 noarch > > RPMS/armv7hl: > total 1352 > -rw-r--r-- 1 root root 552156 Jul 13 12:22 > raspberrypi-vc-libs-20160705-501.git0b8c195.el7.centos.armv7hl.rpm > -rw-r--r-- 1 root root 340184 Jul 13 12:22 > raspberrypi-vc-libs-devel-20160705-501.git0b8c195.el7.centos.armv7hl.rpm > -rw-r--r-- 1 root root 244960 Jul 13 12:23 > raspberrypi-vc-static-20160705-501.git0b8c195.el7.centos.armv7hl.rpm > -rw-r--r-- 1 root root 241332 Jul 13 12:23 > raspberrypi-vc-utils-20160705-501.git0b8c195.el7.centos.armv7hl.rpm > > RPMS/noarch: > total 30688 > -rw-r--r-- 1 root root 31420584 Jul 13 12:23 > raspberrypi-vc-demo-source-20160705-501.git0b8c195.el7.centos.noarch.rpm > > > The installation worked finely: > > # [root at rpi3 armv7hl]# rpm -ivh > raspberrypi-vc-utils-20160705-501.git0b8c195.el7.centos.armv7hl.rpm > raspberrypi-vc-libs-20160705-501.git0b8c195.el7.centos.armv7hl.rpm > Preparing... ################################# > [100%] > Updating / installing... > 1:raspberrypi-vc-libs-20160705-501.################################# > [ 50%] > 2:raspberrypi-vc-utils-20160705-501################################# > [100%] > > > Then a simple command to get the temperature: > > [root at rpi3 ~]# vcgencmd measure_temp > temp=47.2'C > > Thanks. > I know the original post in this thread is a little bit "old" but I remembered seeing a dep on newer dtc, that landed in git.centos.org for centos 7.4.1708. So I first rebuilt dtc and then tested a rebuild of that raspberrypi-vc pkg, which built fine So if you want to test this, both landed in https://armv7.dev.centos.org/repodir/c7-extras-1/ repo (unsigned, etc) Depending on feedback and also reviews, we can push that pkg soon in official centos 7 armhfp repositories -- Fabian Arrotin The CentOS Project | http://www.centos.org gpg key: 56BEC54E | twitter: @arrfab -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/arm-dev/attachments/20170912/84450699/attachment-0005.sig>