Open junocomp opened 2 years ago
@hao-yao you think you can help me with this?
I replaced v4l2_async_register_subdev_sensor_common
to v4l2_async_register_subdev_sensor
line 1992
and not it almost builds everything. I am getting one tiny last error
$ make
make -C /lib/modules/5.19.8-1-MANJARO/build M=/home/juno/ipu6-drivers modules
make[1]: Entering directory '/usr/lib/modules/5.19.8-1-MANJARO/build'
CC [M] /home/juno/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu.o
CC [M] /home/juno/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu-bus.o
/home/juno/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu-bus.c:137:19: error: initialization of ‘void (*)(struct device *)’ from incompatible pointer type ‘int (*)(struct device *)’ [-Werror=incompatible-pointer-types]
137 | .remove = ipu_bus_remove,
| ^~~~~~~~~~~~~~
/home/juno/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu-bus.c:137:19: note: (near initialization for ‘ipu_bus.remove’)
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:249: /home/juno/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu-bus.o] Error 1
make[3]: *** [scripts/Makefile.build:466: /home/juno/ipu6-drivers/drivers/media/pci/intel/ipu6] Error 2
make[2]: *** [scripts/Makefile.build:466: /home/juno/ipu6-drivers/drivers/media/pci/intel] Error 2
make[1]: *** [Makefile:1847: /home/juno/ipu6-drivers] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.19.8-1-MANJARO/build'
make: *** [Makefile:17: all] Error 2
This branch only supports kernel 5.10. You can try master branch. Also it depends on the camera sensor you use, which may not supported here.
Is ov13858
supported on the master branch?
Is
ov13858
supported on the master branch?
OV13858 is currently not supported, as we have not validate it.
OV13858 is now part of Ubuntu's and Manjaro's kernel. I can add it to my modprobe list and it seems to find it when launching icamerasrc. I still get an error.
sudo -E gst-launch-1.0 icamerasrc device-name=ov13858-uf af-mode=2 ! video/x-raw,format=NV12,width=1280,height=720 ! videoconvert ! waylandsink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0: src pad: Internal data flow error.
Additional debug info:
gstcambasesrc.cpp(3143): gst_cam_base_src_loop (): /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.002479277
Setting pipeline to NULL ...
Freeing pipeline ...
I dont know what this means.
ERROR: from element /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0: src pad: Internal data flow error.
I hope that jasper lake and ov13858 will be supported.
@junocomp Did you add ov13858 to https://github.com/intel/ipu6-drivers/blob/e1f9c478882dfe213b1f08a0467abd2bfca11839/drivers/media/pci/intel/ipu-isys-bridge.c#L24 in order to get that far?
@brianmercer I didn't, but I will try your solution
It's not a solution. I just didn't get as far as you. I was asking if you'd made any changes.
I get this:
sudo -E gst-launch-1.0 icamerasrc device-name=ov13858-uf af-mode=2 '!' video/x-raw,format=NV12,width=1280,height=720 '!' videoconvert '!' waylandsink
WARNING: erroneous pipeline: could not set property "device-name" in element "camerasrc0" to "ov13858-uf"
gst-inspect-1.0 icamerasrc
doesn't show our camera as a valid value for device-name.
I haven't tried adding it yet.
I am trying right now, I will get back soon
Those icamera values might come from https://github.com/intel/ipu6-camera-hal/tree/2a7c9c263d2cb20335a2b3445d2b6e9f47f3dd10/config/linux/ipu6ep/sensors
I just tried now and I am still getting the same error.
@brianmercer did you managed to get it working yet on jasper lake?
Sorry, no.
It would be nice if we had some word that they plan to support jasper lake and ov13858.
Maybe @hao-yao can help with this.
I am getting pretty close to build the ipu6-drivers
from the jsl branch on kernel 6.1
.
I replaced the ov13858_intel.c
content from the kernel 6.1 branch
https://github.com/torvalds/linux/blob/master/drivers/media/i2c/ov13858.c
It now partially builds but it can't build ipu-bus.c
. I also noticed this file is not on the master branch.
If anyone know how to fix this, please let me know and I can continue to try to build it for jasperlake.
$ make -j4
make -C /lib/modules/6.1.0-0-amd64/build M=/home/debian/ipu6-drivers modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-0-amd64'
CC [M] /home/debian/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu.o
CC [M] /home/debian/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu-bus.o
CC [M] /home/debian/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu-dma.o
CC [M] /home/debian/ipu6-drivers/drivers/media/pci/intel/ipu6/ipu6.o
/home/debian/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu-bus.c:137:19: error: initialization of ‘void (*)(struct device *)’ from incompatible pointer type ‘int (*)(struct device *)’ [-Werror=incompatible-pointer-types]
137 | .remove = ipu_bus_remove,
| ^~~~~~~~~~~~~~
/home/debian/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu-bus.c:137:19: note: (near initialization for ‘ipu_bus.remove’)
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-6.1.0-0-common/scripts/Makefile.build:255: /home/debian/ipu6-drivers/drivers/media/pci/intel/ipu6/../ipu-bus.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-headers-6.1.0-0-common/scripts/Makefile.build:505: /home/debian/ipu6-drivers/drivers/media/pci/intel/ipu6] Error 2
make[2]: *** [/usr/src/linux-headers-6.1.0-0-common/scripts/Makefile.build:505: /home/debian/ipu6-drivers/drivers/media/pci/intel] Error 2
make[1]: *** [/usr/src/linux-headers-6.1.0-0-common/Makefile:2017: /home/debian/ipu6-drivers] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-0-amd64'
make: *** [Makefile:17: all] Error 2
Any updates on jasper lake, did anyone managed to get it working?
I am currently running Kernel 5.19 (Debian) and I pulled the jsl_penguin_peak branch. I am not sure if the errors are related to my kernel or my board, but this is the error I am getting.