raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.14k stars 4.99k forks source link

Sense Hat matrix not working on 6.1 kernel. #5398

Closed steveiliop56 closed 1 year ago

steveiliop56 commented 1 year ago

Describe the bug

After upgrading the raspberry pi kernel to 6.1 the sense hat matrix does no longer work. Thonny and python report that they can communicate with it and seem like they are trying to use the matrix but without dropping any error. I can confirm that the gyro, accelerometer, temperature, humidity and joystick work fine.

Steps to reproduce the behaviour

You can check it by yourself by just upgrading the pi to the newest 6.1 kernel.

Device (s)

Raspberry Pi 4 Mod. B, Sense Hat V1.0

System

The rpi-issue file:

Raspberry Pi reference 2023-02-21
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 25e2319effa91eb95edd9d9209eb9f8a584d67be, stage4

Firmware version:

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

Kernel version:

Linux raspberrypi4 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux

Logs

Here are the dmesg logs, if needed:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 6.1.19-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) #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.2
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000000ec00000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff]
[    0.000000] On node 0, zone DMA32: 19456 pages in unavailable ranges
[    0.000000] On node 0, zone DMA32: 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: 996912
[    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  smsc95xx.macaddr=DC:A6:32:BA:53:BA vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=b8cfc3d5-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    0.000000] Unknown kernel command line parameters "splash", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x0000000037400000-0x000000003b400000] (64MB)
[    0.000000] Memory: 3356924K/4050944K available (11776K kernel code, 2106K rwdata, 3688K rodata, 4160K init, 1077K bss, 169732K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 39741 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.000331] Console: colour dummy device 80x25
[    0.000397] printk: console [tty1] enabled
[    0.000457] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000485] pid_max: default: 32768 minimum: 301
[    0.000612] LSM: Security Framework initializing
[    0.000830] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000896] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002182] cgroup: Disabling memory control group subsystem
[    0.004452] cblist_init_generic: Setting adjustable number of callback queues.
[    0.004472] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.004655] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.004833] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005299] rcu: Hierarchical SRCU implementation.
[    0.005311] rcu:     Max phase no-delay instances is 1000.
[    0.006656] EFI services will not be available.
[    0.007183] smp: Bringing up secondary CPUs ...
[    0.008355] Detected PIPT I-cache on CPU1
[    0.008515] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.009677] Detected PIPT I-cache on CPU2
[    0.009801] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.010921] Detected PIPT I-cache on CPU3
[    0.011048] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.011193] smp: Brought up 1 node, 4 CPUs
[    0.011216] SMP: Total of 4 processors activated.
[    0.011228] CPU features: detected: 32-bit EL0 Support
[    0.011238] CPU features: detected: 32-bit EL1 Support
[    0.011252] CPU features: detected: CRC32 instructions
[    0.011392] CPU: All CPU(s) started at EL2
[    0.011417] alternatives: applying system-wide alternatives
[    0.013309] devtmpfs: initialized
[    0.026307] Enabled cp15_barrier support
[    0.026348] Enabled setend support
[    0.026576] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.026612] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.039805] pinctrl core: initialized pinctrl subsystem
[    0.040754] DMI not present or invalid.
[    0.041443] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.045075] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.045381] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.046329] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.046424] audit: initializing netlink subsys (disabled)
[    0.046689] audit: type=2000 audit(0.044:1): state=initialized audit_enabled=0 res=1
[    0.047298] thermal_sys: Registered thermal governor 'step_wise'
[    0.047388] cpuidle: using governor menu
[    0.047835] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.048033] ASID allocator initialised with 32768 entries
[    0.048198] Serial: AMBA PL011 UART driver
[    0.065259] platform fe101000.cprman: Fixed dependency cycle(s) with /soc/dsi@7e700000
[    0.066434] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.083592] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx708@1a
[    0.092569] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:50:39, variant start
[    0.096584] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
[    0.113176] KASLR enabled
[    0.149994] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.155986] SCSI subsystem initialized
[    0.156255] usbcore: registered new interface driver usbfs
[    0.156316] usbcore: registered new interface driver hub
[    0.156386] usbcore: registered new device driver usb
[    0.156828] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.157048] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[    0.157405] pps_core: LinuxPPS API ver. 1 registered
[    0.157419] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.157446] PTP clock support registered
[    0.158605] vgaarb: loaded
[    0.159458] clocksource: Switched to clocksource arch_sys_counter
[    0.159997] VFS: Disk quotas dquot_6.6.0
[    0.160078] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.160261] FS-Cache: Loaded
[    0.160428] CacheFiles: Loaded
[    0.171500] NET: Registered PF_INET protocol family
[    0.172224] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.176943] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.177108] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.177140] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.177371] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.178374] TCP: Hash tables configured (established 32768 bind 32768)
[    0.178636] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.178724] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.179047] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.179915] RPC: Registered named UNIX socket transport module.
[    0.179933] RPC: Registered udp transport module.
[    0.179944] RPC: Registered tcp transport module.
[    0.179955] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.179980] PCI: CLS 0 bytes, default 64
[    0.182750] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.183155] kvm [1]: IPA Size Limit: 44 bits
[    0.184531] kvm [1]: vgic interrupt IRQ9
[    0.184763] kvm [1]: Hyp mode initialized successfully
[    1.259324] Initialise system trusted keyrings
[    1.259843] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    1.267489] zbud: loaded
[    1.270462] NFS: Registering the id_resolver key type
[    1.270510] Key type id_resolver registered
[    1.270523] Key type id_legacy registered
[    1.270639] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.270656] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.272128] Key type asymmetric registered
[    1.272148] Asymmetric key parser 'x509' registered
[    1.272239] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.272509] io scheduler mq-deadline registered
[    1.272526] io scheduler kyber registered
[    1.274483] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 27)
[    1.283851] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.283899] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.283989] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.284076] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[    1.285113] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.285133] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.285151] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.285236] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.285497] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.289836] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.290105] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[    1.290297] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[    1.290397] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[    1.341553] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    1.341721] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    1.341848] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    1.342331] pci 0000:01:00.0: PME# supported from D0 D3cold
[    1.343045] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.343089] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.343113] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    1.343157] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.343180] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.344463] simple-framebuffer 3ea50000.framebuffer: framebuffer at 0x3ea50000, 0x177000 bytes
[    1.344486] simple-framebuffer 3ea50000.framebuffer: format=a8r8g8b8, mode=800x480x32, linelength=3200
[    1.345007] Console: switching to colour frame buffer device 100x30
[    1.346572] simple-framebuffer 3ea50000.framebuffer: fb0: simplefb registered!
[    1.360351] iproc-rng200 fe104000.rng: hwrng registered
[    1.360967] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.362602] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.375429] brd: module loaded
[    1.384063] loop: module loaded
[    1.384957] Loading iSCSI transport class v2.0-870.
[    1.390596] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.451624] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.452799] usbcore: registered new interface driver r8152
[    1.452882] usbcore: registered new interface driver lan78xx
[    1.452960] usbcore: registered new interface driver smsc95xx
[    1.454551] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    1.454593] xhci_hcd 0000:01:00.0: enabling device (0000 -> 0002)
[    1.454702] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.454736] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.455531] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000e40000000890
[    1.456223] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.456246] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.456269] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.456641] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.456662] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.456677] usb usb1: Product: xHCI Host Controller
[    1.456691] usb usb1: Manufacturer: Linux 6.1.19-v8+ xhci-hcd
[    1.456704] usb usb1: SerialNumber: 0000:01:00.0
[    1.457440] hub 1-0:1.0: USB hub found
[    1.457540] hub 1-0:1.0: 1 port detected
[    1.458523] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    1.458544] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.458560] usb usb2: Product: xHCI Host Controller
[    1.458573] usb usb2: Manufacturer: Linux 6.1.19-v8+ xhci-hcd
[    1.458586] usb usb2: SerialNumber: 0000:01:00.0
[    1.459263] hub 2-0:1.0: USB hub found
[    1.459357] hub 2-0:1.0: 4 ports detected
[    1.461343] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.461735] dwc_otg: FIQ enabled
[    1.461747] dwc_otg: NAK holdoff enabled
[    1.461757] dwc_otg: FIQ split-transaction FSM enabled
[    1.461774] Module dwc_common_port init
[    1.462344] usbcore: registered new interface driver uas
[    1.462454] usbcore: registered new interface driver usb-storage
[    1.462695] mousedev: PS/2 mouse device common for all mice
[    1.469219] sdhci: Secure Digital Host Controller Interface driver
[    1.469239] sdhci: Copyright(c) Pierre Ossman
[    1.470029] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.473851] ledtrig-cpu: registered to indicate activity on CPUs
[    1.474244] hid: raw HID events driver (C) Jiri Kosina
[    1.474462] usbcore: registered new interface driver usbhid
[    1.474476] usbhid: USB HID core driver
[    1.483576] NET: Registered PF_PACKET protocol family
[    1.483711] Key type dns_resolver registered
[    1.485124] registered taskstats version 1
[    1.485214] Loading compiled-in X.509 certificates
[    1.486076] Key type .fscrypt registered
[    1.486091] Key type fscrypt-provisioning registered
[    1.502394] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.503149] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.503315] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[    1.512724] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.513179] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.514525] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.514545] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.546713] of_cfs_init
[    1.546852] of_cfs_init: OK
[    1.579529] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.579903] Waiting for root device PARTUUID=b8cfc3d5-02...
[    1.629568] mmc1: new high speed SDIO card at address 0001
[    1.682904] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.684016] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[    1.687350]  mmcblk0: p1 p2
[    1.687976] mmcblk0: mmc0:aaaa SD32G 29.7 GiB (quirks 0x00004000)
[    1.699991] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.700016] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.711514] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.862129] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.862167] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.862183] usb 1-1: Product: USB2.0 Hub
[    1.864359] hub 1-1:1.0: USB hub found
[    1.864664] hub 1-1:1.0: 4 ports detected
[    1.973865] EXT4-fs (mmcblk0p2): recovery complete
[    1.975888] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    1.976007] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.976861] devtmpfs: mounted
[    1.985154] Freeing unused kernel memory: 4160K
[    1.985357] Run /sbin/init as init process
[    1.985369]   with arguments:
[    1.985378]     /sbin/init
[    1.985388]     splash
[    1.985398]   with environment:
[    1.985407]     HOME=/
[    1.985416]     TERM=linux
[    2.159530] usb 1-1.4: new full-speed USB device number 3 using xhci_hcd
[    2.273305] usb 1-1.4: New USB device found, idVendor=8086, idProduct=0808, bcdDevice= 1.00
[    2.273344] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.273361] usb 1-1.4: Product: USB PnP Sound Device
[    2.273375] usb 1-1.4: Manufacturer: C-Media Electronics Inc.
[    2.282426] input: C-Media Electronics Inc.       USB PnP Sound Device as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.2/0003:8086:0808.0001/input/input0
[    2.339908] hid-generic 0003:8086:0808.0001: input,hidraw0: USB HID v1.00 Device [C-Media Electronics Inc.       USB PnP Sound Device] on usb-0000:01:00.0-1.4/input2
[    2.348870] systemd[1]: System time before build time, advancing clock.
[    2.539702] NET: Registered PF_INET6 protocol family
[    2.541728] Segment Routing with IPv6
[    2.541772] In-situ OAM (IOAM) with IPv6
[    2.611602] systemd[1]: systemd 247.3-7+deb11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    2.612653] systemd[1]: Detected architecture arm64.
[    2.616942] systemd[1]: Set hostname to <raspberrypi4>.
[    3.386932] 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.558180] systemd[1]: Queued start job for default target Graphical Interface.
[    3.634884] systemd[1]: Created slice system-getty.slice.
[    3.637184] systemd[1]: Created slice system-modprobe.slice.
[    3.639012] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    3.640645] systemd[1]: Created slice User and Session Slice.
[    3.641180] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.642345] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.642743] systemd[1]: Reached target Network (Pre).
[    3.642913] systemd[1]: Reached target Slices.
[    3.643035] systemd[1]: Reached target Swap.
[    3.664174] systemd[1]: Listening on RPCbind Server Activation Socket.
[    3.665406] systemd[1]: Listening on Syslog Socket.
[    3.666255] systemd[1]: Listening on fsck to fsckd communication Socket.
[    3.666717] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    3.668064] systemd[1]: Listening on Journal Audit Socket.
[    3.668858] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.670034] systemd[1]: Listening on Journal Socket.
[    3.672098] systemd[1]: Listening on udev Control Socket.
[    3.672961] systemd[1]: Listening on udev Kernel Socket.
[    3.674013] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    3.679316] systemd[1]: Mounting POSIX Message Queue File System...
[    3.684904] systemd[1]: Mounting NFSD configuration filesystem...
[    3.691216] systemd[1]: Mounting RPC Pipe File System...
[    3.698721] systemd[1]: Mounting Kernel Debug File System...
[    3.705480] systemd[1]: Mounting Kernel Trace File System...
[    3.706279] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    3.714596] systemd[1]: Starting Restore / save the current clock...
[    3.721112] systemd[1]: Starting Set the console keyboard layout...
[    3.727809] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    3.733670] systemd[1]: Starting Load Kernel Module configfs...
[    3.747946] systemd[1]: Starting Load Kernel Module drm...
[    3.753783] systemd[1]: Starting Load Kernel Module fuse...
[    3.757655] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    3.764118] systemd[1]: Starting File System Check on Root Device...
[    3.780456] systemd[1]: Starting Journal Service...
[    3.790507] systemd[1]: Starting Load Kernel Modules...
[    3.798862] systemd[1]: Starting Coldplug All udev Devices...
[    3.817778] systemd[1]: Mounted POSIX Message Queue File System.
[    3.818813] systemd[1]: Mounted RPC Pipe File System.
[    3.819733] systemd[1]: Mounted Kernel Debug File System.
[    3.820572] systemd[1]: Mounted Kernel Trace File System.
[    3.823215] systemd[1]: Finished Restore / save the current clock.
[    3.830969] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    3.833406] systemd[1]: modprobe@configfs.service: Succeeded.
[    3.835033] systemd[1]: Finished Load Kernel Module configfs.
[    3.868343] systemd[1]: Mounting Kernel Configuration File System...
[    3.875278] systemd[1]: Starting pNFS block layout mapping daemon...
[    3.883680] systemd[1]: Started File System Check Daemon to report status.
[    3.891018] systemd[1]: Mounted NFSD configuration filesystem.
[    3.891962] systemd[1]: Mounted Kernel Configuration File System.
[    3.918743] fuse: init (API version 7.37)
[    3.930394] systemd[1]: Started pNFS block layout mapping daemon.
[    3.939814] systemd[1]: modprobe@fuse.service: Succeeded.
[    3.941500] systemd[1]: Finished Load Kernel Module fuse.
[    3.963653] i2c_dev: i2c /dev entries driver
[    4.004905] systemd[1]: Mounting FUSE Control File System...
[    4.007892] systemd[1]: modprobe@drm.service: Succeeded.
[    4.009665] systemd[1]: Finished Load Kernel Module drm.
[    4.015761] systemd[1]: Finished Load Kernel Modules.
[    4.020786] systemd[1]: Mounted FUSE Control File System.
[    4.031356] systemd[1]: Starting Apply Kernel Variables...
[    4.035199] systemd[1]: Finished File System Check on Root Device.
[    4.042397] systemd[1]: Starting Remount Root and Kernel File Systems...
[    4.163677] systemd[1]: Finished Apply Kernel Variables.
[    4.202596] systemd[1]: Started Journal Service.
[    4.236335] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[    4.336384] systemd-journald[156]: Received client request to flush runtime journal.
[    4.358078] systemd-journald[156]: File /var/log/journal/60aba43c8a6d4d5a8469b0c8cc4b8c1d/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    5.762824] mc: Linux media interface: v0.10
[    5.860278] videodev: Linux video capture interface: v2.00
[    5.878142] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.953730] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    5.958542] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    5.958581] [vc_sm_connected_init]: start
[    5.965475] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[    5.970671] [vc_sm_connected_init]: installed successfully
[    5.979038] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    5.994473] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    6.000075] bcm2835_audio bcm2835_audio: card created with 8 channels
[    6.003255] rpivid feb10000.codec: Device registered as /dev/video19
[    6.013523] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    6.015001] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    6.081162] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    6.086639] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    6.127166] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    6.137890] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    6.175137] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    6.183575] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    6.184424] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    6.188813] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    6.193658] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    6.193707] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    6.193742] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    6.193846] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    6.193882] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    6.211550] i2c i2c-22: Added multiplexed i2c bus 0
[    6.241549] i2c i2c-22: Added multiplexed i2c bus 10
[    6.278766] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    6.279637] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    6.280283] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    6.286243] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    6.286306] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    6.286331] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    6.286350] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    6.286369] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    6.287208] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    6.347656] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    6.347745] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    6.353829] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    6.353888] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    6.375875] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    6.375944] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    6.401449] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    6.401515] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    6.418970] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    6.419032] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[    6.665231] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    6.885165] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.930376] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.946040] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    7.473586] brcmfmac: F1 signature read @0x18000000=0x15264345
[    7.711786] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.719315] usbcore: registered new interface driver brcmfmac
[    7.843490] usbcore: registered new interface driver snd-usb-audio
[    7.992323] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[    8.271688] rpi-sense 1-0046: Raspberry Pi Sense HAT firmware version 0
[    8.446348] imx708 10-001a: camera module ID 0x0301
[    8.453331] imx708 10-001a: Consider updating driver imx708 to match on endpoints
[    8.605242] vc4_dsi fe700000.dsi: Failed to create device link (0x180) with 1.panel_disp1
[    8.655111] vc4_dsi fe700000.dsi: Failed to create device link (0x180) with 2.reg_bridge
[    8.668107] Console: switching to colour dummy device 80x25
[    8.717758] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    8.741098] Registered IR keymap rc-cec
[    8.741411] rc rc0: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    8.741925] input: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input2
[    8.745599] input: Raspberry Pi Sense HAT Joystick as /devices/virtual/input/input1
[    8.752465] Console: switching to colour frame buffer device 1x1
[    8.752532] fb0: RPi-Sense FB frame buffer device
[    8.756045] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[    8.833930] Registered IR keymap rc-cec
[    8.848251] rc rc1: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[    8.848513] input: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input3
[    8.853489] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[    8.855042] vc4-drm gpu: bound fe700000.dsi (ops vc4_dsi_ops [vc4])
[    8.855649] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[    8.856140] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.856600] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.857029] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.857338] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.857770] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.931183] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    8.943878] vc4-drm gpu: [drm] fb1: vc4drmfb frame buffer device
[    8.984402] edt_ft5x06 10-0038: supply iovcc not found, using dummy regulator
[    9.381306] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    9.449511] uart-pl011 fe201000.serial: no DMA platform data
[    9.529162] Console: switching to colour dummy device 80x25
[    9.530642] input: generic ft5x06 (ff) as /devices/platform/soc/fe205000.i2c/i2c-22/i2c-10/10-0038/input/input4
[    9.670771] graphics fb0: fbdev mmap not set up for deferred I/O.
[   11.153422] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[   11.155128] bcmgenet fd580000.ethernet eth0: Link is Down
[   11.211745] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   11.645152] NFSD: Using UMH upcall client tracking operations.
[   11.645182] NFSD: starting 90-second grace period (net f0000000)
[   11.750408] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   11.849831] tun: Universal TUN/TAP device driver, 1.6
[   16.264758] systemd-journald[156]: File /var/log/journal/60aba43c8a6d4d5a8469b0c8cc4b8c1d/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
[   16.355983] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   17.455663] Bluetooth: Core ver 2.22
[   17.456094] NET: Registered PF_BLUETOOTH protocol family
[   17.456102] Bluetooth: HCI device and connection manager initialized
[   17.456118] Bluetooth: HCI socket layer initialized
[   17.456129] Bluetooth: L2CAP socket layer initialized
[   17.456144] Bluetooth: SCO socket layer initialized
[   17.474385] Bluetooth: HCI UART driver ver 2.3
[   17.474407] Bluetooth: HCI UART protocol H4 registered
[   17.474486] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   17.474691] Bluetooth: HCI UART protocol Broadcom registered
[   17.972000] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   17.972021] Bluetooth: BNEP filters: protocol multicast
[   17.972036] Bluetooth: BNEP socket layer initialized
[   17.979174] Bluetooth: MGMT ver 1.22
[   17.991647] NET: Registered PF_ALG protocol family
[   18.119743] Bluetooth: RFCOMM TTY layer initialized
[   18.119781] Bluetooth: RFCOMM socket layer initialized
[   18.119805] Bluetooth: RFCOMM ver 1.11
[   21.690664] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   25.177671] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   25.182397] Bridge firewalling registered
[   25.427987] Initializing XFRM netlink socket

Additional context

The i2cdetect -y 1 command output:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- 1c -- -- --
20: -- -- -- 23 -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- 5c -- -- 5f
60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- --
70: -- -- -- -- -- -- -- --

And the raspi-gpio get gives me this:

BANK0 (GPIO 0 to 27):
GPIO 0: level=1 fsel=0 func=INPUT pull=UP
GPIO 1: level=1 fsel=0 func=INPUT pull=UP
GPIO 2: level=1 fsel=4 alt=0 func=SDA1 pull=UP
GPIO 3: level=1 fsel=4 alt=0 func=SCL1 pull=UP
GPIO 4: level=1 fsel=0 func=INPUT pull=UP
GPIO 5: level=1 fsel=0 func=INPUT pull=UP
GPIO 6: level=1 fsel=0 func=INPUT pull=UP
GPIO 7: level=1 fsel=1 func=OUTPUT pull=UP
GPIO 8: level=1 fsel=1 func=OUTPUT pull=UP
GPIO 9: level=0 fsel=4 alt=0 func=SPI0_MISO pull=DOWN
GPIO 10: level=0 fsel=4 alt=0 func=SPI0_MOSI pull=DOWN
GPIO 11: level=0 fsel=4 alt=0 func=SPI0_SCLK pull=DOWN
GPIO 12: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 13: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 14: level=0 fsel=1 func=OUTPUT pull=NONE
GPIO 15: level=1 fsel=1 func=OUTPUT pull=NONE
GPIO 16: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 17: level=1 fsel=0 func=INPUT pull=UP
GPIO 18: level=0 fsel=1 func=OUTPUT pull=NONE
GPIO 19: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 20: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 21: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 22: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 23: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 24: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 25: level=1 fsel=0 func=INPUT pull=DOWN
GPIO 26: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 27: level=0 fsel=0 func=INPUT pull=DOWN
BANK1 (GPIO 28 to 45):
GPIO 28: level=1 fsel=2 alt=5 func=RGMII_MDIO pull=UP
GPIO 29: level=0 fsel=2 alt=5 func=RGMII_MDC pull=DOWN
GPIO 30: level=0 fsel=7 alt=3 func=CTS0 pull=UP
GPIO 31: level=0 fsel=7 alt=3 func=RTS0 pull=NONE
GPIO 32: level=1 fsel=7 alt=3 func=TXD0 pull=NONE
GPIO 33: level=1 fsel=7 alt=3 func=RXD0 pull=UP
GPIO 34: level=1 fsel=7 alt=3 func=SD1_CLK pull=NONE
GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD pull=UP
GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0 pull=UP
GPIO 37: level=1 fsel=7 alt=3 func=SD1_DAT1 pull=UP
GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2 pull=UP
GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3 pull=UP
GPIO 40: level=1 fsel=4 alt=0 func=PWM1_0 pull=NONE
GPIO 41: level=1 fsel=4 alt=0 func=PWM1_1 pull=NONE
GPIO 42: level=0 fsel=1 func=OUTPUT pull=UP
GPIO 43: level=1 fsel=0 func=INPUT pull=UP
GPIO 44: level=1 fsel=5 alt=1 func=SDA0 pull=UP
GPIO 45: level=1 fsel=5 alt=1 func=SCL0 pull=UP
BANK2 (GPIO 46 to 53):
GPIO 46: level=0 fsel=0 func=INPUT pull=UP
GPIO 47: level=0 fsel=0 func=INPUT pull=UP
GPIO 48: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 49: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 50: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 51: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 52: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 53: level=0 fsel=0 func=INPUT pull=DOWN

Info: I also have a pimoroni fanshim attached so you may see it in the i2c and gpio command outputs.

pelwell commented 1 year ago

Thanks - we're aware of this, and actively working on it. Something strange is happening with deferred IO mechanism...

steveiliop56 commented 1 year ago

Thank you very much for your help! For now I am cross compiling the 6.0 kernel, is this kernel working with the sense hat?

pelwell commented 1 year ago

Yes - Sense HAT works with rpi-6.0.y.

steveiliop56 commented 1 year ago

Cool! Suddenly the sense hat worked for a second with 6.1 but only for a second and it does not work again...

pelwell commented 1 year ago

Yes - the symptom is that the very first update, the one that clears the rainbow pattern, succeeds, but then nothing else.

steveiliop56 commented 1 year ago

Can I download a prebuild 6.0 kernel from somewhere because cross compiling it on my i7-7500U inside windows subsystem for linux version 2 and with 8gb ram takes a long time.

pelwell commented 1 year ago

You may want to hold off a while - I'm close to a solution.

steveiliop56 commented 1 year ago

Ok I will wait! Thanks for your time!!!

pelwell commented 1 year ago

The problem is cause by a bug-fix patch that discards pending changes when the file handle is closed. If you keep the file handle open a bit longer you'll see the display does update - try running cat > /dev/fb1 (or whatever the correct number is) and hitting Return a few times.

5399 has a fix that flushes the updates synchronously on close. The auto-build will complete in about an hour, at which point you'll be able to install a test kernel with sudo rpi-update pulls/5399.

steveiliop56 commented 1 year ago

Thank you very much for your help! I will try it as soon as it's ready and I will post any updates!

steveiliop56 commented 1 year ago

Update! I am trying to install the new firmware with the command you provided but I get this error:

 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
FW_REV:
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Remove old firmware backup
 *** Backing up firmware
 *** Remove old modules backup
 *** Backing up modules 6.1.19-v8+
WANT_32BIT:0 WANT_64BIT:1 WANT_PI4:1
 *** Downloading specific artifact revision (this will take a few minutes)
curl  -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcmrpi | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
100 16.7M    0 16.7M    0     0   881k      0 --:--:--  0:00:19 --:--:--  773k
curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 16.4M    0 16.4M    0     0   730k      0 --:--:--  0:00:23 --:--:--  990k
curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104
Invalid artifact specified. Response: 200.
popcornmix commented 1 year ago

It just worked for me. Can you try again in case there was an intermittent network issue?

pi@pi4:~ $ sudo rpi-update pulls/5399
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
FW_REV:
WANT_32BIT:1 WANT_64BIT:1 WANT_PI4:1
 *** Downloading specific artifact revision (this will take a few minutes)
curl  -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcmrpi | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 23.5M    0 23.5M    0     0  2055k      0 --:--:--  0:00:11 --:--:-- 1915k
curl  -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcm2709 | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 24.1M    0 24.1M    0     0  2202k      0 --:--:--  0:00:11 --:--:-- 2790k
curl  -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcm2711 | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 24.8M    0 24.8M    0     0  1951k      0 --:--:--  0:00:13 --:--:-- 2448k
curl  -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcm2711_arm64 | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 25.8M    0 25.8M    0     0  2115k      0 --:--:--  0:00:12 --:--:-- 2581k
 *** Updating kernel modules
 *** depmod 6.1.21+
 *** depmod 6.1.21-v7l+
 *** depmod 6.1.21-v7+
 *** depmod 6.1.21-v8+
 *** As requested, not updating VideoCore libraries
 *** As requested, not updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c
 *** A reboot is needed to activate the new firmware
steveiliop56 commented 1 year ago

Ok, I will try again...

steveiliop56 commented 1 year ago

I tried again after a reboot and it worked successfully. I can confirm that the sense hat works perfectly fine now! Again thanks a lot for your help and your time pelwell!!

pelwell commented 1 year ago

There's an alternative implementation that should avoid the horrendous slowdown seen by the inefficient SenseHAT Python library. It's available in #5413, and a test build can be installed with sudo rpi-update pulls/5413.

steveiliop56 commented 1 year ago

So... the matrix is going to be faster with this kernel?

popcornmix commented 1 year ago

So... the matrix is going to be faster with this kernel?

The linked PR says:

This alternative patch avoids the horrendous slowdown seen with the sense_hat.py library, which opens and closes the framebuffer, incurring an 18ms delay while the data is pushed over I2C, for every get_pixel and set_pixel call.

so yes - should be faster than without the PR.

pelwell commented 1 year ago

Not faster, but also not significantly slower - about the same. Unless you are using the Python library you probably won't notice any difference.

pelwell commented 1 year ago

Whether it's faster with this PR depends on what you are comparing it to. Using the Python library, 6.1 with this PR is much faster than 6.1 without it, but 6.1 with this PR is about the same as 5.15.

steveiliop56 commented 1 year ago

Ok, I use python in a small program so I will use the updated kernel because why not?

pelwell commented 1 year ago

Please do - I would appreciate confirmation that it is working for you.

steveiliop56 commented 1 year ago

I added the new kernel! The sense hat still works ok... Do you want me to run any tests?

pelwell commented 1 year ago

Realistically it should only affect the display, so I'm happy enough with your feedback to merge it.

steveiliop56 commented 1 year ago

I don't know about the display because I am only using a dfrobot dsi display.