pinephone
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pinephone [2020/07/02 12:15] – [Current State] mark | pinephone [2020/07/21 12:02] (current) – mark | ||
---|---|---|---|
Line 56: | Line 56: | ||
+ | ===== Changelog ===== | ||
- | ==== Kernel ==== | + | There is no official changelog, |
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | ===== 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:// | From https:// | ||
Line 143: | Line 149: | ||
- | === Camera === | + | ==== Camera |
- | The camera is a OV6540 and is connected via the sun6i csi interface. | + | The camera is a OV6540 and is connected via the sun6i csi interface. |
- | The PostmarketOS kernel (Pulled in APKBUILD from https:// | ||
- | |||
- | When this is compared to the current ubtouch kernel there are a few changes to the DTS files, and the sunxi usb module. However the bug difference is the kernel config files. They are very different. | ||
- | |||
- | |||
- | The first is that CONFIG_VIDEO_DEV is build into the kernel, while ut is a module. This also includes CONFIG_VIDEO_V4L2. And CONFIG_V4L2_MEM2MEM_DEV=y for the pmos. | ||
So First we need to enable a number of modules in the kernel tree | So First we need to enable a number of modules in the kernel tree | ||
Line 196: | Line 196: | ||
< | < | ||
- | sudo fswebcam --device /dev/video1 --resolution 1280x720 | + | fswebcam --device /dev/video1 --resolution 1280x720 |
</ | </ | ||
+ | Using gstreamer, the orientation is wrong. | ||
+ | |||
+ | V4l2Src should implement GstVideoOrientation see https:// | ||
+ | |||
+ | |||
+ | GstVideoOrientation | ||
+ | |||
+ | See | ||
+ | |||
+ | https:// | ||
+ | |||
+ | this is implemented in | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | For gst-droid (used on android), https:// | ||
+ | |||
+ | For droidcamsrc: | ||
+ | |||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | 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). | ||
+ | |||
+ | < | ||
+ | #!/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 '" | ||
+ | |||
+ | sudo v4l2-ctl --set-ctrl horizontal_flip=1 --device=/ | ||
+ | sudo v4l2-ctl --set-ctrl vertical_flip=1 --device=/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | The Custom version of the camera can be found here: {{ :: | ||
+ | And the src is: https:// | ||
- | === Cross Compile === | + | ===== Cross Compile |
https:// | https:// |
pinephone.1593692139.txt.gz · Last modified: 2020/07/02 12:15 by mark