PINE64
Can't find pinephone pro camera in terminal - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=177)
+--- Forum: PinePhone Pro Hardware (https://forum.pine64.org/forumdisplay.php?fid=180)
+--- Thread: Can't find pinephone pro camera in terminal (/showthread.php?tid=16405)

Pages: 1 2


Can't find pinephone pro camera in terminal - TheRealThor - 03-30-2022

Hello everyone,
I recently got my pinephone pro and have had fun trying the different os's available and I've setteled with latest modian posh, I found that in every os that everything is working but the camera isn't working. I checked the dip switches and even turned it on and off, then I started to look in terminal using the sudo lshw command and I can see everything else but the camera or their title OV5640. Am I doing something wrong or do I have hardware issue, I have been looking through the forum but can't find anyone with the same issue.
Any suggestion would be greate


RE: Can't find pinephone pro camera in terminal - dukla2000 - 03-31-2022

There are no drivers yet for either camera. Your experience is exactly what is to be expected.


RE: Can't find pinephone pro camera in terminal - TheRealThor - 03-31-2022

(03-31-2022, 01:46 AM)dukla2000 Wrote: There are no drivers yet for either camera. Your experience is exactly what is to be expected.

That make a lot of sense, my skills at coding go as far as "hello world" on a html page, I have people who may be able to help me create one and I was wondering what information I should gather and take to them to get the ball rolling on creating a driver.


RE: Can't find pinephone pro camera in terminal - dukla2000 - 04-01-2022

(03-31-2022, 08:56 PM)TheRealThor Wrote: ...
I have people who may be able to help me create one and I was wondering what information I should gather and take to them to get the ball rolling on creating a driver.

The basic part numbers of the cameras are in the wiki.

The developers (so far) hang out on the various IRC channels  (there are Matrix/Telegram etc bridges) where real techy questions can be answered. There is also an unlisted developer specific channel (if your folk make suitable noises on the general Pinephone channel highly likely they will get an invite). Folks there can more accurately explain what does and does not exist so far.

{ I happen to have stumbled across it and do stalk there, mainly as I am in absolute awe of the folks doing the heavy lifting! I coded Fortran around 1975 and project managed software development in another life: I find today's open source tools & co-operations completely mind blowing - and have no real way of thanking the various PinePhone (and Linux and Phosh and ...) developers enough! }


RE: Can't find pinephone pro camera in terminal - TheRealThor - 04-01-2022

(04-01-2022, 04:09 AM)dukla2000 Wrote:
(03-31-2022, 08:56 PM)TheRealThor Wrote: ...
I have people who may be able to help me create one and I was wondering what information I should gather and take to them to get the ball rolling on creating a driver.

The basic part numbers of the cameras are in the wiki.

The developers (so far) hang out on the various IRC channels  (there are Matrix/Telegram etc bridges) where real techy questions can be answered. There is also an unlisted developer specific channel (if your folk make suitable noises on the general Pinephone channel highly likely they will get an invite). Folks there can more accurately explain what does and does not exist so far.

{ I happen to have stumbled across it and do stalk there, mainly as I am in absolute awe of the folks doing the heavy lifting! I coded Fortran around 1975 and project managed software development in another life: I find today's open source tools & co-operations completely mind blowing - and have no real way of thanking the various PinePhone (and Linux and Phosh and ...) developers enough! }
Fingers crossed I can get something created


RE: Can't find pinephone pro camera in terminal - henrythemouse - 05-10-2022

(04-01-2022, 11:16 PM)TheRealThor Wrote:
(04-01-2022, 04:09 AM)dukla2000 Wrote:
(03-31-2022, 08:56 PM)TheRealThor Wrote: ...
I have people who may be able to help me create one and I was wondering what information I should gather and take to them to get the ball rolling on creating a driver.
Fingers crossed I can get something created

Any luck on the camera drivers?


RE: Can't find pinephone pro camera in terminal - TheRealThor - 05-30-2022

dukla2000 how have you been,
So sorry it took me forever to get back to you. I found Linux drivers that have been written for the two cameras and I wasn't able to get the help with putting the drivers into the kernel, I did have a look at doing it myself but I don't have the time to learn the skills needed. Below are some links to the drivers, who where guys that do this sort of thing that you told me about on discord.

IMX258: Sony IMX258 sensor
https://cateee.net/lkddb/web-lkddb/VIDEO_IMX258.html
https://community.nxp.com/t5/i-MX-Processors/How-to-configure-custom-camera-MIPI-sensor-dts-on-IMX8MN/m-p/1416098/highlight/true
https://elixir.bootlin.com/linux/v5.18-rc1/source/drivers/media/i2c/imx258.c

Omnivision ov8858 sensor
https://cateee.net/lkddb/web-lkddb/VIDEO_OV8858.html
https://elixir.bootlin.com/linux/v4.15-rc6/source/drivers/staging/media/atomisp/i2c/ov8858.c
https://github.com/54shady/qop_kernel/blob/master/drivers/media/i2c/ov8858.c


RE: Can't find pinephone pro camera in terminal - dukla2000 - 05-31-2022

Thanks for those links, I will try pass them on.

In fact in the last 10 days or so there have been giant leaps in getting the PPP cameras into action, see Megi's blogs here.


RE: Can't find pinephone pro camera in terminal - magdesign - 06-01-2022

This are amazing news.

Anyone installed the new kernel and tested the cam app?

I tried with downloading the newest kernel 5.18 from manjaro with pacman, then the camera app from megi .
When trying to take a picture with:


Quote:./ppp-cam-202205291504-0.1 --gui --output /home/magdesign/Pictures/ --format jpg



It fails with:
Quote:ERROR: Failed to open entity imx258 1-001a: /dev/char/0:0


Is the camera not supported with kernel 5.18 installed via pacman, do I need to install the 5.18 kernel directly from megi.

Edit:
*****
Downloaded 5.18 kernel from megi, manually copied files to /boot and /lib, but I guess this is not how to install a kernel...


RE: Can't find pinephone pro camera in terminal - TheRealThor - 06-06-2022

(06-01-2022, 10:42 AM)magdesign Wrote: This are amazing news.

Anyone installed the new kernel and tested the cam app?

I tried with downloading the newest kernel 5.18 from manjaro with pacman, then the camera app from megi .
When trying to take a picture with:


Quote:./ppp-cam-202205291504-0.1 --gui --output /home/magdesign/Pictures/ --format jpg



It fails with:
Quote:ERROR: Failed to open entity imx258 1-001a: /dev/char/0:0


Is the camera not supported with kernel 5.18 installed via pacman, do I need to install the 5.18 kernel directly from megi.

Edit:
*****
Downloaded 5.18 kernel from megi, manually copied files to /boot and /lib, but I guess this is not how to install a kernel...

magdesign how are you,
How have you been going with the camera, I only just had the chance to git clone the software it and now I need to update the kernel and am quires to hear your thoughts