User Tools

Site Tools


pinephone

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pinephone [2020/07/14 11:15] – [Current State] markpinephone [2020/07/21 12:02] (current) mark
Line 56: Line 56:
  
  
 +===== Changelog =====
  
-==== Kernel ====+There is no official changelog, 
 + 
 +https://www.retallack.org.uk/pinephonechangelog.html 
 + 
 + 
 +===== Kernel =====
  
 The kernel currently used is: The kernel currently used is:
Line 88: Line 94:
  
  
-==== Crust ====+===== Crust =====
  
 The Pinephone uses CRUST to do the power management.  The Pinephone uses CRUST to do the power management. 
Line 96: Line 102:
  
  
-==== Current State ====+===== Current State =====
  
 The following is not working: The following is not working:
Line 108: Line 114:
  
  
-=== Vibration motor ===+==== Vibration motor ====
  
 From https://xnux.eu/devices/feature/vibrator.html#toc-example-program-to-control-the-vibration-motor there is a test app (assuming its using the force feedback input). From https://xnux.eu/devices/feature/vibrator.html#toc-example-program-to-control-the-vibration-motor there is a test app (assuming its using the force feedback input).
Line 143: Line 149:
  
  
-=== Camera ===+==== Camera =====
  
 The camera is a OV6540 and is connected via the sun6i csi interface. This is how to enable it  The camera is a OV6540 and is connected via the sun6i csi interface. This is how to enable it 
Line 191: Line 197:
 <code> <code>
 fswebcam --device /dev/video1 --resolution 1280x720  -p UYVY --verbose --save bob.jpeg fswebcam --device /dev/video1 --resolution 1280x720  -p UYVY --verbose --save bob.jpeg
 +</code>
 +
 +Using gstreamer, the orientation is wrong. 
 +
 +V4l2Src should implement GstVideoOrientation see https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-v4l2src.html
 +
 +
 +GstVideoOrientation
 +
 +See
 +
 +https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/blob/230cf41cc966d7b3ebea248b82e1e3a60ac58d63/sys/v4l2/gstv4l2src.c#L110
 +
 +this is implemented in
 +
 +https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/blob/1.10.4/sys/v4l2/gstv4l2vidorient.c
 +
 +
 +For gst-droid (used on android), https://github.com/sailfishos/gst-droid/blob/e755c8521b3ff0a622fba4c85e57ff41015c7793/gst/droidcamsrc/gstdroidcamsrc.c#L271
 +
 +For droidcamsrc:
 +
 +
 +https://github.com/sailfishos/gst-droidcamsrc
 +
 +
 +So does not look like v4l handles angle
 +
 +
 +
 +==== PinePhone Camera ==== 
 +
 +I have created a special version of the Camera app for the Pinephone, this is not the correct solution to the problem, but works for now. 
 +
 +The following script also needs to be run once to setup the media control and video input. It assumes the the non-standard version of media-ctl is available along with the kernel modules (see above).
 +
 +<code>
 +#!/bin/bash
 +
 +sudo insmod led-class-flash.ko
 +sudo insmod v4l2-flash-led-class.ko
 +sudo insmod leds-sgm3140.ko
 +
 +sudo ./media-ctl -d /dev/media1 --set-v4l2 '"ov5640 3-004c":0[fmt:UYVY8_2X8/1920x1080@1/20]'
 +
 +sudo v4l2-ctl --set-ctrl horizontal_flip=1 --device=/dev/video1
 +sudo v4l2-ctl --set-ctrl vertical_flip=1 --device=/dev/video1
 </code> </code>
  
  
-For now a hacked version of the camera app 
  
-{{ ::mod-camera-for-pinephone.zip |}}+The Custom version of the camera can be found here: {{ ::uk.co.retallack.camera-3.1.5.arm64.zip |}}
  
 +And the src is: https://gitlab.com/Retallack/camera-app
  
-=== Cross Compile ===+===== Cross Compile =====
  
 https://blog.marcg.pizza/marcg/pinephone-arm-build-environment-setup https://blog.marcg.pizza/marcg/pinephone-arm-build-environment-setup
pinephone.1594725335.txt.gz · Last modified: 2020/07/14 11:15 by mark