Why `v4l2-ctl -d /dev/video1 --list-formats-ext` repeat the same format nine times and shows no resolutions on `imx6 + ov5640`?

Running the sudo v4l2-ctl -d /dev/video1 --all command on Apalis iMX6 we got the following output:

ioctl: VIDIOC_ENUM_FMT
	Index       : 0
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 

	Index       : 1
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 

	Index       : 2
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 

	Index       : 3
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 

	Index       : 4
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 

	Index       : 5
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 

	Index       : 6
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 

	Index       : 7
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 

	Index       : 8
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 
		Size: Unknown 

Here in our lab, we have 3 more devices (notebooks, USB cameras on Desktops) with cameras under v4l2 drivers and all of then returns complete lists of formats.

There is something missing/wrong in the v4l2-ctl execution?

hi @rogersguedes

Could you provide the version of the bsp ( uname -a ) of your module? Did you make any changes to the Software/kernel?

How did you connect the camera module to the Ixora Board?

Please share also the complete dmesg log when you start the module with connected camera module?

Thanks and best regards, Jaski

Hi, @jaski.

Could you provide the version of the bsp ( uname -a ) of your module?

$ uname -a
Linux Rogers-OptiPlex-3050 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Did you make any changes to the Software/kernel?

No.

How did you connect the camera module to the Ixora Board?

Through the MIPI-CSI connector (designator X28).

Please share also the complete dmesg log when you start the module with connected camera module?

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.44-2.7.4+gb1555bf (yocto@45574f02061f) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 SMP Wed Oct 4 22:39:51 UTC 2017
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Toradex Apalis iMX6Q/D Module on Ixora V1.1 Carrier Board
[    0.000000] Reserved memory: created CMA memory pool at 0x3c000000, size 320 MiB
[    0.000000] Reserved memory: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat 8095adc0, node_mem_map ab757000
[    0.000000]   Normal zone: 2048 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 262144 pages, LIFO batch:31
[    0.000000] PERCPU: Embedded 12 pages/cpu @ab700000 s16588 r8192 d24372 u49152
[    0.000000] pcpu-alloc: s16588 r8192 d24372 u49152 alloc=12*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
[    0.000000] Kernel command line: enable_wait_mode=off vmalloc=400M ip=off root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait fec_mac=00:14:2d:4d:45:57 consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 mxc_hdmi.only_cea=1 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 700860K/1048576K available (6751K kernel code, 239K rwdata, 2224K rodata, 332K init, 421K bss, 20036K reserved, 327680K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
[    0.000000]       .text : 0x80008000 - 0x808cc0bc   (8977 kB)
[    0.000000]       .init : 0x808cd000 - 0x80920000   ( 332 kB)
[    0.000000]       .data : 0x80920000 - 0x8095bf20   ( 240 kB)
[    0.000000]        .bss : 0x8095bf20 - 0x809c56a0   ( 422 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C-310 erratum 769419 enabled
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 16 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001
[    0.000000] mxc_clocksource_init 3000000
[    0.000000] Switching to timer-based delay loop, resolution 333ns
[    0.000006] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[    0.000023] clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[    0.001109] Console: colour dummy device 80x30
[    0.001700] console [tty1] enabled
[    0.001725] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.001762] pid_max: default: 32768 minimum: 301
[    0.001866] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001891] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002458] Initializing cgroup subsys freezer
[    0.002494] Initializing cgroup subsys debug
[    0.002528] CPU: Testing write buffer coherency: ok
[    0.002840] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002946] Setting up static identity map for 0x10008280 - 0x100082d8
[    0.004761] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.005388] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.006021] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.006093] Brought up 4 CPUs
[    0.006168] SMP: Total of 4 processors activated (24.00 BogoMIPS).
[    0.006188] CPU: All CPU(s) started in SVC mode.
[    0.006670] devtmpfs: initialized
[    0.019872] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.020278] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.020333] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.039069] pinctrl core: initialized pinctrl subsystem
[    0.040241] NET: Registered protocol family 16
[    0.048343] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.069694] cpuidle: using governor ladder
[    0.099689] cpuidle: using governor menu
[    0.099970] CPU identified as i.MX6Q, silicon rev 1.5
[    0.124644] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.124688] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.125682] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.127242] imx-gpc 20dc000.gpc: no fsl,ldo-bypass found!
[    0.136635] usb_host_vbus: supplied by usb_host_vbus_hub
[    0.136966] vgaarb: loaded
[    0.137729] SCSI subsystem initialized
[    0.137929] libata version 3.00 loaded.
[    0.138235] usbcore: registered new interface driver usbfs
[    0.138324] usbcore: registered new interface driver hub
[    0.138426] usbcore: registered new device driver usb
[    0.139108] i2c-gpio i2c@0: using pins 80 (SDA) and 62 (SCL)
[    0.140013] i2c i2c-1: IMX I2C adapter registered
[    0.140047] i2c i2c-1: can't use DMA
[    0.141577] stmpe-i2c 2-0041: stmpe811 detected, chip id: 0x811
[    0.143484] i2c i2c-2: IMX I2C adapter registered
[    0.143518] i2c i2c-2: can't use DMA
[    0.144232] i2c i2c-3: IMX I2C adapter registered
[    0.144267] i2c i2c-3: can't use DMA
[    0.144425] Linux video capture interface: v2.00
[    0.144498] pps_core: LinuxPPS API ver. 1 registered
[    0.144520] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.144572] PTP clock support registered
[    0.159739] imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
[    0.179734] imx-ipuv3 2800000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
[    0.180644] mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed ipu0 csi1
[    0.180689] mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
[    0.180797] MIPI CSI2 driver module loaded
[    0.180998] Advanced Linux Sound Architecture Driver Initialized.
[    0.182661] Switched to clocksource mxc_timer1
[    0.193498] NET: Registered protocol family 2
[    0.194263] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.194365] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.194501] TCP: Hash tables configured (established 8192 bind 8192)
[    0.194590] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.194644] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.194862] NET: Registered protocol family 1
[    0.195172] RPC: Registered named UNIX socket transport module.
[    0.195199] RPC: Registered udp transport module.
[    0.195217] RPC: Registered tcp transport module.
[    0.195236] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.195269] PCI: CLS 0 bytes, default 64
[    0.195952] CPU PMU: Failed to parse /soc/pmu/interrupt-affinity[0]
[    0.196021] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.197715] Bus freq driver module loaded
[    0.204802] VFS: Disk quotas dquot_6.6.0
[    0.205009] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.206571] NFS: Registering the id_resolver key type
[    0.206624] Key type id_resolver registered
[    0.206645] Key type id_legacy registered
[    0.206683] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.207210] ntfs: driver 2.1.32 [Flags: R/W].
[    0.207686] fuse init (API version 7.23)
[    0.211695] io scheduler noop registered
[    0.211737] io scheduler deadline registered
[    0.211918] io scheduler cfq registered (default)
[    0.214247] backlight supply power not found, using dummy regulator
[    0.215842] MIPI DSI driver module loaded
[    0.217237] 20e0000.hdmi_video supply HDMI not found, using dummy regulator
[    0.218746] mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0xa:0xa0:0xc1
[    0.218805] fbcvt: 1920x1080@60: CVT Name - 2.073M9
[    0.218932] mxc_sdc_fb fb@0: registered mxc display driver hdmi
[    0.234020] mxc_sdc_fb fb@0: 1920x1080 h_sync,r,l: 44,88,148  v_sync,l,u: 5,4,36 pixclock=148500000 Hz
[    0.252747] imx-ipuv3 2400000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
[    0.286624] mxc_sdc_fb fb@0: 1920x1080 h_sync,r,l: 44,88,148  v_sync,l,u: 5,4,36 pixclock=148500000 Hz
[    0.324254] Console: switching to colour frame buffer device 240x67
[    0.359419] mxc_sdc_fb fb@1: mxcfb1 is turned off!
[    0.359575] mxc_sdc_fb fb@2: mxcfb2 is turned off!
[    0.359720] mxc_sdc_fb fb@3: mxcfb3 is turned off!
[    0.361170] imx-sdma 20ec000.sdma: no iram assigned, using external mem
[    0.361608] imx-sdma 20ec000.sdma: no event needs to be remapped
[    0.361941] imx-sdma 20ec000.sdma: loaded firmware 3.3
[    0.364639] imx-sdma 20ec000.sdma: initialized
[    0.366373] pfuze100-regulator 2-0008: Full layer: 2, Metal layer: 1
[    0.367092] pfuze100-regulator 2-0008: FAB: 0, FIN: 0
[    0.367191] pfuze100-regulator 2-0008: pfuze100 found.
[    0.381965] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 26, base_baud = 5000000) is a IMX
[    1.250950] console [ttymxc0] enabled
[    1.255582] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 301, base_baud = 5000000) is a IMX
[    1.264995] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 302, base_baud = 5000000) is a IMX
[    1.274377] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 303, base_baud = 5000000) is a IMX
[    1.284069] [drm] Initialized drm 1.1.0 20060810
[    1.289167] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[    1.303367] brd: module loaded
[    1.311558] loop: module loaded
[    1.315939] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[    1.324038] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[    1.332188] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[    1.340528] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[    1.351713] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[    1.358864] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    1.367827] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst 
[    1.378440] scsi host0: ahci-imx
[    1.382053] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 313
[    1.392179] spi_imx 2008000.ecspi: probed
[    1.397176] vcan: Virtual CAN interface driver
[    1.401718] CAN device driver interface
[    1.410648] 2090000.flexcan supply xceiver not found, using dummy regulator
[    1.423387] flexcan 2090000.flexcan: device registered (reg_base=c0a98000, irq=35)
[    1.436102] 2094000.flexcan supply xceiver not found, using dummy regulator
[    1.448809] flexcan 2094000.flexcan: device registered (reg_base=c0aa0000, irq=36)
[    1.462527] 2188000.ethernet supply phy not found, using dummy regulator
[    1.493064] pps pps0: new PPS source ptp0
[    1.503413] libphy: fec_enet_mii_bus: probed
[    1.514450] fec 2188000.ethernet eth0: registered PHC device 0
[    1.525691] usbcore: registered new interface driver asix
[    1.536209] usbcore: registered new interface driver ax88179_178a
[    1.547369] usbcore: registered new interface driver cdc_ether
[    1.558277] usbcore: registered new interface driver net1080
[    1.568940] usbcore: registered new interface driver cdc_subset
[    1.579808] usbcore: registered new interface driver zaurus
[    1.590340] usbcore: registered new interface driver cdc_ncm
[    1.600837] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.612257] ehci-pci: EHCI PCI platform driver
[    1.621668] ehci-mxc: Freescale On-Chip EHCI Host driver
[    1.632079] usbcore: registered new interface driver usb-storage
[    1.643143] usbcore: registered new interface driver usbserial
[    1.653897] usbcore: registered new interface driver usbserial_generic
[    1.665235] usbserial: USB Serial support registered for generic
[    1.676040] usbcore: registered new interface driver ftdi_sio
[    1.686568] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.698698] usbcore: registered new interface driver pl2303
[    1.709073] usbserial: USB Serial support registered for pl2303
[    1.720980] 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
[    1.732701] ata1: SATA link down (SStatus 0 SControl 300)
[    1.732742] ahci-imx 2200000.sata: no device found, disabling link.
[    1.732749] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
[    1.777502] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    1.787037] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[    1.812699] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    1.823666] hub 1-0:1.0: USB hub found
[    1.832117] hub 1-0:1.0: 1 port detected
[    1.841743] mousedev: PS/2 mouse device common for all mice
[    1.860880] input: stmpe-ts as /devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-2/2-0041/stmpe-ts/input/input0
[    1.879593] rtc-ds1307 1-0068: rtc core: registered m41t0 as rtc0
[    1.891198] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc1
[    1.905026] i2c /dev entries driver
[    1.914838] mxc_v4l2_output v4l2_out: V4L2 device registered as video16
[    1.926645] mxc_v4l2_output v4l2_out: V4L2 device registered as video17
[    1.939601] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    1.950661] sdhci: Secure Digital Host Controller Interface driver
[    1.961777] sdhci: Copyright(c) Pierre Ossman
[    1.971092] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.982587] /soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified
[    1.994761] sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
[    2.006266] sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
[    2.062814] mmc1: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[    2.075674] /soc/aips-bus@02100000/usdhc@02198000: voltage-ranges unspecified
[    2.088265] sdhci-esdhc-imx 2198000.usdhc: No vqmmc regulator found
[    2.142691] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[    2.160312] mxc_vpu 2040000.vpu_fsl: VPU initialized
[    2.170428] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[    2.182501] mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
[    2.198004] caam 2100000.caam: Entropy delay = 3200
[    2.226965] mmc0: MAN_BKOPS_EN bit is not set
[    2.255774] mmc0: new DDR MMC card at address 0001
[    2.265959] mmcblk0: mmc0:0001 004GE0 3.69 GiB 
[    2.268783] caam 2100000.caam: Instantiated RNG4 SH0
[    2.285589] mmcblk0boot0: mmc0:0001 004GE0 partition 1 2.00 MiB
[    2.296650] mmcblk0boot1: mmc0:0001 004GE0 partition 2 2.00 MiB
[    2.321177]  mmcblk0: p1 p2
[    2.329545] caam 2100000.caam: Instantiated RNG4 SH1
[    2.339386] caam 2100000.caam: device ID = 0x0a16010000000000 (Era -524)
[    2.350932] caam 2100000.caam: job rings = 2, qi = 0
[    2.438320] caam algorithms registered in /proc/crypto
[    2.443868] hub 1-1:1.0: USB hub found
[    2.443944] hub 1-1:1.0: 4 ports detected
[    2.469641] caam_jr 2101000.jr0: registering rng-caam
[    2.480283] snvs-secvio 20cc000.caam-snvs: can't get snvs clock
[    2.491100] snvs-secvio 20cc000.caam-snvs: violation handlers armed - non-secure state
[    2.504160] hidraw: raw HID events driver (C) Jiri Kosina
[    2.514695] usbcore: registered new interface driver usbhid
[    2.525265] usbhid: USB HID core driver
[    2.539510] stmpe-adc stmpe-adc: Initialized
[    2.551121] sgtl5000 2-000a: sgtl5000 revision 0x11
[    2.722315] imx-sgtl5000 sound: sgtl5000 <-> 2028000.ssi mapping ok
[    2.736034] imx-spdif sound-spdif: snd-soc-dummy-dai <-> 2004000.spdif mapping ok
[    2.751442] imx-audio-hdmi sound-hdmi: hdmi-hifi <-> soc:hdmi_audio@00120000 mapping ok
[    2.766029] NET: Registered protocol family 10
[    2.776630] NET: Registered protocol family 17
[    2.786267] can: controller area network core (rev 20120528 abi 9)
[    2.797667] NET: Registered protocol family 29
[    2.807252] can: raw protocol (rev 20120528)
[    2.816599] can: broadcast manager protocol (rev 20120528 t)
[    2.827348] can: netlink gateway (rev 20130117) max_hops=1
[    2.838357] Key type dns_resolver registered
[    2.849438] Registering SWP/SWPB emulation handler
[    2.860257] 1ffc000.pcie supply pcie-bus not found, using dummy regulator
[    3.278508] imx6q-pcie 1ffc000.pcie: phy link never came up
[    3.288142] imx6q-pcie 1ffc000.pcie: failed to initialize host
[    3.298096] imx6q-pcie: probe of 1ffc000.pcie failed with error -22
[    3.310660] input: gpio-keys as /devices/soc0/gpio-keys/input/input1
[    3.322649] rtc-ds1307 1-0068: setting system clock to 2018-12-12 14:29:46 UTC (1544624986)
[    3.343118] usb_otg_vbus: disabling
[    3.350913] ALSA device list:
[    3.357901]   #0: imx6q-apalis-sgtl5000
[    3.365659]   #1: imx-spdif
[    3.372280]   #2: imx-hdmi-soc
[    3.392219] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.404411] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.418484] devtmpfs: mounted
[    3.425698] Freeing unused kernel memory: 332K
[    3.526869] random: systemd urandom read with 14 bits of entropy available
[    3.541520] systemd[1]: systemd 230 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ +LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD +IDN)
[    3.564208] systemd[1]: Detected architecture arm.
[    3.593491] systemd[1]: Set hostname to <apalis-imx6>.
[    3.772268] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.802832] systemd[1]: Reached target Remote File Systems.
[    3.832986] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.863125] systemd[1]: Created slice System Slice.
[    3.893070] systemd[1]: Created slice system-getty.slice.
[    3.923444] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    3.973211] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    4.013491] systemd[1]: Listening on Network Service Netlink Socket.
[    4.053004] systemd[1]: Reached target Swap.
[    4.083083] systemd[1]: Listening on udev Kernel Socket.
[    4.113199] systemd[1]: Listening on udev Control Socket.
[    4.143416] systemd[1]: Created slice User and Session Slice.
[    4.172990] systemd[1]: Reached target Slices.
[    4.203310] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    4.242962] systemd[1]: Reached target Paths.
[    4.292006] systemd[1]: Listening on Journal Socket.
[    4.330039] systemd[1]: Starting Load Kernel Modules...
[    4.363015] Galcore version 5.0.11.41671
[    4.365021] systemd[1]: Mounting Debug File System...
[    4.406908] systemd[1]: Mounting Temporary Directory...
[    4.446738] systemd[1]: Starting Export GPIOs to user space...
[    4.487009] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    4.517376] systemd[1]: Starting Journal Service...
[    4.557507] systemd[1]: Starting Setup Virtual Console...
[    4.596613] systemd[1]: Starting File System Check on Root Device...
[    4.637097] systemd[1]: Mounted Debug File System.
[    4.649380] systemd[1]: Mounted Temporary Directory.
[    4.663595] systemd[1]: Started Journal Service.
[    4.747225] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    4.982579] systemd-journald[194]: Received request to flush runtime journal from PID 1
[    5.444557] adv7280 3-0021: chip found @ 0x42 (21a8000.i2c)
[    5.456336] adv7280 3-0021: no sensor pwdn pin available
[    5.483313] adv7280 3-0021: adv7280_probe:Analog Device adv7280 not detected -5!
[    5.520915] max9526 3-0020: Device seems not to be a MAX9526
[    5.544536] /soc/aips-bus@02100000/i2c@021a8000/ov5640_mipi@3c: arguments longer than property
[    5.883727] mxc_v4l2_master_attach: ipu0:/csi1 parallel attached ov564x_mipi:mxc_v4l2_cap1
[    5.896689] camera ov5640_mipi is found
[    6.018031] ERROR: v4l2 capture: slave not found! V4L2_CID_HUE
[    6.161978] using random self ethernet address
[    6.171267] using random host ethernet address
[    6.179342] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    6.410271] usb0: HOST MAC 00:14:2d:ff:ff:fe
[    6.421313] usb0: MAC 00:14:2d:ff:ff:ff
[    6.533749] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[    6.653591] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=2188000.ethernet:07, irq=69)
[    6.671804] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.718629] ov5640_set_virtual_channel: virtual channel=1
[    7.031093] mxc_sdc_fb fb@0: 1920x1080 h_sync,r,l: 44,88,148  v_sync,l,u: 5,4,36 pixclock=148500000 Hz
[    7.081593] mxc_sdc_fb fb@0: 1920x1080 h_sync,r,l: 44,88,148  v_sync,l,u: 5,4,36 pixclock=148500000 Hz
[    7.126605] mxc_sdc_fb fb@0: 1920x1080 h_sync,r,l: 44,88,148  v_sync,l,u: 5,4,36 pixclock=148500000 Hz
[    7.177012] mxc_sdc_fb fb@0: 1920x1080 h_sync,r,l: 44,88,148  v_sync,l,u: 5,4,36 pixclock=148500000 Hz
[    7.556012] mxc_sdc_fb fb@0: 1920x1080 h_sync,r,l: 44,88,148  v_sync,l,u: 5,4,36 pixclock=148500000 Hz
[    8.272495] random: nonblocking pool is initialized
[   10.166338] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   10.174147] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.439290] ci_hdrc ci_hdrc.0: Device No Response
[  204.145512] ov5640_set_virtual_channel: virtual channel=1
[  204.502018] YUV420
[ 8532.535891] ov5640_set_virtual_channel: virtual channel=1
[ 8532.899700] YUV420

hi
Thanks for the log.

$ uname -a
Linux Rogers-OptiPlex-3050 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 >UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I meant the Bsp version of the module and not your host. But as I can see in the dmesg log, you are using Bsp2.7b4. This Bsp is not supported anymore. Please update to Bsp 2.8b4 as your earliest convenience.

I tried the command v4l2-ctl -d /dev/video2 --all and i got the the following output:

[   66.520935] ov5640_set_virtual_channel: virtual channel=1
Driver Info (not using libv4l2):
        Driver name   : mxc_v4l2
        Card type     :
        Bus info      :
        Driver version: 0.1.11
        Capabilities  : 0x05000005
                Video Capture
                Video Overlay
                Read/Write
                Streaming
Video input : 0 (CSI IC MEM: ok)
Video output: 0 (DISP3 BG)
Video Standard = 0x00000000
Format Video Capture:
        Width/Height      : 288/352
        Pixel Format      : 'YU12'
        Field             : Any
        Bytes per Line    : 432
        Size Image        : 152064
        Colorspace        : Default
        Transfer Function : Default
        YCbCr/HSV Encoding: Default
        Quantization      : Default
Format Video Overlay:
        Left/Top    : 0/0
        Width/Height: 160/160
        Field       : Any
        Chroma Key  : 0x00000000
        Global Alpha: 0x00
        Clip Count  : 0
        Clip Bitmap : No
Framebuffer Format:
        Capability    : Extern Overlay
        Flags         : Overlay Matches Capture/Output Size
        Width         : 0
        Height        : 0
        Pixel Format  : ''
Crop Capability Video Capture:
        Bounds      : Left 0, Top 0, Width 640, Height 480
        Default     : Left 0, Top 0, Width 640, Height 480
        Pixel Aspect: 0/0
Crop: Left 0, Top 0, Width 640, Height 480
Streaming Parameters Video Capture:
        Capabilities     : timeperframe
        Frames per second: 30.000 (30/1)
        Read buffers     : 0

Hi, @jaski.

We have updated the O.S. on our Apalis iMX6 to BSP version 2.8, following this tutorials: link text and link text.

Could you provide the version of the bsp ( uname -a ) of your module?

stdout for the uname -a on Apalis module S.O.:

$ uname -a
Linux apalis-imx6 4.9.87-2.8.4+g3bb6e3284a1b #1 SMP Mon Dec 17 15:22:49 UTC 2018 armv7l GNU/Linux

Follows some additional info to help us.

  1. Current dmesg log: link text
  2. stdout for sudo v4l2-ctl -d /dev/video0 --all: link text
  3. stdout for sudo v4l2-ctl -d /dev/video1 --all: link text
  4. stdout for sudo v4l2-ctl -d /dev/video16 --all: link text
  5. stdout for sudo v4l2-ctl -d /dev/video17 --all: link text

Thanks in advance.
Regards

Thanks for the Input. So what exactly is the issue now?

  1. The command sudo v4l2-ctl -d /dev/video1 --all still not returning correct frame formats and their resolutions.
  2. Using C ioctl VIDIOC_ENUM_FRAMESIZES, we get all this frame sizes: {176x144, 320x240, 640x480, 720x480, 720x576, 1024x768, 1280x720, 1920x1080, 2592x1944}. But when trying to capture, the maximum resolution with a legible image was 1024x768. The code is hosted on bitbucket: link text.
  3. When trying to use this gstreamer pipeline we got the following error:

pipeline

gst-launch-1.0 \
    imxv4l2src \
        device=/dev/video1 \
        num-buffers=50 \
    ! videorate \
    ! "video/x-raw,format=(string)UYVY,width=(int)1024,height=(int)768,framerate=(fraction)15/1" \
    ! videoconvert \
    ! queue \
    ! timeoverlay \
        valignment=bottom \
        text="Stream time:" \
        shaded-background=true font-desc="Sans, 32" \
    ! jpegenc \
    ! avimux \
    ! filesink location=test.avi

output

====== IMXV4L2SRC: 4.3.4 build on Dec 17 2018 18:50:46. ======
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

(gst-launch-1.0:883): GStreamer-CRITICAL **: gst_buffer_iterate_meta: assertion 'buffer != NULL' failed

(gst-launch-1.0:883): GStreamer-CRITICAL **: gst_buffer_add_meta: assertion 'buffer != NULL' failed
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning.  Please run 'gdb gst-launch-1.0 883' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:13.849757540
Setting pipeline to PAUSED ...

^C

hi

I tried this out and I have this output.

Bsp Version:
Apalis-iMX6_LXDE-Image 2.8b4.129 20181005

root@apalis-imx6:~#  gst-launch-1.0      imxv4l2src          device=/dev/video2          num-buffers=50      ! videorate      ! "video/x-raw,format=(string)UYVY,width=(int)1024,height=(int)768,framerate=(fraction)15/1"      ! videoconvert      ! queue      ! timeoverlay          valignment=bottom          text="Stream time:"          shaded-background=true font-desc="Sans, 32"      ! jpegenc      ! avimux      ! filesink location=test.avi
[  109.371907] ERROR: v4l2 capture: slave not found! V4L2_CID_HUE
[  109.377884] ERROR: v4l2 capture: slave not found! V4L2_CID_HUE
[  110.108466] ov5640_set_virtual_channel: virtual channel=1
====== IMXV4L2SRC: 4.3.4 build on Oct  5 2018 20:21:00. ======
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[  111.167063] ov5640_set_virtual_channel: virtual channel=1
[  112.402055] imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00000002
[  113.303192] ERROR: v4l2 capture: VIDIOC_QBUF: overwrite done buffer.

(gst-launch-1.0:760): GStreamer[  113.309997] pgd = e3630000
-CRITICAL **: gst_buff[  113.315491] [0000000c] *pgd=76d0c831er_iterate_meta: assertion 'buffe
r != NULL' failed

(gst-launch-[  113.324796] CPU: 3 PID: 764 Comm: imxv4l2src0:src Tainted: G           O    4.9.87-2.8.4+g3bb6e3284a1b #1
1.0:760): GStreamer-CRITIC[  113.337185] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
AL **: gst_buffer_add_meta: a[  113.346585] task: e318a680 task.stack: e3752000
[  113.353965] PC is at 0x7697221a
[  113.359936] LR is at 0x76dfcf77
[  113.363190] pc : [<7697221a>]    lr : [<76dfcf77>]    psr: 60070030
[  113.363190] sp : 751feab0  ip : 00000007  fp : ffffffff
[  113.374705] r10: 76977080  r9 : 001240a0  r8 : 76f9361c
[  113.379940] r7 : 3b9ac9ff  r6 : 751fec8c  r5 : 00000000  r4 : 001240a0
[  113.386496] r3 : fffffff0  r2 : 00000000  r1 : 00000006  r0 : 00000000
[  113.393056] Flags: nZCv  IRQs on  FIQs on  Mode USER_32  ISA Thumb  Segment user
[  113.400458] Control: 10c5387d  Table: 7363004a  DAC: 00000055
[  113.406258] CPU: 3 PID: 764 Comm: imxv4l2src0:src Tainted: G           O    4.9.87-2.8.4+g3bb6e3284a1b #1
[  113.415830] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[  113.422361] Backtrace: 
[  113.424849] [<8010ba5c>] (dump_backtrace) from [<8010bd34>] (show_stack+0x18/0x1c)
[  113.432428]  r7:00000817 r6:60070113 r5:00000000 r4:80c1ab30
[  113.438104] [<8010bd1c>] (show_stack) from [<803f9204>] (dump_stack+0x90/0xa4)
[  113.445336] [<803f9174>] (dump_stack) from [<80108ad8>] (show_regs+0x14/0x18)
[  113.452479]  r7:00000817 r6:0000000c r5:0000000b r4:e318a680
[  113.458149] [<80108ac4>] (show_regs) from [<8011531c>] (__do_user_fault+0xc4/0xc8)
[  113.465725] [<80115258>] (__do_user_fault) from [<8011552c>] (do_page_fault+0x20c/0x3a4)
[  113.473821]  r8:0000000c r7:00000817 r6:e27b9880 r5:e318a680 r4:e3753fb0
[  113.480531] [<80115320>] (do_page_fault) from [<8010134c>] (do_DataAbort+0x44/0xc0)
[  113.488197]  r10:76977080 r9:001240a0 r8:e3753fb0 r7:0000000c r6:80115320 r5:00000817
[  113.496029]  r4:80c0809c
[  113.498571] [<80101308>] (do_DataAbort) from [<8010cbe0>] (__dabt_usr+0x40/0x60)
[  113.505970] Exception stack(0xe3753fb0 to 0xe3753ff8)
[  113.511027] 3fa0:                                     00000000 00000006 00000000 fffffff0
[  113.519212] 3fc0: 001240a0 00000000 751fec8c 3b9ac9ff 76f9361c 001240a0 76977080 ffffffff
[  113.527394] 3fe0: 00000007 751feab0 76dfcf77 7697221a 60070030 ffffffff
[  113.534015]  r8:10c5387d r7:10c5387d r6:ffffffff r5:60070030 r4:7697221a
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning.  Please run 'gdb gst-launch-1.0 760' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

The Issue seems to be related to the property timeoverlay. If the following command is used, then there is no error using gstreamer.

gst-launch-1.0      imxv4l2src          device=/dev/video2          num-buffers=50      ! videorate      ! "video/x-raw,format=(string)UYVY,width=(int)1024,height=(int)768,framerate=(fraction)15/1"      ! videoconvert      ! queue     ! jpegenc      ! avimux      ! filesink location=test.avi

Best regards, Jaski