![]() |
Camera support progress - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: Camera support progress (/showthread.php?tid=10578) |
Camera support progress - a-wai - 07-06-2020 Hello, A few interesting patches by megi have made their way to the pine64 kernel lately, bringing improved drivers for the pinephone cameras. With a couple of extra hacks on top of that, and an experimental build of gnome-camera, support for the back camera should be working "out of the box" with the next nightly build ![]() This is far from perfect, and should be regarded as some kind of "technology preview": image resolution is 720p only, and the quality is really poor atm. Still, I believe this is a major step forward! You can test by first upgrading your system, then running the following command: Code: sudo apt install gnome-camera Enjoy! ![]() RE: Camera support progress - aancel - 07-06-2020 Hello, Great news if camera support is making progress ! I've wanted to eagerly give it a try, updated the packages to the latest version, installed gnome-camera and rebooted, but it doesn't seem to be working on my device (mobian-pinephone-20200704 flashed to the eMMC and updated several times since): I'm getting a black viewfinder and clicking the capture button doesn't seem to record any image (Should they be stored in Pictures ?). I've noticed that during app launch, there are a couple of clicking noises (if it might help). Thanks for the great work on Mobian ! RE: Camera support progress - bingo600 - 07-06-2020 (07-06-2020, 10:06 AM)a-wai Wrote: Hello, Doesn't work for me I did an apt update + apt upgrade + sudo apt install gnome-camera + Reboot Camrea app is there , but when started the camera doesn't work I see the app + round trigger button + but screen is black ... aka. no camera pixels seen. PP CE + latest updates as of 20 min ago uname -a Linux mobian 5.7-pinephone #5.7.0+pinephone5 SMP PREEMPT Mon Jul 6 15:28:18 CEST 2020 aarch64 GNU/Linux /Bingo RE: Camera support progress - chris_02 - 07-06-2020 (07-06-2020, 12:15 PM)bingo600 Wrote: Doesn't work for me it's not working for me. RE: Camera support progress - a-wai - 07-06-2020 Damn... Can you post the outputs from the following commands please: Code: dmesg | grep -E "(csi|ov5640)" RE: Camera support progress - jjs - 07-06-2020 mobian@mobian:$ dmesg | grep -E "(csi|ov5640)" [ 1.428226] dovdd-csi: Bringing 3300000uV into 1800000-1800000uV [ 1.430819] avdd-csi: Bringing 2900000uV into 2800000-2800000uV [ 1.433106] dvdd-csi: Bringing 700000uV into 1800000-1800000uV [ 4.144568] i2c-gpio i2c-csi: using lines 141 (SDA) and 140 (SCL) [ 8.168327] sun6i-csi 1cb0000.csi: creating ov5640 3-004c:0 -> sun6i-csi:0 link [ 8.191390] sun6i-csi 1cb0000.csi: creating gc2145 3-003c:0 -> sun6i-csi:0 link [ 3730.363063] sun6i-csi 1cb0000.csi: Unsupported pixformat: 0x56595559 with mbus code: 0x2006! [ 6667.346819] sun6i-csi 1cb0000.csi: Unsupported pixformat: 0x56595559 with mbus code: 0x2006! mobian@mobian:$ sudo systemctl status pinephone-camera-setup [sudo] password for mobian: ● pinephone-camera-setup.service - Configure PinePhone Camera Loaded: loaded (/lib/systemd/system/pinephone-camera-setup.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2020-07-06 12:57:27 MDT; 2h 34min ago Process: 1510 ExecStart=/usr/sbin/pinephone-camera-setup.sh (code=exited, status=127) Main PID: 1510 (code=exited, status=127) Jul 06 12:57:27 redtail systemd[1]: Starting Configure PinePhone Camera... Jul 06 12:57:27 redtail pinephone-camera-setup.sh[1510]: /usr/sbin/pinephone-camera-setup.sh: 4: media-ctl: not found Jul 06 12:57:27 redtail pinephone-camera-setup.sh[1510]: /usr/sbin/pinephone-camera-setup.sh: 5: media-ctl: not found Jul 06 12:57:27 redtail pinephone-camera-setup.sh[1510]: /usr/sbin/pinephone-camera-setup.sh: 8: media-ctl: not found Jul 06 12:57:27 redtail pinephone-camera-setup.sh[1510]: /usr/sbin/pinephone-camera-setup.sh: 9: media-ctl: not found Jul 06 12:57:27 redtail systemd[1]: pinephone-camera-setup.service: Main process exited, code=exited, status=127/n/a Jul 06 12:57:27 redtail systemd[1]: pinephone-camera-setup.service: Failed with result 'exit-code'. Jul 06 12:57:27 redtail systemd[1]: Failed to start Configure PinePhone Camera. mobian@mobian: $ media-ctl -p -bash: media-ctl: command not found RE: Camera support progress - chris_02 - 07-06-2020 (07-06-2020, 03:03 PM)a-wai Wrote: Damn... Can you post the outputs from the following commands please:dmesg | grep -E "(csi|ov5640)" [ 1.428250] dovdd-csi: Bringing 3300000uV into 1800000-1800000uV [ 1.430576] avdd-csi: Bringing 2900000uV into 2800000-2800000uV [ 1.432691] dvdd-csi: Bringing 700000uV into 1800000-1800000uV [ 4.189317] i2c-gpio i2c-csi: using lines 141 (SDA) and 140 (SCL) [ 9.283883] sun6i-csi 1cb0000.csi: creating gc2145 3-003c:0 -> sun6i-csi:0 link [ 9.293871] sun6i-csi 1cb0000.csi: creating ov5640 3-004c:0 -> sun6i-csi:0 link [ 10.263488] sun6i-csi 1cb0000.csi: Direct firmware load for gc2145-init.bin failed with error -2 [ 45.362815] sun6i-csi 1cb0000.csi: Direct firmware load for gc2145-init.bin failed with error -2 [ 46.621344] sun6i-csi 1cb0000.csi: Direct firmware load for gc2145-init.bin failed with error -2 [ 46.919337] sun6i-csi 1cb0000.csi: Direct firmware load for gc2145-init.bin failed with error -2 [ 48.004875] sun6i-csi 1cb0000.csi: Direct firmware load for gc2145-init.bin failed with error -2 [ 48.576993] sun6i-csi 1cb0000.csi: Unsupported pixformat: 0x56595559 with mbus code: 0x2006! sudo systemctl status pinephone-camera-setup ● pinephone-camera-setup.service - Configure PinePhone Camera Loaded: loaded (/lib/systemd/system/pinephone-camera-setup.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2020-07-06 23:42:59 CEST; 3min 57s ago Process: 1519 ExecStart=/usr/sbin/pinephone-camera-setup.sh (code=exited, status=1/FAILURE) Main PID: 1519 (code=exited, status=1/FAILURE) juil. 06 23:42:59 mobian systemd[1]: Starting Configure PinePhone Camera... juil. 06 23:42:59 mobian pinephone-camera-setup.sh[1534]: Unable to setup formats: Invalid argument (22) juil. 06 23:42:59 mobian pinephone-camera-setup.sh[1537]: Unable to setup formats: Invalid argument (22) juil. 06 23:42:59 mobian pinephone-camera-setup.sh[1538]: Unable to parse link: Invalid argument (22) juil. 06 23:42:59 mobian pinephone-camera-setup.sh[1543]: Unable to parse link: Invalid argument (22) juil. 06 23:42:59 mobian systemd[1]: pinephone-camera-setup.service: Main process exited, code=exited, status=1/FAILURE juil. 06 23:42:59 mobian systemd[1]: pinephone-camera-setup.service: Failed with result 'exit-code'. juil. 06 23:42:59 mobian systemd[1]: Failed to start Configure PinePhone Camera. media-ctl -p Media controller API version 5.7.0 Media device information ------------------------ driver cedrus model cedrus serial bus info platform:cedrus hw revision 0x0 driver version 5.7.0 Device topology - entity 1: cedrus-source (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Source -> "cedrus-proc":0 [ENABLED,IMMUTABLE] - entity 3: cedrus-proc (2 pads, 2 links) type Node subtype Unknown flags 0 pad0: Sink <- "cedrus-source":0 [ENABLED,IMMUTABLE] pad1: Source -> "cedrus-sink":0 [ENABLED,IMMUTABLE] - entity 6: cedrus-sink (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Sink <- "cedrus-proc":1 [ENABLED,IMMUTABLE] RE: Camera support progress - a-wai - 07-06-2020 Right, this should be fixed now, an new update+reboot cycle should get you there ![]() Sorry about the mess... RE: Camera support progress - Ersatz - 07-06-2020 It's working as of right now. Initially there was no video shown and had the same output posted above. Anyhow laggy, but works. Edit: Awesome work, so far Mobian has been the experience I was looking for. Thanks. RE: Camera support progress - chris_02 - 07-06-2020 (07-06-2020, 03:50 PM)a-wai Wrote: Right, this should be fixed now, an new update+reboot cycle should get you there Thank you @a-wai...it works |