PinePhone Pro/IMX258 Camera Debugging problem
#1
I followed the command provided by the website[https://wiki.pine64.org/wiki/PinePhone_P..._Debugging] and ran.

Code:
"media-ctl" "-d" "platform:rkisp1" "-l" "'imx258 1-001a':0 -> 'rkisp1_isp':0 [1]"

return


Quote:Opening media device /dev/media0
Enumerating entities
looking up device: 81:8
looking up device: 81:9
looking up device: 81:10
looking up device: 81:2
looking up device: 81:3
looking up device: 81:6
looking up device: 81:7
looking up device: 81:11
looking up device: 81:12
Found 9 entities
Enumerating pads and links
no such entity "imx258 1-001a"
media_parse_setup_link: Unable to parse link

'imx258 1-001a':0 -> 'rkisp1_isp':0 [1]
  ^
Unable to parse link: Invalid argument (22)


run this command.
Code:
"v4l2-ctl" "-z" "platform:rkisp1" "-d" "rkisp1_selfpath" "--stream-mmap" "--stream-count" "1" "--verbose"


return


Quote:VIDIOC_QUERYCAP: ok

VIDIOC_REQBUFS returned 0 (Success)

VIDIOC_QUERYBUF returned 0 (Success)

VIDIOC_QUERYBUF returned 0 (Success)

VIDIOC_QUERYBUF returned 0 (Success)

VIDIOC_QUERYBUF returned 0 (Success)

VIDIOC_G_FMT returned 0 (Success)

VIDIOC_QBUF returned 0 (Success)

VIDIOC_QBUF returned 0 (Success)

VIDIOC_QBUF returned 0 (Success)

VIDIOC_QBUF returned 0 (Success)
VIDIOC_STREAMON returned -1 (Broken pipe)

My camera function is not working properly. 

system: Arch linux arm
Kernel:Linux 6.7.7-1-danctnix
  Reply
#2
The first error ("Unable to parse link") can happen on newer kernels because they introduce a new rkisp1_csi node in between the imx258 and ikisp1_isp (and so requesting a direct link no longer works).

The second error ("VIDIOC_STREAMON returned -1") is a symptom of the first: since the topology hasn't been configured properly, trying to start streaming over it won't work either.

I've updated the Wiki page you cite to give example commands that work for me on a 6.9 kernel.  Please see the page again, and hopefully the new version will help.

(Unfortunately, the rkisp1 driver seems to change frequently, so the example commands are rather fragile.  In general, deducing the correct commands for your particular driver version might require some interpretation of the "media-ctl -p" output.)
  Reply
#3
(10-13-2024, 09:46 AM)gtw Wrote: The first error ("Unable to parse link") can happen on newer kernels because they introduce a new rkisp1_csi node in between the imx258 and ikisp1_isp (and so requesting a direct link no longer works).

The second error ("VIDIOC_STREAMON returned -1") is a symptom of the first: since the topology hasn't been configured properly, trying to start streaming over it won't work either.

I've updated the Wiki page you cite to give example commands that work for me on a 6.9 kernel.  Please see the page again, and hopefully the new version will help.

(Unfortunately, the rkisp1 driver seems to change frequently, so the example commands are rather fragile.  In general, deducing the correct commands for your particular driver version might require some interpretation of the "media-ctl -p" output.)

perhaps this explains why snapshot has stopped working on alarm then? 6.9 kernel....
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  "USB access to SD" disappeared on a Pinephone Pro jebez 0 397 06-19-2026, 06:40 PM
Last Post: jebez
  what stopped pinephone pro? heocb 1 1,431 01-14-2026, 09:56 AM
Last Post: biketool
  PinePhone Pro: Camera App very laggy Martin87 3 5,558 08-22-2025, 11:23 PM
Last Post: teekay
  PinePhone Pro discontinued teekay 9 14,064 08-22-2025, 11:19 PM
Last Post: teekay
Exclamation Pinephone Pro wont boot to anything! Supervisor 5 3,506 08-18-2025, 06:15 PM
Last Post: KC9UDX
  Pinephone pro ee bricked? dennylee 3 2,720 07-22-2025, 12:06 AM
Last Post: Dendrocalamus64
  Full desktop Surfing and Absolute Privacy on the pinephone? Www 8 4,610 06-30-2025, 10:51 AM
Last Post: Dendrocalamus64
  Backing up data on Pinephone Pro to hard disk, optical disk and flash? Www 4 3,200 06-29-2025, 02:46 PM
Last Post: Dendrocalamus64
  Printing and scanning documents with pinephone? Www 4 3,226 06-29-2025, 11:48 AM
Last Post: biketool
  FM? A future new PinePhone? jebez 1 2,156 06-26-2025, 11:47 AM
Last Post: zetabeta

Forum Jump:


Users browsing this thread: 1 Guest(s)