OV5647 with RBP3B+ video only no focus or control functionality

  1. Where did you get the camera module(s)? Amazon
  2. Model number of the product(s).OV5647 B0176
  3. What hardware/platform were you working on? Raspberry Pi 3B+ running octoprint 1.9.3
  4. Instructions you have followed. (link/manual/etc.) libcamera and libcamera-apps - Arducam Wiki
  5. Problems you were having. The only functionality I have with the camera is view, I cannot control the focus at all, throught Octoprint camera setting plugin I can adjust the iso and whitebalance but the focus does not respond.
  6. The dmesg log from your hardware. dmesg
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 6.1.21-v7+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP Mon Apr 3 17:20:52 BST 2023
    [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
    [ 0.000000] CPU: div instructions available: patching division code
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
    [ 0.000000] random: crng init done
    [ 0.000000] Memory policy: Data cache writealloc
    [ 0.000000] Reserved memory: created CMA memory pool at 0x1ec00000, size 256 MiB
    [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
    [ 0.000000] Zone ranges:
    [ 0.000000] DMA [mem 0x0000000000000000-0x0000000037ffffff]
    [ 0.000000] Normal empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000037ffffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000037ffffff]
    [ 0.000000] percpu: Embedded 17 pages/cpu s36884 r8192 d24556 u69632
    [ 0.000000] pcpu-alloc: s36884 r8192 d24556 u69632 alloc=17*4096
    [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 227360
    [ 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 video=Composite-1:720x480@60i vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=0f8ffd36-02 rootfstype=ext4 fsck.repair=yes rootwait
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [ 0.000000] Memory: 628144K/917504K available (10240K kernel code, 1452K rwdata, 2900K rodata, 1024K init, 613K bss, 27216K reserved, 262144K cma-reserved)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] ftrace: allocating 34800 entries in 103 pages
    [ 0.000000] ftrace: allocated 102 pages with 4 groups
    [ 0.000000] trace event string verifier disabled
    [ 0.000000] rcu: Hierarchical RCU implementation.
    [ 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 10 jiffies.
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [ 0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
    [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
    [ 0.000001] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
    [ 0.000018] Switching to timer-based delay loop, resolution 52ns
    [ 0.000384] Console: colour dummy device 80x30
    [ 0.001006] printk: console [tty1] enabled
    [ 0.001068] Calibrating delay loop (skipped), value calculated using timer frequency… 38.40 BogoMIPS (lpj=192000)
    [ 0.001115] pid_max: default: 32768 minimum: 301
    [ 0.001274] LSM: Security Framework initializing
    [ 0.001494] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
    [ 0.001537] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
    [ 0.002696] cgroup: Disabling memory control group subsystem
    [ 0.002953] CPU: Testing write buffer coherency: ok
    [ 0.003380] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 0.004239] cblist_init_generic: Setting adjustable number of callback queues.
    [ 0.004277] cblist_init_generic: Setting shift to 2 and lim to 1.
    [ 0.004405] cblist_init_generic: Setting shift to 2 and lim to 1.
    [ 0.004564] Setting up static identity map for 0x100000 - 0x10003c
    [ 0.004721] rcu: Hierarchical SRCU implementation.
    [ 0.004745] rcu: Max phase no-delay instances is 1000.
    [ 0.005467] smp: Bringing up secondary CPUs …
    [ 0.006382] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 0.007335] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [ 0.008211] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [ 0.008314] smp: Brought up 1 node, 4 CPUs
    [ 0.008397] SMP: Total of 4 processors activated (153.60 BogoMIPS).
    [ 0.008424] CPU: All CPU(s) started in HYP mode.
    [ 0.008443] CPU: Virtualization extensions available.
    [ 0.009191] devtmpfs: initialized
    [ 0.024194] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
    [ 0.024435] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.024489] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
    [ 0.034670] pinctrl core: initialized pinctrl subsystem
    [ 0.035899] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [ 0.039054] DMA: preallocated 1024 KiB pool for atomic coherent allocations
    [ 0.044149] audit: initializing netlink subsys (disabled)
    [ 0.044415] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
    [ 0.045027] thermal_sys: Registered thermal governor ‘step_wise’
    [ 0.045954] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [ 0.046008] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [ 0.046266] Serial: AMBA PL011 UART driver
    [ 0.052467] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
    [ 0.070069] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:53:39, variant start_x
    [ 0.080083] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
    [ 0.122437] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
    [ 0.128350] bcm2835-dma 3f007000.dma: DMA legacy API manager, dmachans=0x1
    [ 0.130049] SCSI subsystem initialized
    [ 0.130303] usbcore: registered new interface driver usbfs
    [ 0.130383] usbcore: registered new interface driver hub
    [ 0.130451] usbcore: registered new device driver usb
    [ 0.130698] usb_phy_generic phy: supply vcc not found, using dummy regulator
    [ 0.130883] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
    [ 0.131168] pps_core: LinuxPPS API ver. 1 registered
    [ 0.131193] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
    [ 0.131242] PTP clock support registered
    [ 2.006845] clocksource: Switched to clocksource arch_sys_counter
    [ 2.104688] VFS: Disk quotas dquot_6.6.0
    [ 2.104808] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 2.104981] FS-Cache: Loaded
    [ 2.105287] CacheFiles: Loaded
    [ 2.114459] NET: Registered PF_INET protocol family
    [ 2.114776] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
    [ 2.117251] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
    [ 2.117312] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 2.117418] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
    [ 2.117557] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
    [ 2.117906] TCP: Hash tables configured (established 8192 bind 8192)
    [ 2.118060] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
    [ 2.118133] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
    [ 2.118367] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [ 2.118888] RPC: Registered named UNIX socket transport module.
    [ 2.118917] RPC: Registered udp transport module.
    [ 2.118939] RPC: Registered tcp transport module.
    [ 2.118959] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 2.120624] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
    [ 2.123758] Initialise system trusted keyrings
    [ 2.124030] workingset: timestamp_bits=14 max_order=18 bucket_order=4
    [ 2.133307] zbud: loaded
    [ 2.135694] NFS: Registering the id_resolver key type
    [ 2.135747] Key type id_resolver registered
    [ 2.135771] Key type id_legacy registered
    [ 2.135902] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
    [ 2.135931] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering…
    [ 2.137238] Key type asymmetric registered
    [ 2.137266] Asymmetric key parser ‘x509’ registered
    [ 2.137464] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [ 2.137500] io scheduler mq-deadline registered
    [ 2.137523] io scheduler kyber registered
    [ 2.141524] simple-framebuffer 3eaa9000.framebuffer: framebuffer at 0x3eaa9000, 0x151800 bytes
    [ 2.141585] simple-framebuffer 3eaa9000.framebuffer: format=a8r8g8b8, mode=720x480x32, linelength=2880
    [ 2.146300] Console: switching to colour frame buffer device 90x30
    [ 2.152919] simple-framebuffer 3eaa9000.framebuffer: fb0: simplefb registered!
    [ 2.160023] bcm2835-rng 3f104000.rng: hwrng registered
    [ 2.162964] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
    [ 2.168905] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
    [ 2.182224] brd: module loaded
    [ 2.192299] loop: module loaded
    [ 2.195483] Loading iSCSI transport class v2.0-870.
    [ 2.199532] usbcore: registered new interface driver lan78xx
    [ 2.202188] usbcore: registered new interface driver smsc95xx
    [ 2.204797] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
    [ 2.935510] Core Release: 2.80a
    [ 2.938055] Setting default values for core params
    [ 2.940558] Finished setting default values for core params
    [ 3.143318] Using Buffer DMA mode
    [ 3.145814] Periodic Transfer Interrupt Enhancement - disabled
    [ 3.148348] Multiprocessor Interrupt Enhancement - disabled
    [ 3.150826] OTG VER PARAM: 0, OTG VER FLAG: 0
    [ 3.153344] Dedicated Tx FIFOs mode

[ 3.156680] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = 9ed04000 dma = 0xded04000 len=9024
[ 3.163929] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 3.175230] dwc_otg: Microframe scheduler enabled

[ 3.175375] WARN::hcd_init_fiq:457: FIQ on core 1

[ 3.179478] WARN::hcd_init_fiq:458: FIQ ASM at 807c4360 length 36

[ 3.183472] WARN::hcd_init_fiq:497: MPHI regs_base at b8810000
[ 3.187553] dwc_otg 3f980000.usb: DWC OTG Controller
[ 3.189730] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 3.191927] dwc_otg 3f980000.usb: irq 89, io mem 0x00000000
[ 3.194097] Init: Port Power? op_state=1
[ 3.196198] Init: Power Port (0)
[ 3.198476] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[ 3.202732] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.204990] usb usb1: Product: DWC OTG Controller
[ 3.207225] usb usb1: Manufacturer: Linux 6.1.21-v7+ dwc_otg_hcd
[ 3.209486] usb usb1: SerialNumber: 3f980000.usb
[ 3.212407] hub 1-0:1.0: USB hub found
[ 3.214640] hub 1-0:1.0: 1 port detected
[ 3.217446] dwc_otg: FIQ enabled
[ 3.217457] dwc_otg: NAK holdoff enabled
[ 3.217465] dwc_otg: FIQ split-transaction FSM enabled
[ 3.217483] Module dwc_common_port init
[ 3.217792] usbcore: registered new interface driver usb-storage
[ 3.220139] mousedev: PS/2 mouse device common for all mice
[ 3.225047] sdhci: Secure Digital Host Controller Interface driver
[ 3.227313] sdhci: Copyright(c) Pierre Ossman
[ 3.229801] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.233970] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.236569] hid: raw HID events driver (C) Jiri Kosina
[ 3.239109] usbcore: registered new interface driver usbhid
[ 3.241396] usbhid: USB HID core driver
[ 3.247761] Initializing XFRM netlink socket
[ 3.250070] NET: Registered PF_PACKET protocol family
[ 3.252396] Key type dns_resolver registered
[ 3.255367] Registering SWP/SWPB emulation handler
[ 3.258230] registered taskstats version 1
[ 3.260436] Loading compiled-in X.509 certificates
[ 3.263402] Key type .fscrypt registered
[ 3.265583] Key type fscrypt-provisioning registered
[ 3.279152] uart-pl011 3f201000.serial: cts_event_workaround enabled
[ 3.281461] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
[ 3.287690] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 3.290181] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 3.293680] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 3.295948] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[ 3.326117] sdhost: log_buf @ ef59c3e2 (ded03000)
[ 3.346960] Indeed it is in host mode hprt0 = 00021501
[ 3.378504] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 3.388739] of_cfs_init
[ 3.391037] of_cfs_init: OK
[ 3.394257] Waiting for root device PARTUUID=0f8ffd36-02…
[ 3.415040] mmc0: host does not support reading read-only switch, assuming write-enable
[ 3.420709] mmc0: new high speed SDHC card at address 5048
[ 3.423876] mmcblk0: mmc0:5048 SD32G 28.9 GiB
[ 3.429255] mmcblk0: p1 p2
[ 3.432233] mmcblk0: mmc0:5048 SD32G 28.9 GiB
[ 3.444936] mmc1: new high speed SDIO card at address 0001
[ 3.465261] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[ 3.470040] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 3.480620] devtmpfs: mounted
[ 3.488807] Freeing unused kernel image (initmem) memory: 1024K
[ 3.557344] Run /sbin/init as init process
[ 3.559826] with arguments:
[ 3.559834] /sbin/init
[ 3.559843] with environment:
[ 3.559850] HOME=/
[ 3.559857] TERM=linux
[ 3.566871] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 3.569543] Indeed it is in host mode hprt0 = 00001101
[ 3.817270] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[ 3.822202] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.825503] hub 1-1:1.0: USB hub found
[ 3.828243] hub 1-1:1.0: 4 ports detected
[ 4.166880] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 4.190924] systemd[1]: System time before build time, advancing clock.
[ 4.297199] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[ 4.302448] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.306072] hub 1-1.1:1.0: USB hub found
[ 4.308894] hub 1-1.1:1.0: 3 ports detected
[ 4.444194] NET: Registered PF_INET6 protocol family
[ 4.448378] Segment Routing with IPv6
[ 4.451047] In-situ OAM (IOAM) with IPv6
[ 4.542748] systemd[1]: systemd 247.3-7+rpi1+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)
[ 4.552066] systemd[1]: Detected architecture arm.
[ 4.573503] systemd[1]: Set hostname to .
[ 4.626958] usb 1-1.1.2: new full-speed USB device number 4 using dwc_otg
[ 4.762401] usb 1-1.1.2: New USB device found, idVendor=1d50, idProduct=6029, bcdDevice= 1.00
[ 4.776139] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4.779311] usb 1-1.1.2: Product: Marlin USB Device
[ 4.782061] usb 1-1.1.2: Manufacturer: marlinfw.org
[ 4.784809] usb 1-1.1.2: SerialNumber: 13016014AF6D24245ECD7800F50020C2
[ 4.792483] usb-storage 1-1.1.2:1.2: USB Mass Storage device detected
[ 4.810877] scsi host0: usb-storage 1-1.1.2:1.2
[ 5.126922] usb 1-1.1.1: new high-speed USB device number 5 using dwc_otg
[ 5.267363] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800, bcdDevice= 3.00
[ 5.272491] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 5.540151] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): No External EEPROM. Setting MAC Speed
[ 5.566764] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): int urb period 64
[ 5.839220] scsi 0:0:0:0: Direct-Access Marlin SDCard 01 1.0 PQ: 0 ANSI: 0 CCS
[ 5.846297] sd 0:0:0:0: [sda] Media removed, stopped polling
[ 5.850411] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 5.878965] systemd[1]: Queued start job for default target Multi-User System.
[ 5.931079] systemd[1]: Created slice system-getty.slice.
[ 5.939017] systemd[1]: Created slice system-modprobe.slice.
[ 5.946375] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 5.953419] systemd[1]: Created slice User and Session Slice.
[ 5.959944] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 5.966610] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 5.974388] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 5.984340] systemd[1]: Reached target Local Encrypted Volumes.
[ 5.991606] systemd[1]: Reached target Paths.
[ 5.998103] systemd[1]: Reached target Slices.
[ 6.004264] systemd[1]: Reached target Swap.
[ 6.011551] systemd[1]: Listening on Syslog Socket.
[ 6.018321] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 6.024770] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 6.032090] systemd[1]: Listening on Journal Audit Socket.
[ 6.038894] systemd[1]: Listening on Journal Socket (/dev/log).
[ 6.045778] systemd[1]: Listening on Journal Socket.
[ 6.053974] systemd[1]: Listening on udev Control Socket.
[ 6.060492] systemd[1]: Listening on udev Kernel Socket.
[ 6.067336] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 6.127290] systemd[1]: Mounting POSIX Message Queue File System…
[ 6.138084] systemd[1]: Mounting RPC Pipe File System…
[ 6.150079] systemd[1]: Mounting Kernel Debug File System…
[ 6.161914] systemd[1]: Mounting Kernel Trace File System…
[ 6.169157] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[ 6.185582] systemd[1]: Starting Restore / save the current clock…
[ 6.197812] systemd[1]: Starting Set the console keyboard layout…
[ 6.210585] systemd[1]: Starting Create list of static device nodes for the current kernel…
[ 6.227490] systemd[1]: Starting Load Kernel Module configfs…
[ 6.240309] systemd[1]: Starting Load Kernel Module drm…
[ 6.253129] systemd[1]: Starting Load Kernel Module fuse…
[ 6.265018] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 6.274245] systemd[1]: Starting File System Check on Root Device…
[ 6.301029] systemd[1]: Starting Journal Service…
[ 6.341153] fuse: init (API version 7.37)
[ 6.345411] systemd[1]: Starting Load Kernel Modules…
[ 6.372213] systemd[1]: Starting Coldplug All udev Devices…
[ 6.428477] systemd[1]: Mounted POSIX Message Queue File System.
[ 6.435558] systemd[1]: Mounted RPC Pipe File System.
[ 6.465732] systemd[1]: Mounted Kernel Debug File System.
[ 6.473642] systemd[1]: Mounted Kernel Trace File System.
[ 6.481652] systemd[1]: Finished Restore / save the current clock.
[ 6.490289] systemd[1]: Finished Create list of static device nodes for the current kernel.
[ 6.501160] i2c_dev: i2c /dev entries driver
[ 6.520022] systemd[1]: [email protected]: Succeeded.
[ 6.524123] systemd[1]: Finished Load Kernel Module configfs.
[ 6.532505] systemd[1]: [email protected]: Succeeded.
[ 6.536501] systemd[1]: Finished Load Kernel Module drm.
[ 6.544776] systemd[1]: [email protected]: Succeeded.
[ 6.548931] systemd[1]: Finished Load Kernel Module fuse.
[ 6.556769] systemd[1]: Finished Load Kernel Modules.
[ 6.660855] systemd[1]: Mounting FUSE Control File System…
[ 6.671813] systemd[1]: Mounting Kernel Configuration File System…
[ 6.684003] systemd[1]: Started File System Check Daemon to report status.
[ 6.696189] systemd[1]: Starting Apply Kernel Variables…
[ 6.708658] systemd[1]: Started Journal Service.
[ 6.908368] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[ 7.041503] systemd-journald[140]: Received client request to flush runtime journal.
[ 7.075014] systemd-journald[140]: File /var/log/journal/1bb031cdc4c1413eaab2465f962c4bc8/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 8.435174] mc: Linux media interface: v0.10
[ 8.474432] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.497412] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 8.497503] [vc_sm_connected_init]: start
[ 8.513324] [vc_sm_connected_init]: installed successfully
[ 8.547526] videodev: Linux video capture interface: v2.00
[ 8.604959] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.660470] bcm2835_audio bcm2835_audio: card created with 8 channels
[ 8.665948] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.691582] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.715894] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.741347] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 8.741519] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 8.747287] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 8.747439] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 8.757906] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 8.757956] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 8.776288] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.789006] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[ 8.789062] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[ 8.793620] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[ 8.793673] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[ 8.844426] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.145474] i2c i2c-11: Added multiplexed i2c bus 0
[ 9.146118] i2c i2c-11: Added multiplexed i2c bus 10
[ 9.146450] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 9.150281] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 9.151833] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 9.153182] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 9.153230] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 9.153253] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 9.153281] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 9.153318] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 9.158776] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[ 9.159425] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[ 9.160022] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[ 9.160465] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[ 9.160503] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 9.160526] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 9.160543] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 9.160559] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 9.162339] bcm2835_v4l2-0: scene mode selected 0, was 0
[ 9.163027] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 9.164596] bcm2835_v4l2-0: V4L2 device registered as video0 - stills mode > 1280x720
[ 9.169784] bcm2835_v4l2-0: Broadcom 2835 MMAL video capture loaded.
[ 9.302433] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 9.439583] cdc_acm 1-1.1.2:1.0: ttyACM0: USB ACM device
[ 9.439865] usbcore: registered new interface driver cdc_acm
[ 9.439889] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 9.469708] cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
[ 9.470570] usbcore: registered new interface driver uas
[ 9.489316] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[ 9.716808] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 9.756059] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 9.757028] usbcore: registered new interface driver brcmfmac
[ 9.870051] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 10.051023] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[ 10.129253] Console: switching to colour dummy device 80x30
[ 10.129893] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[ 10.147114] Registered IR keymap rc-cec
[ 10.148223] rc rc0: vc4-hdmi as /devices/platform/soc/3f902000.hdmi/rc/rc0
[ 10.148506] input: vc4-hdmi as /devices/platform/soc/3f902000.hdmi/rc/rc0/input0
[ 10.154862] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[ 10.155426] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[ 10.155889] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 10.156324] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 10.158687] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 10.160517] vc4-drm soc:gpu: bound 3f600000.firmwarekms (ops vc4_fkms_ops [vc4])
[ 10.177015] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[ 10.191220] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[ 20.316931] vc4-drm soc:gpu: [drm] ERROR [CRTC:147:crtc-4] flip_done timed out
[ 20.317243] Console: switching to colour frame buffer device 90x30
[ 30.556867] vc4-drm soc:gpu: [drm] ERROR flip_done timed out
[ 30.556889] vc4-drm soc:gpu: [drm] ERROR [CRTC:147:crtc-4] commit wait timed out
[ 40.796880] vc4-drm soc:gpu: [drm] ERROR flip_done timed out
[ 40.796907] vc4-drm soc:gpu: [drm] ERROR [CONNECTOR:149:Composite-1] commit wait timed out
[ 51.036869] vc4-drm soc:gpu: [drm] ERROR flip_done timed out
[ 51.036892] vc4-drm soc:gpu: [drm] ERROR [PLANE:91:plane-4] commit wait timed out
[ 61.276865] vc4-drm soc:gpu: [drm] ERROR [CRTC:147:crtc-4] flip_done timed out
[ 61.280430] vc4-drm soc:gpu: [drm] fb0: vc4drmfb frame buffer device
[ 62.213767] uart-pl011 3f201000.serial: no DMA platform data
[ 62.367074] 8021q: 802.1Q VLAN Support v1.8
[ 62.601844] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 63.075114] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[ 63.347667] 8021q: adding VLAN 0 to HW filter on device eth0
[ 63.349618] lan78xx 1-1.1.1:1.0 eth0: Link is Down
[ 68.674944] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 71.522641] Bluetooth: Core ver 2.22
[ 71.522738] NET: Registered PF_BLUETOOTH protocol family
[ 71.522743] Bluetooth: HCI device and connection manager initialized
[ 71.522761] Bluetooth: HCI socket layer initialized
[ 71.522769] Bluetooth: L2CAP socket layer initialized
[ 71.522783] Bluetooth: SCO socket layer initialized
[ 71.535474] Bluetooth: HCI UART driver ver 2.3
[ 71.535495] Bluetooth: HCI UART protocol H4 registered
[ 71.535568] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 71.536292] Bluetooth: HCI UART protocol Broadcom registered
[ 72.097993] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 72.098012] Bluetooth: BNEP filters: protocol multicast
[ 72.098028] Bluetooth: BNEP socket layer initialized
[ 72.103602] Bluetooth: MGMT ver 1.22
[ 72.115731] NET: Registered PF_ALG protocol family
[ 72.138822] cryptd: max_cpu_qlen set to 1000
[ 73.089564] ICMPv6: process `dhcpcd’ is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead
[ 7084.470923] usb 1-1.1.2: USB disconnect, device number 4
[503231.200206] usb 1-1.1.2: new full-speed USB device number 6 using dwc_otg
[503231.343926] usb 1-1.1.2: New USB device found, idVendor=1d50, idProduct=6029, bcdDevice= 1.00
[503231.343962] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[503231.343976] usb 1-1.1.2: Product: Marlin USB Device
[503231.343986] usb 1-1.1.2: Manufacturer: marlinfw.org
[503231.343996] usb 1-1.1.2: SerialNumber: 13016014AF6D24245ECD7800F50020C2
[503231.349290] cdc_acm 1-1.1.2:1.0: ttyACM0: USB ACM device
[503231.349943] usb-storage 1-1.1.2:1.2: USB Mass Storage device detected
[503231.359951] scsi host0: usb-storage 1-1.1.2:1.2
[503232.412342] scsi 0:0:0:0: Direct-Access Marlin SDCard 01 1.0 PQ: 0 ANSI: 0 CCS
[503232.412994] sd 0:0:0:0: Attached scsi generic sg0 type 0
[503232.414321] sd 0:0:0:0: [sda] Media removed, stopped polling
[503232.415276] sd 0:0:0:0: [sda] Attached SCSI removable disk
[519063.226344] usb 1-1.1.2: USB disconnect, device number 6

  1. Troubleshooting attempts you’ve made.I have reinstalled octoprint and resetup the camera multiple times, I have tried different options in the Config trying different overlays
  2. What help do you need? RBP3B+ does not fully recognize the camera I need to be able to focus the camera

Hi,
Have you referred to the link below?

Sorry I do not see a link below?

Hi Dion do you have a link you can share so i can take a look?

Hi
https://docs.arducam.com/Raspberry-Pi-Camera/Motorized-Focus-Camera/Quick-Start-Guide/OV5647-Motorized-Focus-Camera/
Take a look at the link above

Hi Dion, I went through these steps multiple times with no luck before and again now
.
Fails on step #1 wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh

-bash: wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh: No such file or directory

When I browse to that site Releases · ArduCAM/Arducam-Pivariety-V4L2-Driver · GitHub it does not have the rest of the directory structure, there is no /releases/download directory these are the only ones and I do not know which to point to.

The links seem to be broken

However if I browse to just the weblink here https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh

Chrome will download the file.

I am limited with Python and the commands so not sure how to convert this portion wget -O install_pivariety_pkgs.sh
so the RB Pi3B+ can then access the files?

Hi Leafs
Thank your for your feedback.
I’m currently checking the repo and will reply you at the first time.

Hi
It is normal on our side. May you check the network on your Raspberry Pi and give it a try again.

Hi Dion, is there something I need to change in this command to get the PI to point to the repo as it will not work and the PI is on the internet it is running octoprint and I can access over the WAN, but this command does not let the PI access the site
“ wget -O install_pivariety_pkgs.sh”

Or is there a command I can use to run the downloaded file off of a usb key as I can download from my laptop just the full command does not get the PI to the file

Hi Dion, I have been able to copy the script to the PI and install that way but now stuck with the focus settings VL42 errors.
If I try Libcamera hello I get the VL42 error, it is the same error when trying all of the focus steps in the guide here is the output

libcamera-hello

Preview window unavailable

[0:11:45.359267161] [4019] INFO Camera camera_manager.cpp:297 libcamera v0.0.0+4367-ad9428b4

[0:11:45.433889283] [4022] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0

[0:11:45.434055482] [4022] INFO RPI pipeline_base.cpp:1101 Using configuration file ‘/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml’

[0:11:45.435287569] [4019] INFO Camera camera.cpp:1033 configuring streams: (0) 1296x972-YUV420

[0:11:45.435681060] [4022] ERROR V4L2 v4l2_videodevice.cpp:1047 /dev/video0[13:cap]: Unable to set format: Device or resource busy

ERROR: *** failed to configure streams ***

I also do not have any video once I change the bootconfig, the ov5647 overlay does not work but the vc4 overlay will work.

Enable DRM VC4 V3D driver

#dtoverlay=ov5647

#dtoverlay=vc4-kms-v3d

max_framebuffers=2

Also under all i canot use the ov5647 only the vc4 will let me see video
[all]

enable raspicam

#disable_overscan=1

start_x=1

gpu_mem=128

#dtoverlay=vc4-fkms-v3d

dtoverlay=ov5647, vcm

#dtoverlay=arducam-pivariety

Hi Dion any thoughts on what I can do to get the camera recognized?

Hi
The pdaf

Why you comment out this sentence? Please release it and reboot your pi to take effect.

Hi Dion I uncommented that line, can still see video but no controls. if I try to exter autofocus command:libcamera-still -t 0 --tuning-file /usr/share/libcamera/ipa/rpi/vc4/ov5647_af.json

I still get ERROR V4L2 v4l2_videodevice.cpp:1047 /dev/video0[14:cap]: Unable to set format: Device or resource busy

these are my lines in boot/config.txt which should and should not be uncommented? I have tried different options of what is and isnt uncommented and i either just get video with bad focus and not controls or i get no video at all.

Enable DRM VC4 V3D driver

#dtoverlay=ov5647
dtoverlay=vc4-kms-v3d
max_framebuffers=2

#ArduCamFocus
dtparam=i2c_vc=on
dtparam=i2c_arm=on

[all]

enable raspicam

#disable_overscan=1
start_x=1
gpu_mem=128
dtoverlay=vc4-fkms-v3d
#dtoverlay=ov5647, vcm
#dtoverlay=arducam-pivariety

with these steps above, only video no focus controls, if i try to enable either of the OV5647 lines, no video at all.

Hi
After enabling “dtoverlay=ov5647, vcm”, can you still not get autofocus with the command below?

libcamera-still -t 0 --tuning-file /usr/share/libcamera/ipa/rpi/vc4/ov5647_af.json