Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]libcamera-hello preview window unavailable #561

Closed
guxiao-tetras opened this issue Aug 29, 2023 · 4 comments
Closed

[BUG]libcamera-hello preview window unavailable #561

guxiao-tetras opened this issue Aug 29, 2023 · 4 comments

Comments

@guxiao-tetras
Copy link

Describe the bug
libcamera hello failes to start preview window bug but is able to run.
Bug report

libcamera-apps Bug Report

Date: 29-08-2023 (04:32:19)
Command: /usr/local/bin/camera-bug-report -t 5 -o bugreport -c libcamera-hello


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 : 100000002352a334
Model : Raspberry Pi 4 Model B Rev 1.5


Configuration

** cat /boot/cmdline.txt **
console=serial0,115200 console=tty1 root=PARTUUID=b383bb6d-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=800

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

#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

Uncomment this to enable infrared communication.

#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

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

Enable audio (loads snd_bcm2835)

dtparam=audio=on

Automatically load overlays for detected cameras

camera_auto_detect=1

Automatically load overlays for detected DSI displays

display_auto_detect=1

Enable DRM VC4 V3D driver

dtoverlay=vc4-kms-v3d
max_framebuffers=2

Run in 64-bit mode

arm_64bit=1

Disable compensation for displays with overscan

disable_overscan=1

[cm4]

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

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

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

otg_mode=1

[all]

[pi4]

Run as fast as firmware / board allows

arm_boost=1

[all]


Logs

** dmesg **
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 6.1.21-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023
[ 0.000000] random: crng init done
[ 0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.5
[ 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-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-0x000000003b3fffff]
[ 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 DMA32: 19456 pages in unavailable ranges
[ 0.000000] On node 0, zone Normal: 16384 pages in unavailable ranges
[ 0.000000] percpu: Embedded 29 pages/cpu s78504 r8192 d32088 u118784
[ 0.000000] pcpu-alloc: s78504 r8192 d32088 u118784 alloc=29*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: Spectre-v2
[ 0.000000] CPU features: detected: Spectre-v3a
[ 0.000000] CPU features: detected: Spectre-v4
[ 0.000000] CPU features: detected: Spectre-BHB
[ 0.000000] CPU features: kernel page table isolation forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] CPU features: detected: ARM erratum 1742098
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2028848
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=HDMI-A-1:720x576M@50 smsc95xx.macaddr=D8:3A:DD:27:B4:42 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=b383bb6d-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: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x0000000037400000-0x000000003b400000] (64MB)
[ 0.000000] Memory: 7471360K/8245248K available (11776K kernel code, 2106K rwdata, 3688K rodata, 4160K init, 1077K bss, 249600K reserved, 524288K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 39744 entries in 156 pages
[ 0.000000] ftrace: allocated 156 pages with 4 groups
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[ 0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[ 0.000332] Console: colour dummy device 80x25
[ 0.000399] printk: console [tty1] enabled
[ 0.000466] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[ 0.000492] pid_max: default: 32768 minimum: 301
[ 0.000616] LSM: Security Framework initializing
[ 0.000884] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.001004] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.002306] cgroup: Disabling memory control group subsystem
[ 0.004579] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.004599] cblist_init_generic: Setting shift to 2 and lim to 1.
[ 0.004779] cblist_init_generic: Setting shift to 2 and lim to 1.
[ 0.004954] cblist_init_generic: Setting shift to 2 and lim to 1.
[ 0.005420] rcu: Hierarchical SRCU implementation.
[ 0.005434] rcu: Max phase no-delay instances is 1000.
[ 0.006757] EFI services will not be available.
[ 0.007287] smp: Bringing up secondary CPUs ...
[ 0.008451] Detected PIPT I-cache on CPU1
[ 0.008612] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[ 0.009775] Detected PIPT I-cache on CPU2
[ 0.009905] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[ 0.011016] Detected PIPT I-cache on CPU3
[ 0.011144] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[ 0.011294] smp: Brought up 1 node, 4 CPUs
[ 0.011316] SMP: Total of 4 processors activated.
[ 0.011328] CPU features: detected: 32-bit EL0 Support
[ 0.011338] CPU features: detected: 32-bit EL1 Support
[ 0.011351] CPU features: detected: CRC32 instructions
[ 0.011485] CPU: All CPU(s) started at EL2
[ 0.011510] alternatives: applying system-wide alternatives
[ 0.013584] devtmpfs: initialized
[ 0.025987] Enabled cp15_barrier support
[ 0.026028] Enabled setend support
[ 0.026245] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.026283] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.040433] pinctrl core: initialized pinctrl subsystem
[ 0.041361] DMI not present or invalid.
[ 0.042059] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.045754] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[ 0.046058] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.047007] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.047102] audit: initializing netlink subsys (disabled)
[ 0.047378] audit: type=2000 audit(0.044:1): state=initialized audit_enabled=0 res=1
[ 0.047992] thermal_sys: Registered thermal governor 'step_wise'
[ 0.048083] cpuidle: using governor menu
[ 0.048583] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.048785] ASID allocator initialised with 32768 entries
[ 0.048953] Serial: AMBA PL011 UART driver
[ 0.064594] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[ 0.079827] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/ov5647@36
[ 0.088648] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:50:39, variant start
[ 0.092662] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
[ 0.109160] KASLR enabled
[ 0.142100] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[ 0.148023] SCSI subsystem initialized
[ 0.148282] usbcore: registered new interface driver usbfs
[ 0.148342] usbcore: registered new interface driver hub
[ 0.148409] usbcore: registered new device driver usb
[ 0.148820] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 0.149051] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 0.149414] pps_core: LinuxPPS API ver. 1 registered
[ 0.149427] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
[ 0.149454] PTP clock support registered
[ 0.150616] vgaarb: loaded
[ 0.151453] clocksource: Switched to clocksource arch_sys_counter
[ 0.152116] VFS: Disk quotas dquot_6.6.0
[ 0.152199] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.152390] FS-Cache: Loaded
[ 0.152566] CacheFiles: Loaded
[ 0.163524] NET: Registered PF_INET protocol family
[ 0.164891] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.173886] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.173993] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.174026] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.174529] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
[ 0.177156] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.177439] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.177585] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.177976] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.178860] RPC: Registered named UNIX socket transport module.
[ 0.178877] RPC: Registered udp transport module.
[ 0.178888] RPC: Registered tcp transport module.
[ 0.178898] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.178923] PCI: CLS 0 bytes, default 64
[ 0.181866] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[ 0.182268] kvm [1]: IPA Size Limit: 44 bits
[ 0.183638] kvm [1]: vgic interrupt IRQ9
[ 0.183862] kvm [1]: Hyp mode initialized successfully
[ 1.321138] Initialise system trusted keyrings
[ 1.321605] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[ 1.329259] zbud: loaded
[ 1.332266] NFS: Registering the id_resolver key type
[ 1.332309] Key type id_resolver registered
[ 1.332321] Key type id_legacy registered
[ 1.332434] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.332451] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 1.333897] Key type asymmetric registered
[ 1.333917] Asymmetric key parser 'x509' registered
[ 1.333999] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 1.334283] io scheduler mq-deadline registered
[ 1.334300] io scheduler kyber registered
[ 1.336527] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 27)
[ 1.345621] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[ 1.345666] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[ 1.345757] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[ 1.345844] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x01ffffffff -> 0x0400000000
[ 1.346876] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[ 1.346896] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.346915] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[ 1.346992] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[ 1.347254] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 1.351276] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.351569] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[ 1.351762] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[ 1.351872] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[ 1.417511] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[ 1.417732] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[ 1.417861] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[ 1.418348] pci 0000:01:00.0: PME# supported from D0 D3hot
[ 1.419111] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 1.419158] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[ 1.419182] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[ 1.419226] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.419248] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff]
[ 1.420502] simple-framebuffer 3ea65000.framebuffer: framebuffer at 0x3ea65000, 0x195000 bytes
[ 1.420524] simple-framebuffer 3ea65000.framebuffer: format=a8r8g8b8, mode=720x576x32, linelength=2880
[ 1.421029] Console: switching to colour frame buffer device 90x36
[ 1.422718] simple-framebuffer 3ea65000.framebuffer: fb0: simplefb registered!
[ 1.436185] iproc-rng200 fe104000.rng: hwrng registered
[ 1.436784] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[ 1.438409] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[ 1.451707] brd: module loaded
[ 1.460634] loop: module loaded
[ 1.461528] Loading iSCSI transport class v2.0-870.
[ 1.467088] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[ 1.527577] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[ 1.528787] usbcore: registered new interface driver r8152
[ 1.528861] usbcore: registered new interface driver lan78xx
[ 1.528920] usbcore: registered new interface driver smsc95xx
[ 1.576516] pci 0000:00:00.0: enabling device (0000 -> 0002)
[ 1.576695] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.576727] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 1.577488] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000e40000000890
[ 1.578537] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.578559] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 1.578582] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 1.578987] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[ 1.579007] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.579023] usb usb1: Product: xHCI Host Controller
[ 1.579036] usb usb1: Manufacturer: Linux 6.1.21-v8+ xhci-hcd
[ 1.579048] usb usb1: SerialNumber: 0000:01:00.0
[ 1.579863] hub 1-0:1.0: USB hub found
[ 1.579934] hub 1-0:1.0: 1 port detected
[ 1.580913] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[ 1.580935] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.580949] usb usb2: Product: xHCI Host Controller
[ 1.580962] usb usb2: Manufacturer: Linux 6.1.21-v8+ xhci-hcd
[ 1.580975] usb usb2: SerialNumber: 0000:01:00.0
[ 1.581676] hub 2-0:1.0: USB hub found
[ 1.581778] hub 2-0:1.0: 4 ports detected
[ 1.583657] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.584019] dwc_otg: FIQ enabled
[ 1.584030] dwc_otg: NAK holdoff enabled
[ 1.584040] dwc_otg: FIQ split-transaction FSM enabled
[ 1.584056] Module dwc_common_port init
[ 1.584629] usbcore: registered new interface driver uas
[ 1.584746] usbcore: registered new interface driver usb-storage
[ 1.584976] mousedev: PS/2 mouse device common for all mice
[ 1.591795] sdhci: Secure Digital Host Controller Interface driver
[ 1.591813] sdhci: Copyright(c) Pierre Ossman
[ 1.592545] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.596327] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.596690] hid: raw HID events driver (C) Jiri Kosina
[ 1.596898] usbcore: registered new interface driver usbhid
[ 1.596912] usbhid: USB HID core driver
[ 1.606164] NET: Registered PF_PACKET protocol family
[ 1.606291] Key type dns_resolver registered
[ 1.607782] registered taskstats version 1
[ 1.607862] Loading compiled-in X.509 certificates
[ 1.608775] Key type .fscrypt registered
[ 1.608791] Key type fscrypt-provisioning registered
[ 1.624931] uart-pl011 fe201000.serial: there is not valid maps for state default
[ 1.625679] uart-pl011 fe201000.serial: cts_event_workaround enabled
[ 1.625833] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[ 1.635016] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 1.635549] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 1.636889] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 1.636908] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[ 1.663386] of_cfs_init
[ 1.663629] of_cfs_init: OK
[ 1.700569] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[ 1.700923] Waiting for root device PARTUUID=b383bb6d-02...
[ 1.747827] mmc1: new high speed SDIO card at address 0001
[ 1.804058] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[ 1.805083] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[ 1.808339] mmcblk0: p1 p2
[ 1.808913] mmcblk0: mmc0:aaaa SD32G 29.7 GiB (quirks 0x00004000)
[ 1.819554] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 1.819582] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 1.835458] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 1.986088] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 1.986130] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.986146] usb 1-1: Product: USB2.0 Hub
[ 1.988154] hub 1-1:1.0: USB hub found
[ 1.988380] hub 1-1:1.0: 4 ports detected
[ 2.090838] EXT4-fs (mmcblk0p2): recovery complete
[ 2.092717] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[ 2.092819] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.093681] devtmpfs: mounted
[ 2.102603] Freeing unused kernel memory: 4160K
[ 2.102811] Run /sbin/init as init process
[ 2.102823] with arguments:
[ 2.102832] /sbin/init
[ 2.102842] splash
[ 2.102851] with environment:
[ 2.102860] HOME=/
[ 2.102870] TERM=linux
[ 2.283483] usb 1-1.2: new low-speed USB device number 3 using xhci_hcd
[ 2.391796] usb 1-1.2: New USB device found, idVendor=1a2c, idProduct=4094, bcdDevice= 1.10
[ 2.391834] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.391851] usb 1-1.2: Product: USB Keyboard
[ 2.391865] usb 1-1.2: Manufacturer: SEMICO
[ 2.401458] input: SEMICO USB 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:1A2C:4094.0001/input/input0
[ 2.460284] hid-generic 0003:1A2C:4094.0001: input,hidraw0: USB HID v1.10 Keyboard [SEMICO USB Keyboard] on usb-0000:01:00.0-1.2/input0
[ 2.460323] systemd[1]: System time before build time, advancing clock.
[ 2.467140] input: SEMICO 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.2/1-1.2:1.1/0003:1A2C:4094.0002/input/input1
[ 2.523898] input: SEMICO USB 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:1A2C:4094.0002/input/input2
[ 2.524257] hid-generic 0003:1A2C:4094.0002: input,hidraw1: USB HID v1.10 Device [SEMICO USB Keyboard] on usb-0000:01:00.0-1.2/input1
[ 2.642122] NET: Registered PF_INET6 protocol family
[ 2.644139] Segment Routing with IPv6
[ 2.644182] In-situ OAM (IOAM) with IPv6
[ 2.717051] systemd[1]: systemd 247.3-7+deb11u2 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[ 2.718062] systemd[1]: Detected architecture arm64.
[ 2.725098] systemd[1]: Set hostname to .
[ 3.306005] 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.
[ 3.443252] systemd[1]: Queued start job for default target Graphical Interface.
[ 3.461131] systemd[1]: Created slice system-getty.slice.
[ 3.462453] systemd[1]: Created slice system-modprobe.slice.
[ 3.463472] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 3.464323] systemd[1]: Created slice User and Session Slice.
[ 3.464865] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 3.465982] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 3.466432] systemd[1]: Reached target Slices.
[ 3.466564] systemd[1]: Reached target Swap.
[ 3.467645] systemd[1]: Listening on Syslog Socket.
[ 3.468361] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 3.468799] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 3.470029] systemd[1]: Listening on Journal Audit Socket.
[ 3.470818] systemd[1]: Listening on Journal Socket (/dev/log).
[ 3.471815] systemd[1]: Listening on Journal Socket.
[ 3.477299] systemd[1]: Listening on udev Control Socket.
[ 3.478181] systemd[1]: Listening on udev Kernel Socket.
[ 3.479177] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 3.503958] systemd[1]: Mounting POSIX Message Queue File System...
[ 3.508772] systemd[1]: Mounting RPC Pipe File System...
[ 3.514604] systemd[1]: Mounting Kernel Debug File System...
[ 3.520347] systemd[1]: Mounting Kernel Trace File System...
[ 3.521017] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[ 3.530063] systemd[1]: Starting Restore / save the current clock...
[ 3.538454] systemd[1]: Starting Set the console keyboard layout...
[ 3.544463] systemd[1]: Starting Create list of static device nodes for the current kernel...
[ 3.550258] systemd[1]: Starting Load Kernel Module configfs...
[ 3.556469] systemd[1]: Starting Load Kernel Module drm...
[ 3.562819] systemd[1]: Starting Load Kernel Module fuse...
[ 3.565868] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 3.571850] systemd[1]: Starting File System Check on Root Device...
[ 3.582696] systemd[1]: Starting Journal Service...
[ 3.592025] systemd[1]: Starting Load Kernel Modules...
[ 3.597832] systemd[1]: Starting Coldplug All udev Devices...
[ 3.634268] systemd[1]: Mounted POSIX Message Queue File System.
[ 3.635363] systemd[1]: Mounted RPC Pipe File System.
[ 3.636383] systemd[1]: Mounted Kernel Debug File System.
[ 3.637264] systemd[1]: Mounted Kernel Trace File System.
[ 3.647608] systemd[1]: Finished Restore / save the current clock.
[ 3.650711] systemd[1]: Finished Create list of static device nodes for the current kernel.
[ 3.657687] systemd[1]: [email protected]: Succeeded.
[ 3.659331] systemd[1]: Finished Load Kernel Module configfs.
[ 3.673605] fuse: init (API version 7.37)
[ 3.685088] i2c_dev: i2c /dev entries driver
[ 3.700259] systemd[1]: Mounting Kernel Configuration File System...
[ 3.710131] systemd[1]: Started File System Check Daemon to report status.
[ 3.717853] systemd[1]: [email protected]: Succeeded.
[ 3.719518] systemd[1]: Finished Load Kernel Module fuse.
[ 3.737165] systemd[1]: Finished Load Kernel Modules.
[ 3.738397] systemd[1]: Mounted Kernel Configuration File System.
[ 3.780094] systemd[1]: Mounting FUSE Control File System...
[ 3.794676] systemd[1]: Starting Apply Kernel Variables...
[ 3.819977] systemd[1]: Mounted FUSE Control File System.
[ 3.822737] systemd[1]: [email protected]: Succeeded.
[ 3.824520] systemd[1]: Finished Load Kernel Module drm.
[ 3.842809] systemd[1]: Finished File System Check on Root Device.
[ 3.845476] systemd[1]: Finished Apply Kernel Variables.
[ 3.870577] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 4.019765] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[ 4.025184] systemd[1]: Started Journal Service.
[ 4.114963] systemd-journald[144]: Received client request to flush runtime journal.
[ 4.118216] systemd-journald[144]: File /var/log/journal/802ee6ea9ba84366b1e66f966ae4cc66/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 5.165772] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.200926] mc: Linux media interface: v0.10
[ 5.202483] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 5.202521] [vc_sm_connected_init]: start
[ 5.225591] [vc_sm_connected_init]: installed successfully
[ 5.341823] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.364157] videodev: Linux video capture interface: v2.00
[ 5.388879] bcm2835_audio bcm2835_audio: card created with 8 channels
[ 5.451354] brcmstb-i2c fef04500.i2c: @97500hz registered in polling mode
[ 5.455751] brcmstb-i2c fef09500.i2c: @97500hz registered in polling mode
[ 5.529297] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.580476] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.586101] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.613781] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.694805] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.706155] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.707201] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.720278] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 5.729129] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 5.729624] rpivid feb10000.codec: Device registered as /dev/video19
[ 5.729829] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 5.732551] i2c i2c-22: Added multiplexed i2c bus 0
[ 5.733169] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 5.733213] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 5.733237] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 5.733255] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 5.733273] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 5.761582] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[ 5.766482] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[ 5.767180] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[ 5.768532] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[ 5.768575] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 5.768597] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 5.768628] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 5.768646] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 5.769324] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 5.790506] i2c i2c-22: Added multiplexed i2c bus 10
[ 5.842855] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 5.842939] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 5.850870] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 5.850932] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 5.881494] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 5.881556] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 5.904281] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[ 5.904359] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[ 5.974702] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[ 5.974765] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[ 6.136054] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 6.197522] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 6.213851] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[ 6.221375] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[ 6.676939] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 6.735894] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 7.000941] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[ 7.023893] usbcore: registered new interface driver brcmfmac
[ 7.350519] Console: switching to colour dummy device 80x25
[ 7.403905] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 7.447695] Registered IR keymap rc-cec
[ 7.488315] rc rc0: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 7.488669] input: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input3
[ 7.679059] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[ 7.840799] uart-pl011 fe201000.serial: no DMA platform data
[ 7.889166] Registered IR keymap rc-cec
[ 7.889459] rc rc1: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[ 7.889693] input: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input4
[ 7.897604] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[ 7.899152] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[ 7.932246] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.942007] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.975373] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.976201] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.022715] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.247885] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[ 8.301312] ov5647 10-0036: Consider updating driver ov5647 to match on endpoints
[ 8.303217] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 8.370834] Console: switching to colour frame buffer device 90x36
[ 8.370906] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device
[ 8.950618] 8021q: 802.1Q VLAN Support v1.8
[ 9.482207] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 9.700124] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 9.700913] bcmgenet fd580000.ethernet eth0: Link is Down
[ 12.213723] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 15.456772] Bluetooth: Core ver 2.22
[ 15.456858] NET: Registered PF_BLUETOOTH protocol family
[ 15.456864] Bluetooth: HCI device and connection manager initialized
[ 15.456880] Bluetooth: HCI socket layer initialized
[ 15.456887] Bluetooth: L2CAP socket layer initialized
[ 15.456903] Bluetooth: SCO socket layer initialized
[ 15.481588] Bluetooth: HCI UART driver ver 2.3
[ 15.481620] Bluetooth: HCI UART protocol H4 registered
[ 15.481698] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 15.481906] Bluetooth: HCI UART protocol Broadcom registered
[ 15.943218] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 15.943241] Bluetooth: BNEP filters: protocol multicast
[ 15.943256] Bluetooth: BNEP socket layer initialized
[ 15.948661] Bluetooth: MGMT ver 1.22
[ 15.969471] NET: Registered PF_ALG protocol family
[ 16.128214] Bluetooth: RFCOMM TTY layer initialized
[ 16.128245] Bluetooth: RFCOMM socket layer initialized
[ 16.128263] Bluetooth: RFCOMM ver 1.11
[ 1852.017288] v3d fec00000.v3d: MMU error from client CLE (4) at 0x1841000, pte invalid

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

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

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


Memory

** cat /proc/meminfo **
MemTotal: 7999808 kB
MemFree: 5995244 kB
MemAvailable: 7217664 kB
Buffers: 101328 kB
Cached: 1202592 kB
SwapCached: 0 kB
Active: 832544 kB
Inactive: 976012 kB
Active(anon): 540996 kB
Inactive(anon): 1572 kB
Active(file): 291548 kB
Inactive(file): 974440 kB
Unevictable: 30872 kB
Mlocked: 16 kB
SwapTotal: 102396 kB
SwapFree: 102396 kB
Zswap: 0 kB
Zswapped: 0 kB
Dirty: 28 kB
Writeback: 0 kB
AnonPages: 535716 kB
Mapped: 190168 kB
Shmem: 37932 kB
KReclaimable: 81092 kB
Slab: 111616 kB
SReclaimable: 81092 kB
SUnreclaim: 30524 kB
KernelStack: 5528 kB
PageTables: 9212 kB
SecPageTables: 0 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 4102300 kB
Committed_AS: 1983320 kB
VmallocTotal: 259653632 kB
VmallocUsed: 13308 kB
VmallocChunk: 0 kB
Percpu: 704 kB
CmaTotal: 524288 kB
CmaFree: 509500 kB

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

Dma-buf Objects:
size flags mode count exp_name ino name
02457600 00000000 00080005 00000006 drm 00000001
write fence:drm_sched v3d_tfu seq 4459 signalled
write fence:drm_sched v3d_tfu seq 4458 signalled
Attached Devices:
fec00000.v3d
Total 1 devices attached

Total 1 objects, 2457600 bytes

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

VC-ServiceHandle 0000000020abadfb

Resources

Total resource count: 0


Media Devices

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

Media device information

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

Device topology

  • entity 1: ov5647 10-0036 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev0
    pad0: Source
    [fmt:SGBRG10_1X10/1296x972 field:none colorspace:raw
    crop.bounds:(16,6)/2592x1944
    crop:(16,6)/2592x1944]
    -> "unicam-image":0 [ENABLED,IMMUTABLE]

  • entity 3: unicam-image (1 pad, 1 link)
    type Node subtype V4L flags 1
    device node name /dev/video0
    pad0: Sink
    <- "ov5647 10-0036":0 [ENABLED,IMMUTABLE]

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

Media device information

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

Device topology

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

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

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

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

Media device information

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

Device topology

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

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

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

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

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

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

Media device information

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

Device topology

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

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

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

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

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

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

Media device information

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

Device topology

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


Cameras

** libcamera-hello --list-cameras **
Available cameras

0 : ov5647 [2592x1944 10-bit GBRG] (/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 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

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

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

** libcamera-hello --version **
libcamera-apps build: a8e6df7-intree-dirty 28-08-2023 (10:11:26)
libcamera build: v0.0.5+84-27f1d7d4


libcamera-hello

Preview window unavailable
[21:15:38.554534420] [353537] �[1;32m INFO �[1;37mCamera �[1;34mcamera_manager.cpp:297 �[0mlibcamera v0.0.5+84-27f1d7d4
[21:15:38.573418607] [353538] �[1;32m INFO �[1;37mRPI �[1;34mvc4.cpp:437 �[0mRegistered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media0 and ISP device /dev/media2
[21:15:38.573538920] [353538] �[1;32m INFO �[1;37mRPI �[1;34mpipeline_base.cpp:1101 �[0mUsing configuration file '/usr/local/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[21:15:38.574786288] [353537] �[1;32m INFO �[1;37mCamera �[1;34mcamera.cpp:1033 �[0mconfiguring streams: (0) 1296x972-YUV420
[21:15:38.575355149] [353538] �[1;32m INFO �[1;37mRPI �[1;34mvc4.cpp:565 �[0mSensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
#0 (0.00 fps) exp 33222.00 ag 5.12 dg 1.00
#1 (30.01 fps) exp 33222.00 ag 4.81 dg 1.00
#2 (30.01 fps) exp 33222.00 ag 4.94 dg 1.00
#3 (30.03 fps) exp 33222.00 ag 4.75 dg 1.01
#4 (30.01 fps) exp 33222.00 ag 4.75 dg 1.01
#5 (30.02 fps) exp 33222.00 ag 4.75 dg 1.01
#6 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#7 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#8 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#9 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#10 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#11 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#12 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#13 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#14 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#15 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#16 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#17 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#18 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#19 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#20 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#21 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#22 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#23 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#24 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#25 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#26 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#27 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#28 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#29 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#30 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#31 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#32 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#33 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#34 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#35 (30.00 fps) exp 33222.00 ag 4.75 dg 1.00
#36 (30.03 fps) exp 33222.00 ag 4.75 dg 1.00
#37 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#38 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#39 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#40 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#41 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#42 (30.01 fps) exp 33222.00 ag 4.75 dg 1.00
#43 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#44 (30.02 fps) exp 33222.00 ag 4.75 dg 1.00
#45 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#46 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#47 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#48 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#49 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#50 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#51 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#52 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#53 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#54 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#55 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#56 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#57 (30.00 fps) exp 33222.00 ag 4.69 dg 1.00
#58 (30.03 fps) exp 33222.00 ag 4.69 dg 1.00
#59 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#60 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#61 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#62 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#63 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#64 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#65 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#66 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#67 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#68 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#69 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#70 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#71 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#72 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#73 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#74 (30.00 fps) exp 33222.00 ag 4.69 dg 1.01
#75 (30.03 fps) exp 33222.00 ag 4.69 dg 1.01
#76 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#77 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#78 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#79 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#80 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#81 (30.01 fps) exp 33222.00 ag 4.69 dg 1.01
#82 (30.02 fps) exp 33222.00 ag 4.69 dg 1.01
#83 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#84 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#85 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#86 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#87 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#88 (30.03 fps) exp 33222.00 ag 4.69 dg 1.00
#89 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#90 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#91 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#92 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#93 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#94 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#95 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#96 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#97 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#98 (30.00 fps) exp 33222.00 ag 4.69 dg 1.00
#99 (30.03 fps) exp 33222.00 ag 4.69 dg 1.00
#100 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#101 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#102 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#103 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#104 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#105 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#106 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#107 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#108 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#109 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#110 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#111 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#112 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#113 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#114 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#115 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#116 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#117 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#118 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#119 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#120 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#121 (30.00 fps) exp 33222.00 ag 4.69 dg 1.00
#122 (30.03 fps) exp 33222.00 ag 4.69 dg 1.00
#123 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#124 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#125 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#126 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#127 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#128 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#129 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#130 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#131 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#132 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#133 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#134 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
#135 (30.01 fps) exp 33222.00 ag 4.69 dg 1.00
#136 (30.02 fps) exp 33222.00 ag 4.69 dg 1.00
Error: ***** TIMEOUT *****

Additional context
Add any other context about the problem here.

I did a little debug and found the the problem is here.
DrmPreview::DrmPreview(Options const *options) : Preview(options), last_fd_(-1), first_time_(true)
if (!drmIsMaster(drmfd_)) {
this will fail and throw an exception.
throw std::runtime_error("DRM preview unavailable - not master");
BTW when handling the exception, the error msg is thrown away, which makes it hard to locate the problem.

@naushir
Copy link
Collaborator

naushir commented Aug 29, 2023

You cannot use the DRM preview in a GUI windowing environment as that is the DRM master. DRM preview will only work in console mode. In a windowing environment, you should be using the EGL or QT preview modes.

> ** libcamera-hello --version **
> libcamera-apps build: a8e6df7bf18-intree-dirty 28-08-2023 (10:11:26
> libcamera build: v0.0.5+84-27f1d7d4

You seem to be running a custom build of libcamera-apps. What's most likely happened is the EGL preview libraries have not been built because of missing dependencies, and the application falls back to DRM preview and fails like above. You could either use --qt-preview to force QT preview mode (assuming the libraries have been built) or rebuild with the correct dependences so that EGL preview is available. Instructions for this can be found here.

@guxiao-tetras
Copy link
Author

You cannot use the DRM preview in a GUI windowing environment as that is the DRM master. DRM preview will only work in console mode. In a windowing environment, you should be using the EGL or QT preview modes.

> ** libcamera-hello --version **
> libcamera-apps build: a8e6df7bf18-intree-dirty 28-08-2023 (10:11:26
> libcamera build: v0.0.5+84-27f1d7d4

You seem to be running a custom build of libcamera-apps. What's most likely happened is the EGL preview libraries have not been built because of missing dependencies, and the application falls back to DRM preview and fails like above. You could either use --qt-preview to force QT preview mode (assuming the libraries have been built) or rebuild with the correct dependences so that EGL preview is available. Instructions for this can be found here.

thanks for your reply.
I tried --qt-preview wiht no luck. preview window unavailable.
I then built libepoxy but still, no.
Then I tried meson setup with --wipe.
somehow this did the trick.

I found

if enable_egl and x11_deps.found() and epoxy_deps.found()
libcamera_app_dep += [x11_deps, epoxy_deps]
libcamera_app_src += files('egl_preview.cpp')
cpp_arguments += '-DLIBEGL_PRESENT=1'
else
enable_egl = false
endif
in meson.build.
Is it possible that enable_egl is not updated when dependencies are met after the first build?

I don't understand what you said about libdrm. did you mean libdrm is supposed to be used in pure console env w/o X, like tty4?

Anyway, problem solved. Thank you.

@naushir
Copy link
Collaborator

naushir commented Aug 30, 2023

Is it possible that enable_egl is not updated when dependencies are met after the first build?

That's correct, you will need to rerun meson setup to pick up the new dependencies.

I don't understand what you said about libdrm. did you mean libdrm is supposed to be used in pure console env w/o X, like tty4?

Correct, DRM preview will only work in a console environment since there can only be one DRM master in use. If X was running, it would be the DRM master.

If you have no more issues with this, feel free to close this down.

@guxiao-tetras
Copy link
Author

Really thank you very much. I learned a lot from this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants