Difference between revisions of "SOPINE Armbian LCD and Camera"

From PINE64
Jump to navigation Jump to search
(Created page with " == LCD == <pre<noinclude></noinclude> style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"> 1....")
 
Line 1: Line 1:
== LCD ==
== LCD ==
<pre<noinclude></noinclude> style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
1. DD the Armbian SOPINE image to the microSD Card and run on the board
1. DD the Armbian SOPINE image to the microSD Card and run on the board


Line 18: Line 15:


Then the display will be on LCD and not HDMI
Then the display will be on LCD and not HDMI
</pre>


== Camera ==
== Camera ==
<pre<noinclude></noinclude> style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
1. DD the Armbian SOPINE image to the microSD Card and run on the board
1. DD the Armbian SOPINE image to the microSD Card and run on the board


Line 70: Line 63:
# guvcview -d /dev/video0 -x 640x480 -r sdl -f yu12
# guvcview -d /dev/video0 -x 640x480 -r sdl -f yu12
# guvcview -d /dev/video0 -x 640x480 -r sdl -f nv12
# guvcview -d /dev/video0 -x 640x480 -r sdl -f nv12
</pre>

Revision as of 10:17, 15 October 2019

LCD

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

2. Login through the terminal

3. # vi /boot/armbianEnv.txt (Change off to on)

pine64_lcd=on

4. # vi /etc/modules (Add following line)

gt9xxf_ts

5. reboot

Then the display will be on LCD and not HDMI

Camera

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

  1. cd ~
  2. wget https://github.com/longsleep/build-pine64-image/raw/master/simpleimage/platform-scripts/install_desktop.sh
  3. chmod +x install_desktop.sh
  4. ./install_desktop.sh mate

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

camera_type=s5k4ec

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)

s5k4ec vfe_v4l2

6. # reboot

7. Following https://github.com/avafinger/pine64_camera (Change "s5k4ec" to "ov5640" depending on your camera module)

  1. apt-get update
  2. apt-get upgrade
  3. apt-get remove --purge guvcview
  4. apt-get remove --purge libguvcview-1.1-1
  5. modprobe -r -f vfe_v4l2
  6. modprobe -r -f s5k4ec
  7. modprobe s5k4ec
  8. modprobe vfe_v4l2
  9. ls /dev/video0
  10. dmesg | grep OK
  11. 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
  12. cd ~
  13. wget https://raw.githubusercontent.com/avafinger/pine64_camera/master/libguvcview-1.2-1_2.0.3%2Bdebian-1_arm64.deb
  14. wget https://raw.githubusercontent.com/avafinger/pine64_camera/master/guvcview_2.0.3%2Bdebian-1_arm64.deb
  15. dpkg -i libguvcview-1.2-1_2.0.3+debian-1_arm64.deb
  16. dpkg -i guvcview_2.0.3+debian-1_arm64.deb

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

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