Weird OV9281 Resolution/exposure Issues

  1. Where did you get the camera module(s)?
    UCtronics

  2. Model number of the product(s)?
    B0165/UC788 B

  3. What hardware/platform were you working on?
    Raspberry Pi 4B

  4. Instructions you have followed. (link/manual/etc.)
    ArduCam Wiki, RasPi LibCamera tuning guide

  5. Problems you were having?
    I’m trying to make sense of some behavior I’m seeing with libcamera apps. Consider the following commands:
    1# libcamera-hello --width 640 --height 480 --shutter 5000 --gain 8 -t0
    2# libcamera-hello --width 1280 --height 720 --shutter 5000 --gain 8 -t0
    3# libcamera-hello --width 1280 --height 800 --shutter 5000 --gain 8 -t0

1 requests a video preview at 640x480px, 5ms shutter, ISO 800 (as far as i know, the max native gain of the OV9281 though I’d love to get confirmation!) and -t0, keep it up indefinitely.
2 should be identical, but higher resolution i.e. larger frame.
3 should be just about the same as 2, but the actual max sensor height rather than the 16:9 crop.

In practice, 1 shows me what I expect. 2 shows me the larger video frame as expected, but the image is brighter! I don’t understand why, with manually set shutter speed and gain, the exposure should change based on resolution. So Problem 1 is that the exposure changes depending on commanded resolution. Interestingly, the preview exposure also seems different than the same gain/shutter used to save a still with libcamera-jpeg, so maybe there’s something there?

Finally, command 3 fails multiple ways: the exposure is back to being lower as per command 1, but additionally, the system seems to fail at setting 1280x720, and falls back to 640x480. In other words, command 3 gets me basically the same result as command 1, even though 1280x800 is a supported video mode for this sensor.

  1. The dmesg log from your hardware?
    Subsequent post below

  2. Troubleshooting attempts you’ve made?
    Fiddling with various exposures and gains, but it’s hard to make sense of whether I’m getting reasonable output. Otherwise I’m not sure where to start.

  3. What help do you need?
    Hopefully someone simply knows why changing resolution might change exposure, and what parameter to manually constrain to avoid that. Similarly, hopefully someone’s run into “preview fails at 1280x800”

Some screenshots:
When I command 640x480:

When I command 1280x720:

When I command 1280x800:

dmesg:

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.1.12-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1631 SMP Mon Feb 20 17:33:29 GMT 2023
[ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.5
[ 0.000000] random: crng init done
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] Normal empty
[ 0.000000] HighMem [mem 0x0000000030000000-0x000000007fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000037ffffff]
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[ 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: 489792
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=E4:5F:01:C3:B0:50 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=d7216489-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[ 0.000000] Unknown kernel command line parameters “splash”, will be passed to user space.
[ 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] software IO TLB: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x0000000015a00000-0x0000000019a00000] (64MB)
[ 0.000000] Memory: 1534608K/1966080K available (10240K kernel code, 1501K rwdata, 3128K rodata, 2048K init, 636K bss, 103792K reserved, 327680K cma-reserved, 1179648K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 37060 entries in 109 pages
[ 0.000000] ftrace: allocated 109 pages with 5 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] 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.000000] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[ 0.000017] Switching to timer-based delay loop, resolution 18ns
[ 0.000326] Console: colour dummy device 80x30
[ 0.000388] printk: console [tty1] enabled
[ 0.000441] Calibrating delay loop (skipped), value calculated using timer frequency… 108.00 BogoMIPS (lpj=540000)
[ 0.000464] pid_max: default: 32768 minimum: 301
[ 0.000580] LSM: Security Framework initializing
[ 0.000749] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.000771] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.001971] cgroup: Disabling memory control group subsystem
[ 0.002159] CPU: Testing write buffer coherency: ok
[ 0.002210] CPU0: Spectre BHB: enabling loop workaround for all CPUs
[ 0.002543] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.003412] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.003426] cblist_init_generic: Setting shift to 2 and lim to 1.
[ 0.003540] cblist_init_generic: Setting shift to 2 and lim to 1.
[ 0.003664] Setting up static identity map for 0x200000 - 0x20003c
[ 0.003811] rcu: Hierarchical SRCU implementation.
[ 0.003822] rcu: Max phase no-delay instances is 1000.
[ 0.004525] smp: Bringing up secondary CPUs …
[ 0.005393] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.006357] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.007312] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.007422] smp: Brought up 1 node, 4 CPUs
[ 0.007440] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[ 0.007454] CPU: All CPU(s) started in HYP mode.
[ 0.007463] CPU: Virtualization extensions available.
[ 0.008049] devtmpfs: initialized
[ 0.020097] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[ 0.020265] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.020290] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.029145] pinctrl core: initialized pinctrl subsystem
[ 0.030187] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.033046] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.033642] audit: initializing netlink subsys (disabled)
[ 0.033828] audit: type=2000 audit(0.030:1): state=initialized audit_enabled=0 res=1
[ 0.034329] thermal_sys: Registered thermal governor ‘step_wise’
[ 0.035053] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.035069] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.035423] Serial: AMBA PL011 UART driver
[ 0.045249] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[ 0.070025] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-02-22T10:46:02, variant start
[ 0.080040] raspberrypi-firmware soc:firmware: Firmware hash is 74a4b109e7f5be465332a1f102649d34f8498d05
[ 0.122886] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[ 0.127164] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[ 0.130676] SCSI subsystem initialized
[ 0.130865] usbcore: registered new interface driver usbfs
[ 0.130914] usbcore: registered new interface driver hub
[ 0.130964] usbcore: registered new device driver usb
[ 0.131218] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 0.131365] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 0.131607] pps_core: LinuxPPS API ver. 1 registered
[ 0.131618] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
[ 0.131640] PTP clock support registered
[ 0.132530] vgaarb: loaded
[ 1.405191] clocksource: Switched to clocksource arch_sys_counter
[ 1.435484] VFS: Disk quotas dquot_6.6.0
[ 1.435568] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.435689] FS-Cache: Loaded
[ 1.435873] CacheFiles: Loaded
[ 1.443036] NET: Registered PF_INET protocol family
[ 1.443289] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 1.445104] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 1.445174] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 1.445258] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 1.445318] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 1.445450] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.445579] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 1.445615] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 1.445793] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 1.446272] RPC: Registered named UNIX socket transport module.
[ 1.446284] RPC: Registered udp transport module.
[ 1.446294] RPC: Registered tcp transport module.
[ 1.446303] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.446318] PCI: CLS 0 bytes, default 64
[ 1.448142] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[ 1.488995] Initialise system trusted keyrings
[ 1.489304] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[ 1.496237] zbud: loaded
[ 1.498394] NFS: Registering the id_resolver key type
[ 1.498435] Key type id_resolver registered
[ 1.498445] Key type id_legacy registered
[ 1.498544] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
[ 1.498556] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering…
[ 1.499592] Key type asymmetric registered
[ 1.499606] Asymmetric key parser ‘x509’ registered
[ 1.499839] bounce: pool size: 64 pages
[ 1.499965] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 1.500132] io scheduler mq-deadline registered
[ 1.500145] io scheduler kyber registered
[ 1.501603] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 42)
[ 1.507503] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[ 1.507537] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[ 1.507595] brcm-pcie fd500000.pcie: MEM 0x0600000000…0x063fffffff → 0x00c0000000
[ 1.507650] brcm-pcie fd500000.pcie: IB MEM 0x0000000000…0x007fffffff → 0x0400000000
[ 1.508483] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[ 1.508499] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.508516] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[ 1.508570] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[ 1.508708] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 1.511731] PCI: bus0: Fast back to back transfers disabled
[ 1.511749] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.511927] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[ 1.512074] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[ 1.512151] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[ 1.577261] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[ 1.577408] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[ 1.577519] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[ 1.577882] pci 0000:01:00.0: PME# supported from D0 D3hot
[ 1.578363] PCI: bus1: Fast back to back transfers disabled
[ 1.578377] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 1.578411] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[ 1.578432] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[ 1.578505] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.578522] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff]
[ 1.578794] pcieport 0000:00:00.0: enabling device (0000 → 0002)
[ 1.578965] pcieport 0000:00:00.0: PME: Signaling with IRQ 46
[ 1.580002] simple-framebuffer 3e402000.framebuffer: framebuffer at 0x3e402000, 0x7f8000 bytes
[ 1.580020] simple-framebuffer 3e402000.framebuffer: format=a8r8g8b8, mode=1920x1080x32, linelength=7680
[ 1.580498] Console: switching to colour frame buffer device 240x67
[ 1.589337] simple-framebuffer 3e402000.framebuffer: fb0: simplefb registered!
[ 1.595177] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 1.597476] iproc-rng200 fe104000.rng: hwrng registered
[ 1.597729] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[ 1.598721] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[ 1.608509] brd: module loaded
[ 1.615352] loop: module loaded
[ 1.615931] Loading iSCSI transport class v2.0-870.
[ 1.619908] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[ 1.715251] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[ 1.716177] usbcore: registered new interface driver r8152
[ 1.716235] usbcore: registered new interface driver lan78xx
[ 1.716304] usbcore: registered new interface driver smsc95xx
[ 1.762289] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.762320] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 1.766287] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0001e40000000890
[ 1.767173] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.767196] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 1.767215] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 1.767473] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[ 1.767491] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.767505] usb usb1: Product: xHCI Host Controller
[ 1.767517] usb usb1: Manufacturer: Linux 6.1.12-v7l+ xhci-hcd
[ 1.767529] usb usb1: SerialNumber: 0000:01:00.0
[ 1.768069] hub 1-0:1.0: USB hub found
[ 1.768117] hub 1-0:1.0: 1 port detected
[ 1.768797] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[ 1.768815] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.768829] usb usb2: Product: xHCI Host Controller
[ 1.768840] usb usb2: Manufacturer: Linux 6.1.12-v7l+ xhci-hcd
[ 1.768851] usb usb2: SerialNumber: 0000:01:00.0
[ 1.769346] hub 2-0:1.0: USB hub found
[ 1.769396] hub 2-0:1.0: 4 ports detected
[ 1.770653] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.770871] dwc_otg: FIQ enabled
[ 1.770881] dwc_otg: NAK holdoff enabled
[ 1.770890] dwc_otg: FIQ split-transaction FSM enabled
[ 1.770902] Module dwc_common_port init
[ 1.771253] usbcore: registered new interface driver uas
[ 1.771347] usbcore: registered new interface driver usb-storage
[ 1.771515] mousedev: PS/2 mouse device common for all mice
[ 1.775551] sdhci: Secure Digital Host Controller Interface driver
[ 1.775565] sdhci: Copyright(c) Pierre Ossman
[ 1.775999] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.778835] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.779049] hid: raw HID events driver (C) Jiri Kosina
[ 1.779179] usbcore: registered new interface driver usbhid
[ 1.779190] usbhid: USB HID core driver
[ 1.783825] Initializing XFRM netlink socket
[ 1.783869] NET: Registered PF_PACKET protocol family
[ 1.783946] Key type dns_resolver registered
[ 1.784531] Registering SWP/SWPB emulation handler
[ 1.785267] registered taskstats version 1
[ 1.785304] Loading compiled-in X.509 certificates
[ 1.786090] Key type .fscrypt registered
[ 1.786103] Key type fscrypt-provisioning registered
[ 1.798267] uart-pl011 fe201000.serial: there is not valid maps for state default
[ 1.798737] uart-pl011 fe201000.serial: cts_event_workaround enabled
[ 1.798843] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 51, base_baud = 0) is a PL011 rev2
[ 1.810289] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[ 1.810807] printk: console [ttyS0] disabled
[ 1.810904] fe215040.serial: ttyS0 at MMIO 0xfe215040 (irq = 52, base_baud = 62500000) is a 16550
[ 1.811189] printk: console [ttyS0] enabled
[ 1.812305] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 1.812607] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 1.813512] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 1.813530] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[ 1.841135] of_cfs_init
[ 1.841343] of_cfs_init: OK
[ 1.884476] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[ 1.884742] Waiting for root device PARTUUID=d7216489-02…
[ 1.922503] mmc1: new high speed SDIO card at address 0001
[ 1.983790] mmc0: new ultra high speed DDR50 SDHC card at address 5048
[ 1.984530] mmcblk0: mmc0:5048 SD32G 29.7 GiB
[ 1.987154] mmcblk0: p1 p2
[ 1.987607] mmcblk0: mmc0:5048 SD32G 29.7 GiB (quirks 0x00004000)
[ 2.003338] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[ 2.003404] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.003917] devtmpfs: mounted
[ 2.011905] Freeing unused kernel image (initmem) memory: 2048K
[ 2.035449] Run /sbin/init as init process
[ 2.035462] with arguments:
[ 2.035471] /sbin/init
[ 2.035481] splash
[ 2.035491] with environment:
[ 2.035500] HOME=/
[ 2.035510] TERM=linux
[ 2.055231] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 2.247816] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 2.247844] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.247860] usb 1-1: Product: USB2.0 Hub
[ 2.249702] hub 1-1:1.0: USB hub found
[ 2.249989] hub 1-1:1.0: 4 ports detected
[ 2.338168] systemd[1]: System time before build time, advancing clock.
[ 2.518923] NET: Registered PF_INET6 protocol family
[ 2.520220] Segment Routing with IPv6
[ 2.520256] In-situ OAM (IOAM) with IPv6
[ 2.591318] systemd[1]: systemd 247.3-7+rpi1+deb11u1 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.592076] systemd[1]: Detected architecture arm.
[ 2.593404] systemd[1]: Set hostname to .
[ 2.605191] usb 1-1.3: new full-speed USB device number 3 using xhci_hcd
[ 2.751400] usb 1-1.3: New USB device found, idVendor=1997, idProduct=2433, bcdDevice= 1.10
[ 2.751429] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.751445] usb 1-1.3: Product: mini keyboard
[ 2.751458] usb 1-1.3: Manufacturer:
[ 2.762130] input: mini keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:1997:2433.0001/input/input0
[ 2.825890] hid-generic 0003:1997:2433.0001: input,hidraw0: USB HID v1.01 Keyboard [ mini keyboard] on usb-0000:01:00.0-1.3/input0
[ 2.832617] input: mini keyboard Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:1997:2433.0002/input/input1
[ 2.833003] input: mini keyboard System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:1997:2433.0002/input/input2
[ 2.895557] input: mini keyboard Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:1997:2433.0002/input/input3
[ 2.895879] hid-generic 0003:1997:2433.0002: input,hidraw1: USB HID v1.01 Mouse [ mini keyboard] on usb-0000:01:00.0-1.3/input1
[ 2.995188] usb 1-1.4: new full-speed USB device number 4 using xhci_hcd
[ 3.156155] usb 1-1.4: New USB device found, idVendor=046d, idProduct=c246, bcdDevice=70.03
[ 3.156184] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.156201] usb 1-1.4: Product: G300s Optical Gaming Mouse
[ 3.156214] usb 1-1.4: Manufacturer: Logitech
[ 3.168859] input: Logitech G300s Optical Gaming Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:046D:C246.0003/input/input4
[ 3.169244] hid-generic 0003:046D:C246.0003: input,hidraw2: USB HID v1.10 Mouse [Logitech G300s Optical Gaming Mouse] on usb-0000:01:00.0-1.4/input0
[ 3.177905] input: Logitech G300s Optical Gaming Mouse Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:046D:C246.0004/input/input5
[ 3.245696] input: Logitech G300s Optical Gaming Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:046D:C246.0004/input/input6
[ 3.246336] hid-generic 0003:046D:C246.0004: input,hiddev96,hidraw3: USB HID v1.10 Keyboard [Logitech G300s Optical Gaming Mouse] on usb-0000:01:00.0-1.4/input1
[ 3.859977] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd’s process lifecycle management for the service. Please update your service to use a safer KillMode=, such as ‘mixed’ or ‘control-group’. Support for KillMode=none is deprecated and will eventually be removed.
[ 4.043312] systemd[1]: Queued start job for default target Graphical Interface.
[ 4.150458] systemd[1]: Created slice system-getty.slice.
[ 4.151726] systemd[1]: Created slice system-modprobe.slice.
[ 4.152639] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 4.153498] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 4.154196] systemd[1]: Created slice User and Session Slice.
[ 4.154647] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 4.155691] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 4.156444] systemd[1]: Reached target Slices.
[ 4.156662] systemd[1]: Reached target Swap.
[ 4.157579] systemd[1]: Listening on Syslog Socket.
[ 4.158200] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 4.158586] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 4.159514] systemd[1]: Listening on Journal Audit Socket.
[ 4.160215] systemd[1]: Listening on Journal Socket (/dev/log).
[ 4.160988] systemd[1]: Listening on Journal Socket.
[ 4.162664] systemd[1]: Listening on udev Control Socket.
[ 4.163355] systemd[1]: Listening on udev Kernel Socket.
[ 4.164171] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 4.168562] systemd[1]: Mounting POSIX Message Queue File System…
[ 4.173738] systemd[1]: Mounting RPC Pipe File System…
[ 4.179962] systemd[1]: Mounting Kernel Debug File System…
[ 4.186572] systemd[1]: Mounting Kernel Trace File System…
[ 4.187332] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[ 4.195050] systemd[1]: Starting Restore / save the current clock…
[ 4.201373] systemd[1]: Starting Set the console keyboard layout…
[ 4.207966] systemd[1]: Starting Create list of static device nodes for the current kernel…
[ 4.214311] systemd[1]: Starting Load Kernel Module configfs…
[ 4.221332] systemd[1]: Starting Load Kernel Module drm…
[ 4.228406] systemd[1]: Starting Load Kernel Module fuse…
[ 4.245336] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 4.251056] systemd[1]: Starting File System Check on Root Device…
[ 4.261854] systemd[1]: Starting Journal Service…
[ 4.296165] systemd[1]: Starting Load Kernel Modules…
[ 4.299973] fuse: init (API version 7.37)
[ 4.304379] systemd[1]: Starting Coldplug All udev Devices…
[ 4.323224] systemd[1]: Mounted POSIX Message Queue File System.
[ 4.323927] systemd[1]: Mounted RPC Pipe File System.
[ 4.324509] systemd[1]: Mounted Kernel Debug File System.
[ 4.335451] systemd[1]: Mounted Kernel Trace File System.
[ 4.337065] systemd[1]: Finished Restore / save the current clock.
[ 4.339237] systemd[1]: Finished Create list of static device nodes for the current kernel.
[ 4.340726] systemd[1]: [email protected]: Succeeded.
[ 4.341805] systemd[1]: Finished Load Kernel Module configfs.
[ 4.343432] systemd[1]: [email protected]: Succeeded.
[ 4.344513] systemd[1]: Finished Load Kernel Module fuse.
[ 4.356879] systemd[1]: Mounting FUSE Control File System…
[ 4.365692] systemd[1]: Mounting Kernel Configuration File System…
[ 4.383857] systemd[1]: Started File System Check Daemon to report status.
[ 4.397522] i2c_dev: i2c /dev entries driver
[ 4.411202] systemd[1]: Mounted FUSE Control File System.
[ 4.413448] systemd[1]: Finished Load Kernel Modules.
[ 4.414342] systemd[1]: Mounted Kernel Configuration File System.
[ 4.440771] systemd[1]: Starting Apply Kernel Variables…
[ 4.488647] systemd[1]: [email protected]: Succeeded.
[ 4.489763] systemd[1]: Finished Load Kernel Module drm.
[ 4.504902] systemd[1]: Finished Apply Kernel Variables.
[ 4.506714] systemd[1]: Finished File System Check on Root Device.
[ 4.511693] systemd[1]: Starting Remount Root and Kernel File Systems…
[ 4.635107] systemd[1]: Started Journal Service.
[ 4.672524] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[ 4.818534] systemd-journald[151]: Received client request to flush runtime journal.
[ 4.830123] systemd-journald[151]: File /var/log/journal/25070aeb79f44c94a7f7bcc85e4ba968/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 5.941171] mc: Linux media interface: v0.10
[ 6.058161] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.107404] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.109446] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 6.109478] [vc_sm_connected_init]: start
[ 6.116129] bcm2835_audio bcm2835_audio: card created with 8 channels
[ 6.123503] [vc_sm_connected_init]: installed successfully
[ 6.193146] videodev: Linux video capture interface: v2.00
[ 6.361592] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.404023] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.479668] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.505474] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 6.505843] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 6.515274] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 6.522576] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 6.522616] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 6.522641] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 6.522659] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 6.522676] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 6.542232] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.558636] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.565046] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[ 6.565732] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[ 6.567203] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[ 6.567654] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[ 6.567694] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 6.567716] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 6.567749] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 6.567778] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 6.568101] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 6.631465] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 6.631508] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 6.639419] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 6.639460] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 6.705536] rpivid feb10000.codec: Device registered as /dev/video19
[ 6.751762] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 6.751829] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 6.775917] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[ 6.775969] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[ 6.780883] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[ 6.780924] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[ 7.040532] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 7.106451] cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
[ 7.159447] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[ 7.296473] Console: switching to colour dummy device 80x30
[ 7.343937] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 7.377792] brcmstb-i2c fef04500.i2c: @97500hz registered in polling mode
[ 7.475764] Registered IR keymap rc-cec
[ 7.484593] brcmstb-i2c fef09500.i2c: @97500hz registered in polling mode
[ 7.491999] rc rc0: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 7.492419] input: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input7
[ 7.497085] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 7.505861] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 7.506604] usbcore: registered new interface driver brcmfmac
[ 7.559357] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[ 7.584333] i2c i2c-22: Added multiplexed i2c bus 0
[ 7.591294] Registered IR keymap rc-cec
[ 7.607211] rc rc1: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[ 7.608012] input: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input8
[ 7.608856] i2c 10-0060: Fixing up cyclic dependency with fe801000.csi
[ 7.609587] i2c i2c-22: Added multiplexed i2c bus 10
[ 7.614111] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[ 7.615092] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[ 7.618205] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.620084] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.621425] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.621781] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.622274] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.627165] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[ 7.703267] Console: switching to colour frame buffer device 240x67
[ 7.703313] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device
[ 7.774967] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[ 7.794501] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1
[ 8.398209] 8021q: 802.1Q VLAN Support v1.8
[ 8.494794] uart-pl011 fe201000.serial: no DMA platform data
[ 8.601113] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 8.602219] bcmgenet fd580000.ethernet eth0: Link is Down
[ 8.738538] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 10.285458] ov9281 10-0060: Detected OV009281 sensor
[ 10.285483] ov9281 10-0060: Consider updating driver ov9281 to match on endpoints

uname -a
Linux stdev 6.1.12-v7l+ #1631 SMP Mon Feb 20 17:33:29 GMT 2023 armv7l GNU/Linux

cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

cat /proc/meminfo

MemTotal:        1864336 kB
MemFree:         1024232 kB
MemAvailable:    1529312 kB
Buffers:           41948 kB
Cached:           566732 kB
SwapCached:            0 kB
Active:           456596 kB
Inactive:         245920 kB
Active(anon):     137924 kB
Inactive(anon):     1544 kB
Active(file):     318672 kB
Inactive(file):   244376 kB
Unevictable:       35504 kB
Mlocked:              16 kB
HighTotal:       1179648 kB
HighFree:         466712 kB
LowTotal:         684688 kB
LowFree:          557520 kB
SwapTotal:        102396 kB
SwapFree:         102396 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        129392 kB
Mapped:           140036 kB
Shmem:             45632 kB
KReclaimable:      28032 kB
Slab:              48684 kB
SReclaimable:      28032 kB
SUnreclaim:        20652 kB
KernelStack:        2080 kB
PageTables:         5400 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1034564 kB
Committed_AS:    1028472 kB
VmallocTotal:     245760 kB
VmallocUsed:        8412 kB
VmallocChunk:          0 kB
Percpu:              464 kB
CmaTotal:         327680 kB
CmaFree:          300672 kB

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
dtoverlay=ov9281
#dtoverlay=arducam-pivariety

# Automatically load overlays for detected DSI displays
display_auto_detect=1

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

# 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

# Use pwr as CPU indicator, and act as normally-lit eMMC indicator (blinks min 1hz, so act-blinking means don't unplug!)
dtparam=pwr_led_trigger=cpu
dtparam=act_led_trigger=actpwr

camera_auto_detect=1
gpu_mem=128
enable_uart=1

# Gadget mode
#dtoverlay=dwc2