Enable Pi Camera with Raspberry Pi 4 Ubuntu 20.10 #樹梅派相機設置

lChuck
2 min readDec 19, 2020

--

Though Pi camera is default supported to Raspbian on Rpi. However, when it comes to Ubuntu, there are tons of tools like rpi-clone, rpi-imager,and raspi-config not working.

Not to mention newest OS, ubuntu 20.10.

Here is the methods for Pi Camera with Raspberry Pi4+Ubuntu 20.10 that turns out working fine for me.

Install raspi-config for camera enabling

  • Find the version you want to install
  • Download the deb file
wget http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20201108_all.deb
  • Solve the dependency problem
sudo apt install lua5.1  libatopology2 libfftw3-single3 libsamplerate0 alsa-utils
  • Install it
sudo dpkg -i raspi-config_20201108_all.deb

let’s try to turn on Pi camera in raspi-config~

sudo raspi-config

Oh sh…

It’ll pop out error message “Your firmwave appears to be out of date (no start_x.elf). Please update”

  • Mount on the /boot
df -h #Find your device numbert 查找設備號
mount /dev/mmcblk0p1 /boot #your may be different 你的可能不一樣

Reboot

Now, you can turn on your Pi camera setting in raspi-config.

Find your camera

We’ll use this “v4l2-ctl — list-devices”

sudo apt-get install v4l-utils
v4l2-ctl --list-devices
Pi camera is the last one

Now, Test it !!

sudo apt install ffmpeg
ffplay /dev/video0

Say Hi~

Please ignore my messy desktop

REF:

--

--