Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcgencmd #65

Closed
jpoilux opened this issue Jun 20, 2014 · 16 comments
Closed

vcgencmd #65

jpoilux opened this issue Jun 20, 2014 · 16 comments

Comments

@jpoilux
Copy link

jpoilux commented Jun 20, 2014

is it possible to install vcgencmd?
and how?

thanks

@diederikdehaas
Copy link
Member

You need to install rpi-update (and curl) and then run it.

@hifi
Copy link
Contributor

hifi commented Jun 21, 2014

I think there is a package that has the binary stuff too so it should be preferred over rpi-update.

@jpoilux
Copy link
Author

jpoilux commented Jun 21, 2014

i allready done rpi-update. curl is ok.
i'm up to date.
i've fund vcgencmd in /opt/vc/bin/
but when running it as root:
/vcgencmd: error while loading shared libraries: libvcos.so: cannot open shared object file: No such file or directory

@jpoilux
Copy link
Author

jpoilux commented Jun 21, 2014

news:
export PATH=$PATH:/opt/vc/bin
export LD_LIBRARY_PATH=$LD_LIBRARYPATH:/opt/vc/lib

now i've:
VCHI initialization failed

@diederikdehaas
Copy link
Member

Did you try to run it with the preceding '/' or without it?
Otherwise it sounds like something went wrong when installing/running rpi-update.

@jpoilux
Copy link
Author

jpoilux commented Jun 21, 2014

not, it's a wrong copy/paste.
it seem's i need add video group to my user.

@diederikdehaas
Copy link
Member

@hifi indeed there is: libraspberrypi-bin source
But it conflicts with raspberrypi-bootloader-nokernel...

@jpoilux
Copy link
Author

jpoilux commented Jun 21, 2014

yeah!
it work's!!!
sudo usermod -G video www-data
rock&roll!

Thanks to diederikdehaas and hifi.

now, i just need to make exports permanent:
export PATH=$PATH:/opt/vc/bin
export LD_LIBRARY_PATH=$LD_LIBRARYPATH:/opt/vc/lib

@diederikdehaas
Copy link
Member

I can confirm your issue btw:

# /opt/vc/bin/vcgencmd 
/opt/vc/bin/vcgencmd: error while loading shared libraries: libvcos.so: cannot open shared object file: No such file or directory
root@rasppi:~# ldd /opt/vc/bin/vcgencmd 
        libvcos.so => not found
        libvchiq_arm.so => not found
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6f07000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6efc000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6eed000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6dbc000)
        /lib/ld-linux-armhf.so.3 (0xb6f2c000)

But this is an issue with rpi-update, not this project (hence me closing the issue rather quickly)

@jpoilux
Copy link
Author

jpoilux commented Jun 21, 2014

ho, yes, not depending to your project.
many thank's.

@diederikdehaas
Copy link
Member

Reported it here: Hexxeh/rpi-update#143

@diederikdehaas
Copy link
Member

Just closed that issue without a proper solution :-/
The manual fix is creating a /etc/ld.so.conf.d/00-vmcs.conf file with the following contents:

/opt/vc/lib

And then running ldconfig afterwards. That should fix the issue.

PS: This should be part of the post-install script of the rpi-update package

@jpoilux
Copy link
Author

jpoilux commented Jun 21, 2014

in addition:
ln -s /opt/vc/bin/vcgencmd /usr/bin
sudo vcgencmd works!

thanks!

@diederikdehaas
Copy link
Member

Correct.
By doing that you make it available under $PATH (do echo $PATH and you'll see /usr/bin/ in there)
Alternatively, you could add /opt/vc/bin/ to your $PATH variable.

@diederikdehaas
Copy link
Member

It turns out there is a better way to get vcgencmd onto raspbian (thanks to plugwash).
When disabling the raspberrypi.org archives in /etc/apt/sources.list, doing apt-get update and then installing the libraspberrypi-bin package, you get vcgencmd (and others) and it's automatically symlinked to /usr/bin so you can invoke them without using the full path :-)

Gonna work on a proper implementation now ...

diederikdehaas added a commit to diederikdehaas/raspbian-ua-netinst that referenced this issue Jul 22, 2014
This adds the 'vcgencmd' and friends to the system.
Done this by creating a apt preferences file and installing the package.
Fixes issue debian-pi#65.
@diederikdehaas
Copy link
Member

Fixed with the release of version 1.0.5

hoehnp pushed a commit to hoehnp/raspbian-ua-netinst that referenced this issue Jul 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants