Repository navigation
Description
Describe the bug
I'm using a raspberry pi 4B, unless I set dtoverlay to use vc4-fkms-v3d I can't manage to get any signal through the HDMI after the raspberry boot logo with the kms driver. Last raspbian version then doesn't really work unless I fix the config.txt file. Older raspbian versions such as the stable version seem to work as expected (apart from some hiccups such as the system getting stuck at boot showing the "_" at the top left of the screen, behaviour that also applies to the newer version too sometimes, even using fkms
I also have the same problem on libreelec version 10.0.1 onwards, which I think it might be using this linux kernel, but I'm gonna ask on their forum too. Their version 10.0.0 seems to work fine though but I think it was using an older graphics driver.
At first I thought it was because I was dual booting the two using PINN but even flashing the sdcard with raspian alone I get the same result.
I tried resetting the EEPROM a few times, tried different AC adapter and tried different sdcards and two different TVs getting the same result.
Steps to reproduce the behaviour
- reset the EEPROM
- flash raspbian last version
- boot it
Device (s)
Raspberry Pi 4 Mod. B
System
$ cat /etc/rpi-issue
Raspberry Pi reference 2022-09-06
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 66255495f29be5d09b765d081aff6fc0f11e59b4, stage4
$ vcgencmd version
Aug 26 2022 14:03:16
Copyright (c) 2012 Broadcom
version 102f1e848393c2112206fadffaaf86db04e98326 (clean) (release) (start)
$ uname -a
Linux raspberrypi 5.15.61-v7l+ #1579 SMP Fri Aug 26 11:13:03 BST 2022 armv7l GNU/Linux
Logs
This is the log using vc4-fkms-v3d as I can't get the dmesg while using kms.
I'll try to add one through ssh when I'll be able to do so...
$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.15.61-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1579 SMP Fri Aug 26 11:13:03 BST 2022
[ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1
[ 0.000000] random: crng init done
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] Normal empty
[ 0.000000] HighMem [mem 0x0000000030000000-0x00000000fbffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000003b3fffff]
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000fbffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff]
[ 0.000000] percpu: Embedded 16 pages/cpu s35788 r8192 d21556 u65536
[ 0.000000] pcpu-alloc: s35788 r8192 d21556 u65536 alloc=16*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1011008
[ 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=DC:A6:32:32:68:2B vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=d9e688b1-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[ 0.000000] Unknown kernel command line parameters "splash", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x0000000014890000-0x0000000018890000] (64MB)
[ 0.000000] Memory: 3601324K/4050944K available (10240K kernel code, 1385K rwdata, 3304K rodata, 2048K init, 592K bss, 121940K reserved, 327680K cma-reserved, 3264512K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 35501 entries in 105 pages
[ 0.000000] ftrace: allocated 105 pages with 4 groups
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 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.000018] Switching to timer-based delay loop, resolution 18ns
[ 0.000367] Console: colour dummy device 80x30
[ 0.000431] printk: console [tty1] enabled
[ 0.000499] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[ 0.000530] pid_max: default: 32768 minimum: 301
[ 0.000671] LSM: Security Framework initializing
[ 0.000880] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.000910] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002499] cgroup: Disabling memory control group subsystem
[ 0.002751] CPU: Testing write buffer coherency: ok
[ 0.002809] CPU0: Spectre BHB: enabling loop workaround for all CPUs
[ 0.003274] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.004633] Setting up static identity map for 0x200000 - 0x20003c
[ 0.004859] rcu: Hierarchical SRCU implementation.
[ 0.005892] smp: Bringing up secondary CPUs ...
[ 0.007099] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.008428] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.009760] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.009929] smp: Brought up 1 node, 4 CPUs
[ 0.009952] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[ 0.009970] CPU: All CPU(s) started in HYP mode.
[ 0.009983] CPU: Virtualization extensions available.
[ 0.010787] devtmpfs: initialized
[ 0.026055] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[ 0.026295] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.026329] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.036843] pinctrl core: initialized pinctrl subsystem
[ 0.038090] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.042675] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.043466] audit: initializing netlink subsys (disabled)
[ 0.043728] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[ 0.044398] thermal_sys: Registered thermal governor 'step_wise'
[ 0.045214] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.045234] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.045655] Serial: AMBA PL011 UART driver
[ 0.057123] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[ 0.090051] raspberrypi-firmware soc:firmware: Attached to firmware from 2022-08-26T14:03:16, variant start
[ 0.100067] raspberrypi-firmware soc:firmware: Firmware hash is 102f1e848393c2112206fadffaaf86db04e98326
[ 0.159040] Kprobes globally optimized
[ 0.165153] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[ 0.169625] vgaarb: loaded
[ 0.170125] SCSI subsystem initialized
[ 0.170934] usbcore: registered new interface driver usbfs
[ 0.171009] usbcore: registered new interface driver hub
[ 0.171085] usbcore: registered new device driver usb
[ 0.171436] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 0.171629] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 0.171965] pps_core: LinuxPPS API ver. 1 registered
[ 0.171980] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.172009] PTP clock support registered
[ 0.173782] clocksource: Switched to clocksource arch_sys_counter
[ 0.254521] VFS: Disk quotas dquot_6.6.0
[ 0.254631] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.254816] FS-Cache: Loaded
[ 0.255024] CacheFiles: Loaded
[ 0.256103] simple-framebuffer 3e3cf000.framebuffer: framebuffer at 0x3e3cf000, 0x7f8000 bytes
[ 0.256126] simple-framebuffer 3e3cf000.framebuffer: format=a8r8g8b8, mode=1920x1080x32, linelength=7680
[ 0.256653] Console: switching to colour frame buffer device 240x67
[ 0.267286] simple-framebuffer 3e3cf000.framebuffer: fb0: simplefb registered!
[ 0.277036] NET: Registered PF_INET protocol family
[ 0.277300] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.278933] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.278968] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.278993] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.279059] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.279133] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.279292] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.279329] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.279589] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.284712] RPC: Registered named UNIX socket transport module.
[ 0.284730] RPC: Registered udp transport module.
[ 0.284744] RPC: Registered tcp transport module.
[ 0.284758] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.284781] PCI: CLS 0 bytes, default 64
[ 1.323648] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[ 1.326154] Initialise system trusted keyrings
[ 1.326462] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[ 1.335590] zbud: loaded
[ 1.337572] FS-Cache: Netfs 'nfs' registered for caching
[ 1.338420] NFS: Registering the id_resolver key type
[ 1.338465] Key type id_resolver registered
[ 1.338480] Key type id_legacy registered
[ 1.338611] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.338627] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 1.339746] Key type asymmetric registered
[ 1.339764] Asymmetric key parser 'x509' registered
[ 1.339995] bounce: pool size: 64 pages
[ 1.340071] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 1.340322] io scheduler mq-deadline registered
[ 1.340338] io scheduler kyber registered
[ 1.349397] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[ 1.349440] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[ 1.349537] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[ 1.349629] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[ 1.405884] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[ 1.406303] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[ 1.406323] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.406345] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[ 1.406439] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[ 1.406689] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 1.410366] PCI: bus0: Fast back to back transfers disabled
[ 1.410391] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.410764] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[ 1.410894] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[ 1.411328] pci 0000:01:00.0: PME# supported from D0 D3cold
[ 1.415020] PCI: bus1: Fast back to back transfers disabled
[ 1.415040] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 1.415085] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[ 1.415113] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[ 1.415198] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.415223] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff]
[ 1.415637] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[ 1.415877] pcieport 0000:00:00.0: PME: Signaling with IRQ 60
[ 1.428589] iproc-rng200 fe104000.rng: hwrng registered
[ 1.428906] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[ 1.430363] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[ 1.443404] brd: module loaded
[ 1.453938] loop: module loaded
[ 1.454689] Loading iSCSI transport class v2.0-870.
[ 1.459861] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[ 1.553971] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[ 1.555204] usbcore: registered new interface driver r8152
[ 1.555280] usbcore: registered new interface driver lan78xx
[ 1.555361] usbcore: registered new interface driver smsc95xx
[ 1.557002] xhci_hcd 0000:01:00.0: enabling device (0140 -> 0142)
[ 1.557187] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.557222] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 1.562939] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x00003c0000000890
[ 1.564090] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.564119] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 1.564145] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 1.564538] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 1.564563] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.564583] usb usb1: Product: xHCI Host Controller
[ 1.564600] usb usb1: Manufacturer: Linux 5.15.61-v7l+ xhci-hcd
[ 1.564616] usb usb1: SerialNumber: 0000:01:00.0
[ 1.565379] hub 1-0:1.0: USB hub found
[ 1.565448] hub 1-0:1.0: 1 port detected
[ 1.566543] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[ 1.566567] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.566585] usb usb2: Product: xHCI Host Controller
[ 1.566602] usb usb2: Manufacturer: Linux 5.15.61-v7l+ xhci-hcd
[ 1.566618] usb usb2: SerialNumber: 0000:01:00.0
[ 1.567322] hub 2-0:1.0: USB hub found
[ 1.567394] hub 2-0:1.0: 4 ports detected
[ 1.569172] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.569480] dwc_otg: FIQ enabled
[ 1.569495] dwc_otg: NAK holdoff enabled
[ 1.569508] dwc_otg: FIQ split-transaction FSM enabled
[ 1.569526] Module dwc_common_port init
[ 1.569995] usbcore: registered new interface driver uas
[ 1.570108] usbcore: registered new interface driver usb-storage
[ 1.570326] mousedev: PS/2 mouse device common for all mice
[ 1.575363] sdhci: Secure Digital Host Controller Interface driver
[ 1.575382] sdhci: Copyright(c) Pierre Ossman
[ 1.576003] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.579647] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.580005] hid: raw HID events driver (C) Jiri Kosina
[ 1.580193] usbcore: registered new interface driver usbhid
[ 1.580209] usbhid: USB HID core driver
[ 1.586669] Initializing XFRM netlink socket
[ 1.586714] NET: Registered PF_PACKET protocol family
[ 1.586828] Key type dns_resolver registered
[ 1.587314] Registering SWP/SWPB emulation handler
[ 1.588113] registered taskstats version 1
[ 1.588144] Loading compiled-in X.509 certificates
[ 1.588976] Key type ._fscrypt registered
[ 1.588993] Key type .fscrypt registered
[ 1.589007] Key type fscrypt-provisioning registered
[ 1.601108] uart-pl011 fe201000.serial: there is not valid maps for state default
[ 1.601442] uart-pl011 fe201000.serial: cts_event_workaround enabled
[ 1.601600] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 32, base_baud = 0) is a PL011 rev2
[ 1.611045] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 1.611536] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 1.612841] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 1.612861] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[ 1.643226] of_cfs_init
[ 1.643490] of_cfs_init: OK
[ 1.681479] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[ 1.681922] Waiting for root device PARTUUID=d9e688b1-02...
[ 1.737300] mmc1: new high speed SDIO card at address 0001
[ 1.781225] mmc0: new ultra high speed DDR50 SDHC card at address 0001
[ 1.782206] mmcblk0: mmc0:0001 BB1QT 29.8 GiB
[ 1.785350] mmcblk0: p1 p2
[ 1.785959] mmcblk0: mmc0:0001 BB1QT 29.8 GiB
[ 1.811492] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 1.811514] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 1.853843] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 2.036485] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 2.036515] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.036535] usb 1-1: Product: USB2.0 Hub
[ 2.038654] hub 1-1:1.0: USB hub found
[ 2.038919] hub 1-1:1.0: 4 ports detected
[ 2.363813] usb 1-1.3: new full-speed USB device number 3 using xhci_hcd
[ 2.503328] usb 1-1.3: New USB device found, idVendor=045e, idProduct=0800, bcdDevice= 9.44
[ 2.503352] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.503371] usb 1-1.3: Product: Microsoft® Nano Transceiver v2.0
[ 2.503388] usb 1-1.3: Manufacturer: Microsoft
[ 2.514115] input: Microsoft Microsoft® Nano Transceiver v2.0 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:045E:0800.0001/input/input0
[ 2.584578] hid-generic 0003:045E:0800.0001: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Microsoft® Nano Transceiver v2.0] on usb-0000:01:00.0-1.3/input0
[ 2.598759] input: Microsoft Microsoft® Nano Transceiver v2.0 Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:045E:0800.0002/input/input1
[ 2.599255] input: Microsoft Microsoft® Nano Transceiver v2.0 Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:045E:0800.0002/input/input2
[ 2.599573] hid-generic 0003:045E:0800.0002: input,hidraw1: USB HID v1.11 Mouse [Microsoft Microsoft® Nano Transceiver v2.0] on usb-0000:01:00.0-1.3/input1
[ 2.612252] input: Microsoft Microsoft® Nano Transceiver v2.0 Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.2/0003:045E:0800.0003/input/input3
[ 2.674205] input: Microsoft Microsoft® Nano Transceiver v2.0 System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.2/0003:045E:0800.0003/input/input5
[ 2.674767] hid-generic 0003:045E:0800.0003: input,hiddev96,hidraw2: USB HID v1.11 Device [Microsoft Microsoft® Nano Transceiver v2.0] on usb-0000:01:00.0-1.3/input2
[ 3.213725] EXT4-fs (mmcblk0p2): recovery complete
[ 3.261999] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 3.262092] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 3.262912] devtmpfs: mounted
[ 3.274133] Freeing unused kernel image (initmem) memory: 2048K
[ 3.274460] Run /sbin/init as init process
[ 3.274475] with arguments:
[ 3.274487] /sbin/init
[ 3.274500] splash
[ 3.274513] with environment:
[ 3.274525] HOME=/
[ 3.274539] TERM=linux
[ 3.641966] systemd[1]: System time before build time, advancing clock.
[ 3.854347] NET: Registered PF_INET6 protocol family
[ 3.856109] Segment Routing with IPv6
[ 3.856156] In-situ OAM (IOAM) with IPv6
[ 3.934599] systemd[1]: systemd 247.3-7+rpi1+deb11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[ 3.935513] systemd[1]: Detected architecture arm.
[ 3.937748] systemd[1]: Set hostname to <raspberrypi>.
[ 4.710301] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[ 4.901804] systemd[1]: Queued start job for default target Graphical Interface.
[ 4.907760] systemd[1]: Created slice system-getty.slice.
[ 4.909223] systemd[1]: Created slice system-modprobe.slice.
[ 4.910256] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 4.911095] systemd[1]: Created slice User and Session Slice.
[ 4.911612] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 4.912774] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 4.913516] systemd[1]: Reached target Slices.
[ 4.913744] systemd[1]: Reached target Swap.
[ 4.915738] systemd[1]: Listening on Syslog Socket.
[ 4.919550] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 4.920008] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 4.924440] systemd[1]: Listening on Journal Audit Socket.
[ 4.925279] systemd[1]: Listening on Journal Socket (/dev/log).
[ 4.926522] systemd[1]: Listening on Journal Socket.
[ 4.928330] systemd[1]: Listening on udev Control Socket.
[ 4.929171] systemd[1]: Listening on udev Kernel Socket.
[ 4.930155] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 4.935941] systemd[1]: Mounting POSIX Message Queue File System...
[ 4.942981] systemd[1]: Mounting RPC Pipe File System...
[ 4.950368] systemd[1]: Mounting Kernel Debug File System...
[ 4.958647] systemd[1]: Mounting Kernel Trace File System...
[ 4.959436] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[ 4.970850] systemd[1]: Starting Restore / save the current clock...
[ 4.979311] systemd[1]: Starting Set the console keyboard layout...
[ 4.988728] systemd[1]: Starting Create list of static device nodes for the current kernel...
[ 4.998051] systemd[1]: Starting Load Kernel Module configfs...
[ 5.006832] systemd[1]: Starting Load Kernel Module drm...
[ 5.016605] systemd[1]: Starting Load Kernel Module fuse...
[ 5.024093] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 5.031591] systemd[1]: Starting File System Check on Root Device...
[ 5.045123] systemd[1]: Starting Journal Service...
[ 5.062295] systemd[1]: Starting Load Kernel Modules...
[ 5.071361] systemd[1]: Starting Coldplug All udev Devices...
[ 5.111331] systemd[1]: Mounted POSIX Message Queue File System.
[ 5.112237] systemd[1]: Mounted RPC Pipe File System.
[ 5.113586] systemd[1]: Mounted Kernel Debug File System.
[ 5.115143] systemd[1]: Mounted Kernel Trace File System.
[ 5.120564] systemd[1]: Finished Restore / save the current clock.
[ 5.123471] systemd[1]: Finished Create list of static device nodes for the current kernel.
[ 5.125605] systemd[1]: modprobe@configfs.service: Succeeded.
[ 5.127333] systemd[1]: Finished Load Kernel Module configfs.
[ 5.135767] systemd[1]: Mounting Kernel Configuration File System...
[ 5.147989] systemd[1]: Started File System Check Daemon to report status.
[ 5.194170] fuse: init (API version 7.34)
[ 5.206774] systemd[1]: modprobe@fuse.service: Succeeded.
[ 5.208559] systemd[1]: Finished Load Kernel Module fuse.
[ 5.209790] systemd[1]: Mounted Kernel Configuration File System.
[ 5.216403] systemd[1]: Mounting FUSE Control File System...
[ 5.223413] i2c_dev: i2c /dev entries driver
[ 5.246522] systemd[1]: Finished Load Kernel Modules.
[ 5.254487] systemd[1]: Starting Apply Kernel Variables...
[ 5.267168] systemd[1]: Mounted FUSE Control File System.
[ 5.319858] systemd[1]: modprobe@drm.service: Succeeded.
[ 5.321439] systemd[1]: Finished Load Kernel Module drm.
[ 5.327855] systemd[1]: Finished Apply Kernel Variables.
[ 5.378041] systemd[1]: Finished File System Check on Root Device.
[ 5.385009] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 5.520192] systemd[1]: Started Journal Service.
[ 5.573902] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: none.
[ 5.650681] systemd-journald[137]: Received client request to flush runtime journal.
[ 5.746939] systemd-journald[137]: File /var/log/journal/13c7dcc8cae14fa8bf0df2919ba3a428/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 7.231433] mc: Linux media interface: v0.10
[ 7.530197] videodev: Linux video capture interface: v2.00
[ 7.788189] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.844746] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 7.844828] [vc_sm_connected_init]: start
[ 7.870462] [vc_sm_connected_init]: installed successfully
[ 7.915807] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.933050] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.944959] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.949722] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.953391] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.993331] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.010732] rpivid feb10000.codec: Device registered as /dev/video19
[ 8.013566] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.018650] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.045286] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.049407] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 8.049648] bcm2835_audio bcm2835_audio: card created with 4 channels
[ 8.050441] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 8.053162] bcm2835_audio bcm2835_audio: card created with 4 channels
[ 8.056149] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 8.057602] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 8.057695] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 8.057771] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 8.057845] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 8.057919] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 8.063752] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[ 8.065317] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[ 8.097822] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[ 8.131566] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 8.131650] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 8.141073] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 8.141148] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 8.174818] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[ 8.174865] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 8.174893] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 8.174918] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 8.174941] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 8.186347] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 8.186416] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 8.187854] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 8.229935] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[ 8.229987] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[ 8.240000] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[ 8.247211] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[ 8.447032] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[ 8.537291] checking generic (3e3cf000 7f8000) vs hw (0 ffffffffffffffff)
[ 8.537319] fb0: switching to vc4 from simple
[ 8.557576] Console: switching to colour dummy device 80x30
[ 8.560570] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[ 8.693240] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[ 8.765085] Console: switching to colour frame buffer device 240x67
[ 8.765141] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device
[ 8.930810] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 9.056843] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 9.085086] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[ 9.842128] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 9.870479] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 9.871761] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2
[ 10.211615] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 10.211757] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 10.220602] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[ 10.271227] usbcore: registered new interface driver brcmfmac
[ 10.399657] uart-pl011 fe201000.serial: no DMA platform data
[ 10.725776] dvbdev: DVB: registering new adapter (CXD2880)
[ 10.795009] 8021q: 802.1Q VLAN Support v1.8
[ 10.797761] cxd2880: cxd2880_attach: CXD2880 driver version: Ver 1.4.1 - 1.0.5
[ 10.797795] cxd2880 spi0.0: DVB: registering adapter 0 frontend 0 (Sony CXD2880)...
[ 11.093132] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 11.096091] bcmgenet fd580000.ethernet eth0: Link is Down
[ 11.105928] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 11.115644] cxd2880_spi: cxd2880_spi_probe: Sony CXD2880 has successfully attached.
[ 11.477425] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 16.235448] systemd-journald[137]: File /var/log/journal/13c7dcc8cae14fa8bf0df2919ba3a428/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
[ 17.305227] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 17.366697] Bluetooth: Core ver 2.22
[ 17.366762] NET: Registered PF_BLUETOOTH protocol family
[ 17.366770] Bluetooth: HCI device and connection manager initialized
[ 17.366788] Bluetooth: HCI socket layer initialized
[ 17.366798] Bluetooth: L2CAP socket layer initialized
[ 17.366815] Bluetooth: SCO socket layer initialized
[ 17.376172] Bluetooth: HCI UART driver ver 2.3
[ 17.376189] Bluetooth: HCI UART protocol H4 registered
[ 17.376254] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 17.376417] Bluetooth: HCI UART protocol Broadcom registered
[ 17.658973] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 17.658989] Bluetooth: BNEP filters: protocol multicast
[ 17.659002] Bluetooth: BNEP socket layer initialized
[ 17.867167] NET: Registered PF_ALG protocol family
[ 18.341901] cryptd: max_cpu_qlen set to 1000
[ 18.639093] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead
[ 18.761105] Bluetooth: RFCOMM TTY layer initialized
[ 18.761141] Bluetooth: RFCOMM socket layer initialized
[ 18.761166] Bluetooth: RFCOMM ver 1.11
[ 31.833854] cam-dummy-reg: disabling
[ 44.737409] v3d fec00000.v3d: MMU error from client L2T (0) at 0x9921000, pte invalid
Additional context
No response
Activity
giovariot commentedon Sep 20, 2022
Well... I've enabled ssh and rebooted just to check everything was alright, still using the fkms driver but this time I simply got a black screen...
I'll post another dmesg using kms soon
giovariot commentedon Sep 20, 2022
Here is using vc4-kms-v3d
popcornmix commentedon Sep 21, 2022
When booting with fkms, post output of
vcdbg log msgAlso post output of
giovariot commentedon Sep 21, 2022
funny, it only correctly boots through fkms only if the time before I've tried booting using kms (of course only getting the no signal screen), if I'll reboot from a fkms "X session" to another fkms session all i get is a black screen (not a no signal one, just a black blank screen).
Nonetheless I managed to correctly boot fkms and here is the output of the commands you suggested
output of vcdbg log msc
tvservice -s
tvservice -m CEA
tvservice -m DMT
tvservice -d edid.dat
base64 edid.dat
popcornmix commentedon Sep 22, 2022
In the black screen case, can you still ssh in and run commands? If so the output of the previous commands would be useful.
I'm suspecting edid reading issues, although on the successful run it worked okay.
I'm curious if in the fkms case you copy edid.dat to /boot and add to config.txt:
Also in the kms case (with the fkms config.txt test lines removed), copy edid.dat to /lib/firmware and add to cmdline.txt (end of existing line)
and report if either case is reliable.
Also have you tried a different hdmi cable? Are you using a case (such as the argon one) that reroutes hdmi?
giovariot commentedon Sep 22, 2022
using just
vc4-fkms-v3dI kept the session open from yesterday, copied edid.dat to
/bootand to/lib/firmware.Just to check everything was(n't) working as expected I tried rebooting from the fkms X session before editing the config file. Got to a "_" on the top left of the screen: in this case it seems that tvservice gets stuck, can't even get out of the command using CTRL+C
And it doesn't seem to want to reboot from "sudo reboot". Forced reboot a few times trying to get to the "black" screen but really couldn't reach it.
But anyways... of course at the next reboot it boots correctly to X, the next reboot gets me to the stuck "_"
using the hdmi options
I edit the config.txt file adding what you told me
now it's finally booting correctly every time
using kms
Edited:
hdmioptions and correctedvc4-fkms-v3d-->vc4-kms-v3das per defaultdrm.edid_firmware=edid.dat video=HDMI-A-1:1920x1080@60D.so now it works perfectly at every reboot even using kms.
About my config
Two new questions
I was thinking to load an old raspbian version just to extract the
edid.datfrom my parents' tv and the export it to both raspbian and libreelec. Would that work?Thanks a lot for helping me!
popcornmix commentedon Sep 23, 2022
This should be
sudo vcdbg log msg(as you ran before).Yes, the edid will be the same however you boot, so you can capture it from any operating system.
Libreelec has a slightly different scheme of capturing the edid
All the evidence so far suggests a hardware issue in reading the edid. That could be in the cables, the TV or the Pi itself (the cable is most common cause, the TV less common and I've never hard of a Pi fault causing this, but it is possible).
If the TV has multiple HDMI ports, then try them all.
kms relies on the edid completely. fkms is more tolerant and often displays a picture without a valid edid, but it's just guessing what the TV actually supports. And you'll probably find issues with audio, cec and ability to change hdmi mode.
I can't think of a reason why newer fkms is failing but older works. It has been deprecated a long time so doesn't get any code changes. If you can capture "vcgencmd version" for a working image and a not working image (ideally find the oldest working/newest not-working) then I may be able to speculate if there's been any relevant change.
glyndon commentedon Mar 18, 2023
FWIW, this same thing happened to me today, after upgrading RasPiOS to kernel 6.1.
I'd had the vc4-kms-v3d overlay enabled on that machine/display combo for years, so long that I've forgotten why.
Today the screen went blank at the same point yours did during boot. I swapped to a newer monitor and it worked fine.
But I wasn't satisfied, and googling the name of that overlay brought me to this issue report.
Something about that older [Dell] monitor wasn't compatible with the latest version of that overlay.
Removing the overlay did the trick. I wonder what I'm missing with it gone? Will keep reading ...
seaders commentedon Jun 26, 2023
Hey @popcornmix I've found myself here after being unable to reply to the forum thread for 2 days, and looking for any other solutions out there (for getting my setup working right, using
vc4-kms-v3dnotvc4-fkms-v3d). It seems like my situation is nearly identical as the above, and I've tried the steps mentioned above, but that then leaves me in an odd situation with things not displaying correctly.Specifically this surprised me,
As well as what I thought was HDMI-A-1 was actually HDMI-A-2 and vice versa.
Should I dump my logs here, and try to debug here, or create a new issue?
popcornmix commentedon Jun 26, 2023
Start a new issue please.
It's not clear what your issue is, but be aware that tvservice (and the fkms driver) are deprecated.
So please report what goes wrong with the (default) kms driver.
Reporting any difference in behaviour of fkms driver may be useful for diagnosing the issue, but any fixes are likely to come through the kms driver.
seaders commentedon Jun 26, 2023
No need now actually, I've figured my issue out. I actually needed only the hotplug fix, but not for hdmi 1, for hdmi 2. Issue with following the above steps for me was, because tvservice only works when in fkms mode, it was showing everything as hdmi 1, so, I thought I was dealing with hdmi 1.
When I finally copped that, I first changed A-1 to A-2 in cmdline.txt, then I changed hdmi_force_hotplug=1 to hdmi_force_hotplug:1=1, rebooted and pruned, and pruned again, and then everything was perfect.
Just a thing though, you said that tvservice is deprecated, and, sure enough it doesn't really work with the kms driver, but what's the alternatiive? Specifically to try do what you suggest above for edid? But I wasn't even able to find where that info was put out. Played with kmsprint, as suggested by trying to use tvservice, but no luck.
popcornmix commentedon Jun 27, 2023
raspinfo is a debug tool that include a lot of information about display. Look at the output of that.
It can get all the information that tvservice does using standard linux interfaces when using kms.
It uses kmsprint to get info about modes supported, and
/sys/class/drm/card*/edidto get the edid.