How to troubleshoot the PiCamera on Fedora and Raspberry Pi

Pi Camera for Raspberry Pi

Many of you use Raspbian or Noobs to manage your Raspberry Pi and its accessories. However more and more users are looking for other alternatives. Very good alternatives but that are not worked by the Raspberry Pi Foundation and with that there is always some problem between the Raspberry Pi and Fedora components.

The problem with all this lies above all in the fact that the kernel of Fedora or other distributions is not built for Raspberry Pi but for ARM platforms, which gives some problems and some files or device performance is missing.

Multiple users have had a problem between their PiCam and their Fedoraso they can't get this Raspberry Pi component to work even though the rest of the software works perfectly. This is easy to fix and does not involve changing the operating system.

Fedora is not built for Raspberry Pi platforms or accessories such as PiCamera

To solve that, we must first open a terminal and try run python script ./take_photo.py, at the end the library that gives an error will appear, in this case it is called libmmal.so. This library is found in the Fedora operating system but certain programs or applications cannot access the location of this library. To solve this problem, just write the following lines:

echo “/opt/vc/lib/”>/etc/ld.so.conf.d/rpi.conf
ldconfig

The first command causes a file equal to the library to be created in another location than if it is accessible by other programs. And the second command what it does is warn all software that that location is already available and to use it. So now when we run the PiCámara script again we can make the camera work without any problem and everything in Fedora, an interesting alternative to Raspbian, even though many do not like it.

Source - Tonet666P


Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.