Can I use picamera with this version of Ubuntu on

2019-09-04 08:36发布

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条回答
Bombasti
2楼-- · 2019-09-04 09:24

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

查看更多
登录 后发表回答