SOPINE Armbian LCD and Camera

From PINE64
Jump to navigation Jump to search

Guide on how to get the camera and the LCD working on the SOPINE on Armbian.


  • DD the Armbian SOPINE image to the microSD Card and run on the board
  • Login through the terminal
  • vi /boot/armbianEnv.txt (Change off to on): pine64_lcd=on
  • vi /etc/modules (Add following line): gt9xxf_ts
  • reboot

Then the display will be on LCD and not HDMI


1. DD the Armbian SOPINE image to the microSD Card and run on the board

2. Login through the terminal

3. Install Ubuntu Xenial Mate with ayufan's script

cd ~
chmod +x
./ mate

4. vi /boot/armbianEnv.txt (Set to "s5k4ec" or "ov5640" depending on your camera module)


5. vi /etc/modules (Add the following depending on your camera_type "s5k4ec" or "ov5640" above. Note that "vfe_v4l2" has a small letter 'L'2 not 12)


6. reboot

7. Following (Change "s5k4ec" to "ov5640" depending on your camera module)

apt-get update
apt-get upgrade
apt-get remove --purge guvcview
apt-get remove --purge libguvcview-1.1-1
modprobe -r -f vfe_v4l2
modprobe -r -f s5k4ec
modprobe s5k4ec
modprobe vfe_v4l2
ls /dev/video0
dmesg | grep OK
sudo apt-get install libmp3lame-dev libx264-dev libpulse-dev libv4l-dev libsdl1.2-dev libgtk-3-dev portaudio19-dev libpng12-dev libavcodec-dev libavutil-dev libudev-dev libusb-1.0-0-dev libpulse-dev libgsl0-dev libv4l-dev
cd ~
dpkg -i libguvcview-1.2-1_2.0.3+debian-1_arm64.deb
dpkg -i guvcview_2.0.3+debian-1_arm64.deb

8. For testing, use Xenial Mate -> Applications -> Sound & Video -> guvcview OR command line

guvcview -d /dev/video0 -x 640x480 -r sdl -f yu12
guvcview -d /dev/video0 -x 640x480 -r sdl -f nv12