Can I use picamera with this version of Ubuntu on a Raspberry Pi 2 Model B?

陌路散爱 提交于 2019-12-13 04:06:41

问题


I used to use the picamera Python module, along with a Raspberry Pi Camera on Raspbian OS on my Raspberry Pi Model B.

Now I am running Ubuntu 14.04 LTS on a Raspberry Pi 2 Model B. However, I cannot use picamera anymore because I cannot enable the Raspberry Pi Camera. I cannot enable the Raspberry Pi Camera because I do not have Raspberry Pi firmware, so to speak. I actually have Ubuntu-rpi2 firmware.

Here's the output of uname -a:

Linux ubuntu 3.18.0-20-rpi2 #21-Ubuntu SMP PREEMPT Sun Apr 5 01:56:02 UTC 2014 armv71 armv71 armv71 GNU/Linux

Is it even possible to run Ubuntu and have the necessary RPi firmware to use the RPi Camera at the same time?


回答1:


According to a post post by fo0bar » Fri Feb 27, 2015 3:49 am the userland firmware comes prebuilt via a PPA, the availability of the firmware is also stated at wiki.ubuntu.com. I dont have an rpi2 with ubuntu, but i would assume the PPA is already in your /etc/apt/sources.list. If not, see the ppa description on how to add it.

Then, try

sudo apt-get install libraspberrypi-bin libraspberrypi-dev

and be sure to enable the camera from

raspi-config



来源:https://stackoverflow.com/questions/29616749/can-i-use-picamera-with-this-version-of-ubuntu-on-a-raspberry-pi-2-model-b

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!