-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISP1 Pipeline error #32
Comments
What is the output: where I think it should be: ov4689 1-0036 |
&
I have been digging through the isp drivers to figure out what these errors could mean. The camera + isp gets routed in this case to video6 and video7. When trying to start a stream from either of these I get -32 for video6 and -67 for video7 |
Here is the device tree. |
I have verified the camera connection using an v4.4 image and it is working correctly. I am referring to things as they are found in the schematic. So my camera is going to CSI_1 / MIPI_TX1/RX1 Also the ov4689 is detected properly in the bootlog. |
media-ctl -d /dev/media2 -p |
On reboot it moves sometimes.
&
|
I don't see anything wrong, despite the 2-0036. I can only suggest you try this one:
Or use the pre-built image I provided in "Releases" if you have nanopim4 (not the v2).
and if the sensor is connected to CSI-1:
|
Okay, ill try it out and report back. I tried booting this image in the past on a platform that is identical to the nanopi-m4 however it has emmc attached. For some reason it would always boot from emmc anyway. I can probably sort that out. |
You can remove the eMMC and give it a try. Or, edit boot.cmd and place the correct device number to boot in:
Maybe with eMMC the device number changed... |
PS: Rockchip gives priority to eMMC over microSD when booting... something you should know. |
I was able to boot the image and correctly link the device trees. I inspected the user space after reboot as well to make sure it loaded the correct device tree. This error still exits when using the camera on either CSI1 or CSI0. The attached log is testing with CSI0 and ISP0. I also verified that the camera does work with 4.4.y and 4.19 so im guessing the hardware is okay. My next line of thinking could be that the clocks maybe |
Is there a script for writing the sd image to emmc? I saw the Kodi one but it didnt look like it would work for this image. Thanks. |
Are you trying with dual camera?
Again, is your camera w/IR cut? |
I was using the dual camera dts but only ever had one camera attached. I have a development board that gives me access to CSI0 but I am trying to get CSI1 working with the sensor. Could it be that if ISP0 and CSI0 are enabled but unused that CSI1 will not work? |
It only works with CSI1 (single camera) and CSI1 slot is your CSI0 (in DTS). In the provided Image you should have camera attached to CSI1, exactly as the Image. And: sudo ln -sf nanopi-m4.dtb_5.11.0_csi1-ov4689 dtb The instructions to write to the eMMC are the same as 4.4, only change would be the boot.cmd (device number changed from 4.4) due to u-boot version. |
Thanks again for all the help so far. I am still working on getting it to boot eMMC so I can test a the correct camera lane on my platform. I was looking at the device tree for CSI1 and I noticed that the MIPI interfaces are disabled. I am wondering if some of my problems earlier could have been routed here. If using ISP do these need to be disabled? I know with the newer rkisp structure you dont need to create the camera->mipi link anymore, maybe this is related. |
Must be enabled: &isp0_mmu { &isp0 { |
Can you link where you found this info for the mainline kernel? Kernel 4.4 and 4.19 this may be true, you can use v4l2 straight. |
https://www.kernel.org/doc/html/latest/admin-guide/media/rkisp1.html It would be very weird if this was the case that ISP1 could only be used if ISP0 was already used. Also I should clarify my setup as well. ov4689 -> CSI_1 (CSI1 on the chip level not the board labeling). -> ISP1 Also for some background I am working on putting support into Armbian for the second camera sensor on the RK3399 boards for when Armbian moves to 5.11. I'm using this build as the reference and 4.4 to check that the hardware is okay. |
When testing out the camera I get some errors in kernel log. I am working with 5.11
I have an ov4689 connected to CSI1
and the error I see is
[ 5500.322202] rkisp1 ff920000.isp1: start pipeline failed -32
[ 5509.280513] rkisp1 ff920000.isp1: start pipeline failed -67
The text was updated successfully, but these errors were encountered: