raspberrypi / rpicam-apps

BSD 2-Clause "Simplified" License
389 stars 212 forks source link

[BUG] camera not detected #573

Closed TiJof closed 11 months ago

TiJof commented 11 months ago

camera isn't detected I want to use a waveshare 5MP 160° FOV camera, seems based on OV5647 (https://www.waveshare.com/product/robotics/piracer-pro-ai-kit.htm).

The error message is : ERROR: no cameras available

No modification in the config.txt (just i2c, but the same issue without).

Bug report from the tools

--------------------------------------------------------------------------------
libcamera-apps Bug Report
--------------------------------------------------------------------------------
Date: 03-05-2023 (05:15:20)
Command: /usr/bin/camera-bug-report -c libcamera-still -t 1000 -o test.jpg

--------------------------------------------------------------------------------
Hardware information
--------------------------------------------------------------------------------
** hostname **
grab

** cat /proc/cpuinfo **
processor   : 0
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor   : 1
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor   : 2
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor   : 3
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

Hardware    : BCM2835
Revision    : c03111
Serial      : 10000000caed2093
Model       : Raspberry Pi 4 Model B Rev 1.1

--------------------------------------------------------------------------------
Configuration
--------------------------------------------------------------------------------
** cat /boot/cmdline.txt **
console=serial0,115200 console=tty1 root=PARTUUID=a8a362b8-02 rootfstype=ext4 fsck.repair=yes rootwait
** cat /boot/config.txt **
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=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

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]

--------------------------------------------------------------------------------
Logs
--------------------------------------------------------------------------------
** dmesg **
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 6.1.21-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.1
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000000ec00000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff]
[    0.000000] On node 0, zone DMA32: 19456 pages in unavailable ranges
[    0.000000] On node 0, zone DMA32: 16384 pages in unavailable ranges
[    0.000000] percpu: Embedded 29 pages/cpu s78504 r8192 d32088 u118784
[    0.000000] pcpu-alloc: s78504 r8192 d32088 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v3a
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: detected: ARM erratum 1742098
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 996912
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0  smsc95xx.macaddr=DC:A6:32:52:33:EC vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=a8a362b8-02 rootfstype=ext4 fsck.repair=yes rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x0000000037400000-0x000000003b400000] (64MB)
[    0.000000] Memory: 3356948K/4050944K available (11776K kernel code, 2106K rwdata, 3688K rodata, 4160K init, 1077K bss, 169708K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 39744 entries in 156 pages
[    0.000000] ftrace: allocated 156 pages with 4 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000303] Console: colour dummy device 80x25
[    0.000901] printk: console [tty1] enabled
[    0.000968] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.001009] pid_max: default: 32768 minimum: 301
[    0.001149] LSM: Security Framework initializing
[    0.001370] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.001449] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002755] cgroup: Disabling memory control group subsystem
[    0.004999] cblist_init_generic: Setting adjustable number of callback queues.
[    0.005036] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005228] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005420] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005878] rcu: Hierarchical SRCU implementation.
[    0.005903] rcu:     Max phase no-delay instances is 1000.
[    0.007226] EFI services will not be available.
[    0.007772] smp: Bringing up secondary CPUs ...
[    0.008933] Detected PIPT I-cache on CPU1
[    0.009092] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.010243] Detected PIPT I-cache on CPU2
[    0.010364] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.011477] Detected PIPT I-cache on CPU3
[    0.011603] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.011751] smp: Brought up 1 node, 4 CPUs
[    0.011840] SMP: Total of 4 processors activated.
[    0.011861] CPU features: detected: 32-bit EL0 Support
[    0.011880] CPU features: detected: 32-bit EL1 Support
[    0.011901] CPU features: detected: CRC32 instructions
[    0.012090] CPU: All CPU(s) started at EL2
[    0.012125] alternatives: applying system-wide alternatives
[    0.013954] devtmpfs: initialized
[    0.025807] Enabled cp15_barrier support
[    0.025872] Enabled setend support
[    0.026099] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.026150] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.039350] pinctrl core: initialized pinctrl subsystem
[    0.040286] DMI not present or invalid.
[    0.040994] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.044530] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.044846] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.045812] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.045921] audit: initializing netlink subsys (disabled)
[    0.046205] audit: type=2000 audit(0.044:1): state=initialized audit_enabled=0 res=1
[    0.046813] thermal_sys: Registered thermal governor 'step_wise'
[    0.046904] cpuidle: using governor menu
[    0.047308] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.047518] ASID allocator initialised with 32768 entries
[    0.047694] Serial: AMBA PL011 UART driver
[    0.061263] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.084317] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:50:39, variant start
[    0.088331] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
[    0.104380] KASLR enabled
[    0.138526] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.144308] SCSI subsystem initialized
[    0.144594] usbcore: registered new interface driver usbfs
[    0.144667] usbcore: registered new interface driver hub
[    0.144747] usbcore: registered new device driver usb
[    0.145144] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.145374] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[    0.145741] pps_core: LinuxPPS API ver. 1 registered
[    0.145765] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.145807] PTP clock support registered
[    0.146969] vgaarb: loaded
[    0.147720] clocksource: Switched to clocksource arch_sys_counter
[    0.148477] VFS: Disk quotas dquot_6.6.0
[    0.148575] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.148770] FS-Cache: Loaded
[    0.148972] CacheFiles: Loaded
[    0.159980] NET: Registered PF_INET protocol family
[    0.160558] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.165281] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.165364] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.165502] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.165726] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.166756] TCP: Hash tables configured (established 32768 bind 32768)
[    0.167015] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.167120] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.167449] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.168370] RPC: Registered named UNIX socket transport module.
[    0.168405] RPC: Registered udp transport module.
[    0.168425] RPC: Registered tcp transport module.
[    0.168444] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.168479] PCI: CLS 0 bytes, default 64
[    0.171343] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.171798] kvm [1]: IPA Size Limit: 44 bits
[    0.173137] kvm [1]: vgic interrupt IRQ9
[    0.173378] kvm [1]: Hyp mode initialized successfully
[    1.318492] Initialise system trusted keyrings
[    1.319006] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    1.326642] zbud: loaded
[    1.329622] NFS: Registering the id_resolver key type
[    1.329680] Key type id_resolver registered
[    1.329701] Key type id_legacy registered
[    1.329825] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.329853] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.331307] Key type asymmetric registered
[    1.331337] Asymmetric key parser 'x509' registered
[    1.331429] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.331742] io scheduler mq-deadline registered
[    1.331772] io scheduler kyber registered
[    1.333784] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 27)
[    1.342349] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.342415] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.342519] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.342620] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[    1.343672] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.343755] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.343786] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.343877] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.344148] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.347953] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.348229] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[    1.348431] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[    1.348577] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[    1.397817] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    1.398000] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    1.398138] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    1.398632] pci 0000:01:00.0: PME# supported from D0 D3cold
[    1.399370] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.399428] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.399463] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    1.399519] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.399551] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.412868] iproc-rng200 fe104000.rng: hwrng registered
[    1.413484] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.415049] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.428043] brd: module loaded
[    1.436837] loop: module loaded
[    1.437688] Loading iSCSI transport class v2.0-870.
[    1.443023] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.503879] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.505065] usbcore: registered new interface driver r8152
[    1.505162] usbcore: registered new interface driver lan78xx
[    1.505234] usbcore: registered new interface driver smsc95xx
[    1.506834] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    1.506888] xhci_hcd 0000:01:00.0: enabling device (0000 -> 0002)
[    1.506999] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.507041] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.507849] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000e40000000890
[    1.508528] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.508563] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.508599] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.508982] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.509018] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.509046] usb usb1: Product: xHCI Host Controller
[    1.509069] usb usb1: Manufacturer: Linux 6.1.21-v8+ xhci-hcd
[    1.509092] usb usb1: SerialNumber: 0000:01:00.0
[    1.509844] hub 1-0:1.0: USB hub found
[    1.509955] hub 1-0:1.0: 1 port detected
[    1.510914] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    1.510951] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.510978] usb usb2: Product: xHCI Host Controller
[    1.511000] usb usb2: Manufacturer: Linux 6.1.21-v8+ xhci-hcd
[    1.511022] usb usb2: SerialNumber: 0000:01:00.0
[    1.511759] hub 2-0:1.0: USB hub found
[    1.511857] hub 2-0:1.0: 4 ports detected
[    1.513596] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.513946] dwc_otg: FIQ enabled
[    1.513957] dwc_otg: NAK holdoff enabled
[    1.513967] dwc_otg: FIQ split-transaction FSM enabled
[    1.513987] Module dwc_common_port init
[    1.514560] usbcore: registered new interface driver uas
[    1.514694] usbcore: registered new interface driver usb-storage
[    1.514946] mousedev: PS/2 mouse device common for all mice
[    1.521066] sdhci: Secure Digital Host Controller Interface driver
[    1.521105] sdhci: Copyright(c) Pierre Ossman
[    1.521806] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.525422] ledtrig-cpu: registered to indicate activity on CPUs
[    1.525803] hid: raw HID events driver (C) Jiri Kosina
[    1.526028] usbcore: registered new interface driver usbhid
[    1.526055] usbhid: USB HID core driver
[    1.534896] NET: Registered PF_PACKET protocol family
[    1.535061] Key type dns_resolver registered
[    1.536452] registered taskstats version 1
[    1.536554] Loading compiled-in X.509 certificates
[    1.537454] Key type .fscrypt registered
[    1.537483] Key type fscrypt-provisioning registered
[    1.553070] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.553833] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.554030] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[    1.563240] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.563778] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.565114] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.565147] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.593692] of_cfs_init
[    1.593844] of_cfs_init: OK
[    1.627611] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.628301] Waiting for root device PARTUUID=a8a362b8-02...
[    1.679584] mmc1: new high speed SDIO card at address 0001
[    1.727879] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.728944] mmcblk0: mmc0:aaaa SC32G 29.7 GiB 
[    1.733003]  mmcblk0: p1 p2
[    1.733585] mmcblk0: mmc0:aaaa SC32G 29.7 GiB (quirks 0x00004000)
[    1.750398] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    1.750537] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.755866] devtmpfs: mounted
[    1.763807] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.764457] Freeing unused kernel memory: 4160K
[    1.767873] Run /sbin/init as init process
[    1.767899]   with arguments:
[    1.767909]     /sbin/init
[    1.767919]   with environment:
[    1.767928]     HOME=/
[    1.767937]     TERM=linux
[    1.914414] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.914477] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.914504] usb 1-1: Product: USB2.0 Hub
[    1.916497] hub 1-1:1.0: USB hub found
[    1.916774] hub 1-1:1.0: 4 ports detected
[    2.125909] systemd[1]: System time before build time, advancing clock.
[    2.301565] NET: Registered PF_INET6 protocol family
[    2.303477] Segment Routing with IPv6
[    2.303536] In-situ OAM (IOAM) with IPv6
[    2.378036] systemd[1]: systemd 247.3-7+deb11u2 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    2.379107] systemd[1]: Detected architecture arm64.
[    2.386143] systemd[1]: Set hostname to <grab>.
[    3.055622] systemd[1]: Queued start job for default target Multi-User System.
[    3.073365] systemd[1]: Created slice system-getty.slice.
[    3.075142] systemd[1]: Created slice system-modprobe.slice.
[    3.076531] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    3.077675] systemd[1]: Created slice User and Session Slice.
[    3.078488] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    3.079248] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.080660] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.081198] systemd[1]: Reached target Local Encrypted Volumes.
[    3.081672] systemd[1]: Reached target Paths.
[    3.082090] systemd[1]: Reached target Slices.
[    3.082472] systemd[1]: Reached target Swap.
[    3.088006] systemd[1]: Listening on Syslog Socket.
[    3.089166] systemd[1]: Listening on fsck to fsckd communication Socket.
[    3.089868] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    3.091458] systemd[1]: Listening on Journal Audit Socket.
[    3.092623] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.093918] systemd[1]: Listening on Journal Socket.
[    3.098995] systemd[1]: Listening on udev Control Socket.
[    3.100269] systemd[1]: Listening on udev Kernel Socket.
[    3.101580] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    3.120262] systemd[1]: Mounting POSIX Message Queue File System...
[    3.125192] systemd[1]: Mounting RPC Pipe File System...
[    3.131009] systemd[1]: Mounting Kernel Debug File System...
[    3.137008] systemd[1]: Mounting Kernel Trace File System...
[    3.137952] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    3.144515] systemd[1]: Starting Restore / save the current clock...
[    3.151199] systemd[1]: Starting Set the console keyboard layout...
[    3.160687] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    3.166730] systemd[1]: Starting Load Kernel Module configfs...
[    3.173072] systemd[1]: Starting Load Kernel Module drm...
[    3.179410] systemd[1]: Starting Load Kernel Module fuse...
[    3.184142] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    3.189847] systemd[1]: Starting File System Check on Root Device...
[    3.200366] systemd[1]: Starting Journal Service...
[    3.256800] systemd[1]: Starting Load Kernel Modules...
[    3.260378] fuse: init (API version 7.37)
[    3.262261] systemd[1]: Starting Coldplug All udev Devices...
[    3.274899] systemd[1]: Mounted POSIX Message Queue File System.
[    3.276139] systemd[1]: Mounted RPC Pipe File System.
[    3.277206] systemd[1]: Mounted Kernel Debug File System.
[    3.278341] systemd[1]: Mounted Kernel Trace File System.
[    3.284998] systemd[1]: Finished Restore / save the current clock.
[    3.288245] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    3.290869] systemd[1]: modprobe@configfs.service: Succeeded.
[    3.292505] systemd[1]: Finished Load Kernel Module configfs.
[    3.295093] systemd[1]: modprobe@fuse.service: Succeeded.
[    3.296750] systemd[1]: Finished Load Kernel Module fuse.
[    3.304861] systemd[1]: Mounting FUSE Control File System...
[    3.310709] systemd[1]: Mounting Kernel Configuration File System...
[    3.317120] systemd[1]: Started File System Check Daemon to report status.
[    3.331605] systemd[1]: Finished Load Kernel Modules.
[    3.353241] systemd[1]: Starting Apply Kernel Variables...
[    3.360363] systemd[1]: Mounted Kernel Configuration File System.
[    3.379868] systemd[1]: Mounted FUSE Control File System.
[    3.382086] systemd[1]: modprobe@drm.service: Succeeded.
[    3.383549] systemd[1]: Finished Load Kernel Module drm.
[    3.433154] systemd[1]: Finished Apply Kernel Variables.
[    3.442327] systemd[1]: Finished File System Check on Root Device.
[    3.468709] systemd[1]: Starting Remount Root and Kernel File Systems...
[    3.582937] systemd[1]: Started Journal Service.
[    3.625816] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[    3.717572] systemd-journald[141]: Received client request to flush runtime journal.
[    3.733157] systemd-journald[141]: File /var/log/journal/4b804aa9460b4c1aa3bf9950215f6252/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    4.953304] mc: Linux media interface: v0.10
[    5.127548] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    5.155140] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    5.164899] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    5.183923] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    5.183975] [vc_sm_connected_init]: start
[    5.205559] videodev: Linux video capture interface: v2.00
[    5.227890] [vc_sm_connected_init]: installed successfully
[    5.431514] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    5.458610] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    5.486305] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[    5.497310] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    5.501351] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    5.502332] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.509830] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    5.514288] rpivid feb10000.codec: Device registered as /dev/video19
[    5.538419] bcm2835_audio bcm2835_audio: card created with 8 channels
[    5.542236] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    5.542265] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    5.581632] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    5.581712] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    5.595138] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    5.595196] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    5.610622] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    5.614665] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    5.614721] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    5.619106] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    5.619162] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    5.624422] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    5.627499] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    5.627573] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[    5.635578] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    5.635629] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    5.635652] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    5.635671] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    5.635688] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    5.653733] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    5.692077] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    5.695580] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    5.698039] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    5.698087] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    5.698110] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    5.698128] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    5.698146] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    5.717300] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.732880] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    5.759308] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.773059] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    6.343115] brcmfmac: F1 signature read @0x18000000=0x15264345
[    6.360251] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.380446] usbcore: registered new interface driver brcmfmac
[    6.578750] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.582439] Registered IR keymap rc-cec
[    6.582648] rc rc0: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    6.582875] input: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input0
[    6.655506] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[    6.659091] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[    6.664486] Registered IR keymap rc-cec
[    6.664702] rc rc1: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[    6.664949] input: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input1
[    6.709029] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[    6.714126] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[    6.715089] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.731883] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.732492] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.732836] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.733283] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.753583] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    6.755095] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[    7.207809] uart-pl011 fe201000.serial: no DMA platform data
[    7.595118] 8021q: 802.1Q VLAN Support v1.8
[    7.720861] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    8.051398] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    8.441321] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    8.442145] bcmgenet fd580000.ethernet eth0: Link is Down
[   13.546150] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   15.332482] Bluetooth: Core ver 2.22
[   15.332975] NET: Registered PF_BLUETOOTH protocol family
[   15.332984] Bluetooth: HCI device and connection manager initialized
[   15.333001] Bluetooth: HCI socket layer initialized
[   15.333009] Bluetooth: L2CAP socket layer initialized
[   15.333027] Bluetooth: SCO socket layer initialized
[   15.515954] Bluetooth: HCI UART driver ver 2.3
[   15.515976] Bluetooth: HCI UART protocol H4 registered
[   15.516049] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   15.516248] Bluetooth: HCI UART protocol Broadcom registered
[   15.860027] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   15.860048] Bluetooth: BNEP filters: protocol multicast
[   15.860064] Bluetooth: BNEP socket layer initialized
[   15.864938] Bluetooth: MGMT ver 1.22
[   15.873427] NET: Registered PF_ALG protocol family

** sudo vcdbg log msg **
sudo: vcdbg: command not found

** sudo vcdbg log assert **
sudo: vcdbg: command not found

** sudo vcdbg log ex **
sudo: vcdbg: command not found

--------------------------------------------------------------------------------
Memory
--------------------------------------------------------------------------------
** cat /proc/meminfo **
MemTotal:        3885396 kB
MemFree:         3671804 kB
MemAvailable:    3728412 kB
Buffers:           10816 kB
Cached:            94068 kB
SwapCached:            0 kB
Active:           107452 kB
Inactive:          26420 kB
Active(anon):      28928 kB
Inactive(anon):     1168 kB
Active(file):      78524 kB
Inactive(file):    25252 kB
Unevictable:          16 kB
Mlocked:              16 kB
SwapTotal:        102396 kB
SwapFree:         102396 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:                60 kB
Writeback:             0 kB
AnonPages:         29080 kB
Mapped:            43320 kB
Shmem:              1080 kB
KReclaimable:      19160 kB
Slab:              40928 kB
SReclaimable:      19160 kB
SUnreclaim:        21768 kB
KernelStack:        2792 kB
PageTables:         1804 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2045092 kB
Committed_AS:     193096 kB
VmallocTotal:   259653632 kB
VmallocUsed:       10004 kB
VmallocChunk:          0 kB
Percpu:              656 kB
CmaTotal:         524288 kB
CmaFree:          513268 kB

** sudo cat /sys/kernel/debug/dma_buf/bufinfo **

Dma-buf Objects:
size        flags       mode        count       exp_name    ino         name

Total 0 objects, 0 bytes

** sudo cat /sys/kernel/debug/vcsm-cma/state **

VC-ServiceHandle     000000002700e114

Resources

Total resource count:   0

--------------------------------------------------------------------------------
Media Devices
--------------------------------------------------------------------------------
** media-ctl -d 0 -p **
Media controller API version 6.1.21

Media device information
------------------------
driver          rpivid
model           rpivid
serial          
bus info        platform:rpivid
hw revision     0x0
driver version  6.1.21

Device topology
- entity 1: rpivid-source (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video19
    pad0: Source
        -> "rpivid-proc":0 [ENABLED,IMMUTABLE]

- entity 3: rpivid-proc (2 pads, 2 links)
            type Node subtype Unknown flags 0
    pad0: Sink
        <- "rpivid-source":0 [ENABLED,IMMUTABLE]
    pad1: Source
        -> "rpivid-sink":0 [ENABLED,IMMUTABLE]

- entity 6: rpivid-sink (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video19
    pad0: Sink
        <- "rpivid-proc":1 [ENABLED,IMMUTABLE]

** media-ctl -d 1 -p **
Media controller API version 6.1.21

Media device information
------------------------
driver          bcm2835-codec
model           bcm2835-codec
serial          0000
bus info        platform:bcm2835-codec
hw revision     0x1
driver version  6.1.21

Device topology
- entity 1: bcm2835-codec-decode-source (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video10
    pad0: Source
        -> "bcm2835-codec-decode-proc":0 [ENABLED,IMMUTABLE]

- entity 3: bcm2835-codec-decode-proc (2 pads, 2 links)
            type Node subtype Unknown flags 0
    pad0: Sink
        <- "bcm2835-codec-decode-source":0 [ENABLED,IMMUTABLE]
    pad1: Source
        -> "bcm2835-codec-decode-sink":0 [ENABLED,IMMUTABLE]

- entity 6: bcm2835-codec-decode-sink (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video10
    pad0: Sink
        <- "bcm2835-codec-decode-proc":1 [ENABLED,IMMUTABLE]

- entity 15: bcm2835-codec-encode-source (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video11
    pad0: Source
        -> "bcm2835-codec-encode-proc":0 [ENABLED,IMMUTABLE]

- entity 17: bcm2835-codec-encode-proc (2 pads, 2 links)
             type Node subtype Unknown flags 0
    pad0: Sink
        <- "bcm2835-codec-encode-source":0 [ENABLED,IMMUTABLE]
    pad1: Source
        -> "bcm2835-codec-encode-sink":0 [ENABLED,IMMUTABLE]

- entity 20: bcm2835-codec-encode-sink (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video11
    pad0: Sink
        <- "bcm2835-codec-encode-proc":1 [ENABLED,IMMUTABLE]

- entity 29: bcm2835-codec-isp-source (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video12
    pad0: Source
        -> "bcm2835-codec-isp-proc":0 [ENABLED,IMMUTABLE]

- entity 31: bcm2835-codec-isp-proc (2 pads, 2 links)
             type Node subtype Unknown flags 0
    pad0: Sink
        <- "bcm2835-codec-isp-source":0 [ENABLED,IMMUTABLE]
    pad1: Source
        -> "bcm2835-codec-isp-sink":0 [ENABLED,IMMUTABLE]

- entity 34: bcm2835-codec-isp-sink (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video12
    pad0: Sink
        <- "bcm2835-codec-isp-proc":1 [ENABLED,IMMUTABLE]

- entity 43: bcm2835-codec-image_fx-source (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video18
    pad0: Source
        -> "bcm2835-codec-image_fx-proc":0 [ENABLED,IMMUTABLE]

- entity 45: bcm2835-codec-image_fx-proc (2 pads, 2 links)
             type Node subtype Unknown flags 0
    pad0: Sink
        <- "bcm2835-codec-image_fx-source":0 [ENABLED,IMMUTABLE]
    pad1: Source
        -> "bcm2835-codec-image_fx-sink":0 [ENABLED,IMMUTABLE]

- entity 48: bcm2835-codec-image_fx-sink (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video18
    pad0: Sink
        <- "bcm2835-codec-image_fx-proc":1 [ENABLED,IMMUTABLE]

- entity 57: bcm2835-codec-encode_image-sour (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video31
    pad0: Source
        -> "bcm2835-codec-encode_image-proc":0 [ENABLED,IMMUTABLE]

- entity 59: bcm2835-codec-encode_image-proc (2 pads, 2 links)
             type Node subtype Unknown flags 0
    pad0: Sink
        <- "bcm2835-codec-encode_image-sour":0 [ENABLED,IMMUTABLE]
    pad1: Source
        -> "bcm2835-codec-encode_image-sink":0 [ENABLED,IMMUTABLE]

- entity 62: bcm2835-codec-encode_image-sink (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video31
    pad0: Sink
        <- "bcm2835-codec-encode_image-proc":1 [ENABLED,IMMUTABLE]

** media-ctl -d 2 -p **
Media controller API version 6.1.21

Media device information
------------------------
driver          bcm2835-isp
model           bcm2835-isp
serial          
bus info        platform:bcm2835-isp
hw revision     0x0
driver version  6.1.21

Device topology
- entity 1: bcm2835_isp0 (4 pads, 4 links)
            type Node subtype Unknown flags 0
    pad0: Sink
        <- "bcm2835-isp0-output0":0 [ENABLED,IMMUTABLE]
    pad1: Source
        -> "bcm2835-isp0-capture1":0 [ENABLED,IMMUTABLE]
    pad2: Source
        -> "bcm2835-isp0-capture2":0 [ENABLED,IMMUTABLE]
    pad3: Source
        -> "bcm2835-isp0-capture3":0 [ENABLED,IMMUTABLE]

- entity 6: bcm2835-isp0-output0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video13
    pad0: Source
        -> "bcm2835_isp0":0 [ENABLED,IMMUTABLE]

- entity 12: bcm2835-isp0-capture1 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video14
    pad0: Sink
        <- "bcm2835_isp0":1 [ENABLED,IMMUTABLE]

- entity 18: bcm2835-isp0-capture2 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video15
    pad0: Sink
        <- "bcm2835_isp0":2 [ENABLED,IMMUTABLE]

- entity 24: bcm2835-isp0-capture3 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video16
    pad0: Sink
        <- "bcm2835_isp0":3 [ENABLED,IMMUTABLE]

** media-ctl -d 3 -p **
Media controller API version 6.1.21

Media device information
------------------------
driver          bcm2835-isp
model           bcm2835-isp
serial          
bus info        platform:bcm2835-isp
hw revision     0x0
driver version  6.1.21

Device topology
- entity 1: bcm2835_isp0 (4 pads, 4 links)
            type Node subtype Unknown flags 0
    pad0: Sink
        <- "bcm2835-isp0-output0":0 [ENABLED,IMMUTABLE]
    pad1: Source
        -> "bcm2835-isp0-capture1":0 [ENABLED,IMMUTABLE]
    pad2: Source
        -> "bcm2835-isp0-capture2":0 [ENABLED,IMMUTABLE]
    pad3: Source
        -> "bcm2835-isp0-capture3":0 [ENABLED,IMMUTABLE]

- entity 6: bcm2835-isp0-output0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video20
    pad0: Source
        -> "bcm2835_isp0":0 [ENABLED,IMMUTABLE]

- entity 12: bcm2835-isp0-capture1 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video21
    pad0: Sink
        <- "bcm2835_isp0":1 [ENABLED,IMMUTABLE]

- entity 18: bcm2835-isp0-capture2 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video22
    pad0: Sink
        <- "bcm2835_isp0":2 [ENABLED,IMMUTABLE]

- entity 24: bcm2835-isp0-capture3 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video23
    pad0: Sink
        <- "bcm2835_isp0":3 [ENABLED,IMMUTABLE]

** media-ctl -d 4 -p **
Failed to enumerate /dev/media4 (-2)

--------------------------------------------------------------------------------
Cameras
--------------------------------------------------------------------------------
** libcamera-still --list-cameras **
No cameras available!

--------------------------------------------------------------------------------
Versions
--------------------------------------------------------------------------------
** uname -a **
Linux grab 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

** cat /etc/os-release **
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

** vcgencmd version **
Mar 17 2023 10:50:39 
Copyright (c) 2012 Broadcom
version 82f3750a65fadae9a38077e3c2e217ad158c8d54 (clean) (release) (start)

** libcamera-still --version **
libcamera-apps build: 54a781dffdd1 01-03-2023 (17:53:36)
libcamera build: v0.0.4+22-923f5d70

--------------------------------------------------------------------------------
libcamera-still -t 1000 -o test.jpg
--------------------------------------------------------------------------------
Preview window unavailable
[0:03:36.754337721] [890]  INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
ERROR: *** no cameras available ***

Additional context I've done the tests with a fresh install.

If i specify an overlay for my ov5647 :

pi@grab:~ $ grep -i 56 /boot/config.txt 
dtoverlay=ov5647
pi@grab:~ $ dmesg |grep -i OV5647
[    0.076910] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/ov5647@36
[    6.995057] ov5647 10-0036: ID High expected 0x56 got 0

Any idea ?

6by9 commented 11 months ago

[ 6.995057] ov5647 10-0036: ID High expected 0x56 got 0

Your sensor isn't replying appropriately, therefore it won't be detected.

At a guess something is shorting SDA to ground, therefore all transactions will return 0. Check with sudo i2cdetect -y 10 (you'll need to have either tried loading the overlay, or add dtparam=i2c_vc=on to enable the relevant I2C bus, and have the i2c-dev module loaded). If just SDA is shorted to ground, then it will run through quickly, but all addresses will be listed. If SCL is also shorted to ground, then it will run slowly as each query takes 1 second to time out.

Check that the pinmuxing is correct with raspi-gpio get 0,1,44,45. 44&45 should report as SDA0 and SCL0, and 0&1 should be inputs.

TiJof commented 11 months ago

thank you for your quick response !

pi@grab:~ $ time sudo i2cdetect -y 10
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         08 09 0a 0b 0c 0d 0e 0f 
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 
30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 
70: 70 71 72 73 74 75 76 77                         

real    0m0.101s
user    0m0.025s
sys 0m0.036s

pi@grab:~ $ raspi-gpio get 0,1,44,45
GPIO 0: level=1 fsel=0 func=INPUT pull=UP
GPIO 1: level=1 fsel=0 func=INPUT pull=UP
GPIO 44: level=0 fsel=5 alt=1 func=SDA0 pull=UP
GPIO 45: level=1 fsel=5 alt=1 func=SCL0 pull=UP

The i2cdetect run quickly, from what you say SDA seems shorted to ground... Pinmuxing seems good. So this is a hardware problem ?

6by9 commented 11 months ago

So this is a hardware problem ?

Yes. Disconnect the camera and run i2cdetect again (if you leave the manual dtoverlay=ov5647 in then the bus will be enabled). If that runs at normal speed then it is the camera itself that is defective. If it reports all addresses again, then the Pi has an issue.

TiJof commented 11 months ago
pi@grab:~ $ time sudo i2cdetect -y 10
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         

real    0m0.132s
user    0m0.012s
sys 0m0.053s

so, camera is defective... As I have test with 3 of them with same result, we can suppose that this bench of Waveshare camera are terrible ones.

Thank you for your response !