raspberrypi / rpicam-apps

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

libEGL warning: DRI2: failed to authenticate ( Attention when using displays) #473

Closed Petros626 closed 1 year ago

Petros626 commented 1 year ago

Hello guys,

OS: Raspberry Pi OS (64-bit)

I have like so many here also problems with the camera to start:

libEGL warning: DRI2: failed to authenticate

Until recently it worked without a problem after a suggested update, but not anymore. I also don't want to use the--qt-preview (which makes the camera work) as this is not recommended.

Using the preview window based on the QT framework, this setting is not recommended under normal circumstances, because the preview demo will not use zero-copy buffer sharing and GPU acceleration, which will occupy more resources. The QT preview window supports X forwarding (the default preview program does not).

Can anyone tell me how to fix/undo this update or is there a solution in the meantime to use the commands without the --qt-preview?

Thanks a lot

naushir commented 1 year ago

Can you copy/paste the output of the camera-bug-report tool please?

Petros626 commented 1 year ago

Thank you for answering the same day!

Sure if it's just executed by typing this command, this is my output:

(in order not to overload the page with information, i can also share the file as google drive link - just tell me)


libcamera-apps Bug Report

Date: 20-02-2023 (19:51:53) Command: /usr/bin/camera-bug-report


Hardware information

hostname raspberrypi

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

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

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

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

Hardware : BCM2835 Revision : d03115 Serial : 1000000034feab90 Model : Raspberry Pi 4 Model B Rev 1.5


Configuration

cat /boot/cmdline.txt console=serial0,115200 console=tty1 root=PARTUUID=6d9ac07d-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

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=1850 force_turbo=1 gpu_freq=550 over_voltage=3

Uncomment some or all of these to enable the optional hardware interfaces

dtparam=i2c_arm=on

dtparam=i2s=on

dtparam=spi=on

Uncomment this to enable infrared communication.

dtoverlay=gpio-ir,gpio_pin=17

dtoverlay=gpio-ir-tx,gpio_pin=18

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

Enable audio (loads snd_bcm2835)

dtparam=audio=on

Automatically load overlays for detected cameras

camera_auto_detect=1

Automatically load overlays for detected DSI displays

display_auto_detect=1

Enable DRM VC4 V3D driver

dtoverlay=vc4-kms-v3d max_framebuffers=2

Run in 64-bit mode

arm_64bit=1

Disable compensation for displays with overscan

disable_overscan=1

[cm4]

Enable host mode on the 2711 built-in XHCI USB controller.

This line should be removed if the legacy DWC2 controller is required

(e.g. for USB device mode) or if USB support is not required.

otg_mode=1

[all]

[pi4]

Run as fast as firmware / board allows

arm_boost=1

[all] gpu_mem=256

screensaver after 10 min.

hdmi_blanking=1

ignore_lcd=1 dtparam=i2c_vc=on dtparam=i2c_arm=on dtoverlay=WS_xinchDSI_Screen,SCREEN_type=8,I2C_bus=10 dtoverlay=WS_xinchDSI_Touch,I2C_bus=10,invertedx,swappedxy


Logs

dmesg [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083] [ 0.000000] Linux version 5.15.84-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 [ 0.000000] random: crng init done [ 0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.5 [ 0.000000] efi: UEFI not found. [ 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-0x000000003fffffff] [ 0.000000] DMA32 [mem 0x0000000040000000-0x00000000ffffffff] [ 0.000000] Normal [mem 0x0000000100000000-0x00000001ffffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000002fffffff] [ 0.000000] node 0: [mem 0x0000000040000000-0x00000000fbffffff] [ 0.000000] node 0: [mem 0x0000000100000000-0x00000001ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff] [ 0.000000] On node 0, zone Normal: 16384 pages in unavailable ranges [ 0.000000] percpu: Embedded 28 pages/cpu s77336 r8192 d29160 u114688 [ 0.000000] pcpu-alloc: s77336 r8192 d29160 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-v3a [ 0.000000] CPU features: detected: Spectre-v4 [ 0.000000] CPU features: detected: Spectre-BHB [ 0.000000] CPU features: kernel page table isolation forced ON by KASLR [ 0.000000] CPU features: detected: Kernel page table isolation (KPTI) [ 0.000000] CPU features: detected: ARM erratum 1742098 [ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1983488 [ 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:1920x1080M@60 smsc95xx.macaddr=E4:5F:01:F1:58:9C vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=6d9ac07d-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: 1048576 (order: 11, 8388608 bytes, linear) [ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x0000000016c00000-0x000000001ac00000] (64MB) [ 0.000000] Memory: 7488512K/8060928K available (11520K kernel code, 1956K rwdata, 4136K rodata, 3776K init, 975K bss, 244736K reserved, 327680K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 38065 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/interrupt-controller@7ef00100, parent irq: 10) [ 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.000150] Console: colour dummy device 80x25 [ 0.000175] printk: console [tty1] enabled [ 0.000204] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000) [ 0.000214] pid_max: default: 32768 minimum: 301 [ 0.000263] LSM: Security Framework initializing [ 0.000394] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.000454] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.000971] cgroup: Disabling memory control group subsystem [ 0.002077] rcu: Hierarchical SRCU implementation. [ 0.002600] EFI services will not be available. [ 0.002817] smp: Bringing up secondary CPUs ... [ 0.003239] Detected PIPT I-cache on CPU1 [ 0.003283] CPU1: Booted secondary processor 0x0000000001 [0x410fd083] [ 0.003725] Detected PIPT I-cache on CPU2 [ 0.003743] CPU2: Booted secondary processor 0x0000000002 [0x410fd083] [ 0.004209] Detected PIPT I-cache on CPU3 [ 0.004227] CPU3: Booted secondary processor 0x0000000003 [0x410fd083] [ 0.004278] smp: Brought up 1 node, 4 CPUs [ 0.004286] SMP: Total of 4 processors activated. [ 0.004291] CPU features: detected: 32-bit EL0 Support [ 0.004294] CPU features: detected: 32-bit EL1 Support [ 0.004299] CPU features: detected: CRC32 instructions [ 0.015609] CPU: All CPU(s) started at EL2 [ 0.015642] alternatives: patching kernel code [ 0.016577] devtmpfs: initialized [ 0.020925] Enabled cp15_barrier support [ 0.020946] Enabled setend support [ 0.020957] KASLR enabled [ 0.021035] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.021050] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.027195] pinctrl core: initialized pinctrl subsystem [ 0.027580] DMI not present or invalid. [ 0.027899] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.029402] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations [ 0.029508] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.029810] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.029852] audit: initializing netlink subsys (disabled) [ 0.029964] audit: type=2000 audit(0.028:1): state=initialized audit_enabled=0 res=1 [ 0.030175] thermal_sys: Registered thermal governor 'step_wise' [ 0.030263] cpuidle: using governor menu [ 0.030397] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.030468] ASID allocator initialised with 32768 entries [ 0.030539] Serial: AMBA PL011 UART driver [ 0.035481] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 0.038432] platform fe700000.dsi: Fixing up cyclic dependency with fe101000.cprman [ 0.048116] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-01-05T10:46:54, variant start [ 0.052120] raspberrypi-firmware soc:firmware: Firmware hash is 8ba17717fbcedd4c3b6d4bce7e50c7af4155cba9 [ 0.072626] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1 [ 0.074116] vgaarb: loaded [ 0.074285] SCSI subsystem initialized [ 0.074371] usbcore: registered new interface driver usbfs [ 0.074390] usbcore: registered new interface driver hub [ 0.074414] usbcore: registered new device driver usb [ 0.074557] usb_phy_generic phy: supply vcc not found, using dummy regulator [ 0.074639] usb_phy_generic phy: dummy supplies not allowed for exclusive requests [ 0.074743] pps_core: LinuxPPS API ver. 1 registered [ 0.074747] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.074755] PTP clock support registered [ 0.075402] clocksource: Switched to clocksource arch_sys_counter [ 0.115667] VFS: Disk quotas dquot_6.6.0 [ 0.115714] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.115777] FS-Cache: Loaded [ 0.119441] CacheFiles: Loaded [ 0.120004] simple-framebuffer 3e402000.framebuffer: framebuffer at 0x3e402000, 0x7f8000 bytes [ 0.120012] simple-framebuffer 3e402000.framebuffer: format=a8r8g8b8, mode=1920x1080x32, linelength=7680 [ 0.120217] Console: switching to colour frame buffer device 240x67 [ 0.124081] simple-framebuffer 3e402000.framebuffer: fb0: simplefb registered! [ 0.127539] NET: Registered PF_INET protocol family [ 0.128104] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.130106] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear) [ 0.130163] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.130180] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.130412] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear) [ 0.131337] TCP: Hash tables configured (established 65536 bind 65536) [ 0.131576] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear) [ 0.131641] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear) [ 0.131849] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.132555] RPC: Registered named UNIX socket transport module. [ 0.132563] RPC: Registered udp transport module. [ 0.132566] RPC: Registered tcp transport module. [ 0.132570] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.132578] PCI: CLS 0 bytes, default 64 [ 0.133628] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available [ 0.133770] kvm [1]: IPA Size Limit: 44 bits [ 0.134190] kvm [1]: vgic interrupt IRQ9 [ 0.134300] kvm [1]: Hyp mode initialized successfully [ 0.401223] Initialise system trusted keyrings [ 0.401400] workingset: timestamp_bits=46 max_order=21 bucket_order=0 [ 0.403765] zbud: loaded [ 0.404414] FS-Cache: Netfs 'nfs' registered for caching [ 0.404714] NFS: Registering the id_resolver key type [ 0.404734] Key type id_resolver registered [ 0.404738] Key type id_legacy registered [ 0.404775] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.404781] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 0.405235] Key type asymmetric registered [ 0.405241] Asymmetric key parser 'x509' registered [ 0.405276] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 0.405380] io scheduler mq-deadline registered [ 0.405385] io scheduler kyber registered [ 0.408355] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges: [ 0.408375] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff] [ 0.408403] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000 [ 0.408430] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x01ffffffff -> 0x0400000000 [ 0.473462] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC) [ 0.473617] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00 [ 0.473624] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.473630] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff]) [ 0.473667] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400 [ 0.473761] pci 0000:00:00.0: PME# supported from D0 D3hot [ 0.475140] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.475296] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330 [ 0.475382] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit] [ 0.475660] pci 0000:01:00.0: PME# supported from D0 D3hot [ 0.488606] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 [ 0.488626] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff] [ 0.488634] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit] [ 0.488651] pci 0000:00:00.0: PCI bridge to [bus 01] [ 0.488659] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff] [ 0.493456] iproc-rng200 fe104000.rng: hwrng registered [ 0.493629] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 0.494159] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000 [ 0.498594] brd: module loaded [ 0.502429] loop: module loaded [ 0.502796] Loading iSCSI transport class v2.0-870. [ 0.504802] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000 [ 0.563453] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus [ 0.563929] usbcore: registered new interface driver r8152 [ 0.563957] usbcore: registered new interface driver lan78xx [ 0.563977] usbcore: registered new interface driver smsc95xx [ 0.609223] pci 0000:00:00.0: enabling device (0000 -> 0002) [ 0.609332] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 0.609346] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1 [ 0.609704] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000e40000000890 [ 0.610135] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 0.610144] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 0.610156] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed [ 0.610329] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15 [ 0.610337] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.610342] usb usb1: Product: xHCI Host Controller [ 0.610347] usb usb1: Manufacturer: Linux 5.15.84-v8+ xhci-hcd [ 0.610351] usb usb1: SerialNumber: 0000:01:00.0 [ 0.610647] hub 1-0:1.0: USB hub found [ 0.610673] hub 1-0:1.0: 1 port detected [ 0.611007] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15 [ 0.611015] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.611020] usb usb2: Product: xHCI Host Controller [ 0.611024] usb usb2: Manufacturer: Linux 5.15.84-v8+ xhci-hcd [ 0.611028] usb usb2: SerialNumber: 0000:01:00.0 [ 0.611249] hub 2-0:1.0: USB hub found [ 0.611273] hub 2-0:1.0: 4 ports detected [ 0.611904] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 0.612016] dwc_otg: FIQ enabled [ 0.612020] dwc_otg: NAK holdoff enabled [ 0.612024] dwc_otg: FIQ split-transaction FSM enabled [ 0.612028] Module dwc_common_port init [ 0.612278] usbcore: registered new interface driver uas [ 0.612316] usbcore: registered new interface driver usb-storage [ 0.612401] mousedev: PS/2 mouse device common for all mice [ 0.613541] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1850000 KHz, changing to: 1900000 KHz [ 0.613868] sdhci: Secure Digital Host Controller Interface driver [ 0.613872] sdhci: Copyright(c) Pierre Ossman [ 0.614103] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.616178] ledtrig-cpu: registered to indicate activity on CPUs [ 0.616387] hid: raw HID events driver (C) Jiri Kosina [ 0.616451] usbcore: registered new interface driver usbhid [ 0.616455] usbhid: USB HID core driver [ 0.616605] ashmem: initialized [ 0.620101] NET: Registered PF_PACKET protocol family [ 0.620172] Key type dns_resolver registered [ 0.620692] registered taskstats version 1 [ 0.620712] Loading compiled-in X.509 certificates [ 0.620991] Key type .fscrypt registered [ 0.620997] Key type fscrypt-provisioning registered [ 0.625566] uart-pl011 fe201000.serial: there is not valid maps for state default [ 0.625702] uart-pl011 fe201000.serial: cts_event_workaround enabled [ 0.625774] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 19, base_baud = 0) is a PL011 rev2 [ 0.631561] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 0.631736] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 0.632202] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 0.632208] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated [ 0.658624] of_cfs_init [ 0.658692] of_cfs_init: OK [ 0.697276] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA [ 0.697417] Waiting for root device PARTUUID=6d9ac07d-02... [ 0.742015] mmc1: new high speed SDIO card at address 0001 [ 0.793674] mmc0: new ultra high speed DDR50 SDXC card at address 5048 [ 0.794163] mmcblk0: mmc0:5048 SC128 119 GiB [ 0.796142] mmcblk0: p1 p2 [ 0.796369] mmcblk0: mmc0:5048 SC128 119 GiB (quirks 0x00004000) [ 0.817662] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [ 0.817721] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 0.818189] devtmpfs: mounted [ 0.821833] Freeing unused kernel memory: 3776K [ 0.823505] Run /sbin/init as init process [ 0.823511] with arguments: [ 0.823514] /sbin/init [ 0.823517] splash [ 0.823521] with environment: [ 0.823524] HOME=/ [ 0.823527] TERM=linux [ 0.867423] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 1.018087] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21 [ 1.018107] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 1.018112] usb 1-1: Product: USB2.0 Hub [ 1.019365] hub 1-1:1.0: USB hub found [ 1.019664] hub 1-1:1.0: 4 ports detected [ 1.144903] systemd[1]: System time before build time, advancing clock. [ 1.242512] NET: Registered PF_INET6 protocol family [ 1.243326] Segment Routing with IPv6 [ 1.243344] In-situ OAM (IOAM) with IPv6 [ 1.285206] systemd[1]: systemd 247.3-7+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) [ 1.285565] systemd[1]: Detected architecture arm64. [ 1.288928] systemd[1]: Set hostname to . [ 1.315433] usb 1-1.1: new low-speed USB device number 3 using xhci_hcd [ 1.430730] usb 1-1.1: New USB device found, idVendor=1c4f, idProduct=0034, bcdDevice= 1.10 [ 1.430753] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1.430759] usb 1-1.1: Product: Usb Mouse [ 1.430764] usb 1-1.1: Manufacturer: SIGMACHIP [ 1.438914] input: SIGMACHIP Usb Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:1C4F:0034.0001/input/input0 [ 1.439117] hid-generic 0003:1C4F:0034.0001: input,hidraw0: USB HID v1.10 Mouse [SIGMACHIP Usb Mouse] on usb-0000:01:00.0-1.1/input0 [ 1.519427] usb 1-1.2: new low-speed USB device number 4 using xhci_hcd [ 1.592839] 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. [ 1.629258] usb 1-1.2: New USB device found, idVendor=045e, idProduct=00b0, bcdDevice= 1.10 [ 1.629276] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1.629282] usb 1-1.2: Product: Microsoft® Digital Media Pro Keyboard [ 1.629287] usb 1-1.2: Manufacturer: Microsoft [ 1.637878] input: Microsoft Microsoft® Digital Media Pro Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:045E:00B0.0002/input/input1 [ 1.652236] systemd[1]: Queued start job for default target Graphical Interface. [ 1.654322] systemd[1]: Created slice system-getty.slice. [ 1.654824] systemd[1]: Created slice system-modprobe.slice. [ 1.655141] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ 1.655457] systemd[1]: Created slice User and Session Slice. [ 1.655652] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 1.656085] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 1.656232] systemd[1]: Reached target Slices. [ 1.656279] systemd[1]: Reached target Swap. [ 1.658117] systemd[1]: Listening on Syslog Socket. [ 1.658414] systemd[1]: Listening on fsck to fsckd communication Socket. [ 1.658569] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 1.659046] systemd[1]: Listening on Journal Audit Socket. [ 1.659321] systemd[1]: Listening on Journal Socket (/dev/log). [ 1.659746] systemd[1]: Listening on Journal Socket. [ 1.660917] systemd[1]: Listening on udev Control Socket. [ 1.661207] systemd[1]: Listening on udev Kernel Socket. [ 1.661565] systemd[1]: Condition check resulted in Huge Pages File System being skipped. [ 1.663217] systemd[1]: Mounting POSIX Message Queue File System... [ 1.665320] systemd[1]: Mounting RPC Pipe File System... [ 1.668168] systemd[1]: Mounting Kernel Debug File System... [ 1.670964] systemd[1]: Mounting Kernel Trace File System... [ 1.671332] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped. [ 1.676623] systemd[1]: Starting Restore / save the current clock... [ 1.678922] systemd[1]: Starting Set the console keyboard layout... [ 1.681362] systemd[1]: Starting Create list of static device nodes for the current kernel... [ 1.683811] systemd[1]: Starting Load Kernel Module configfs... [ 1.687469] systemd[1]: Starting Load Kernel Module drm... [ 1.690607] systemd[1]: Starting Load Kernel Module fuse... [ 1.696657] hid-generic 0003:045E:00B0.0002: input,hidraw1: USB HID v1.11 Keyboard [Microsoft Microsoft® Digital Media Pro Keyboard] on usb-0000:01:00.0-1.2/input0 [ 1.701908] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped. [ 1.705341] input: Microsoft Microsoft® Digital Media Pro Keyboard Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.1/0003:045E:00B0.0003/input/input2 [ 1.705743] systemd[1]: Starting File System Check on Root Device... [ 1.711817] systemd[1]: Starting Journal Service... [ 1.720927] fuse: init (API version 7.34) [ 1.734839] systemd[1]: Starting Load Kernel Modules... [ 1.737843] systemd[1]: Starting Coldplug All udev Devices... [ 1.745129] systemd[1]: Mounted POSIX Message Queue File System. [ 1.745605] systemd[1]: Mounted RPC Pipe File System. [ 1.745949] systemd[1]: Mounted Kernel Debug File System. [ 1.746699] systemd[1]: Mounted Kernel Trace File System. [ 1.747702] systemd[1]: Finished Create list of static device nodes for the current kernel. [ 1.749196] systemd[1]: modprobe@configfs.service: Succeeded. [ 1.750036] systemd[1]: Finished Load Kernel Module configfs. [ 1.751543] systemd[1]: modprobe@fuse.service: Succeeded. [ 1.752237] systemd[1]: Finished Load Kernel Module fuse. [ 1.755643] systemd[1]: Mounting FUSE Control File System... [ 1.758564] systemd[1]: Mounting Kernel Configuration File System... [ 1.761787] systemd[1]: Started File System Check Daemon to report status. [ 1.764096] input: Microsoft Microsoft® Digital Media Pro Keyboard System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.1/0003:045E:00B0.0003/input/input3 [ 1.764441] hid-generic 0003:045E:00B0.0003: input,hidraw2: USB HID v1.11 Device [Microsoft Microsoft® Digital Media Pro Keyboard] on usb-0000:01:00.0-1.2/input1 [ 1.769462] systemd[1]: Mounted FUSE Control File System. [ 1.770118] systemd[1]: Mounted Kernel Configuration File System. [ 1.778102] systemd[1]: modprobe@drm.service: Succeeded. [ 1.779613] systemd[1]: Finished Load Kernel Module drm. [ 1.782975] systemd[1]: Finished Restore / save the current clock. [ 1.797193] i2c_dev: i2c /dev entries driver [ 1.799874] systemd[1]: Finished Load Kernel Modules. [ 1.802433] systemd[1]: Starting Apply Kernel Variables... [ 1.854686] systemd[1]: Started Journal Service. [ 2.031911] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: none. [ 2.054953] systemd-journald[137]: Received client request to flush runtime journal. [ 2.132922] systemd-journald[137]: File /var/log/journal/9b70ebae693242899145ffc50fc77bcf/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 3.391703] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned. [ 3.412758] bcm2835_vc_sm_cma_probe: Videocore shared memory driver

[ 3.415698] mc: Linux media interface: v0.10 [ 3.416219] [vc_sm_connected_init]: installed successfully [ 3.439337] videodev: Linux video capture interface: v2.00 [ 3.491147] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 3.493597] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 3.498981] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 3.501620] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned. [ 3.525030] i2c i2c-22: Added multiplexed i2c bus 0 [ 3.525877] brcmstb-i2c fef04500.i2c: @97500hz registered in polling mode [ 3.530215] brcmstb-i2c fef09500.i2c: @97500hz registered in polling mode [ 3.530844] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13 [ 3.531104] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14 [ 3.531323] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15 [ 3.531604] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16 [ 3.531627] bcm2835-isp bcm2835-isp: Register output node 0 with media controller [ 3.531636] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller [ 3.531643] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller [ 3.531648] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller [ 3.540384] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 3.542101] usb 1-1.1: USB disconnect, device number 3 [ 3.560861] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20 [ 3.571939] i2c 10-0036: Fixing up cyclic dependency with fe801000.csi [ 3.578962] i2c i2c-22: Added multiplexed i2c bus 10 [ 3.580766] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 3.584874] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21 [ 3.585217] bcm2835-codec bcm2835-codec: Device registered as /dev/video10 [ 3.585242] bcm2835-codec bcm2835-codec: Loaded V4L2 decode [ 3.619878] bcm2835-codec bcm2835-codec: Device registered as /dev/video11 [ 3.619914] bcm2835-codec bcm2835-codec: Loaded V4L2 encode [ 3.623611] bcm2835-codec bcm2835-codec: Device registered as /dev/video12 [ 3.623653] bcm2835-codec bcm2835-codec: Loaded V4L2 isp [ 3.624382] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22 [ 3.627570] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23 [ 3.627599] bcm2835-isp bcm2835-isp: Register output node 0 with media controller [ 3.627610] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller [ 3.627623] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller [ 3.627630] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller [ 3.629732] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp [ 3.644488] bcm2835-codec bcm2835-codec: Device registered as /dev/video18 [ 3.644526] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx [ 3.650400] bcm2835-codec bcm2835-codec: Device registered as /dev/video31 [ 3.650433] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image [ 3.654735] bcm2835_audio bcm2835_audio: card created with 8 channels [ 3.863220] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0 [ 3.915464] usb 1-1.1: new low-speed USB device number 5 using xhci_hcd [ 4.006055] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 4.023465] usb 1-1.1: New USB device found, idVendor=1c4f, idProduct=0034, bcdDevice= 1.10 [ 4.023489] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 4.023495] usb 1-1.1: Product: Usb Mouse [ 4.023500] usb 1-1.1: Manufacturer: SIGMACHIP [ 4.032063] input: SIGMACHIP Usb Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:1C4F:0034.0004/input/input4 [ 4.032379] hid-generic 0003:1C4F:0034.0004: input,hidraw0: USB HID v1.10 Mouse [SIGMACHIP Usb Mouse] on usb-0000:01:00.0-1.1/input0 [ 4.033694] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 4.059767] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid [ 4.121676] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned. [ 4.125283] rpivid feb10000.codec: Device registered as /dev/video19 [ 4.132876] brcmfmac: F1 signature read @0x18000000=0x15264345 [ 4.135006] WS_xinchDSI_Screen_Interface: loading out-of-tree module taints kernel. [ 4.138902] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 4.139474] usbcore: registered new interface driver brcmfmac [ 4.162688] WS_xinchDSI_Screen: module license 'Proprietary' taints kernel. [ 4.162714] Disabling lock debugging due to kernel taint [ 4.163249] ------------------------------------ [ 4.163255] ------------------------------------ [ 4.163258] ------------------------------------ [ 4.387758] ov5647 10-0036: Consider updating driver ov5647 to match on endpoints [ 4.402056] WS_xinchDSI_Touch 10-0014: read version failed: -121 [ 4.402074] WS_xinchDSI_Touch 10-0014: Read version failed. [ 4.402083] WS_xinchDSI_Touch: probe of 10-0014 failed with error -121 [ 4.469498] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 4.481057] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60 [ 5.346038] uart-pl011 fe201000.serial: no DMA platform data [ 5.567293] 8021q: 802.1Q VLAN Support v1.8 [ 5.642652] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS [ 6.172959] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay) [ 6.173643] bcmgenet fd580000.ethernet eth0: Link is Down [ 8.223579] bcmgenet fd580000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off [ 8.223621] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 14.028320] Bluetooth: Core ver 2.22 [ 14.028612] NET: Registered PF_BLUETOOTH protocol family [ 14.028634] Bluetooth: HCI device and connection manager initialized [ 14.028692] Bluetooth: HCI socket layer initialized [ 14.028744] Bluetooth: L2CAP socket layer initialized [ 14.028840] Bluetooth: SCO socket layer initialized [ 14.046445] Bluetooth: HCI UART driver ver 2.3 [ 14.046465] Bluetooth: HCI UART protocol H4 registered [ 14.046528] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 14.046706] Bluetooth: HCI UART protocol Broadcom registered [ 14.290468] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 14.290487] Bluetooth: BNEP filters: protocol multicast [ 14.290502] Bluetooth: BNEP socket layer initialized [ 14.310407] NET: Registered PF_ALG protocol family [ 14.420503] Bluetooth: RFCOMM TTY layer initialized [ 14.420538] Bluetooth: RFCOMM socket layer initialized [ 14.420562] Bluetooth: RFCOMM ver 1.11 [ 31.711485] cam-dummy-reg: disabling

sudo vcdbg log msg sudo: vcdbg: Befehl nicht gefunden

sudo vcdbg log assert sudo: vcdbg: Befehl nicht gefunden

sudo vcdbg log ex sudo: vcdbg: Befehl nicht gefunden


Memory

cat /proc/meminfo MemTotal: 7819968 kB MemFree: 5790596 kB MemAvailable: 6563872 kB Buffers: 33388 kB Cached: 996156 kB SwapCached: 0 kB Active: 259448 kB Inactive: 1616560 kB Active(anon): 1664 kB Inactive(anon): 1032588 kB Active(file): 257784 kB Inactive(file): 583972 kB Unevictable: 16 kB Mlocked: 16 kB SwapTotal: 102396 kB SwapFree: 102396 kB Dirty: 600 kB Writeback: 0 kB AnonPages: 846492 kB Mapped: 463300 kB Shmem: 187788 kB KReclaimable: 55488 kB Slab: 90472 kB SReclaimable: 55488 kB SUnreclaim: 34984 kB KernelStack: 7800 kB PageTables: 19584 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 4012380 kB Committed_AS: 4494140 kB VmallocTotal: 259653632 kB VmallocUsed: 15796 kB VmallocChunk: 0 kB Percpu: 688 kB CmaTotal: 327680 kB CmaFree: 317684 kB

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

Dma-buf Objects: size flags mode count exp_name ino

Total 0 objects, 0 bytes

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

VC-ServiceHandle 0000000002126db7

Resources

Total resource count: 0


Media Devices

media-ctl -d 0 -p Media controller API version 5.15.84

Media device information

driver bcm2835-isp model bcm2835-isp serial
bus info platform:bcm2835-isp hw revision 0x0 driver version 5.15.84

Device topology

media-ctl -d 1 -p Media controller API version 5.15.84

Media device information

driver unicam model unicam serial
bus info platform:fe801000.csi hw revision 0x0 driver version 5.15.84

Device topology

media-ctl -d 2 -p Media controller API version 5.15.84

Media device information

driver bcm2835-isp model bcm2835-isp serial
bus info platform:bcm2835-isp hw revision 0x0 driver version 5.15.84

Device topology

media-ctl -d 3 -p Media controller API version 5.15.84

Media device information

driver bcm2835-codec model bcm2835-codec serial 0000 bus info platform:bcm2835-codec hw revision 0x1 driver version 5.15.84

Device topology

media-ctl -d 4 -p Media controller API version 5.15.84

Media device information

driver rpivid model rpivid serial
bus info platform:rpivid hw revision 0x0 driver version 5.15.84

Device topology


Cameras

libcamera-hello --list-cameras Available cameras

0 : ov5647 [2592x1944] (/base/soc/i2c0mux/i2c@1/ov5647@36) Modes: 'SGBRG10_CSI2P' : 640x480 [58.92 fps - (16, 0)/2560x1920 crop] 1296x972 [43.25 fps - (0, 0)/2592x1944 crop] 1920x1080 [30.62 fps - (348, 434)/1928x1080 crop] 2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]


Versions

uname -a Linux raspberrypi 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux

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

vcgencmd version Jan 5 2023 10:46:54 Copyright (c) 2012 Broadcom version 8ba17717fbcedd4c3b6d4bce7e50c7af4155cba9 (clean) (release) (start)

libcamera-hello --version libcamera-apps build: 9f08463997b8 26-01-2023 (16:35:25) libcamera build: v0.0.3+40-9b860a66

naushir commented 1 year ago

Are you running the board headless or over SSH? If so, you will get this error message as the egl preview window cannot be remoted. In such cases, you will have to use the qt preview window.

Petros626 commented 1 year ago

Are you running the board headless or over SSH? If so, you will get this error message as the egl preview window cannot be remoted. In such cases, you will have to use the qt preview window.

I'm running it with with a display, keyboard etc. so no SSH. I have also read about this, but it does not apply in my case. I only know that I started a suggested update yesterday and after that the camera could no longer be started.

Do you suggest a new installation of the specific drivers?

naushir commented 1 year ago

Hmmm, that does seem strange indeed. I'm not sure, but perhaps the update process failed and you are stuck with an inconsistent set of libraries? You could try doing the following:

sudo apt purge libcamera-apps
sudo apt install -y libcamera-apps

and see if that fixes the situation. Alternatively, it would be worth trying a fresh sdcard image (and an update on top of that) if you are able to.

Petros626 commented 1 year ago

Hmmm, that does seem strange indeed. I'm not sure, but perhaps the update process failed and you are stuck with an inconsistent set of libraries? You could try doing the following:

sudo apt purge libcamera-apps
sudo apt install -y libcamera-apps

and see if that fixes the situation. Alternatively, it would be worth trying a fresh sdcard image (and an update on top of that) if you are able to.

I'll try to remove and reinstall are there further drivers or packages, which work with libcamera-apps together and should be reinstalled?

You'll get an update soon

naushir commented 1 year ago

I'll try to remove and reinstall are there further drivers or packages, which work with libcamera-apps together and should be reinstalled?

There are a few dependencies:

pi@pi4:~ $ apt-cache show libcamera-apps
Package: libcamera-apps
Version: 0~git20230125+9f08463-1
Architecture: arm64
Maintainer: Serge Schneider <serge@raspberrypi.com>
Installed-Size: 1573
Depends: libavcodec58 (>= 7:4.2), libavdevice58 (>= 7:4.0), libavformat58 (>= 7:4.2), libboost-program-options1.74.0 (>= 1.74.0), libc6 (>= 2.29), libcamera0 (>= 0~git20230124+9b860a66), libdrm2 (>= 2.4.99), libepoxy0 (>= 1.0), libexif12 (>= 0.6.21-1~), libgcc-s1 (>= 3.0), libjpeg62-turbo (>= 1.3.1), libpng16-16 (>= 1.6.2-1), libqt5core5a (>= 5.0.2), libqt5gui5 (>= 5.0.2) | libqt5gui5-gles (>= 5.0.2), libqt5widgets5 (>= 5.0.2), libstdc++6 (>= 7), libswresample3 (>= 7:4.0), libtiff5 (>= 4.0.3), libx11-6
Conflicts: libcamera-apps-lite
Replaces: libcamera-apps-lite
Homepage: https://github.com/raspberrypi/libcamera-apps/
Priority: optional
Section: video
Filename: pool/main/libc/libcamera-apps/libcamera-apps_0~git20230125+9f08463-1_arm64.deb
Size: 299648
SHA256: 5ff802ae4ba0e5a1f8dcff4bad0e39c9bf84ead06a5d8373a02dcf4b6c057f1e
SHA1: 4f7e4ad76325dabc5a526e7bb78c2faeecd6ad99
MD5sum: ff267f9f5fd90a127c76ed6aa6f20ee1
Description: libcamera-apps
 Small suite of libcamera-based apps that aim to copy the functionality of the
 existing "raspicam" apps
Description-md5: eaec0c6bb8e262e76ae4dd4bc00a12bd

but to start with, I would just try with purging libcamera-apps and see what happens.

Petros626 commented 1 year ago

Hello,

In the end, nothing has changed, not even after a new installation. You could of course use a new image, but who can guarantee that the same problem will not occur after an update? Perhaps the update should only be done via the commands sudo apt-get update and sudo apt-get (full-) upgrade.

Is the Raspberry Pi Foundation working on a solution?

naushir commented 1 year ago

You could of course use a new image, but who can guarantee that the same problem will not occur after an update

Unfortunately you seem to have hit some unknown problem with what I think is inconstancy between your local installed libraries and the updated libraries. This is the first report I've seen of such an issue. I've just tried an update on my existing installation, and with a brand new sdcard image, and both seemed to work as expected. So I don't suspect anything wrong with the latest build of the libraries.

Really the only suggestion I have is to restart with a fresh sdcard image. Sorry about that :-(

Perhaps the update should only be done via the commands sudo apt-get update and sudo apt-get (full-) upgrade.

All updates use the apt mechanism under the hood, even through the gui.

Petros626 commented 1 year ago

@naushir

Hey after I reinstalled the Bullseye and just overclock my GPU, CPU and installing my display drivers. I tried to use my camera, but I get still the same error. Some people recomment to switch to Buster 32 OS. I dont know why it worked in the past and then brokes

naushir commented 1 year ago

@naushir

Hey after I reinstalled the Bullseye and just overclock my GPU, CPU and installing my display drivers. I tried to use my camera, but I get still the same error. Some people recomment to switch to Buster 32 OS. I dont know why it worked in the past and then brokes

So this is with a freshly install sdcard image? This all seems very strange. A fresh OS image really ought to work.

When you say "installing my display drivers" what steps are you doing for this? Is this an HDMI display, or some kind of DSI panel?

Petros626 commented 1 year ago

Yes with a freshly installed sd-card hahaha. For met too, I mean I did the following changes: #uncomment to overclock the arm. 700 MHz is the default. over_voltage=3 arm_freq=1850 gpu_freq=550

It's a DSI Display and not plugged in,when I'm using the camera. I followed the tutorial from Waveshare (https://www.waveshare.com/wiki/10.1inch_DSI_LCD_(C)) step: Method 1: Install Manually. also I installed the step: Method 1: Graphical Interface Dimming.

The only change in my config.txt file after all (display works fine) is:

# settings for the waveshare display (10.1inch Capacitive Touch Display). ignore_lcd=1 dtparam=i2c_vc=on dtparam=i2c_arm=on dtoverlay=WS_xinchDSI_Screen,SCREEN_type=8,I2C_bus=10 --> is this the reason of my problem ? dtoverlay=WS_xinchDSI_Touch,I2C_bus=10,invertedx,swappedxy -> this too ?

naushir commented 1 year ago

The overclocking params should not be a problem. Can you disable the touchscreen overlays and try a monitor/TV over HDMI.

This section (see the first two Notes) in the documentation might also be relevant to your problem.

6by9 commented 1 year ago

It's a DSI Display and not plugged in,when I'm using the camera.

That'll be the problem. Device tree has defined the relevant modules for your display, so the system is expecting to find them. If any of those modules fails to probe (eg because they fail to find the relevant piece of hardware), then the entire vc4 DRM module won't bind, and you have no DRM subsystem loaded. No DRM means no route for libcamera to render frames.

You could check for modules that are being waited upon via a combination of sudo cat /sys/kernel/debug/devices_deferred (should list no devices as having deferred), and sudo cat /sys/kernel/debug/device_component/gpu (should list about 9 devices, all as "bound").

Petros626 commented 1 year ago

The overclocking params should not be a problem. Can you disable the touchscreen overlays and try a monitor/TV over HDMI.

This section (see the first two Notes) in the documentation might also be relevant to your problem.

I solved it... it's the two marked lines of the 10.1 inch display in my config.txtfile like @6by9 mentioned.

Output 1: No devices having deferred

Output 2:

master name                                            status
-------------------------------------------------------------
gpu                                                     bound

device name                                            status
-------------------------------------------------------------
fe600000.firmwarekms                                    bound

If I understand it right the display must be connected, so that the camera works fine? Is there a way to decouple this from each other, for example, using the camera without the display and using the display without the camera?

6by9 commented 1 year ago

If you're using vc4-fkms-v3d, then you can't be using the waveshare overlays as those rely on vc4-kms-v3d (note fkms vs kms).

For a standard vc4-kms-v3d Pi4 without DSI display I get

pi@raspberrypi:~ $ sudo cat /sys/kernel/debug/device_component/gpu
aggregate_device name                                  status
-------------------------------------------------------------
gpu                                                     bound

device name                                            status
-------------------------------------------------------------
fe400000.hvs                                            bound
fef00700.hdmi                                           bound
fef05700.hdmi                                           bound
fe004000.txp                                            bound
fe206000.pixelvalve                                     bound
fe207000.pixelvalve                                     bound
fe20a000.pixelvalve                                     bound
fe216000.pixelvalve                                     bound
fec12000.pixelvalve                                     bound

With your display configured I would expect to find additional entry

fe700000.dsi                                            bound

Waveshare are being naughty with regard the GPLv2 licence of the Linux kernel and haven't published source for their modules. That means we can't review them to see what is potentially going on or not. https://github.com/waveshare/Waveshare-DSI-LCD/issues/4

The display and camera should work in any combination, but you can not define hardware as being present when it isn't. You may find using a [gpioN=Y] conditional in config.txt to enable/disable hardware. https://www.raspberrypi.com/documentation/computers/config_txt.html#the-gpio-filter

Petros626 commented 1 year ago

Thank you for the for the detailed answer.

I think display and camera in combination should allow a preview window without problems, whether with libcamera-apps or the Python library picamera2 or OpenCV. I will test the behavior without HDMI display and if necessary add the post again.

The GPIO filter is only for hdmi not for dsi as I understand.

6by9 commented 1 year ago

The GPIO filter is only for hdmi not for dsi as I understand.

The GPIO filter allows selection of options based on the state of GPIO lines, eg attach a wire loop from GPIO2 to GND if you want the display enabled.

Are you confusing it with the EDID filter? That is HDMI only.

Petros626 commented 1 year ago

The GPIO filter is only for hdmi not for dsi as I understand.

The GPIO filter allows selection of options based on the state of GPIO lines, eg attach a wire loop from GPIO2 to GND if you want the display enabled.

Are you confusing it with the EDID filter? That is HDMI only.

Hey @6by9

The display cannot be controlled via one of the GPIOs on the RPi 4, it is connected directly to the display interface via a DSI ribbon cable. I can't answer the second question because the EDID*filter isn't working with DSI display.

It only works if both are present (display&camera), config.txt is currently designed for this by commenting out and restarting you can bypass this (using one hardware without the dependency of the other).

Under [all] the display settings are listed, maybe it is possible to use the camera with HDMI display with Combining Conditional Filters, but for this I need the EDID of the DSI display

If I get a working solution I'll add it here for those, who want to use a Camera with or without a DSI-Display/HDMI-Display