Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5048

Interfacing (DSI, CSI, I2C, etc.) • Re: MIPI CSI2 device driver for 1D iamge sensor

$
0
0
Hi, 6by9,

I tried to get raw streams from imx708 (Raspberry pi camera v3).
I reinstalled latest Raspberry Pi OS (bookworm) to Pi4, then I tried to get raw streams.

Code:

uname -aLinux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux

I changed config.txt.
(camera_auto_detect=0, dtoverlay=imx708, media-controller=0)

Code:

# For more options and information see# http://rptl.io/configtxt# Some settings may impact device functionality. See link above for details# Uncomment some or all of these to enable the optional hardware interfaces#dtparam=i2c_arm=on#dtparam=i2s=on#dtparam=spi=on# Enable audio (loads snd_bcm2835)dtparam=audio=on# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected camerascamera_auto_detect=0# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3ddtoverlay=imx708media-controller=0max_framebuffers=2# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscandisable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.otg_mode=1[cm5]dtoverlay=dwc2,dr_mode=host[all]
I rebooted Pi, but libcamera still worked, and I was not able to get streams.
I tried this command.

Code:

v4l2-ctl --stream-mmap=3 --stream-count=10 --stream-to=foo.raw12
dmesg

Code:

[ 2469.324457] WARNING: CPU: 2 PID: 1998 at drivers/media/mc/mc-entity.c:920 __media_pipeline_stop+0xd0/0xf0 [mc][ 2469.324539] Modules linked in: rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device cmac algif_hash aes_arm64 aes_generic algif_skcipher af_alg bnep brcmfmac_wcc brcmfmac hci_uart brcmutil btbcm bluetooth cfg80211 binfmt_misc imx708 dw9807_vcm bcm2835_isp(C) bcm2835_codec(C) bcm2835_v4l2(C) ecdh_generic bcm2835_unicam ecc rpivid_hevc(C) v4l2_dv_timings v4l2_fwnode v4l2_async raspberrypi_hwmon v4l2_mem2mem bcm2835_mmal_vchiq(C) rfkill videobuf2_vmalloc videobuf2_dma_contig libaes videobuf2_memops videobuf2_v4l2 videodev vc_sm_cma(C) videobuf2_common snd_bcm2835(C) raspberrypi_gpiomem joydev mc nvmem_rmem uio_pdrv_genirq uio i2c_dev fuse dm_mod ip_tables x_tables ipv6 vc4 snd_soc_hdmi_codec drm_display_helper cec drm_dma_helper v3d gpu_sched drm_kms_helper drm_shmem_helper i2c_brcmstb drm i2c_mux_pinctrl i2c_mux drm_panel_orientation_quirks i2c_bcm2835 snd_soc_core snd_compress snd_pcm_dmaengine snd_pcm snd_timer snd backlight[ 2469.324962] CPU: 2 PID: 1998 Comm: v4l2-ctl Tainted: G        WC         6.6.31+rpt-rpi-v8 #1  Debian 1:6.6.31-1+rpt1[ 2469.324979] Hardware name: Raspberry Pi 4 Model B Rev 1.5 (DT)[ 2469.324987] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)[ 2469.325001] pc : __media_pipeline_stop+0xd0/0xf0 [mc][ 2469.325053] lr : media_pipeline_stop+0x34/0x58 [mc][ 2469.325102] sp : ffffffc08307b9e0[ 2469.325109] x29: ffffffc08307b9e0 x28: ffffff81018387f8 x27: 0000000000000009[ 2469.325134] x26: 0000000000000001 x25: 0000007fa52efe10 x24: ffffff8101838600[ 2469.325158] x23: ffffff8105a4f880 x22: ffffff8102ae4508 x21: ffffff8102ae4798[ 2469.325180] x20: ffffff8102ae4bd0 x19: 0000000000000000 x18: ffffffc08307bb08[ 2469.325201] x17: 0000000000000000 x16: ffffffe03e3020c0 x15: 0000007fa56e0000[ 2469.325223] x14: 000000000000000c x13: 0000000000000000 x12: ffffff810285b800[ 2469.325244] x11: 0000000000000163 x10: 0000000000001a30 x9 : ffffffdff9867144[ 2469.325266] x8 : ffffff8101839a90 x7 : 0000000000000001 x6 : 0000000000000001[ 2469.325287] x5 : 00000000410fd080 x4 : 0000000000000000 x3 : 0000000000000000[ 2469.325308] x2 : ffffff8101838000 x1 : 0000000000000000 x0 : ffffff8102ae4bd0[ 2469.325329] Call trace:[ 2469.325337]  __media_pipeline_stop+0xd0/0xf0 [mc][ 2469.325386]  media_pipeline_stop+0x34/0x58 [mc][ 2469.325433]  unicam_stop_streaming+0x88/0x178 [bcm2835_unicam][ 2469.325463]  __vb2_queue_cancel+0x38/0x2a0 [videobuf2_common][ 2469.325510]  vb2_core_queue_release+0x2c/0x60 [videobuf2_common][ 2469.325553]  _vb2_fop_release+0x88/0xb0 [videobuf2_v4l2][ 2469.325590]  unicam_v4l2_release+0x58/0xe8 [bcm2835_unicam][ 2469.325616]  v4l2_release+0xec/0x100 [videodev][ 2469.325735]  __fput+0xbc/0x288[ 2469.325752]  ____fput+0x18/0x30[ 2469.325764]  task_work_run+0x80/0xe0[ 2469.325780]  do_exit+0x30c/0x988[ 2469.325791]  do_group_exit+0x3c/0xa0[ 2469.325801]  get_signal+0x980/0x9b0[ 2469.325814]  do_notify_resume+0x15c/0x1370[ 2469.325826]  el0_svc+0xd8/0xe8[ 2469.325844]  el0t_64_sync_handler+0x100/0x130[ 2469.325860]  el0t_64_sync+0x190/0x198[ 2469.325872] ---[ end trace 0000000000000000 ]---[ 2469.325887] unicam fe801000.csi: Runtime PM usage count underflow!
Is there any settings to use unicam? or my config.txt is wrong?
Thanks,

Statistics: Posted by Koyuki — Wed Oct 02, 2024 6:45 am



Viewing all articles
Browse latest Browse all 5048

Trending Articles