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
Information Fix PinePhone Pro when unable to boot due to drained battery butjar 8 8,979 03-13-2025, 08:40 PM
Last Post: pcb
  New PinePhone Pro. No sudo command or access to root password. DanNewman 4 1,085 03-01-2025, 06:38 PM
Last Post: Kevin Kofler
  PinePhone Pro Review tmoj 4 5,562 02-20-2025, 12:45 AM
Last Post: biketool
  Feedback from unboxing a new PinePhone Pro (cc: Pine64) teekay 0 581 02-08-2025, 01:37 AM
Last Post: teekay
  PinePhone Pro silver lining, it’s fast, real damn fast ashoka232 6 3,480 12-23-2024, 02:42 PM
Last Post: biketool
  PinePhone Pro Black Screen CrimsenRaven 3 2,406 11-13-2024, 09:33 PM
Last Post: twentyslimy
  Having difficulty installing PostmarketOS on Pinephone Convergence Beta edition spazz 13 3,286 10-17-2024, 03:28 PM
Last Post: fhilliard41
  PinePhone doesn't boot anymore lapin 3 1,442 09-13-2024, 10:09 AM
Last Post: lapin
  New PinePhone Pro fails... P. Siera 5 2,482 08-01-2024, 04:56 AM
Last Post: P. Siera
  A way to view or log the splash screen on Pinephone Pro running ArchLinux (Danctnix) PHLEMON 4 2,304 07-30-2024, 11:03 PM
Last Post: PHLEMON

Forum Jump:


Users browsing this thread: 1 Guest(s)