Problems Implementing Debian Fix

Basic Information:

Printer Model: Custom CoreXY
MCU / Printerboard: Manta M8P with Raspberry Pi CM4101000 loaded with Raspberry Pi OS 32-Bit Lite
klippy.log Not Available
2023.08.29 - Trying to fix Bullseye Bug.log (4.7 KB)

I’m trying to implement the Debian 11 fix outlined here by @Sineos :

I’ve attached a log of my SSH session and I think I have followed Sineos’ instructions properly - but as I finish off with the final instruction (sudo apt install udev -t bullseye-backports) I end up with the error message: E: The value 'bullseye-backports' is invalid for APT::Default-Release as such a release is not available in the sources and the Raspberry Pi/SD Card will not reboot/restart.

Note that I am getting the E: The repository 'http://ftp.debian.org/debian bullseye-backports InRelease' is not signed. error and adding the specified keys (which seems to complete correctly).

Any ideas?

Interesting. Just tried on a freshly installed Pi OS:

vent@rpi-vent ~ $ sudo apt edit-sources

Select an editor.  To change later, run 'select-editor'.
  1. /bin/nano        <---- easiest
  2. /usr/bin/vim.tiny
  3. /bin/ed

Choose 1-3 [1]: 1

Your '/etc/apt/sources.list' file changed, please run 'apt-get update'.
vent@rpi-vent ~ $
vent@rpi-vent ~ $ sudo apt-get update
Get:1 http://ftp.debian.org/debian bullseye-backports InRelease [49.0 kB]
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:5 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
Get:6 https://deb.nodesource.com/node_18.x bullseye InRelease [4,586 B]
Get:7 http://ftp.debian.org/debian bullseye-backports/main arm64 Packages [419 kB]
Get:8 http://ftp.debian.org/debian bullseye-backports/main armhf Packages [415 kB]
Get:9 http://ftp.debian.org/debian bullseye-backports/main Translation-en [353 kB]
Get:10 http://ftp.debian.org/debian bullseye-backports/non-free armhf Packages [9,072 B]
Get:11 http://ftp.debian.org/debian bullseye-backports/non-free arm64 Packages [9,876 B]
Get:12 http://ftp.debian.org/debian bullseye-backports/non-free Translation-en [27.7 kB]
Get:13 http://ftp.debian.org/debian bullseye-backports/contrib arm64 Packages [5,180 B]
Get:14 http://ftp.debian.org/debian bullseye-backports/contrib armhf Packages [4,680 B]
Get:15 http://ftp.debian.org/debian bullseye-backports/contrib Translation-en [5,984 B]
Get:16 http://deb.debian.org/debian bullseye-updates/main arm64 Packages [14.9 kB]
Get:17 http://deb.debian.org/debian bullseye-updates/main armhf Packages [14.9 kB]
Get:18 http://deb.debian.org/debian bullseye-updates/main Translation-en [10.1 kB]
Get:19 http://security.debian.org/debian-security bullseye-security/main armhf Packages [242 kB]
Get:20 http://security.debian.org/debian-security bullseye-security/main arm64 Packages [240 kB]
Get:21 http://security.debian.org/debian-security bullseye-security/main Translation-en [158 kB]
Get:22 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [314 kB]
Get:23 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [308 kB]
Fetched 2,721 kB in 3s (857 kB/s)
Reading package lists... Done
vent@rpi-vent ~ $ sudo apt install udev -t bullseye-backports
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libudev1
The following packages will be upgraded:
  libudev1 udev
2 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
Need to get 1,638 kB of archives.
After this operation, 967 kB of additional disk space will be used.
Do you want to continue? [Y/n]

Can you show the output of:

 cat /etc/apt/sources.list

Did you run an apt update after editing the sources list?

Thanx for replying.

Yes, I ran “sudo apt update” on line 168 of the originally attached file, the response was:

mainsail@freestylebook:~ $ sudo apt update
Get:1 http://ftp.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Get:3 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
Err:1 http://ftp.debian.org/debian bullseye-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
Get:5 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [314 kB]
Reading package lists... Done
W: GPG error: http://ftp.debian.org/debian bullseye-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
E: The repository 'http://ftp.debian.org/debian bullseye-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

When would you want me to run:

cat /etc/apt/sources.list

I’m guessing the best time is before or after the sudo apt install udev -t bullseye-backports command? Which would you prefer?

Your first apt update failed due to the missing keys. Correct this and rerun apt-update then try again

Just re-ran it with the repeated sudo apt update and afterwards did a sudo reboot which didn’t seem to run properly - I power cycled and things came up.

Here it is with the cat /etc/apt/sources.list command:

I think it looks right - you can see the added line at the end of the file.

Along with that, here is the terminal log of what went down when I did the follow up sudo apt update after fixing the missing keys: 2023.08.29 - Trying to fix Bullseye Bug - Repeat ‘sudo apt update’.log (11.0 KB)

Next step is now to go through the process of loading Klipper, Katapult, etc. in and seeing if the ls /dev/serial/by-id/ still works.

Thanx - I’ll let you know how it goes in a few hours.

No joy after successfully loading the Debian Bullseye Bug patch and then loading Katapult followed by Klipper onto the Manta M8P.

Here is the log of the steps taken after doing the make menuconfig for Katapult through to creating the Klipper image and then loading it into the Manta M8P and then checking ls /dev/serial/by-id/: 2023.08.29 - Trying to fix Bullseye Bug - Did everything right and no joy.log (5.0 KB)

After rebooting the Raspberry Pi (CM4), I then checked the CAN0 UUID (okay), ls /dev/serial/by-id/ which didn’t have anything followed by dumping the sources list:

Any ideas on what’s going wrong here?

Now, the reason for this exercise is to come up with a process for updating the Manta M8Ps, at a later time, without having to physically access the Manta M8P or its Reset and Boot buttons.

I was wondering if this can be accomplished by using the -u <UUID> option in Katapult but when I try it, I get a prompt that seems to be ignored:

Ideas or comments?

Hmm, quite strange.

Please show the output of apt-update and apt-cache policy udev (not as screenshots, please, but as copy and paste and formatted as code).

Please also try replacing the repository with

deb http://ftp.us.debian.org/debian bullseye-backports main non-free contrib

or

deb http://deb.debian.org/debian bullseye-backports main non-free contrib

You have dashes in “apt-upgrade” and when I run the commands, I get the response -bash: apt-update: command not found. Shouldn’t it be “apt update”?

For `apt update’, I get:

mainsail@freestylebook:~/klipper $ apt update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)

But, when I do ‘sudo apt update’:

mainsail@freestylebook:~/klipper $ sudo apt update
Hit:1 http://ftp.debian.org/debian bullseye-backports InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
27 packages can be upgraded. Run 'apt list --upgradable' to see them.

For apt-cache policy' and sudo apt-cache policy`, I get:

mainsail@freestylebook:~/klipper $ apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://archive.raspberrypi.org/debian bullseye/main armhf Packages
     release o=Raspberry Pi Foundation,a=stable,n=bullseye,l=Raspberry Pi Foundation,c=main,b=armhf
     origin archive.raspberrypi.org
 100 http://ftp.debian.org/debian bullseye-backports/contrib armhf Packages
     release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=contrib,b=armhf
     origin ftp.debian.org
 100 http://ftp.debian.org/debian bullseye-backports/non-free armhf Packages
     release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=non-free,b=armhf
     origin ftp.debian.org
 100 http://ftp.debian.org/debian bullseye-backports/main armhf Packages
     release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=main,b=armhf
     origin ftp.debian.org
 500 http://raspbian.raspberrypi.org/raspbian bullseye/rpi armhf Packages
     release o=Raspbian,a=stable,n=bullseye,l=Raspbian,c=rpi,b=armhf
     origin raspbian.raspberrypi.org
 500 http://raspbian.raspberrypi.org/raspbian bullseye/non-free armhf Packages
     release o=Raspbian,a=stable,n=bullseye,l=Raspbian,c=non-free,b=armhf
     origin raspbian.raspberrypi.org
 500 http://raspbian.raspberrypi.org/raspbian bullseye/contrib armhf Packages
     release o=Raspbian,a=stable,n=bullseye,l=Raspbian,c=contrib,b=armhf
     origin raspbian.raspberrypi.org
 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
     release o=Raspbian,a=stable,n=bullseye,l=Raspbian,c=main,b=armhf
     origin raspbian.raspberrypi.org
Pinned packages:

When I replace the last line in sources.list with deb http://ftp.us.debian.org/debian bullseye-backports main non-free contrib I get the message:

Your '/etc/apt/sources.list' file changed, please run 'apt-get update'.

I try running apt-get update and get the permission denied same as noted above but with sudo apt-get update I get:

mainsail@freestylebook:~/klipper $ sudo apt-get update
Get:1 http://ftp.us.debian.org/debian bullseye-backports InRelease [49.0 kB]
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Get:4 http://ftp.us.debian.org/debian bullseye-backports/main armhf Packages [415 kB]
Get:5 http://ftp.us.debian.org/debian bullseye-backports/main Translation-en [353 kB]
Get:6 http://ftp.us.debian.org/debian bullseye-backports/non-free armhf Packages [9,072 B]
Get:7 http://ftp.us.debian.org/debian bullseye-backports/non-free Translation-en [27.7 kB]
Get:8 http://ftp.us.debian.org/debian bullseye-backports/contrib armhf Packages [4,680 B]
Get:9 http://ftp.us.debian.org/debian bullseye-backports/contrib Translation-en [5,984 B]
Fetched 864 kB in 2s (553 kB/s)
Reading package lists... Done

Next, I checked the /dev/serial/by-id/ folder and got:

mainsail@freestylebook:~/klipper $ ls /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory

Now, after a sudo reboot and checking /dev/serial/by-id/, I get:

Linux freestylebook 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Aug 29 23:11:13 2023 from fe80::b5e9:62d4:8634:abf%wlan0
mainsail@freestylebook:~ $ ls /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory
mainsail@freestylebook:~ $

Now, with changing the last line of sources.list to deb http://deb.debian.org/debian bullseye-backports main non-free contrib. After running ‘sudo apt-get update’ again, I get what looks to be the same as above and No such file or directory for /dev/serial/by-id/:

mainsail@freestylebook:~ $ sudo apt edit-sources
Your '/etc/apt/sources.list' file changed, please run 'apt-get update'.
mainsail@freestylebook:~ $ sudo apt-get update
Get:1 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Get:4 http://deb.debian.org/debian bullseye-backports/main armhf Packages [415 kB]
Get:5 http://deb.debian.org/debian bullseye-backports/main Translation-en [353 kB]
Get:6 http://deb.debian.org/debian bullseye-backports/non-free armhf Packages [9,072 B]
Get:7 http://deb.debian.org/debian bullseye-backports/non-free Translation-en [27.7 kB]
Get:8 http://deb.debian.org/debian bullseye-backports/contrib armhf Packages [4,680 B]
Get:9 http://deb.debian.org/debian bullseye-backports/contrib Translation-en [5,984 B]
Fetched 864 kB in 1s (715 kB/s)
Reading package lists... Done
mainsail@freestylebook:~ $ ls /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory

Again, reboot and check again:

Linux freestylebook 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Aug 30 01:43:08 2023 from fe80::b5e9:62d4:8634:abf%wlan0
mainsail@freestylebook:~ $ ls /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory

Hopefully I’m doing what you want me to do - if not, let me know.

The only things I can think of why this change isn’t making any difference is that it’s a 32bit or 64bit OS issue or a CM4 versus classic rPi issue, but I would expect some kind of error pointing to an incompatibility.

Things to try?

Sorry, typo. WRT to using sudo I thought this should be clear, sorry

Can you show the output of sudo apt-cache policy udev?

So far it looks fine.

Have you actually verified that the board registers correctly, e.g. ls /dev/serial/by-path/* (this is unaffected by this bug) or via sudo dmesg?

mainsail@freestylebook:~ $ sudo apt-cache policy udev
udev:
  Installed: 252.5-2~bpo11+1
  Candidate: 252.5-2~bpo11+1
  Version table:
 *** 252.5-2~bpo11+1 100
        100 http://deb.debian.org/debian bullseye-backports/main armhf Packages
        100 /var/lib/dpkg/status
     247.3-7+rpi1+deb11u2 500
        500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages

Are you asking that when I set things up if the controller serial:

mainsail@freestylebook:~/klipper $ ls /dev/serial/by-id/
usb-katapult_stm32g0b1xx_3B002A0009504B4633373520-if00

and UUID:

mainsail@freestylebook:~ $ ~/Katapult/scripts/flash_can.py -i can0 -q
Resetting all bootloader node IDs...
Checking for Katapult nodes...
Detected UUID: ca80e9052a14, Application: Klipper
Query Complete

are correct?

They exactly match the values that were produced before I started trying to implement the Debian fix and I can get Klipper with the the previous printer.cfg working without any issues so I think the values are correct.

Just looking around, with somebody having a similar problem, you asked about running dmesg - there is an error that might be significant (this isn’t sarcasm, I don’t know if it is or isn’t):

[    7.471899] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.bin failed with error -2

Here is the full dump for my system:

mainsail@freestylebook:~ $ sudo 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 Compute Module 4 Rev 1.1
[    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-0x000000003b3fffff]
[    0.000000]   DMA32    empty
[    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] Initmem setup node 0 [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000] On node 0, zone DMA: 19456 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: 238896
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0  smsc95xx.macaddr=E4:5F:01:E6:B5:C8 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=e7034ab5-02 rootfstype=ext4 fsck.repair=yes rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 402848K/970752K available (11776K kernel code, 2106K rwdata, 3688K rodata, 4160K init, 1077K bss, 43616K 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.000318] Console: colour dummy device 80x25
[    0.000875] printk: console [tty1] enabled
[    0.000933] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000974] pid_max: default: 32768 minimum: 301
[    0.001111] LSM: Security Framework initializing
[    0.001305] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.001351] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.002635] cgroup: Disabling memory control group subsystem
[    0.004927] cblist_init_generic: Setting adjustable number of callback queues.
[    0.004962] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005155] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005347] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005796] rcu: Hierarchical SRCU implementation.
[    0.005821] rcu:     Max phase no-delay instances is 1000.
[    0.007165] EFI services will not be available.
[    0.007725] smp: Bringing up secondary CPUs ...
[    0.008886] Detected PIPT I-cache on CPU1
[    0.009041] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.010203] Detected PIPT I-cache on CPU2
[    0.010319] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.011431] Detected PIPT I-cache on CPU3
[    0.011553] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.011699] smp: Brought up 1 node, 4 CPUs
[    0.011789] SMP: Total of 4 processors activated.
[    0.011811] CPU features: detected: 32-bit EL0 Support
[    0.011829] CPU features: detected: 32-bit EL1 Support
[    0.011850] CPU features: detected: CRC32 instructions
[    0.012037] CPU: All CPU(s) started at EL2
[    0.012073] alternatives: applying system-wide alternatives
[    0.013790] devtmpfs: initialized
[    0.025748] Enabled cp15_barrier support
[    0.025815] Enabled setend support
[    0.026047] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.026099] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.040332] pinctrl core: initialized pinctrl subsystem
[    0.041244] DMI not present or invalid.
[    0.041971] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.045599] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.045933] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.046920] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.047031] audit: initializing netlink subsys (disabled)
[    0.047312] audit: type=2000 audit(0.044:1): state=initialized audit_enabled=0 res=1
[    0.047923] thermal_sys: Registered thermal governor 'step_wise'
[    0.048014] cpuidle: using governor menu
[    0.048409] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.048623] ASID allocator initialised with 32768 entries
[    0.048806] Serial: AMBA PL011 UART driver
[    0.062275] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.084299] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:50:39, variant start
[    0.088314] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
[    0.104777] KASLR enabled
[    0.138503] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.144276] SCSI subsystem initialized
[    0.144561] usbcore: registered new interface driver usbfs
[    0.144633] usbcore: registered new interface driver hub
[    0.144712] usbcore: registered new device driver usb
[    0.145109] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.145336] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[    0.145715] pps_core: LinuxPPS API ver. 1 registered
[    0.145740] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.145781] PTP clock support registered
[    0.146942] vgaarb: loaded
[    0.147664] clocksource: Switched to clocksource arch_sys_counter
[    0.148433] VFS: Disk quotas dquot_6.6.0
[    0.148528] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.148724] FS-Cache: Loaded
[    0.148931] CacheFiles: Loaded
[    0.159893] NET: Registered PF_INET protocol family
[    0.160217] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.161965] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.162019] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.162160] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.162257] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.162530] TCP: Hash tables configured (established 8192 bind 8192)
[    0.162748] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.162796] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.163018] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.163794] RPC: Registered named UNIX socket transport module.
[    0.163824] RPC: Registered udp transport module.
[    0.163844] RPC: Registered tcp transport module.
[    0.163863] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.163897] PCI: CLS 0 bytes, default 64
[    0.166767] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.167195] kvm [1]: IPA Size Limit: 44 bits
[    0.168570] kvm [1]: vgic interrupt IRQ9
[    0.168808] kvm [1]: Hyp mode initialized successfully
[    1.310247] Initialise system trusted keyrings
[    1.310786] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    1.318387] zbud: loaded
[    1.321346] NFS: Registering the id_resolver key type
[    1.321411] Key type id_resolver registered
[    1.321432] Key type id_legacy registered
[    1.321555] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.321585] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.323026] Key type asymmetric registered
[    1.323058] Asymmetric key parser 'x509' registered
[    1.323150] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.323434] io scheduler mq-deadline registered
[    1.323462] io scheduler kyber registered
[    1.325458] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 27)
[    1.333737] gpio-507 (ant1): hogged as output/high
[    1.335187] gpio-511 (ant2): hogged as output/low
[    1.336810] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.336863] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.336967] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.337064] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x003fffffff -> 0x0400000000
[    1.338092] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.338126] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.338154] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.338242] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.338513] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.342436] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.342712] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[    1.342915] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[    1.343047] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[    1.659687] brcm-pcie fd500000.pcie: link down
[    1.659853] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.659902] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.660010] pci_bus 0000:01: busn_res: [bus 01] is released
[    1.660850] pci_bus 0000:00: busn_res: [bus 00-ff] is released
[    1.674050] iproc-rng200 fe104000.rng: hwrng registered
[    1.674640] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.676226] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.689365] brd: module loaded
[    1.698228] loop: module loaded
[    1.699100] Loading iSCSI transport class v2.0-870.
[    1.704496] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.763828] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.765039] usbcore: registered new interface driver r8152
[    1.765139] usbcore: registered new interface driver lan78xx
[    1.765212] usbcore: registered new interface driver smsc95xx
[    1.791373] xhci-hcd fe9c0000.xhci: xHCI Host Controller
[    1.791421] xhci-hcd fe9c0000.xhci: new USB bus registered, assigned bus number 1
[    1.791794] xhci-hcd fe9c0000.xhci: USB3 root hub has no ports
[    1.791826] xhci-hcd fe9c0000.xhci: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000000000010010
[    1.791942] xhci-hcd fe9c0000.xhci: irq 33, io mem 0xfe9c0000
[    1.792545] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.792583] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.792610] usb usb1: Product: xHCI Host Controller
[    1.792632] usb usb1: Manufacturer: Linux 6.1.21-v8+ xhci-hcd
[    1.792654] usb usb1: SerialNumber: fe9c0000.xhci
[    1.793358] hub 1-0:1.0: USB hub found
[    1.793438] hub 1-0:1.0: 1 port detected
[    1.794184] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.794573] dwc_otg: FIQ enabled
[    1.794584] dwc_otg: NAK holdoff enabled
[    1.794593] dwc_otg: FIQ split-transaction FSM enabled
[    1.794610] Module dwc_common_port init
[    1.795174] usbcore: registered new interface driver uas
[    1.795277] usbcore: registered new interface driver usb-storage
[    1.795528] mousedev: PS/2 mouse device common for all mice
[    1.801651] sdhci: Secure Digital Host Controller Interface driver
[    1.801692] sdhci: Copyright(c) Pierre Ossman
[    1.802390] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.806065] ledtrig-cpu: registered to indicate activity on CPUs
[    1.806432] hid: raw HID events driver (C) Jiri Kosina
[    1.806652] usbcore: registered new interface driver usbhid
[    1.806678] usbhid: USB HID core driver
[    1.806966] bcm2835_vchiq fe00b840.mailbox: there is not valid maps for state default
[    1.815946] NET: Registered PF_PACKET protocol family
[    1.816098] Key type dns_resolver registered
[    1.817429] registered taskstats version 1
[    1.817522] Loading compiled-in X.509 certificates
[    1.818405] Key type .fscrypt registered
[    1.818432] Key type fscrypt-provisioning registered
[    1.834203] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.834954] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.835155] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 35, base_baud = 0) is a PL011 rev2
[    1.844496] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.844968] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.846301] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.846335] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.877153] of_cfs_init
[    1.877299] of_cfs_init: OK
[    1.911320] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.912004] Waiting for root device PARTUUID=e7034ab5-02...
[    1.962611] mmc1: new high speed SDIO card at address 0001
[    2.019757] mmc0: new ultra high speed DDR50 SDXC card at address 0001
[    2.020802] mmcblk0: mmc0:0001 SD128 116 GiB
[    2.024193]  mmcblk0: p1 p2
[    2.024822] mmcblk0: mmc0:0001 SD128 116 GiB
[    2.047709] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.058936] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    2.059053] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.065038] devtmpfs: mounted
[    2.073894] Freeing unused kernel memory: 4160K
[    2.074112] Run /sbin/init as init process
[    2.074133]   with arguments:
[    2.074142]     /sbin/init
[    2.074152]   with environment:
[    2.074161]     HOME=/
[    2.074170]     TERM=linux
[    2.200090] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[    2.200152] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.200180] usb 1-1: Product: USB 2.0 Hub
[    2.240536] hub 1-1:1.0: USB hub found
[    2.240647] hub 1-1:1.0: 4 ports detected
[    2.427563] systemd[1]: System time before build time, advancing clock.
[    2.635767] usb 1-1.4: new full-speed USB device number 3 using xhci-hcd
[    2.636438] NET: Registered PF_INET6 protocol family
[    2.638311] Segment Routing with IPv6
[    2.638379] In-situ OAM (IOAM) with IPv6
[    2.703230] 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)
[    2.704412] systemd[1]: Detected architecture arm64.
[    2.712178] systemd[1]: Set hostname to <freestylebook>.
[    2.857851] usb 1-1.4: New USB device found, idVendor=1d50, idProduct=606f, bcdDevice= 0.00
[    2.857917] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.857948] usb 1-1.4: Product: stm32g0b1xx
[    2.857971] usb 1-1.4: Manufacturer: Klipper
[    2.857994] usb 1-1.4: SerialNumber: 3B002A0009504B4633373520
[    3.561059] systemd[1]: Queued start job for default target Multi-User System.
[    3.583183] systemd[1]: Created slice system-getty.slice.
[    3.585137] systemd[1]: Created slice system-modprobe.slice.
[    3.586604] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    3.587941] systemd[1]: Created slice User and Session Slice.
[    3.588850] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    3.589682] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.591215] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.591979] systemd[1]: Reached target Local Encrypted Volumes.
[    3.592716] systemd[1]: Reached target Paths.
[    3.593278] systemd[1]: Reached target Slices.
[    3.593795] systemd[1]: Reached target Swap.
[    3.595330] systemd[1]: Listening on Syslog Socket.
[    3.596549] systemd[1]: Listening on fsck to fsckd communication Socket.
[    3.597365] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    3.599018] systemd[1]: Listening on Journal Audit Socket.
[    3.600324] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.601813] systemd[1]: Listening on Journal Socket.
[    3.604308] systemd[1]: Listening on udev Control Socket.
[    3.605638] systemd[1]: Listening on udev Kernel Socket.
[    3.607035] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    3.624206] systemd[1]: Mounting POSIX Message Queue File System...
[    3.629509] systemd[1]: Mounting RPC Pipe File System...
[    3.635545] systemd[1]: Mounting Kernel Debug File System...
[    3.641778] systemd[1]: Mounting Kernel Trace File System...
[    3.642897] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    3.652321] systemd[1]: Starting Restore / save the current clock...
[    3.658377] systemd[1]: Starting Set the console keyboard layout...
[    3.664608] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    3.671535] systemd[1]: Starting Load Kernel Module configfs...
[    3.678876] systemd[1]: Starting Load Kernel Module drm...
[    3.686217] systemd[1]: Starting Load Kernel Module fuse...
[    3.691220] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    3.696725] systemd[1]: Starting File System Check on Root Device...
[    3.707632] systemd[1]: Starting Journal Service...
[    3.719754] systemd[1]: Starting Load Kernel Modules...
[    3.740754] systemd[1]: Starting Coldplug All udev Devices...
[    3.765750] systemd[1]: Mounted POSIX Message Queue File System.
[    3.767031] systemd[1]: Mounted RPC Pipe File System.
[    3.768318] systemd[1]: Mounted Kernel Debug File System.
[    3.769435] systemd[1]: Mounted Kernel Trace File System.
[    3.771877] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    3.774907] systemd[1]: modprobe@configfs.service: Succeeded.
[    3.789291] systemd[1]: Finished Load Kernel Module configfs.
[    3.792518] systemd[1]: Finished Restore / save the current clock.
[    3.804932] fuse: init (API version 7.37)
[    3.841952] systemd[1]: Mounting Kernel Configuration File System...
[    3.847997] systemd[1]: Started File System Check Daemon to report status.
[    3.852349] systemd[1]: modprobe@fuse.service: Succeeded.
[    3.854049] systemd[1]: Finished Load Kernel Module fuse.
[    3.857036] systemd[1]: Finished Load Kernel Modules.
[    3.863719] systemd[1]: Mounting FUSE Control File System...
[    3.877865] systemd[1]: Starting Apply Kernel Variables...
[    3.883559] systemd[1]: Mounted Kernel Configuration File System.
[    3.917125] systemd[1]: Mounted FUSE Control File System.
[    3.945875] systemd[1]: Finished Apply Kernel Variables.
[    3.970323] systemd[1]: modprobe@drm.service: Succeeded.
[    3.971799] systemd[1]: Finished Load Kernel Module drm.
[    4.018134] systemd[1]: Started Journal Service.
[    4.272305] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[    4.340926] systemd-journald[144]: Received client request to flush runtime journal.
[    4.367222] systemd-journald[144]: File /var/log/journal/ec6e5d84bda048cab8aca4c6497603a0/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    5.945135] mc: Linux media interface: v0.10
[    6.030793] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    6.054791] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    6.054830] [vc_sm_connected_init]: start
[    6.063588] videodev: Linux video capture interface: v2.00
[    6.068762] [vc_sm_connected_init]: installed successfully
[    6.220674] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    6.221107] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    6.223522] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    6.233477] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    6.235348] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[    6.244451] rpivid feb10000.codec: Device registered as /dev/video19
[    6.248827] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    6.259216] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    6.262812] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    6.266042] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    6.266109] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    6.266710] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    6.267928] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    6.271085] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    6.271131] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    6.271153] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    6.271182] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    6.271200] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    6.271304] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    6.271341] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    6.285173] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    6.285238] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    6.288280] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    6.290030] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    6.310119] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    6.312097] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    6.312144] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    6.312185] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    6.312204] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    6.312221] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    6.312936] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    6.326097] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    6.326160] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    6.340074] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    6.340139] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[    6.355266] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    6.360860] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    6.379244] CAN device driver interface
[    6.467091] gs_usb 1-1.4:1.0: Configuring for 1 interfaces
[    6.489241] usbcore: registered new interface driver gs_usb
[    6.837174] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.846545] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    6.872004] Registered IR keymap rc-cec
[    6.872233] rc rc0: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    6.872472] input: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input0
[    6.895615] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[    6.925776] Registered IR keymap rc-cec
[    6.926134] rc rc1: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[    6.926659] input: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input1
[    6.951468] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.998188] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[    6.998841] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[    6.999435] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.012432] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.012970] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.013288] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.013743] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.020802] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    7.035350] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    7.203170] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    7.204254] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[    7.257924] 8021q: 802.1Q VLAN Support v1.8
[    7.282053] uart-pl011 fe201000.serial: no DMA platform data
[    7.381836] brcmfmac: F1 signature read @0x18000000=0x15264345
[    7.457675] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.467514] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.469429] usbcore: registered new interface driver brcmfmac
[    7.471899] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.bin failed with error -2
[    7.505751] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    7.510798] bcmgenet fd580000.ethernet eth0: Link is Down
[    7.774773] 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.675399] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    8.863711] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[   14.237746] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   15.074978] Bluetooth: Core ver 2.22
[   15.075059] NET: Registered PF_BLUETOOTH protocol family
[   15.075065] Bluetooth: HCI device and connection manager initialized
[   15.075081] Bluetooth: HCI socket layer initialized
[   15.075089] Bluetooth: L2CAP socket layer initialized
[   15.075107] Bluetooth: SCO socket layer initialized
[   15.084690] Bluetooth: HCI UART driver ver 2.3
[   15.084712] Bluetooth: HCI UART protocol H4 registered
[   15.084782] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   15.084963] Bluetooth: HCI UART protocol Broadcom registered
[   15.455576] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   15.455596] Bluetooth: BNEP filters: protocol multicast
[   15.455616] Bluetooth: BNEP socket layer initialized
[   15.460226] Bluetooth: MGMT ver 1.22
[   15.471236] NET: Registered PF_ALG protocol family
[   85.965470] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead
[ 7454.539338] can: controller area network core
[ 7454.539432] NET: Registered PF_CAN protocol family
[ 7454.551058] can: raw protocol

EDIT:

Looking around, this seems to be a WiFi issue between the rPi 4B and the CM4 and, as WiFi is working on my system (this is how I login), I’m presuming it’s not a problem or, at least, not this one.

This would indicate that the fix according to Debian Bullseye Bug causing Klipper to no longer find the printer board was correctly done.
If it had not worked you would not get a result.

Can you explain, what you are trying to achieve?
Is the M8P your main MCU and connected via USB to your host? If yes, then you need to compile Katapult with the respective USB options and not as CAN.

Flashing it as USB connected main MCU would work like shown here: CanBoot: Flash BTT SKR 1.3 / 1.4 / 1.4 Turbo

Edit:
dmesg is a tricky thing: It contains a lot of low level information and something that is marked as an “error” often is gracefully handled but shown anyway. Rule of thumb for dmesg is: If it is working, then happily ignore the errors unless you want to become a Kernel or driver developer

I want to have a system where I can update the M8P’s firmware without having to access the hardware - I thought the best way to implement that was with Katapult.

Yes. Here’s how I’m configuring Katapult:

You can see that I’m using USB only for Katapult.

As for Klipper:

I’m setting up with the CAN bridge in a pretty standard fashion.

I’ve worked with this approach for nine months now, on Octopus boards and now the M8P.

As I said above, what I’m trying to do is come up with a configuration that allows me to update the M8P using Katapult and not having to physically access the M8P. I figured that I have to have the /dev/serial/by-id/ folder to be non-null for that to be possible.

I saw the dmesg comment before and put it up. I didn’t think it was an issue because everything works fine but I had the data point and thought it was worth sharing.

Since I lack the experience with these CAN boards as I stopped using them after some initial experiments with it, this is just spitballing now:
Once you configured Klipper as per your screenshot the board should no longer be accessible via USB since Klipper is then registering as CAN device.
Maybe this would need Katapult also to be in CAN mode instead of USB to successfully flash the board.

Again, never tried so I’m probably not the good authority here. But it seems that the initial topic of this thread, i.e. the Debian Udev Bug, seems fixed.

I don’t know if that makes sense because I am still accessing the board using USB. I could maybe see Klipper no longer treating it as a USB device but shouldn’t the OS still have the board listed as a USB device (with it being listed in /dev/serial/by-id/)?

For this to work, wouldn’t the M8P have to be connected to the rPi using CAN?

Doesn’t the Debian udev bug problem manifest itself as devices listed under /dev/serial/by-id/ disappear?

Regardless, what I’m looking to do is to have a way of updating the M8P (or any other controller) without having to physically access the board - I thought that Katapult (originally CanBoot) would provide this.

@Arksine or @NAPCAL - any chance either one of you being able to comment here?

1 Like

Correct and for the CAN stuff I’d really also appreciate the input of the more CAN-aware folks here.

1 Like

@mykepredko
Stumbled across this by chance: CanBoot Issues with Klipper "USB to CAN bus bridge" Device · Issue #41 · Arksine/katapult · GitHub
Sounds like your topic.

1 Like

Thanx this is really appreciated.

After reading through the suggested process steps:

python3 flash_can.py -r -u [uuid]
python3 flash_can.py -d [serial device]
python3 flash_can.py -q

I’m not sure it will work because it relies on serial device (ie what is ready by /dev/serial/by-id/) which comes back as an empty folder. I believe that this was developed before the Debian bug manifested itself.

@NAPCAL can you comment on this? You were part of this conversation.

Regardless, I’ll give it a try. Thanx again!

This seems to work at providing a way to update the firmware on the Manta M8P without having to access the board itself.

What’s really interesting is that after running the first flash_can.py command, the serial device becomes visible for the second command, as you can see here:

In my printer, I have three fans attached to individual fan drivers, so to confirm that the firmware update is happening, I see the specified fan (which is different from the previous test) running after the flash_can operation.

The next steps are, partially because I’m curious but really to find the easiest overall process, is to:

  1. Reimage the SD Card without the Debian Fix presented above.
  2. Reimage the SD Card with the bash script presented here: OH NO new problem after update. I believe that this one will work and it’s simpler than the process set out in Debian Bullseye Bug causing Klipper to no longer find the printer board
  3. Try which of the three options (do nothing, @Sineos solution, bash script) is simplest to implement and works with the 64bit rPi OS.

I’ll report back on the results.

Glad that you got it working.

My understanding:

  • When you compile Klipper for the USB/CAN bridge and it is running, you have no serial device as it gets replaced by the CAN interface
  • With these commands, you tell the board to boot into the Katapult bootloader → The serial device becomes accessible
  • Now you can flash the regular way via the serial device
  • WRT the result the solutions are similar, e.g., the script offered by Mainsail (here). Simply run:

    bash <(curl -sL https://raw.githubusercontent.com/mainsail-crew/MainsailOS/develop/patches/udev-fix.sh)
    
  • Personally I prefer the way via backports as it not only fixes this problem but others as well (minor ones) and it is an official way and keeps the apt records and files intact (that’s why backports exist)

  • With your setup, you likely do not need either, since the serial/by-id scheme only makes sure that your connection path stays stable and is not affected by other USB devices and their connection sequence → You can use serial/by-path or even more simple /dev/ttyACM0 or whatever your board uses (e.g. dmesg holds this info)

Somewhere I found this handy bash script (using it since a while in my Klipper installs)

#!/bin/bash                                                            
#findusbdev.sh
                                                           
if [[ "$1" =~ ^(-h|--help)$ ]]; then                                   
                                                                       
echo "Find which USB devices are associated with which /dev/ nodes     
Usage:                                                                 
  $0 [-h|--help] [searchString]                                        
                                                                       
  -h | --help   Prints this message                                    
  searchString  Print only /dev/<device> of matching output            
                With no arguments $0 prints information for all        
                possible USB device nodes                              
                                                                       
E.g. $0 \"FTDI_FT232\" - will show /dev/ttyUSBX for a device using     
the FTDI FT232 chipset.                                                
"                                                                      
    exit 0                                                             
fi                                                                     
                                                                       
devs=$( (                                                              
for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev ); do    
    # ( to launch a subshell here                                      
    (                                                                  
        syspath="${sysdevpath%/dev}"                                   
        devname="$(udevadm info -q name -p $syspath)"                  
        [[ "$devname" == "bus/"* ]] && exit                            
        eval "$(udevadm info -q property --export -p $syspath)"        
        [[ -z "$ID_SERIAL" ]] && exit                                  
        echo "/dev/$devname - $ID_SERIAL"                              
    )& # & here is causing all of these queries to run simultaneously  
done                                                                   
# wait then gives a chance for all of the iterations to complete       
wait                                                                   
# output order is random due to multiprocessing so sort results        
) | sort )                                                             
                                                                       
                                                                       
if [ -z "$1" ]; then                                                   
    echo "${devs}"                                                     
else                                                                   
    echo "${devs}" | grep "$1" | awk '{print $1}'                      
fi