64MP Failed to allocate buffers on RPI 4 Model B

  1. Where did you get the camera module(s)?
    Preorder on arducam.com

  2. Model number of the product(s)?

Pi Hawk-eye 64MP-AF

  1. What hardware/platform were you working on?
    Raspberry Pi 4 Model B Rev 1.2 4GB

  2. Instructions you have followed. (link/manual/etc.)
    How to use arducam_64mp

  3. Problems you were having?
    Getting “Failed to allocate buffers” error message when attempting to save output file. Live preview works fine, running out of memory when attempting to save output.

[email protected]:~ $ libcamera-still -t 5000 --viewfinder-width 2312 --viewfinder-height 1736 -o 64mp.jpg
Made X/EGL preview window
[0:01:09.407048495] [1492]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3572-e13ccdd5
[0:01:09.422114618] [1494]  WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'arducam_64mp'
[0:01:09.422309857] [1494]  WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:01:09.422831148] [1494] ERROR CameraSensor camera_sensor.cpp:591 'arducam_64mp 10-001a': Camera sensor does not support test pattern modes.
[0:01:09.471616983] [1494]  WARN RPI raspberrypi.cpp:1263 Mismatch between Unicam and CamHelper for embedded data usage!
[0:01:09.472617677] [1494] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:01:09.472940656] [1494]  INFO RPI raspberrypi.cpp:1386 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media3 and ISP device /dev/media0
[0:01:09.473778204] [1492]  INFO Camera camera.cpp:1029 configuring streams: (0) 2312x1736-YUV420
[0:01:09.474296940] [1494]  INFO RPI raspberrypi.cpp:764 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 2312x1736-SBGGR10_1X10 - Selected unicam format: 2312x1736-pBAA
[0:01:14.868356053] [1492]  INFO Camera camera.cpp:1029 configuring streams: (0) 9152x6944-YUV420 (1) 9152x6944-SBGGR10_CSI2P
[0:01:14.869370324] [1494]  INFO RPI raspberrypi.cpp:764 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 9152x6944-SBGGR10_1X10 - Selected unicam format: 9152x6944-pBAA
[0:01:15.225929273] [1494] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video0[18:cap]: Unable to request 1 buffers: Cannot allocate memory
[0:01:15.226081587] [1494] ERROR RPI raspberrypi.cpp:1012 Failed to allocate buffers
ERROR: *** failed to start camera ***

  1. The dmesg log from your hardware?

See followup in the thread (exceding post body limit)

  1. Troubleshooting attempts you’ve made?

followed other threads with similar issue, but no solution found so far

  1. What help do you need?
    Need to get camera working and have ability to save output files.
  1. The dmesg log from your hardware?

Part 1

[email protected]:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 5.15.32-v8+ ([email protected]) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022
[    0.000000] random: fast init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.2
[    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] percpu: Embedded 28 pages/cpu s77144 r8192 d29352 u114688
[    0.000000] pcpu-alloc: s77144 r8192 d29352 u114688 alloc=28*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-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    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_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:[email protected] smsc95xx.macaddr=DC:A6:32:8A:D9:60 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=92961e40-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: 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: mapped [mem 0x0000000037400000-0x000000003b400000] (64MB)
[    0.000000] Memory: 3357484K/4050944K available (11456K kernel code, 1962K rwdata, 4144K rodata, 3776K init, 964K bss, 169172K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 37889 entries in 149 pages
[    0.000000] ftrace: allocated 149 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] irq_brcmstb_l2: registered L2 intc (/soc/[email protected], parent irq: 10)
[    0.000000] random: get_random_bytes called from start_kernel+0x510/0x6f8 with crng_init=1
[    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.000251] Console: colour dummy device 80x25
[    0.000304] printk: console [tty1] enabled
[    0.000365] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000390] pid_max: default: 32768 minimum: 301
[    0.000516] LSM: Security Framework initializing
[    0.000678] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000737] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.001953] cgroup: Disabling memory control group subsystem
[    0.004387] rcu: Hierarchical SRCU implementation.
[    0.005467] EFI services will not be available.
[    0.005987] smp: Bringing up secondary CPUs ...
[    0.007026] Detected PIPT I-cache on CPU1
[    0.007105] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.008319] Detected PIPT I-cache on CPU2
[    0.008370] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.009479] Detected PIPT I-cache on CPU3
[    0.009528] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.009678] smp: Brought up 1 node, 4 CPUs
[    0.009700] SMP: Total of 4 processors activated.
[    0.009714] CPU features: detected: 32-bit EL0 Support
[    0.009723] CPU features: detected: 32-bit EL1 Support
[    0.009735] CPU features: detected: CRC32 instructions
[    0.041415] CPU: All CPU(s) started at EL2
[    0.041489] alternatives: patching kernel code
[    0.043149] devtmpfs: initialized
[    0.054344] Enabled cp15_barrier support
[    0.054386] Enabled setend support
[    0.054573] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.054605] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.071244] pinctrl core: initialized pinctrl subsystem
[    0.072044] DMI not present or invalid.
[    0.072557] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.076138] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.076467] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.077360] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.077454] audit: initializing netlink subsys (disabled)
[    0.077738] audit: type=2000 audit(0.076:1): state=initialized audit_enabled=0 res=1
[    0.078232] thermal_sys: Registered thermal governor 'step_wise'
[    0.078459] cpuidle: using governor menu
[    0.078801] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.078985] ASID allocator initialised with 65536 entries
[    0.079139] Serial: AMBA PL011 UART driver
[    0.092852] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.120408] raspberrypi-firmware soc:firmware: Attached to firmware from 2022-03-24T13:19:26, variant start
[    0.124428] raspberrypi-firmware soc:firmware: Firmware hash is e5a963efa66a1974127860b42e913d2374139ff5
[    0.175516] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.179835] vgaarb: loaded
[    0.180242] SCSI subsystem initialized
[    0.180447] usbcore: registered new interface driver usbfs
[    0.180499] usbcore: registered new interface driver hub
[    0.180563] usbcore: registered new device driver usb
[    0.180978] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.181440] pps_core: LinuxPPS API ver. 1 registered
[    0.181453] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.181476] PTP clock support registered
[    0.182939] clocksource: Switched to clocksource arch_sys_counter
[    0.271497] VFS: Disk quotas dquot_6.6.0
[    0.271595] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.271759] FS-Cache: Loaded
[    0.271995] CacheFiles: Loaded
[    0.273334] simple-framebuffer 3e267000.framebuffer: framebuffer at 0x3e267000, 0x960000 bytes
[    0.273355] simple-framebuffer 3e267000.framebuffer: format=a8r8g8b8, mode=1920x1280x32, linelength=7680
[    0.273878] Console: switching to colour frame buffer device 240x80
[    0.286896] simple-framebuffer 3e267000.framebuffer: fb0: simplefb registered!
[    0.296687] NET: Registered PF_INET protocol family
[    0.297165] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.300610] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.300666] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.300865] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    0.301363] TCP: Hash tables configured (established 32768 bind 32768)
[    0.301583] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.301647] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.301923] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.302888] RPC: Registered named UNIX socket transport module.
[    0.302905] RPC: Registered udp transport module.
[    0.302954] RPC: Registered tcp transport module.
[    0.302966] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.302985] PCI: CLS 0 bytes, default 64
[    0.305343] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.305685] kvm [1]: IPA Size Limit: 44 bits
[    0.306834] kvm [1]: vgic interrupt IRQ9
[    0.307153] kvm [1]: Hyp mode initialized successfully
[    1.200764] Initialise system trusted keyrings
[    1.201117] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    1.207890] zbud: loaded
[    1.209714] FS-Cache: Netfs 'nfs' registered for caching
[    1.210369] NFS: Registering the id_resolver key type
[    1.210404] Key type id_resolver registered
[    1.210415] Key type id_legacy registered
[    1.210520] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.210534] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.211771] Key type asymmetric registered
[    1.211786] Asymmetric key parser 'x509' registered
[    1.211873] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.212136] io scheduler mq-deadline registered
[    1.212151] io scheduler kyber registered
[    1.220209] brcm-pcie fd500000.pcie: host bridge /scb/[email protected] ranges:
[    1.220251] brcm-pcie fd500000.pcie:   No bus range found for /scb/[email protected], using [bus 00-ff]
[    1.220336] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.220418] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[    1.269039] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    1.269405] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.269423] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.269441] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.269527] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.269769] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.273602] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.273969] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    1.274093] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    1.274513] pci 0000:01:00.0: PME# supported from D0 D3cold
[    1.290360] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.290405] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.290428] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    1.290468] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.290488] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.299681] iproc-rng200 fe104000.rng: hwrng registered
[    1.300267] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.301775] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.302181] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.313129] brd: module loaded
[    1.322591] loop: module loaded
[    1.323443] Loading iSCSI transport class v2.0-870.
[    1.328498] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.387098] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.388200] usbcore: registered new interface driver r8152
[    1.388265] usbcore: registered new interface driver lan78xx
[    1.388317] usbcore: registered new interface driver smsc95xx
[    1.389888] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    1.389927] xhci_hcd 0000:01:00.0: enabling device (0000 -> 0002)
[    1.390023] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.390055] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.390818] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x00003c0000000890
[    1.391801] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    1.391824] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.391839] usb usb1: Product: xHCI Host Controller
[    1.391853] usb usb1: Manufacturer: Linux 5.15.32-v8+ xhci-hcd
[    1.391866] usb usb1: SerialNumber: 0000:01:00.0
[    1.392578] hub 1-0:1.0: USB hub found
[    1.392675] hub 1-0:1.0: 1 port detected
[    1.393333] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.393357] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.393380] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.393912] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    1.393932] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.393947] usb usb2: Product: xHCI Host Controller
[    1.393960] usb usb2: Manufacturer: Linux 5.15.32-v8+ xhci-hcd
[    1.393973] usb usb2: SerialNumber: 0000:01:00.0
[    1.394613] hub 2-0:1.0: USB hub found
[    1.394704] hub 2-0:1.0: 4 ports detected
[    1.396427] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.396763] dwc_otg: FIQ enabled
[    1.396774] dwc_otg: NAK holdoff enabled
[    1.396784] dwc_otg: FIQ split-transaction FSM enabled
[    1.396797] Module dwc_common_port init
[    1.397317] usbcore: registered new interface driver uas
[    1.397429] usbcore: registered new interface driver usb-storage
[    1.397635] mousedev: PS/2 mouse device common for all mice
[    1.402678] sdhci: Secure Digital Host Controller Interface driver
[    1.402695] sdhci: Copyright(c) Pierre Ossman
[    1.403418] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.406978] ledtrig-cpu: registered to indicate activity on CPUs
[    1.407563] hid: raw HID events driver (C) Jiri Kosina
[    1.407725] usbcore: registered new interface driver usbhid
[    1.407738] usbhid: USB HID core driver
[    1.408042] ashmem: initialized
[    1.416502] Initializing XFRM netlink socket
[    1.416551] NET: Registered PF_PACKET protocol family
[    1.416667] Key type dns_resolver registered
[    1.417854] registered taskstats version 1
[    1.417897] Loading compiled-in X.509 certificates
[    1.418584] Key type ._fscrypt registered
[    1.418599] Key type .fscrypt registered
[    1.418610] Key type fscrypt-provisioning registered
[    1.430573] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.430871] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.431055] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 19, base_baud = 0) is a PL011 rev2
[    1.439794] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.440265] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.441406] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.441426] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.473236] of_cfs_init
[    1.473415] of_cfs_init: OK
[    1.505835] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.506174] Waiting for root device PARTUUID=92961e40-02...
[    1.562891] mmc1: new high speed SDIO card at address 0001
[    1.606829] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.607862] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.612103]  mmcblk0: p1 p2
[    1.612624] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.624620] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    1.624724] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.625510] devtmpfs: mounted
[    1.633070] Freeing unused kernel memory: 3776K
[    1.643111] Run /sbin/init as init process
[    1.643126]   with arguments:
[    1.643135]     /sbin/init
[    1.643145]     splash
[    1.643154]   with environment:
[    1.643163]     HOME=/
[    1.643173]     TERM=linux
[    1.647026] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.797756] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.797794] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.797810] usb 1-1: Product: USB2.0 Hub
[    1.799917] hub 1-1:1.0: USB hub found
[    1.800194] hub 1-1:1.0: 4 ports detected
[    1.994152] systemd[1]: System time before build time, advancing clock.
[    2.079080] NET: Registered PF_INET6 protocol family
[    2.080891] Segment Routing with IPv6
[    2.080942] In-situ OAM (IOAM) with IPv6
[    2.098983] usb 1-1.3: new low-speed USB device number 3 using xhci_hcd
[    2.136089] systemd[1]: systemd 247.3-7 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.136984] systemd[1]: Detected architecture arm64.
[    2.142376] systemd[1]: Set hostname to <malina4>.
[    2.207520] usb 1-1.3: New USB device found, idVendor=04f2, idProduct=1718, bcdDevice= 1.00
[    2.207561] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.207578] usb 1-1.3: Product: HP USB Optical Mouse
[    2.207593] usb 1-1.3: Manufacturer: PixArt
[    2.216659] input: PixArt HP USB Optical 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.0/0003:04F2:1718.0001/input/input0
[    2.217344] hid-generic 0003:04F2:1718.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt HP USB Optical Mouse] on usb-0000:01:00.0-1.3/input0
[    2.299059] usb 1-1.4: new low-speed USB device number 4 using xhci_hcd
[    2.412391] usb 1-1.4: New USB device found, idVendor=04f2, idProduct=1717, bcdDevice= 0.25
[    2.412429] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.412446] usb 1-1.4: Product: HP USB Keyboard
[    2.412460] usb 1-1.4: Manufacturer: Chicony
[    2.424394] input: Chicony HP USB 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.0/0003:04F2:1717.0002/input/input1
[    2.483721] hid-generic 0003:04F2:1717.0002: input,hidraw1: USB HID v1.10 Keyboard [Chicony HP USB Keyboard] on usb-0000:01:00.0-1.4/input0
[    2.490020] input: Chicony HP USB Keyboard Consumer Control 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:04F2:1717.0003/input/input2
[    2.547675] hid-generic 0003:04F2:1717.0003: input,hiddev96,hidraw2: USB HID v1.10 Device [Chicony HP USB Keyboard] on usb-0000:01:00.0-1.4/input1
[    2.712902] 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.
[    2.858596] systemd[1]: Queued start job for default target Graphical Interface.
[    2.860818] random: systemd: uninitialized urandom read (16 bytes read)
[    2.863073] systemd[1]: Created slice system-getty.slice.
[    2.863427] random: systemd: uninitialized urandom read (16 bytes read)
[    2.864404] systemd[1]: Created slice system-modprobe.slice.
[    2.864504] random: systemd: uninitialized urandom read (16 bytes read)
[    2.865443] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    2.866284] systemd[1]: Created slice User and Session Slice.
[    2.866808] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    2.867953] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    2.868452] systemd[1]: Reached target Slices.
[    2.868629] systemd[1]: Reached target Swap.
[    2.869607] systemd[1]: Listening on Syslog Socket.
[    2.870337] systemd[1]: Listening on fsck to fsckd communication Socket.
[    2.870745] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    2.872003] systemd[1]: Listening on Journal Audit Socket.
[    2.872796] systemd[1]: Listening on Journal Socket (/dev/log).
[    2.873749] systemd[1]: Listening on Journal Socket.
[    2.882103] systemd[1]: Listening on udev Control Socket.
[    2.883208] systemd[1]: Listening on udev Kernel Socket.
[    2.884152] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    2.888014] systemd[1]: Mounting POSIX Message Queue File System...
[    2.892183] systemd[1]: Mounting RPC Pipe File System...
[    2.897465] systemd[1]: Mounting Kernel Debug File System...
[    2.902554] systemd[1]: Mounting Kernel Trace File System...
[    2.903096] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    2.909858] systemd[1]: Starting Restore / save the current clock...
[    2.918200] systemd[1]: Starting Set the console keyboard layout...
[    2.923374] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    2.928935] systemd[1]: Starting Load Kernel Module configfs...
[    2.934603] systemd[1]: Starting Load Kernel Module drm...
[    2.940153] systemd[1]: Starting Load Kernel Module fuse...
[    2.945226] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    2.953221] systemd[1]: Starting File System Check on Root Device...
[    2.965136] systemd[1]: Starting Journal Service...
[    2.981450] systemd[1]: Starting Load Kernel Modules...
[    2.988746] systemd[1]: Starting Coldplug All udev Devices...
[    3.006282] systemd[1]: Mounted POSIX Message Queue File System.
[    3.007289] systemd[1]: Mounted RPC Pipe File System.
[    3.008034] systemd[1]: Mounted Kernel Debug File System.
[    3.008757] systemd[1]: Mounted Kernel Trace File System.
[    3.012469] systemd[1]: Finished Restore / save the current clock.
[    3.014443] fuse: init (API version 7.34)
[    3.027740] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    3.029883] systemd[1]: [email protected]: Succeeded.
[    3.031669] systemd[1]: Finished Load Kernel Module configfs.
[    3.033823] systemd[1]: [email protected]: Succeeded.
[    3.035583] systemd[1]: Finished Load Kernel Module fuse.
[    3.042003] systemd[1]: Mounting FUSE Control File System...
[    3.048543] systemd[1]: Mounting Kernel Configuration File System...
[    3.054609] systemd[1]: Started File System Check Daemon to report status.
[    3.062781] systemd[1]: Mounted FUSE Control File System.
[    3.075690] i2c_dev: i2c /dev entries driver
[    3.076427] systemd[1]: [email protected]: Succeeded.
[    3.079192] systemd[1]: Finished Load Kernel Module drm.
[    3.080902] systemd[1]: Mounted Kernel Configuration File System.
[    3.094877] systemd[1]: Finished Load Kernel Modules.
[    3.102153] systemd[1]: Starting Apply Kernel Variables...
[    3.170531] systemd[1]: Finished Apply Kernel Variables.
[    3.188921] systemd[1]: Finished File System Check on Root Device.
[    3.193602] systemd[1]: Starting Remount Root and Kernel File Systems...
[    3.346959] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: none.
[    3.352557] systemd[1]: Finished Remount Root and Kernel File Systems.
[    3.358521] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[    3.358749] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[    3.363477] systemd[1]: Starting Load/Save Random Seed...
[    3.368151] systemd[1]: Starting Create System Users...
[    3.369372] systemd[1]: Started Journal Service.
[    3.440125] systemd-journald[133]: Received client request to flush runtime journal.
[    3.450447] systemd-journald[133]: File /var/log/journal/e57a5140b8f248d380c5e0a5285bf406/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    4.485539] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    4.555395] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    4.576192] mc: Linux media interface: v0.10
[    4.611360] videodev: Linux video capture interface: v2.00
[    4.641442] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    4.738046] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    4.792166] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.793702] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.828686] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.854686] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    4.854727] [vc_sm_connected_init]: start
[    4.866676] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.894556] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    4.906878] [vc_sm_connected_init]: installed successfully
[    4.907385] bcm2835_audio bcm2835_audio: card created with 8 channels
[    4.913191] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.913191] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.915158] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.934637] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    4.935726] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    4.937430] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    4.984729] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    5.012417] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    5.012588] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    5.012935] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    5.019900] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    5.020441] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    5.020479] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    5.020520] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    5.020539] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    5.020556] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    5.044584] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    5.045245] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    5.045815] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    5.046339] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    5.046374] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    5.046406] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    5.046425] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    5.046443] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    5.046787] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    5.075116] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    5.075211] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    5.087869] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    5.087953] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    5.099821] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    5.099891] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    5.106164] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    5.106990] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[    5.108435] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    5.121522] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    5.182507] i2c i2c-22: Added multiplexed i2c bus 0
[    5.219317] i2c 10-001a: Fixing up cyclic dependency with fe801000.csi
[    5.301153] checking generic (3e267000 960000) vs hw (0 ffffffffffffffff)
[    5.301189] fb0: switching to vc4 from simple
[    5.304271] i2c i2c-22: Added multiplexed i2c bus 10
[    5.318358] Console: switching to colour dummy device 80x25
[    5.391208] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    5.434221] Registered IR keymap rc-cec
[    5.434475] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    5.434715] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input3
[    5.446117] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1
[    5.467754] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.508881] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.522144] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    5.678380] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    5.686403] Registered IR keymap rc-cec
[    5.703389] brcmfmac: F1 signature read @0x18000000=0x15264345
[    5.718518] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.721683] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2
[    5.729890] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    5.740102] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input4
[    5.832126] random: crng init done
[    5.832159] random: 7 urandom warning(s) missed due to ratelimiting
[    5.885399] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    5.889099] Registered IR keymap rc-cec
[    5.889305] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    5.889548] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input5
  1. The dmesg log from your hardware?

Part 2

[    6.008018] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.008223] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.016760] 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.067795] usbcore: registered new interface driver brcmfmac
[    7.192031] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    7.235575] Registered IR keymap rc-cec
[    7.235826] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    7.236043] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input6
[    7.241788] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[    7.275167] Registered IR keymap rc-cec
[    7.275432] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[    7.275651] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input7
[    7.279272] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[    7.279742] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[    7.280088] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.280416] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.280737] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.280998] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.281327] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.291934] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[    7.358535] vc4-drm gpu: [drm] The core clock cannot reach frequencies high enough to support 4k @ 60Hz.
[    7.358570] vc4-drm gpu: [drm] Please change your config.txt file to add hdmi_enable_4kp60.
[    7.401882] Console: switching to colour frame buffer device 480x135
[    7.401965] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device
[    7.897987] uart-pl011 fe201000.serial: no DMA platform data
[    7.923198] arducam_64mp: loading out-of-tree module taints kernel.
[    7.941715] arducam_64mp 10-001a: Device found Arducam 64MP.
[    7.950888] arducam_64mp 10-001a: Consider updating driver arducam_64mp to match on endpoints
[    8.025338] Adding 102396k swap on /var/swap.  Priority:-2 extents:2 across:110588k SSFS
[    8.476346] 8021q: 802.1Q VLAN Support v1.8
[    8.986692] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    9.277303] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    9.278709] bcmgenet fd580000.ethernet eth0: Link is Down
[   14.945536] Bluetooth: Core ver 2.22
[   14.945632] NET: Registered PF_BLUETOOTH protocol family
[   14.945638] Bluetooth: HCI device and connection manager initialized
[   14.945653] Bluetooth: HCI socket layer initialized
[   14.945667] Bluetooth: L2CAP socket layer initialized
[   14.945681] Bluetooth: SCO socket layer initialized
[   14.952341] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   14.969984] Bluetooth: HCI UART driver ver 2.3
[   14.970009] Bluetooth: HCI UART protocol H4 registered
[   14.970084] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   14.970283] Bluetooth: HCI UART protocol Broadcom registered
[   15.121635] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[   15.121728]  MAI: soc_pcm_open() failed (-19)
[   15.122527] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[   15.122595]  MAI: soc_pcm_open() failed (-19)
[   15.123596] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[   15.123684]  MAI: soc_pcm_open() failed (-19)
[   15.134908] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[   15.135027]  MAI: soc_pcm_open() failed (-19)
[   15.135560] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[   15.135638]  MAI: soc_pcm_open() failed (-19)
[   15.136011] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[   15.136065]  MAI: soc_pcm_open() failed (-19)
[   15.288719] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   15.288743] Bluetooth: BNEP filters: protocol multicast
[   15.288759] Bluetooth: BNEP socket layer initialized
[   15.318540] NET: Registered PF_ALG protocol family
[   15.507803] Bluetooth: RFCOMM TTY layer initialized
[   15.507866] Bluetooth: RFCOMM socket layer initialized
[   15.507910] Bluetooth: RFCOMM ver 1.11
[   31.711076] cam-dummy-reg: disabling
[   75.193347] cma: cma_alloc: linux,cma: alloc failed, req-size: 19422 pages, ret: -12
[   75.193392] ------------[ cut here ]------------
[   75.193396] WARNING: CPU: 1 PID: 1494 at mm/page_alloc.c:5380 __alloc_pages+0x2d0/0x330
[   75.193416] Modules linked in: rfcomm cmac algif_hash aes_arm64 algif_skcipher af_alg bnep hci_uart btbcm bluetooth ecdh_generic ecc 8021q garp stp llc dw9807_vcm(O) arducam_64mp(O) snd_soc_hdmi_codec joydev brcmfmac brcmutil cfg80211 rfkill v3d bcm2835_unicam raspberrypi_hwmon gpu_sched v4l2_dv_timings v4l2_fwnode v4l2_async i2c_mux_pinctrl i2c_mux i2c_brcmstb vc4 cec bcm2835_v4l2(C) bcm2835_codec(C) bcm2835_isp(C) i2c_bcm2835 bcm2835_mmal_vchiq(C) snd_bcm2835(C) drm_kms_helper v4l2_mem2mem snd_soc_core vc_sm_cma(C) videobuf2_dma_contig videobuf2_vmalloc snd_compress snd_pcm_dmaengine videobuf2_memops snd_pcm videobuf2_v4l2 videobuf2_common videodev mc snd_timer snd syscopyarea sysfillrect sysimgblt nvmem_rmem fb_sys_fops rpivid_mem uio_pdrv_genirq uio i2c_dev drm drm_panel_orientation_quirks backlight fuse ip_tables x_tables ipv6
[   75.193577] CPU: 1 PID: 1494 Comm: libcamera-still Tainted: G         C O      5.15.32-v8+ #1538
[   75.193583] Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
[   75.193588] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   75.193594] pc : __alloc_pages+0x2d0/0x330
[   75.193600] lr : __dma_direct_alloc_pages+0x168/0x1b0
[   75.193608] sp : ffffffc00a80b880
[   75.193610] x29: ffffffc00a80b880 x28: ffffff80523c8c60 x27: ffffffc00a80bb58
[   75.193620] x26: 0000000000000001 x25: ffffffc008115144 x24: 0000000000000000
[   75.193628] x23: 0000000004bde000 x22: 0000000000000cc1 x21: ffffffc008e8a9c8
[   75.193637] x20: ffffff80401dc810 x19: ffffffc008e8a9c8 x18: 0000000000000001
[   75.193645] x17: 202c736567617020 x16: 3232343931203a65 x15: 7a69732d71657220
[   75.193653] x14: 2c64656c69616620 x13: 32312d203a746572 x12: ffffffc0093a6670
[   75.193661] x11: 0000000000000003 x10: ffffffc00938e630 x9 : ffffffc008115788
[   75.193670] x8 : 0000000000017fe8 x7 : c0000000ffffefff x6 : ffffff80fb795908
[   75.193677] x5 : 0000000000000001 x4 : 000000000000003f x3 : 0000000000000000
[   75.193685] x2 : 0000000000000000 x1 : 000000000000000f x0 : 0000000000000cc1
[   75.193693] Call trace:
[   75.193696]  __alloc_pages+0x2d0/0x330
[   75.193703]  __dma_direct_alloc_pages+0x168/0x1b0
[   75.193708]  dma_direct_alloc+0x7c/0x330
[   75.193713]  dma_alloc_attrs+0xac/0xc0
[   75.193718]  vb2_dc_alloc+0x70/0x130 [videobuf2_dma_contig]
[   75.193731]  __vb2_queue_alloc+0x220/0x488 [videobuf2_common]
[   75.193748]  vb2_core_reqbufs+0x288/0x480 [videobuf2_common]
[   75.193759]  vb2_ioctl_reqbufs+0x8c/0xc8 [videobuf2_v4l2]
[   75.193771]  v4l_reqbufs+0x54/0x68 [videodev]
[   75.193809]  __video_do_ioctl+0x188/0x410 [videodev]
[   75.193839]  video_usercopy+0x310/0x7d0 [videodev]
[   75.193869]  video_ioctl2+0x20/0x38 [videodev]
[   75.193898]  v4l2_ioctl+0x48/0x68 [videodev]
[   75.193927]  __arm64_sys_ioctl+0xb0/0xf0
[   75.193934]  invoke_syscall+0x4c/0x110
[   75.193941]  el0_svc_common.constprop.3+0xfc/0x120
[   75.193947]  do_el0_svc+0x2c/0x90
[   75.193952]  el0_svc+0x24/0x60
[   75.193960]  el0t_64_sync_handler+0x90/0xb8
[   75.193966]  el0t_64_sync+0x1a0/0x1a4
[   75.193972] ---[ end trace 9730f0e2aaedce89 ]---
[   75.193978] unicam fe801000.csi: dma_alloc_coherent of size 79552512 failed
[   81.045480] v3d fec00000.v3d: MMU error from client CLE (4) at 0x23b81000, pte invalid
[  109.659977] cma: cma_alloc: linux,cma: alloc failed, req-size: 19422 pages, ret: -12
[  109.660023] unicam fe801000.csi: dma_alloc_coherent of size 79552512 failed

/boot/config.txt

[email protected]:~ $ 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
dtoverlay=vc4-kms-v3d,cma-512

[all]
dtoverlay=arducam_64mp

@morozgrafix

Please give us some more details

cat /proc/meminfo

Here you go:

[email protected]:~ $ cat /proc/meminfo 
MemTotal:        3885548 kB
MemFree:         1878740 kB
MemAvailable:    2564492 kB
Buffers:           32980 kB
Cached:          1173748 kB
SwapCached:            0 kB
Active:           144920 kB
Inactive:        1205828 kB
Active(anon):       1424 kB
Inactive(anon):   624592 kB
Active(file):     143496 kB
Inactive(file):   581236 kB
Unevictable:      416296 kB
Mlocked:              16 kB
SwapTotal:        102396 kB
SwapFree:         102396 kB
Dirty:               320 kB
Writeback:             0 kB
AnonPages:        560352 kB
Mapped:           404152 kB
Shmem:            481996 kB
KReclaimable:      35536 kB
Slab:              72112 kB
SReclaimable:      35536 kB
SUnreclaim:        36576 kB
KernelStack:        5872 kB
PageTables:        13160 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2045168 kB
Committed_AS:    3730456 kB
VmallocTotal:   259653632 kB
VmallocUsed:       12960 kB
VmallocChunk:          0 kB
Percpu:              688 kB
CmaTotal:         524288 kB
CmaFree:          398204 kB

Thanks

@morozgrafix
After reading your configuration information, there is no problem in all aspects. We tested it with the same configuration as you and everything worked fine.Now we are thinking about whether other processes in your device are occupying memory. We recommend that you re-burn the system and test it again.

This is a brand new freshly imaged SD card with latest available 64bit Raspberry PI OS. In fact I’ve tried to reimage it twice already with same results and error
The only installation of additional software and drivers was related to Arducam 64mp camera. I’m able to have output with specifying 4624x3472 16mp image, attempting to save a full res 9152x6944 64mp file throws that error. Searching the forums it sees I’m not the only one having this issue.

As of right now the camera isn’t operational and I would like to get this product working. Any additional suggestions things I can try?

I think I found the culprit. It seems that when I’m running X window/GUI environment in native resolution on a 4k montior there is not enough memory to be allocated to capture full 64mp image and output it to a file. Dropping resolution to 1280x800 or exiting X windows environment completely frees up enough memory for camera to be able to capture full resolution photos.

@morozgrafix
I’m glad that your problem has been solved, and thank you for providing us with new ideas for troubleshooting.

Same environment - fresh Bullseye installation RPI 4 Model B 8GB. Followed installation instructions with /boot/config.txt, camera_auto_detect=0, and dtoverlay=imx219.
libcamera-still -o test.jpg
Preview window unavailable
[0:05:38.976487161] [700] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3424-e68e0f1e
[0:05:39.006907090] [701] WARN RPI raspberrypi.cpp:1202 Mismatch between Unicam and CamHelper for embedded data usage!
[0:05:39.007757193] [701] INFO RPI raspberrypi.cpp:1317 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media0 and ISP device /dev/media1
[0:05:39.008494258] [700] INFO Camera camera.cpp:1028 configuring streams: (0) 1640x1232-YUV420
[0:05:39.008785873] [701] INFO RPI raspberrypi.cpp:747 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA
[0:05:39.027332334] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: Saturation = 1.000000
[0:05:39.027454983] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: Contrast = 1.000000
[0:05:39.027501484] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: Brightness = 0.000000
[0:05:39.027545836] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: AwbMode = 0
[0:05:39.027589874] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: Sharpness = 1.000000
[0:05:39.027633727] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: ExposureValue = 0.000000
[0:05:39.027695487] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: AeExposureMode = 0
[0:05:39.027738932] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: FrameDurationLimits = [ 33333, 33333 ]
[0:05:39.027785969] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: AeMeteringMode = 0
[0:05:39.027832266] [706] INFO IPARPI raspberrypi.cpp:631 Request ctrl: NoiseReductionMode = 3
[0:05:44.139474371] [700] INFO Camera camera.cpp:1028 configuring streams: (0) 3280x2464-YUV420 (1) 3280x2464-SBGGR10_CSI2P
[0:05:44.140173824] [701] INFO RPI raspberrypi.cpp:747 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 3280x2464-SBGGR10_1X10 - Selected unicam format: 3280x2464-pBAA
[0:05:44.216157769] [701] ERROR V4L2 v4l2_videodevice.cpp:1179 /dev/video14[14:cap]: Unable to request 1 buffers: Cannot allocate memory
[0:05:44.216323956] [701] ERROR RPI raspberrypi.cpp:979 Failed to allocate buffers
ERROR: *** failed to start camera ***

Solved my problem. Found solution here: Troubleshooting - Arducam

hi, @scjerry

I am glad to hear the news that your problem has been solved.

Is there a UDP pipeline for the 64mp cam? I can get tcp working using:

#server
libcamera-vid -t 0 --width 1920 --height 1080 --codec h264 -n -l -o tcp://0.0.0.0:5001

client

gst-launch-1.0 -v tcpclientsrc host=xxx.xxx.xxx.xxx port=5001 ! decodebin ! fpsdisplaysink sync=false text-overlay=false

UDP would be super useful, allowing me to stream directly to my android tablet ground control station. Thanks.

@Intoair

This is universal, there are many examples online, you can refer to the official

Thanks for responding. I tried that, it won’t work for me. Can’t seem to figure out what’s going on but I do hear the camera click but then the pipeline fails right after.

@Intoair

I have other work right now and this problem is not high priority, I will try it in my free time or after work.

Until then, you can try other solutions on the web. tcp is the same, we also use the official solution for this, it was not developed by us.

Thanks Edward. I’d really appreciate if you can help. Still struggling to get it to work on UDP

@Intoair

Just to verify his viability, everything seems to be fine.