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

TC358743 driver doesn't get loaded with new DT overlays #4791

Closed JakubVanek closed 2 years ago

JakubVanek commented 2 years ago

Describe the bug

TC358743 doesn't show up in dmesg and the V4L2 hierarchy when the latest tc358743.dtbo is used.

This seems to be related to the recent CAM0 changes - https://github.com/raspberrypi/linux/commit/131f1322039284932ccb601a5cffdd9ca5d36d96.

To reproduce

  1. Set up a RPi4 or CM4 with a TC358743 on CAM1 and dtoverlay=tc358743 or dtoverlay=tc358743,4lane=1 in config.txt
  2. Replace /boot/overlays/tc358743.dtbo with https://github.com/raspberrypi/rpi-firmware/blob/0ac1538ab9776167d461ce7d86153ddbf975167d/overlays/tc358743.dtbo

Expected behaviour

The bridge shows up in the kernel device hierarchy and an informational message appears in dmesg:

[    7.304488] tc358743 10-000f: tc358743 found @ 0x1e (i2c-22-mux (chan_id 1))

Actual behaviour

TC358743 doesn't get registered in the V4L2 API (i.e. the media controller node of Unicam is empty). Also no message about the driver is printed in dmesg. However, the device tree overlay does get loaded - the tc358743 node appears in /sys/firmware/devicetree/.

System

Logs

dmesg with old tc358743.dtbo ``` [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.10.88-v7l (builder@xxx) (arm-buildroot-linux-gnueabihf-gcc.br_real (Buildroot kz-2021-12-t12) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Fri Dec 24 01:57:34 CET 2021 [ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi Compute Module 4 Rev 1.0 [ 0.000000] random: fast init done [ 0.000000] earlycon: pl11 at MMIO32 0x00000000fe201000 (options '') [ 0.000000] printk: bootconsole [pl11] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] Reserved memory: created CMA memory pool at 0x000000002c000000, size 64 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff] [ 0.000000] Normal empty [ 0.000000] HighMem [mem 0x0000000030000000-0x000000007fffffff] [ 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-0x000000007fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff] [ 0.000000] On node 0 totalpages: 504832 [ 0.000000] DMA zone: 1728 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 196608 pages, LIFO batch:63 [ 0.000000] HighMem zone: 308224 pages, LIFO batch:63 [ 0.000000] percpu: Embedded 20 pages/cpu s50892 r8192 d22836 u81920 [ 0.000000] pcpu-alloc: s50892 r8192 d22836 u81920 alloc=20*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 503104 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=0 bcm2708_fb.fbheight=0 bcm2708_fb.fbswap=1 smsc95xx.macaddr=E4:5F:01:2D:75:F2 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 earlycon=pl011,mmio32,0xfe201000 console=ttyAMA0,115200 elevator=deadline init=/sbin/overlay-init ro root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rauc.slot=A [ 0.000000] Kernel parameter elevator= does not have any effect anymore. [ 0.000000] Please use sysfs to set IO scheduler for individual devices. [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x0000000026ca5000-0x000000002aca5000] (64MB) [ 0.000000] Memory: 1850024K/2019328K available (10240K kernel code, 1368K rwdata, 3180K rodata, 2048K init, 885K bss, 103768K reserved, 65536K cma-reserved, 1232896K highmem) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 33696 entries in 99 pages [ 0.000000] ftrace: allocated 99 pages with 4 groups [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] random: get_random_bytes called from start_kernel+0x3c0/0x5a8 with crng_init=1 [ 0.000008] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns [ 0.016826] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns [ 0.026295] bcm2835: system timer (irq = 25) [ 0.031239] arch_timer: cp15 timer(s) running at 54.00MHz (phys). [ 0.037414] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns [ 0.048336] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.056442] Switching to timer-based delay loop, resolution 18ns [ 0.062815] Console: colour dummy device 80x30 [ 0.067366] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000) [ 0.077964] pid_max: default: 32768 minimum: 301 [ 0.082792] LSM: Security Framework initializing [ 0.087642] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.095070] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.104376] cgroup: Disabling memory control group subsystem [ 0.110339] CPU: Testing write buffer coherency: ok [ 0.115722] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.122663] Setting up static identity map for 0x200000 - 0x20003c [ 0.129100] rcu: Hierarchical SRCU implementation. [ 0.134924] smp: Bringing up secondary CPUs ... [ 0.140690] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.142024] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.143293] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.143445] smp: Brought up 1 node, 4 CPUs [ 0.164822] SMP: Total of 4 processors activated (432.00 BogoMIPS). [ 0.171182] CPU: All CPU(s) started in HYP mode. [ 0.175860] CPU: Virtualization extensions available. [ 0.181854] devtmpfs: initialized [ 0.199587] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0 [ 0.207583] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.217568] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.226416] pinctrl core: initialized pinctrl subsystem [ 0.232775] NET: Registered protocol family 16 [ 0.241118] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.248965] audit: initializing netlink subsys (disabled) [ 0.254673] audit: type=2000 audit(0.150:1): state=initialized audit_enabled=0 res=1 [ 0.255257] thermal_sys: Registered thermal governor 'step_wise' [ 0.262991] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.277200] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.283497] Serial: AMBA PL011 UART driver [ 0.321408] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 0.337776] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-12-22T14:24:35, variant start_x [ 0.357876] raspberrypi-firmware soc:firmware: Firmware hash is 720889ee7c970afe516868d20515a73892f9c127 [ 0.398359] Kprobes globally optimized [ 0.407605] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1 [ 0.419401] vgaarb: loaded [ 0.422615] SCSI subsystem initialized [ 0.426917] usbcore: registered new interface driver usbfs [ 0.432534] usbcore: registered new interface driver hub [ 0.438059] usbcore: registered new device driver usb [ 0.443524] usb_phy_generic phy: supply vcc not found, using dummy regulator [ 0.452568] clocksource: Switched to clocksource arch_sys_counter [ 1.449518] VFS: Disk quotas dquot_6.6.0 [ 1.453628] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.460850] FS-Cache: Loaded [ 1.463953] CacheFiles: Loaded [ 1.475938] NET: Registered protocol family 2 [ 1.480583] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 1.489384] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 1.497994] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 1.505914] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 1.513223] TCP: Hash tables configured (established 8192 bind 8192) [ 1.519838] UDP hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.526596] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.534433] NET: Registered protocol family 1 [ 1.539607] RPC: Registered named UNIX socket transport module. [ 1.545640] RPC: Registered udp transport module. [ 1.550407] RPC: Registered tcp transport module. [ 1.555207] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.561741] PCI: CLS 0 bytes, default 64 [ 1.568446] Initialise system trusted keyrings [ 1.573210] workingset: timestamp_bits=14 max_order=19 bucket_order=5 [ 1.587998] zbud: loaded [ 1.592323] FS-Cache: Netfs 'nfs' registered for caching [ 1.598528] NFS: Registering the id_resolver key type [ 1.603729] Key type id_resolver registered [ 1.607970] Key type id_legacy registered [ 1.612172] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.619003] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 1.627544] Key type asymmetric registered [ 1.631699] Asymmetric key parser 'x509' registered [ 1.636838] bounce: pool size: 64 pages [ 1.640772] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 1.648499] io scheduler mq-deadline registered [ 1.653117] io scheduler kyber registered [ 1.661613] gpio-507 (ant1): hogged as output/high [ 1.667919] gpio-511 (ant2): hogged as output/low [ 1.674696] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges: [ 1.681767] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff] [ 1.691018] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000 [ 1.699305] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x007fffffff -> 0x0400000000 [ 2.302600] brcm-pcie fd500000.pcie: link down [ 2.307713] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver. [ 2.315506] bcm2708_fb: probe of soc:fb failed with error -2 [ 2.327339] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled [ 2.336613] iproc-rng200 fe104000.rng: hwrng registered [ 2.342191] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 2.351889] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000 [ 2.371793] brd: module loaded [ 2.387075] loop: module loaded [ 2.392088] Loading iSCSI transport class v2.0-870. [ 2.400273] libphy: Fixed MDIO Bus: probed [ 2.406159] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000 [ 2.432600] libphy: bcmgenet MII bus: probed [ 2.512716] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus [ 2.520083] usbcore: registered new interface driver r8152 [ 2.525745] usbcore: registered new interface driver lan78xx [ 2.531538] usbcore: registered new interface driver smsc95xx [ 2.537937] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 2.544075] dwc_otg: FIQ enabled [ 2.544089] dwc_otg: NAK holdoff enabled [ 2.544103] dwc_otg: FIQ split-transaction FSM enabled [ 2.544121] Module dwc_common_port init [ 2.544540] usbcore: registered new interface driver uas [ 2.549971] usbcore: registered new interface driver usb-storage [ 2.556269] mousedev: PS/2 mouse device common for all mice [ 2.563577] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 2.573381] sdhci: Secure Digital Host Controller Interface driver [ 2.579644] sdhci: Copyright(c) Pierre Ossman [ 2.584674] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.593579] ledtrig-cpu: registered to indicate activity on CPUs [ 2.599996] hid: raw HID events driver (C) Jiri Kosina [ 2.605402] usbcore: registered new interface driver usbhid [ 2.611049] usbhid: USB HID core driver [ 2.620821] Initializing XFRM netlink socket [ 2.625219] NET: Registered protocol family 17 [ 2.629849] Key type dns_resolver registered [ 2.634330] Registering SWP/SWPB emulation handler [ 2.639363] registered taskstats version 1 [ 2.643545] Loading compiled-in X.509 certificates [ 2.649261] Key type ._fscrypt registered [ 2.653353] Key type .fscrypt registered [ 2.657330] Key type fscrypt-provisioning registered [ 2.673656] uart-pl011 fe201000.serial: there is not valid maps for state default [ 2.681477] uart-pl011 fe201000.serial: cts_event_workaround enabled [ 2.687992] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2 [ 2.697030] printk: console [ttyAMA0] enabled [ 2.705805] printk: bootconsole [pl11] disabled [ 2.723476] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 2.734085] of_cfs_init [ 2.736797] of_cfs_init: OK [ 2.740977] uart-pl011 fe201000.serial: no DMA platform data [ 2.769605] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA [ 2.778335] Waiting for root device /dev/mmcblk0p2... [ 2.876230] mmc0: new ultra high speed DDR50 SDHC card at address 0001 [ 2.883698] mmcblk0: mmc0:0001 JB1RT 29.8 GiB [ 2.890156] mmcblk0: p1 p2 p3 p4 [ 2.910644] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 2.918833] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 2.926366] devtmpfs: mounted [ 2.938592] Freeing unused kernel memory: 2048K [ 2.982909] Run /sbin/overlay-init as init process [ 2.987708] with arguments: [ 2.987722] /sbin/overlay-init [ 2.987736] with environment: [ 2.987749] HOME=/ [ 2.987763] TERM=linux [ 3.568810] systemd[1]: System time before build time, advancing clock. [ 3.627876] NET: Registered protocol family 10 [ 3.633772] Segment Routing with IPv6 [ 3.665678] systemd[1]: systemd 249 running in system mode (-PAM -AUDIT -SELINUX -APPARMOR -IMA -SMACK -SECCOMP +GCRYPT +GNUTLS +OPENSSL -ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP -LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ +ZLIB -ZSTD -XKBCOMMON -UTMP -SYSVINIT default-hierarchy=hybrid) [ 3.696282] systemd[1]: Detected architecture arm. [ 3.803042] systemd[1]: Hostname set to . [ 3.838107] systemd[1]: Using hardware watchdog 'Broadcom BCM2835 Watchdog timer', version 0, device /dev/watchdog [ 3.848569] systemd[1]: Set hardware watchdog to 10s. [ 4.247702] systemd[1]: Queued start job for default target Multi-User System. [ 4.256669] random: systemd: uninitialized urandom read (16 bytes read) [ 4.306150] systemd[1]: Created slice Slice /system/modprobe. [ 4.344201] random: systemd: uninitialized urandom read (16 bytes read) [ 4.352934] systemd[1]: Created slice Slice /system/serial-getty. [ 4.392780] random: systemd: uninitialized urandom read (16 bytes read) [ 4.401343] systemd[1]: Created slice Slice /system/systemd-fsck. [ 4.443196] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 4.483139] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 4.523212] systemd[1]: Reached target Path Units. [ 4.552850] systemd[1]: Reached target Remote File Systems. [ 4.592806] systemd[1]: Reached target Slice Units. [ 4.622851] systemd[1]: Reached target Swaps. [ 4.653982] systemd[1]: Listening on Journal Audit Socket. [ 4.693588] systemd[1]: Listening on Journal Socket (/dev/log). [ 4.733658] systemd[1]: Listening on Journal Socket. [ 4.763743] systemd[1]: Listening on udev Control Socket. [ 4.803482] systemd[1]: Listening on udev Kernel Socket. [ 4.843430] systemd[1]: Condition check resulted in Huge Pages File System being skipped. [ 4.856823] systemd[1]: Mounting POSIX Message Queue File System... [ 4.898313] systemd[1]: Mounting Kernel Debug File System... [ 4.938149] systemd[1]: Mounting Kernel Trace File System... [ 4.978948] systemd[1]: Mounting Temporary Directory /tmp... [ 5.019003] systemd[1]: Starting Create List of Static Device Nodes... [ 5.058414] systemd[1]: Starting Load Kernel Module configfs... [ 5.098185] systemd[1]: Starting Load Kernel Module fuse... [ 5.123063] fuse: init (API version 7.32) [ 5.133211] systemd[1]: Condition check resulted in File System Check on Root Device being skipped. [ 5.154880] systemd[1]: Starting Journal Service... [ 5.200615] systemd[1]: Starting Load Kernel Modules... [ 5.238425] systemd[1]: Starting Remount Root and Kernel File Systems... [ 5.278412] systemd[1]: Starting Coldplug All udev Devices... [ 5.323725] systemd[1]: Started Journal Service. [ 6.097940] audit: type=1334 audit(1634052246.519:2): prog-id=5 op=LOAD [ 6.098218] audit: type=1334 audit(1634052246.519:3): prog-id=6 op=LOAD [ 6.529883] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000 [ 6.530477] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000 [ 6.531015] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000 [ 6.532460] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000 [ 6.566805] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned. [ 6.572132] mc: Linux media interface: v0.10 [ 6.573374] bcm2835_vc_sm_cma_probe: Videocore shared memory driver [ 6.573399] [vc_sm_connected_init]: start [ 6.575472] [vc_sm_connected_init]: installed successfully [ 6.599383] videodev: Linux video capture interface: v2.00 [ 6.620263] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 6.620269] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 6.625646] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned. [ 6.632148] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13 [ 6.632745] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14 [ 6.633179] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15 [ 6.633525] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16 [ 6.633553] bcm2835-isp bcm2835-isp: Register output node 0 with media controller [ 6.633577] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller [ 6.633614] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller [ 6.633636] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller [ 6.634722] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 6.641873] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20 [ 6.643217] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21 [ 6.643811] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22 [ 6.644277] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23 [ 6.644307] bcm2835-isp bcm2835-isp: Register output node 0 with media controller [ 6.644330] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller [ 6.644353] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller [ 6.644485] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller [ 6.644695] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp [ 6.647074] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 6.647547] bcm2835-codec bcm2835-codec: Device registered as /dev/video10 [ 6.647593] bcm2835-codec bcm2835-codec: Loaded V4L2 decode [ 6.656255] bcm2835-codec bcm2835-codec: Device registered as /dev/video11 [ 6.656309] bcm2835-codec bcm2835-codec: Loaded V4L2 encode [ 6.657372] i2c i2c-22: Added multiplexed i2c bus 0 [ 6.658164] i2c i2c-22: Added multiplexed i2c bus 10 [ 6.664044] bcm2835-codec bcm2835-codec: Device registered as /dev/video12 [ 6.664090] bcm2835-codec bcm2835-codec: Loaded V4L2 isp [ 6.668668] bcm2835-codec bcm2835-codec: Device registered as /dev/video18 [ 6.668744] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx [ 7.053642] tc358743 10-000f: Consider updating driver tc358743 to match on endpoints [ 7.073739] rtc-pcf85063 10-0051: registered as rtc0 [ 7.077169] rtc-pcf85063 10-0051: setting system clock to 2021-12-24T14:37:36 UTC (1640356656) [ 7.275876] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: commit=300 [ 7.275928] ext4 filesystem being mounted at /mnt/persist supports timestamps until 2038 (0x7fffffff) [ 7.304488] tc358743 10-000f: tc358743 found @ 0x1e (i2c-22-mux (chan_id 1)) [ 7.461630] systemd-journald[140]: Received client request to flush runtime journal. [ 10.000114] random: crng init done [ 10.000123] random: 7 urandom warning(s) missed due to ratelimiting [ 12.705406] audit: type=1334 audit(1640356662.119:4): prog-id=7 op=LOAD [ 12.705500] audit: type=1334 audit(1640356662.119:5): prog-id=8 op=LOAD [ 12.763809] NET: Registered protocol family 38 [ 12.872836] cryptd: max_cpu_qlen set to 1000 [ 13.064592] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 13.076277] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 13.107197] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay) [ 13.107465] bcmgenet fd580000.ethernet eth0: Link is Down [ 16.192734] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 16.192765] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 33.232630] cam-dummy-reg: disabling [ 33.232647] cam1-reg: disabling [ 43.332760] audit: type=1334 audit(1640356691.787:6): prog-id=8 op=UNLOAD [ 43.332785] audit: type=1334 audit(1640356691.787:7): prog-id=7 op=UNLOAD [ 55.712922] bcmgenet fd580000.ethernet eth0: Link is Down [ 57.793062] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx ```
dmesg with new tc358743.dtbo ``` [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.10.88-v7l (builder@xxx) (arm-buildroot-linux-gnueabihf-gcc.br_real (Buildroot kz-2021-12-t12) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Fri Dec 24 01:57:34 CET 2021 [ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi Compute Module 4 Rev 1.0 [ 0.000000] random: fast init done [ 0.000000] earlycon: pl11 at MMIO32 0x00000000fe201000 (options '') [ 0.000000] printk: bootconsole [pl11] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] Reserved memory: created CMA memory pool at 0x000000002c000000, size 64 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff] [ 0.000000] Normal empty [ 0.000000] HighMem [mem 0x0000000030000000-0x000000007fffffff] [ 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-0x000000007fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff] [ 0.000000] On node 0 totalpages: 504832 [ 0.000000] DMA zone: 1728 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 196608 pages, LIFO batch:63 [ 0.000000] HighMem zone: 308224 pages, LIFO batch:63 [ 0.000000] percpu: Embedded 20 pages/cpu s50892 r8192 d22836 u81920 [ 0.000000] pcpu-alloc: s50892 r8192 d22836 u81920 alloc=20*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 503104 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=0 bcm2708_fb.fbheight=0 bcm2708_fb.fbswap=1 smsc95xx.macaddr=E4:5F:01:2D:75:F2 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 earlycon=pl011,mmio32,0xfe201000 console=ttyAMA0,115200 elevator=deadline init=/sbin/overlay-init ro root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rauc.slot=A [ 0.000000] Kernel parameter elevator= does not have any effect anymore. [ 0.000000] Please use sysfs to set IO scheduler for individual devices. [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x0000000026ca5000-0x000000002aca5000] (64MB) [ 0.000000] Memory: 1850024K/2019328K available (10240K kernel code, 1368K rwdata, 3180K rodata, 2048K init, 885K bss, 103768K reserved, 65536K cma-reserved, 1232896K highmem) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 33696 entries in 99 pages [ 0.000000] ftrace: allocated 99 pages with 4 groups [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] random: get_random_bytes called from start_kernel+0x3c0/0x5a8 with crng_init=1 [ 0.000008] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns [ 0.016826] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns [ 0.026296] bcm2835: system timer (irq = 25) [ 0.031237] arch_timer: cp15 timer(s) running at 54.00MHz (phys). [ 0.037411] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns [ 0.048333] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.056439] Switching to timer-based delay loop, resolution 18ns [ 0.062811] Console: colour dummy device 80x30 [ 0.067362] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000) [ 0.077959] pid_max: default: 32768 minimum: 301 [ 0.082785] LSM: Security Framework initializing [ 0.087635] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.095063] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.104366] cgroup: Disabling memory control group subsystem [ 0.110324] CPU: Testing write buffer coherency: ok [ 0.115706] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.122640] Setting up static identity map for 0x200000 - 0x20003c [ 0.129078] rcu: Hierarchical SRCU implementation. [ 0.134886] smp: Bringing up secondary CPUs ... [ 0.140662] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.142006] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.143273] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.143426] smp: Brought up 1 node, 4 CPUs [ 0.164803] SMP: Total of 4 processors activated (432.00 BogoMIPS). [ 0.171163] CPU: All CPU(s) started in HYP mode. [ 0.175842] CPU: Virtualization extensions available. [ 0.181861] devtmpfs: initialized [ 0.199680] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0 [ 0.207677] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.217662] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.226496] pinctrl core: initialized pinctrl subsystem [ 0.232845] NET: Registered protocol family 16 [ 0.241137] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.248983] audit: initializing netlink subsys (disabled) [ 0.254690] audit: type=2000 audit(0.150:1): state=initialized audit_enabled=0 res=1 [ 0.255265] thermal_sys: Registered thermal governor 'step_wise' [ 0.263019] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.277228] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.283526] Serial: AMBA PL011 UART driver [ 0.321194] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 0.337805] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-12-22T14:24:35, variant start_x [ 0.357906] raspberrypi-firmware soc:firmware: Firmware hash is 720889ee7c970afe516868d20515a73892f9c127 [ 0.398471] Kprobes globally optimized [ 0.407686] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1 [ 0.419466] vgaarb: loaded [ 0.422681] SCSI subsystem initialized [ 0.426976] usbcore: registered new interface driver usbfs [ 0.432592] usbcore: registered new interface driver hub [ 0.438119] usbcore: registered new device driver usb [ 0.443588] usb_phy_generic phy: supply vcc not found, using dummy regulator [ 0.452607] clocksource: Switched to clocksource arch_sys_counter [ 1.447826] VFS: Disk quotas dquot_6.6.0 [ 1.451894] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.459159] FS-Cache: Loaded [ 1.462242] CacheFiles: Loaded [ 1.474284] NET: Registered protocol family 2 [ 1.478935] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 1.487736] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 1.496345] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 1.504268] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 1.511550] TCP: Hash tables configured (established 8192 bind 8192) [ 1.518186] UDP hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.524976] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.532703] NET: Registered protocol family 1 [ 1.537908] RPC: Registered named UNIX socket transport module. [ 1.543936] RPC: Registered udp transport module. [ 1.548703] RPC: Registered tcp transport module. [ 1.553482] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.560016] PCI: CLS 0 bytes, default 64 [ 1.566718] Initialise system trusted keyrings [ 1.571463] workingset: timestamp_bits=14 max_order=19 bucket_order=5 [ 1.586376] zbud: loaded [ 1.590683] FS-Cache: Netfs 'nfs' registered for caching [ 1.596954] NFS: Registering the id_resolver key type [ 1.602106] Key type id_resolver registered [ 1.606392] Key type id_legacy registered [ 1.610589] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.617398] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 1.625955] Key type asymmetric registered [ 1.630110] Asymmetric key parser 'x509' registered [ 1.635258] bounce: pool size: 64 pages [ 1.639177] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 1.646889] io scheduler mq-deadline registered [ 1.651483] io scheduler kyber registered [ 1.660036] gpio-507 (ant1): hogged as output/high [ 1.666343] gpio-511 (ant2): hogged as output/low [ 1.672636] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges: [ 1.679707] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff] [ 1.688950] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000 [ 1.697234] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x007fffffff -> 0x0400000000 [ 2.302632] brcm-pcie fd500000.pcie: link down [ 2.307741] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver. [ 2.315534] bcm2708_fb: probe of soc:fb failed with error -2 [ 2.327407] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled [ 2.336745] iproc-rng200 fe104000.rng: hwrng registered [ 2.342322] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 2.352085] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000 [ 2.372221] brd: module loaded [ 2.387686] loop: module loaded [ 2.392743] Loading iSCSI transport class v2.0-870. [ 2.400906] libphy: Fixed MDIO Bus: probed [ 2.406822] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000 [ 2.432653] libphy: bcmgenet MII bus: probed [ 2.512792] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus [ 2.520132] usbcore: registered new interface driver r8152 [ 2.525800] usbcore: registered new interface driver lan78xx [ 2.531582] usbcore: registered new interface driver smsc95xx [ 2.538021] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 2.544152] dwc_otg: FIQ enabled [ 2.544166] dwc_otg: NAK holdoff enabled [ 2.544180] dwc_otg: FIQ split-transaction FSM enabled [ 2.544198] Module dwc_common_port init [ 2.544641] usbcore: registered new interface driver uas [ 2.550075] usbcore: registered new interface driver usb-storage [ 2.556387] mousedev: PS/2 mouse device common for all mice [ 2.563711] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 2.573528] sdhci: Secure Digital Host Controller Interface driver [ 2.579791] sdhci: Copyright(c) Pierre Ossman [ 2.584827] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.594281] ledtrig-cpu: registered to indicate activity on CPUs [ 2.600694] hid: raw HID events driver (C) Jiri Kosina [ 2.606088] usbcore: registered new interface driver usbhid [ 2.611735] usbhid: USB HID core driver [ 2.621556] Initializing XFRM netlink socket [ 2.625952] NET: Registered protocol family 17 [ 2.630557] Key type dns_resolver registered [ 2.635051] Registering SWP/SWPB emulation handler [ 2.640073] registered taskstats version 1 [ 2.644256] Loading compiled-in X.509 certificates [ 2.649936] Key type ._fscrypt registered [ 2.654029] Key type .fscrypt registered [ 2.658006] Key type fscrypt-provisioning registered [ 2.674233] uart-pl011 fe201000.serial: there is not valid maps for state default [ 2.682052] uart-pl011 fe201000.serial: cts_event_workaround enabled [ 2.688577] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2 [ 2.697612] printk: console [ttyAMA0] enabled [ 2.706389] printk: bootconsole [pl11] disabled [ 2.724104] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 2.735840] of_cfs_init [ 2.738553] of_cfs_init: OK [ 2.742696] uart-pl011 fe201000.serial: no DMA platform data [ 2.770177] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA [ 2.778016] Waiting for root device /dev/mmcblk0p2... [ 2.877712] mmc0: new ultra high speed DDR50 SDHC card at address 0001 [ 2.885177] mmcblk0: mmc0:0001 JB1RT 29.8 GiB [ 2.891717] mmcblk0: p1 p2 p3 p4 [ 2.910420] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 2.918612] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 2.926083] devtmpfs: mounted [ 2.938366] Freeing unused kernel memory: 2048K [ 2.982952] Run /sbin/overlay-init as init process [ 2.987750] with arguments: [ 2.987764] /sbin/overlay-init [ 2.987778] with environment: [ 2.987792] HOME=/ [ 2.987806] TERM=linux [ 3.569736] systemd[1]: System time before build time, advancing clock. [ 3.628434] NET: Registered protocol family 10 [ 3.634245] Segment Routing with IPv6 [ 3.666651] systemd[1]: systemd 249 running in system mode (-PAM -AUDIT -SELINUX -APPARMOR -IMA -SMACK -SECCOMP +GCRYPT +GNUTLS +OPENSSL -ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP -LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ +ZLIB -ZSTD -XKBCOMMON -UTMP -SYSVINIT default-hierarchy=hybrid) [ 3.703412] systemd[1]: Detected architecture arm. [ 3.803119] systemd[1]: Hostname set to . [ 3.838348] systemd[1]: Using hardware watchdog 'Broadcom BCM2835 Watchdog timer', version 0, device /dev/watchdog [ 3.848815] systemd[1]: Set hardware watchdog to 10s. [ 4.251382] systemd[1]: Queued start job for default target Multi-User System. [ 4.260364] random: systemd: uninitialized urandom read (16 bytes read) [ 4.310346] systemd[1]: Created slice Slice /system/modprobe. [ 4.342843] random: systemd: uninitialized urandom read (16 bytes read) [ 4.351507] systemd[1]: Created slice Slice /system/serial-getty. [ 4.392817] random: systemd: uninitialized urandom read (16 bytes read) [ 4.401426] systemd[1]: Created slice Slice /system/systemd-fsck. [ 4.443248] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 4.483175] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 4.523181] systemd[1]: Reached target Path Units. [ 4.552881] systemd[1]: Reached target Remote File Systems. [ 4.592851] systemd[1]: Reached target Slice Units. [ 4.622904] systemd[1]: Reached target Swaps. [ 4.654012] systemd[1]: Listening on Journal Audit Socket. [ 4.693584] systemd[1]: Listening on Journal Socket (/dev/log). [ 4.733685] systemd[1]: Listening on Journal Socket. [ 4.763791] systemd[1]: Listening on udev Control Socket. [ 4.803516] systemd[1]: Listening on udev Kernel Socket. [ 4.843512] systemd[1]: Condition check resulted in Huge Pages File System being skipped. [ 4.856897] systemd[1]: Mounting POSIX Message Queue File System... [ 4.898486] systemd[1]: Mounting Kernel Debug File System... [ 4.938207] systemd[1]: Mounting Kernel Trace File System... [ 4.979043] systemd[1]: Mounting Temporary Directory /tmp... [ 5.019121] systemd[1]: Starting Create List of Static Device Nodes... [ 5.058417] systemd[1]: Starting Load Kernel Module configfs... [ 5.098391] systemd[1]: Starting Load Kernel Module fuse... [ 5.123463] fuse: init (API version 7.32) [ 5.133272] systemd[1]: Condition check resulted in File System Check on Root Device being skipped. [ 5.155298] systemd[1]: Starting Journal Service... [ 5.200673] systemd[1]: Starting Load Kernel Modules... [ 5.238700] systemd[1]: Starting Remount Root and Kernel File Systems... [ 5.278832] systemd[1]: Starting Coldplug All udev Devices... [ 5.324013] systemd[1]: Started Journal Service. [ 6.037875] audit: type=1334 audit(1634052246.459:2): prog-id=5 op=LOAD [ 6.038490] audit: type=1334 audit(1634052246.459:3): prog-id=6 op=LOAD [ 6.445239] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000 [ 6.452050] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000 [ 6.458584] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000 [ 6.459138] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000 [ 6.501846] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned. [ 6.507019] bcm2835_vc_sm_cma_probe: Videocore shared memory driver [ 6.507048] [vc_sm_connected_init]: start [ 6.507860] [vc_sm_connected_init]: installed successfully [ 6.521018] mc: Linux media interface: v0.10 [ 6.593324] videodev: Linux video capture interface: v2.00 [ 6.608399] i2c i2c-22: Added multiplexed i2c bus 0 [ 6.609194] i2c i2c-22: Added multiplexed i2c bus 10 [ 6.615518] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 6.615888] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 6.627668] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 6.631500] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned. [ 6.638431] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 6.646534] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13 [ 6.647472] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14 [ 6.647979] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15 [ 6.648358] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16 [ 6.648388] bcm2835-isp bcm2835-isp: Register output node 0 with media controller [ 6.648415] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller [ 6.648452] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller [ 6.648475] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller [ 6.673090] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20 [ 6.673786] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21 [ 6.674307] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22 [ 6.674654] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23 [ 6.674687] bcm2835-isp bcm2835-isp: Register output node 0 with media controller [ 6.674711] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller [ 6.674733] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller [ 6.674755] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller [ 6.675014] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp [ 6.723060] bcm2835-codec bcm2835-codec: Device registered as /dev/video10 [ 6.723111] bcm2835-codec bcm2835-codec: Loaded V4L2 decode [ 6.750133] bcm2835-codec bcm2835-codec: Device registered as /dev/video11 [ 6.750190] bcm2835-codec bcm2835-codec: Loaded V4L2 encode [ 6.770419] bcm2835-codec bcm2835-codec: Device registered as /dev/video12 [ 6.770464] bcm2835-codec bcm2835-codec: Loaded V4L2 isp [ 6.776067] bcm2835-codec bcm2835-codec: Device registered as /dev/video18 [ 6.776113] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx [ 6.918831] rtc-pcf85063 10-0051: registered as rtc0 [ 6.921355] rtc-pcf85063 10-0051: setting system clock to 2021-12-24T14:46:46 UTC (1640357206) [ 7.162532] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: commit=300 [ 7.162584] ext4 filesystem being mounted at /mnt/persist supports timestamps until 2038 (0x7fffffff) [ 7.361886] systemd-journald[140]: Received client request to flush runtime journal. [ 10.021674] random: crng init done [ 10.021682] random: 7 urandom warning(s) missed due to ratelimiting [ 13.361809] audit: type=1334 audit(1640357212.929:4): prog-id=7 op=LOAD [ 13.361880] audit: type=1334 audit(1640357212.929:5): prog-id=8 op=LOAD [ 13.409365] NET: Registered protocol family 38 [ 13.521359] cryptd: max_cpu_qlen set to 1000 [ 13.722217] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 13.735639] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 13.736639] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay) [ 13.737514] bcmgenet fd580000.ethernet eth0: Link is Down [ 16.832794] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 16.832829] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 33.232679] cam-dummy-reg: disabling [ 33.232700] cam1-reg: disabling [ 43.982883] audit: type=1334 audit(1640357242.628:6): prog-id=8 op=UNLOAD [ 43.982907] audit: type=1334 audit(1640357242.628:7): prog-id=7 op=UNLOAD ```

Additional context

Contents of /boot/config.txt (we're using U-Boot for boot partition switching, but that shouldn't cause issues here):

### KZ RPi bootloader config

## Boot files
start_file=start4x.elf
fixup_file=fixup4x.dat
kernel=u-boot.bin

## Disable HDMI output
disable_overscan=1
max_framebuffers=1
hdmi_edid_file=1
hdmi_ignore_hotplug=1
hdmi_ignore_edid=0xa5000080

## Enable UART for U-Boot & debugging
enable_uart=1
uart_2ndstage=1

## Common DT config
dtparam=watchdog=on
dtparam=audio=off
dtoverlay=disable-bt
dtoverlay=disable-wifi

## DT: HDMI bridge selection
# 2-lane Auvidea B101
# dtoverlay=tc358743
# 4-lane Auvidea B102
dtoverlay=tc358743,4lane=1

## DT: RTC configuration
# RPi4 external RTC
# dtoverlay=i2c-rtc,ds1307
# RPi CM4 built-in RTC
dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi
JakubVanek commented 2 years ago

Testing with dtdebug=1 in config.txt gives me the following VC debug logs on the CM4:

new tc358743.dtbo ``` 004076.133: arasan: arasan_emmc_open 004229.842: brfs: File read: /mfs/sd/config.txt 004232.847: brfs: File read: 678 bytes 004286.513: HDMI1:EDID error reading EDID block 0 attempt 0 004296.029: HDMI1:EDID error reading EDID block 0 attempt 1 004305.536: HDMI1:EDID error reading EDID block 0 attempt 2 004315.051: HDMI1:EDID error reading EDID block 0 attempt 3 004324.561: HDMI1:EDID error reading EDID block 0 attempt 4 004334.075: HDMI1:EDID error reading EDID block 0 attempt 5 004343.582: HDMI1:EDID error reading EDID block 0 attempt 6 004353.096: HDMI1:EDID error reading EDID block 0 attempt 7 004362.606: HDMI1:EDID error reading EDID block 0 attempt 8 004372.120: HDMI1:EDID error reading EDID block 0 attempt 9 004376.618: HDMI1:EDID giving up on reading EDID block 0 004382.742: brfs: File read: /mfs/sd/config.txt 004387.498: gpioman: gpioman_get_pin_num: pin DISPLAY_SDA not defined 004394.198: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined 004422.335: gpioman: gpioman_get_pin_num: pin FLASH_0_ENABLE not defined 004426.965: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not defined 004434.705: gpioman: gpioman_get_pin_num: pin FLASH_0_ENABLE not defined 004442.156: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not defined 004998.421: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined 005004.060: *** Restart logging 005006.704: brfs: File read: 678 bytes 005011.350: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead 005025.028: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0 005035.068: hdmi: HDMI1:EDID error reading EDID block 0 attempt 1 005045.098: hdmi: HDMI1:EDID error reading EDID block 0 attempt 2 005055.136: hdmi: HDMI1:EDID error reading EDID block 0 attempt 3 005065.169: hdmi: HDMI1:EDID error reading EDID block 0 attempt 4 005075.208: hdmi: HDMI1:EDID error reading EDID block 0 attempt 5 005085.238: hdmi: HDMI1:EDID error reading EDID block 0 attempt 6 005095.276: hdmi: HDMI1:EDID error reading EDID block 0 attempt 7 005105.309: hdmi: HDMI1:EDID error reading EDID block 0 attempt 8 005115.347: hdmi: HDMI1:EDID error reading EDID block 0 attempt 9 005120.369: hdmi: HDMI1:EDID giving up on reading EDID block 0 005130.992: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0 005141.031: hdmi: HDMI1:EDID error reading EDID block 0 attempt 1 005151.061: hdmi: HDMI1:EDID error reading EDID block 0 attempt 2 005161.099: hdmi: HDMI1:EDID error reading EDID block 0 attempt 3 005171.132: hdmi: HDMI1:EDID error reading EDID block 0 attempt 4 005181.170: hdmi: HDMI1:EDID error reading EDID block 0 attempt 5 005191.201: hdmi: HDMI1:EDID error reading EDID block 0 attempt 6 005201.239: hdmi: HDMI1:EDID error reading EDID block 0 attempt 7 005211.272: hdmi: HDMI1:EDID error reading EDID block 0 attempt 8 005221.310: hdmi: HDMI1:EDID error reading EDID block 0 attempt 9 005226.331: hdmi: HDMI1:EDID giving up on reading EDID block 0 005231.929: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead 005240.694: HDMI0: hdmi_pixel_encoding: 300000000 005246.161: HDMI1: hdmi_pixel_encoding: 300000000 005252.106: gpioman: gpioman_get_pin_num: pin CAMERA_0_I2C_PORT not defined 005263.618: dtb_file 'bcm2711-rpi-cm4.dtb' 005265.643: Trying Device Tree file 'bcm2711-rpi-cm4.dtb' 005277.635: brfs: File read: /mfs/sd/bcm2711-rpi-cm4.dtb 005280.879: Loading 'bcm2711-rpi-cm4.dtb' to 0x100 size 0xcbd8 005297.637: dtdebug: delete_node(/__local_fixups__) 005303.519: brfs: File read: 52184 bytes 005310.528: dtdebug: using platform 'bcm2711' 005313.892: brfs: File read: /mfs/sd/overlays/overlay_map.dtb 005320.127: dtdebug: overlay map loaded 005325.329: dtdebug: /aliases:i2c_vc=i2c0 005333.788: dtdebug: /__symbols__:i2c_vc=i2c0 005339.616: dtdebug: /__overrides__:i2c_vc=i2c0 005349.333: dtdebug: /__overrides__:i2c_vc_baudrate=i2c0_baudrate 005354.712: dtdebug: /aliases:i2c=i2c1 005363.007: dtdebug: /__symbols__:i2c=i2c1 005368.600: dtdebug: /__overrides__:i2c=i2c1 005372.159: dtdebug: /aliases:i2c_arm=i2c1 005380.804: dtdebug: /__symbols__:i2c_arm=i2c1 005386.747: dtdebug: /__overrides__:i2c_arm=i2c1 005396.605: dtdebug: /__overrides__:i2c_baudrate=i2c1_baudrate 005407.679: dtdebug: /__overrides__:i2c_arm_baudrate=i2c1_baudrate 005424.282: dtparam: uart0_clkrate=48000000 005429.327: dtdebug: /__overrides__ has no uart0_clkrate property 005433.357: Unknown dtparam 'uart0_clkrate' - ignored 005439.171: brfs: File read: 1667 bytes 005445.193: brfs: File read: /mfs/sd/config.txt 005449.212: dtparam: watchdog=on 005455.950: dtdebug: found override watchdog 005458.162: dtdebug: override watchdog: string target 'status' 005471.076: dtparam: audio=off 005474.933: dtdebug: found override audio 005476.883: dtdebug: override audio: string target 'status' 005490.921: brfs: File read: 678 bytes 005498.836: dtdebug: Opened overlay file 'overlays/disable-bt.dtbo' 005504.128: brfs: File read: /mfs/sd/overlays/disable-bt.dtbo 005524.336: Loaded overlay 'disable-bt' 005535.744: dtdebug: merge_fragment(/soc/serial@7e215040,/fragment@0/__overlay__) 005541.159: dtdebug: +prop(status) 005546.014: dtdebug: merge_fragment() end 005557.093: dtdebug: merge_fragment(/soc/serial@7e201000,/fragment@1/__overlay__) 005562.505: dtdebug: +prop(pinctrl-names) 005567.997: dtdebug: +prop(pinctrl-0) 005572.595: dtdebug: +prop(status) 005576.944: dtdebug: merge_fragment() end 005588.061: dtdebug: merge_fragment(/soc/serial@7e201000/bluetooth,/fragment@2/__overlay__) 005594.342: dtdebug: +prop(status) 005599.214: dtdebug: merge_fragment() end 005610.057: dtdebug: merge_fragment(/soc/gpio@7e200000/uart0_pins,/fragment@3/__overlay__) 005616.251: dtdebug: +prop(brcm,pins) 005621.391: dtdebug: +prop(brcm,function) 005626.341: dtdebug: +prop(brcm,pull) 005630.941: dtdebug: merge_fragment() end 005641.761: dtdebug: merge_fragment(/soc/gpio@7e200000/bt_pins,/fragment@4/__overlay__) 005647.700: dtdebug: +prop(brcm,pins) 005652.831: dtdebug: +prop(brcm,function) 005657.779: dtdebug: +prop(brcm,pull) 005662.385: dtdebug: merge_fragment() end 005668.620: brfs: File read: 1073 bytes 005673.065: dtdebug: Opened overlay file 'overlays/disable-wifi.dtbo' 005678.906: brfs: File read: /mfs/sd/overlays/disable-wifi.dtbo 005693.860: Loaded overlay 'disable-wifi' 005703.982: dtdebug: merge_fragment(/soc/mmc@7e300000,/fragment@0/__overlay__) 005709.148: dtdebug: +prop(status) 005713.976: dtdebug: merge_fragment() end 005728.363: dtdebug: merge_fragment(/soc/mmcnr@7e300000,/fragment@1/__overlay__) 005733.693: dtdebug: +prop(status) 005738.399: dtdebug: merge_fragment() end 005743.183: brfs: File read: 387 bytes 005748.749: dtdebug: Opened overlay file 'overlays/tc358743.dtbo' 005755.482: brfs: File read: /mfs/sd/overlays/tc358743.dtbo 005789.762: Loaded overlay 'tc358743' 005791.351: dtparam: 4lane=1 005795.185: dtdebug: found override 4lane 005802.886: dtdebug: fragment 2 disabled 005805.127: dtdebug: merge_fragment(/fragment@0/__overlay__/tc358743@f/port/endpoint,/fragment@3/__overlay__) 005815.424: dtdebug: +prop(data-lanes) 005820.167: dtdebug: merge_fragment() end 005827.674: dtdebug: fragment 7 disabled 005830.106: dtdebug: merge_fragment(/fragment@1/__overlay__/port/endpoint,/fragment@8/__overlay__) 005839.300: dtdebug: +prop(data-lanes) 005844.027: dtdebug: merge_fragment() end 005856.364: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1,/fragment@0/__overlay__) 005861.610: dtdebug: +prop(#address-cells) 005867.158: dtdebug: +prop(#size-cells) 005871.914: dtdebug: +prop(status) 005879.153: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1/tc358743@f,/fragment@0/__overlay__/tc358743@f) 005886.312: dtdebug: +prop(compatible) 005891.498: dtdebug: +prop(reg) 005895.594: dtdebug: +prop(status) 005899.939: dtdebug: +prop(clocks) 005904.289: dtdebug: +prop(clock-names) 005909.078: dtdebug: +prop(phandle) 005916.394: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1/tc358743@f/port,/fragment@0/__overlay__/tc358743@f/port) 005927.312: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1/tc358743@f/port/endpoint,/fragment@0/__overlay__/tc358743@f/port/endpoint) 005936.914: dtdebug: +prop(data-lanes) 005942.174: dtdebug: +prop(remote-endpoint) 005947.474: dtdebug: +prop(clock-lanes) 005952.253: dtdebug: +prop(clock-noncontinuous) 005957.732: dtdebug: +prop(link-frequencies) 005962.936: dtdebug: +prop(phandle) 005967.150: dtdebug: merge_fragment() end 005971.372: dtdebug: merge_fragment() end 005976.150: dtdebug: merge_fragment() end 005980.947: dtdebug: merge_fragment() end 005996.203: dtdebug: merge_fragment(/soc/csi@7e801000,/fragment@1/__overlay__) 006001.367: dtdebug: +prop(status) 006009.784: dtdebug: merge_fragment(/soc/csi@7e801000/port,/fragment@1/__overlay__/port) 006019.536: dtdebug: merge_fragment(/soc/csi@7e801000/port/endpoint,/fragment@1/__overlay__/port/endpoint) 006027.140: dtdebug: +prop(data-lanes) 006032.213: dtdebug: +prop(remote-endpoint) 006037.524: dtdebug: +prop(phandle) 006041.711: dtdebug: merge_fragment() end 006046.133: dtdebug: merge_fragment() end 006050.925: dtdebug: merge_fragment() end 006055.729: dtdebug: fragment 2 disabled 006060.404: dtdebug: fragment 3 disabled 006072.373: dtdebug: merge_fragment(/soc/i2c@7e205000,/fragment@4/__overlay__) 006077.546: dtdebug: +prop(status) 006082.405: dtdebug: merge_fragment() end 006094.036: dtdebug: merge_fragment(/soc/i2c0mux,/fragment@5/__overlay__) 006098.766: dtdebug: +prop(status) 006103.619: dtdebug: merge_fragment() end 006120.181: dtdebug: merge_fragment(/cam1_clk,/fragment@6/__overlay__) 006124.640: dtdebug: +prop(clock-frequency) 006130.063: dtdebug: merge_fragment() end 006134.572: dtdebug: fragment 7 disabled 006139.258: dtdebug: fragment 8 disabled 006144.420: brfs: File read: 2895 bytes 006154.476: dtdebug: Opened overlay file 'overlays/i2c-rtc.dtbo' 006159.661: brfs: File read: /mfs/sd/overlays/i2c-rtc.dtbo 006194.222: Loaded overlay 'i2c-rtc' 006195.725: dtparam: pcf85063a=true 006200.513: dtdebug: found override pcf85063a 006205.616: dtparam: i2c_csi_dsi=true 006210.098: dtdebug: found override i2c_csi_dsi 006214.840: dtdebug: override i2c_csi_dsi: cell target target @ offset 0 (size 4) 006227.600: dtdebug: fragment 0 disabled 006229.503: dtdebug: fragment 1 disabled 006234.206: dtdebug: fragment 2 disabled 006238.878: dtdebug: fragment 3 disabled 006243.565: dtdebug: fragment 4 disabled 006248.265: dtdebug: fragment 5 disabled 006252.940: dtdebug: fragment 6 disabled 006257.627: dtdebug: fragment 7 disabled 006262.328: dtdebug: fragment 8 disabled 006267.002: dtdebug: fragment 9 disabled 006271.690: dtdebug: fragment 10 disabled 006276.472: dtdebug: fragment 11 disabled 006281.238: dtdebug: fragment 12 disabled 006286.014: dtdebug: fragment 13 disabled 006290.801: dtdebug: fragment 14 disabled 006295.562: dtdebug: fragment 15 disabled 006303.293: dtdebug: merge_fragment(/fragment@100/__overlay__,/fragment@16/__overlay__) 006309.227: dtdebug: +prop(#address-cells) 006314.315: dtdebug: +prop(#size-cells) 006320.334: dtdebug: merge_fragment(/fragment@100/__overlay__/pcf85063a@51,/fragment@16/__overlay__/pcf85063a@51) 006330.068: dtdebug: +prop(compatible) 006334.782: dtdebug: +prop(reg) 006338.867: dtdebug: merge_fragment() end 006343.614: dtdebug: merge_fragment() end 006348.846: dtdebug: fragment 17 disabled 006353.206: dtdebug: fragment 18 disabled 006357.985: dtdebug: fragment 19 disabled 006370.068: dtdebug: fragment 0 disabled 006371.975: dtdebug: fragment 1 disabled 006376.661: dtdebug: fragment 2 disabled 006381.357: dtdebug: fragment 3 disabled 006386.036: dtdebug: fragment 4 disabled 006390.724: dtdebug: fragment 5 disabled 006395.423: dtdebug: fragment 6 disabled 006400.098: dtdebug: fragment 7 disabled 006404.790: dtdebug: fragment 8 disabled 006409.482: dtdebug: fragment 9 disabled 006414.161: dtdebug: fragment 10 disabled 006418.935: dtdebug: fragment 11 disabled 006423.722: dtdebug: fragment 12 disabled 006428.486: dtdebug: fragment 13 disabled 006433.260: dtdebug: fragment 14 disabled 006438.043: dtdebug: fragment 15 disabled 006442.807: dtdebug: fragment 16 disabled 006447.583: dtdebug: fragment 17 disabled 006452.369: dtdebug: fragment 18 disabled 006457.135: dtdebug: fragment 19 disabled 006469.872: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1,/fragment@100/__overlay__) 006475.307: dtdebug: +prop(#size-cells) 006480.623: dtdebug: +prop(#address-cells) 006485.618: dtdebug: +prop(status) 006493.537: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1/pcf85063a@51,/fragment@100/__overlay__/pcf85063a@51) 006501.236: dtdebug: +prop(reg) 006505.829: dtdebug: +prop(compatible) 006510.500: dtdebug: merge_fragment() end 006514.771: dtdebug: merge_fragment() end 006527.432: dtdebug: merge_fragment(/soc/i2c@7e205000,/fragment@101/__overlay__) 006532.766: dtdebug: +prop(status) 006537.649: dtdebug: merge_fragment() end 006549.845: dtdebug: merge_fragment(/soc/i2c0mux,/fragment@102/__overlay__) 006554.738: dtdebug: +prop(status) 006559.618: dtdebug: merge_fragment() end 006575.526: brfs: File read: 7238 bytes 006578.080: brfs: File read: /mfs/sd/cmdline.txt 006582.693: Read command line from file 'cmdline.txt': 006588.572: 'earlycon=pl011,mmio32,0xfe201000 console=ttyAMA0,115200 elevator=deadline init=/sbin/overlay-init' 006672.125: dtparam: arm_freq=1500000000 006676.925: dtdebug: found override arm_freq 006679.147: dtparam: core_freq=500000000 006686.800: dtdebug: /__overrides__ has no core_freq property 006690.485: Unknown dtparam 'core_freq' - ignored 006708.371: dtdebug: delete_node(/hat) 006716.175: brfs: File read: 98 bytes 006756.650: brfs: File read: /mfs/sd/u-boot.bin 006759.121: Loading 'u-boot.bin' to 0x8000 size 0x6d25c 006765.123: Device tree loaded to 0x2eff2c00 (size 0xd338) 006773.696: uart: Set PL011 baud rate to 103448.300000 Hz 006780.406: uart: Set PL011 baud rate to 103448.300000 Hz 006780.483: uart: Baud rate change done... 006782.565: uart: Baud rate change done... 006788.081: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined 014118.925: vchiq_core: vchiq_init_state: slot_zero = 0xec100000, is_master = 1 ```
old tc358743.dtbo ``` 004075.426: arasan: arasan_emmc_open 004229.166: brfs: File read: /mfs/sd/config.txt 004232.173: brfs: File read: 678 bytes 004285.843: HDMI1:EDID error reading EDID block 0 attempt 0 004295.359: HDMI1:EDID error reading EDID block 0 attempt 1 004304.866: HDMI1:EDID error reading EDID block 0 attempt 2 004314.381: HDMI1:EDID error reading EDID block 0 attempt 3 004323.891: HDMI1:EDID error reading EDID block 0 attempt 4 004333.405: HDMI1:EDID error reading EDID block 0 attempt 5 004342.912: HDMI1:EDID error reading EDID block 0 attempt 6 004352.426: HDMI1:EDID error reading EDID block 0 attempt 7 004361.936: HDMI1:EDID error reading EDID block 0 attempt 8 004371.450: HDMI1:EDID error reading EDID block 0 attempt 9 004375.948: HDMI1:EDID giving up on reading EDID block 0 004382.089: brfs: File read: /mfs/sd/config.txt 004386.827: gpioman: gpioman_get_pin_num: pin DISPLAY_SDA not defined 004393.528: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined 004421.665: gpioman: gpioman_get_pin_num: pin FLASH_0_ENABLE not defined 004426.295: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not defined 004434.036: gpioman: gpioman_get_pin_num: pin FLASH_0_ENABLE not defined 004441.486: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not defined 004964.717: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined 004970.357: *** Restart logging 004973.001: brfs: File read: 678 bytes 004977.654: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead 004991.324: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0 005001.364: hdmi: HDMI1:EDID error reading EDID block 0 attempt 1 005011.394: hdmi: HDMI1:EDID error reading EDID block 0 attempt 2 005021.432: hdmi: HDMI1:EDID error reading EDID block 0 attempt 3 005031.465: hdmi: HDMI1:EDID error reading EDID block 0 attempt 4 005041.504: hdmi: HDMI1:EDID error reading EDID block 0 attempt 5 005051.535: hdmi: HDMI1:EDID error reading EDID block 0 attempt 6 005061.572: hdmi: HDMI1:EDID error reading EDID block 0 attempt 7 005071.606: hdmi: HDMI1:EDID error reading EDID block 0 attempt 8 005081.644: hdmi: HDMI1:EDID error reading EDID block 0 attempt 9 005086.665: hdmi: HDMI1:EDID giving up on reading EDID block 0 005097.288: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0 005107.327: hdmi: HDMI1:EDID error reading EDID block 0 attempt 1 005117.357: hdmi: HDMI1:EDID error reading EDID block 0 attempt 2 005127.395: hdmi: HDMI1:EDID error reading EDID block 0 attempt 3 005137.428: hdmi: HDMI1:EDID error reading EDID block 0 attempt 4 005147.466: hdmi: HDMI1:EDID error reading EDID block 0 attempt 5 005157.496: hdmi: HDMI1:EDID error reading EDID block 0 attempt 6 005167.534: hdmi: HDMI1:EDID error reading EDID block 0 attempt 7 005177.567: hdmi: HDMI1:EDID error reading EDID block 0 attempt 8 005187.605: hdmi: HDMI1:EDID error reading EDID block 0 attempt 9 005192.625: hdmi: HDMI1:EDID giving up on reading EDID block 0 005198.224: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead 005206.988: HDMI0: hdmi_pixel_encoding: 300000000 005212.456: HDMI1: hdmi_pixel_encoding: 300000000 005218.406: gpioman: gpioman_get_pin_num: pin CAMERA_0_I2C_PORT not defined 005229.913: dtb_file 'bcm2711-rpi-cm4.dtb' 005231.938: Trying Device Tree file 'bcm2711-rpi-cm4.dtb' 005243.777: brfs: File read: /mfs/sd/bcm2711-rpi-cm4.dtb 005247.020: Loading 'bcm2711-rpi-cm4.dtb' to 0x100 size 0xcbd8 005263.777: dtdebug: delete_node(/__local_fixups__) 005269.653: brfs: File read: 52184 bytes 005276.639: dtdebug: using platform 'bcm2711' 005280.024: brfs: File read: /mfs/sd/overlays/overlay_map.dtb 005286.238: dtdebug: overlay map loaded 005291.437: dtdebug: /aliases:i2c_vc=i2c0 005299.889: dtdebug: /__symbols__:i2c_vc=i2c0 005305.729: dtdebug: /__overrides__:i2c_vc=i2c0 005315.440: dtdebug: /__overrides__:i2c_vc_baudrate=i2c0_baudrate 005320.823: dtdebug: /aliases:i2c=i2c1 005329.124: dtdebug: /__symbols__:i2c=i2c1 005334.713: dtdebug: /__overrides__:i2c=i2c1 005338.270: dtdebug: /aliases:i2c_arm=i2c1 005346.919: dtdebug: /__symbols__:i2c_arm=i2c1 005352.864: dtdebug: /__overrides__:i2c_arm=i2c1 005362.719: dtdebug: /__overrides__:i2c_baudrate=i2c1_baudrate 005373.802: dtdebug: /__overrides__:i2c_arm_baudrate=i2c1_baudrate 005390.405: dtparam: uart0_clkrate=48000000 005395.443: dtdebug: /__overrides__ has no uart0_clkrate property 005399.467: Unknown dtparam 'uart0_clkrate' - ignored 005405.287: brfs: File read: 1667 bytes 005411.343: brfs: File read: /mfs/sd/config.txt 005415.328: dtparam: watchdog=on 005422.022: dtdebug: found override watchdog 005424.234: dtdebug: override watchdog: string target 'status' 005437.165: dtparam: audio=off 005441.015: dtdebug: found override audio 005442.966: dtdebug: override audio: string target 'status' 005457.004: brfs: File read: 678 bytes 005464.941: dtdebug: Opened overlay file 'overlays/disable-bt.dtbo' 005470.231: brfs: File read: /mfs/sd/overlays/disable-bt.dtbo 005490.437: Loaded overlay 'disable-bt' 005501.832: dtdebug: merge_fragment(/soc/serial@7e215040,/fragment@0/__overlay__) 005507.247: dtdebug: +prop(status) 005512.107: dtdebug: merge_fragment() end 005523.181: dtdebug: merge_fragment(/soc/serial@7e201000,/fragment@1/__overlay__) 005528.592: dtdebug: +prop(pinctrl-names) 005534.096: dtdebug: +prop(pinctrl-0) 005538.683: dtdebug: +prop(status) 005543.032: dtdebug: merge_fragment() end 005554.139: dtdebug: merge_fragment(/soc/serial@7e201000/bluetooth,/fragment@2/__overlay__) 005560.425: dtdebug: +prop(status) 005565.291: dtdebug: merge_fragment() end 005576.124: dtdebug: merge_fragment(/soc/gpio@7e200000/uart0_pins,/fragment@3/__overlay__) 005582.323: dtdebug: +prop(brcm,pins) 005587.456: dtdebug: +prop(brcm,function) 005592.401: dtdebug: +prop(brcm,pull) 005597.007: dtdebug: merge_fragment() end 005607.827: dtdebug: merge_fragment(/soc/gpio@7e200000/bt_pins,/fragment@4/__overlay__) 005613.760: dtdebug: +prop(brcm,pins) 005618.896: dtdebug: +prop(brcm,function) 005623.853: dtdebug: +prop(brcm,pull) 005628.450: dtdebug: merge_fragment() end 005634.680: brfs: File read: 1073 bytes 005639.142: dtdebug: Opened overlay file 'overlays/disable-wifi.dtbo' 005644.975: brfs: File read: /mfs/sd/overlays/disable-wifi.dtbo 005659.913: Loaded overlay 'disable-wifi' 005670.039: dtdebug: merge_fragment(/soc/mmc@7e300000,/fragment@0/__overlay__) 005675.199: dtdebug: +prop(status) 005680.033: dtdebug: merge_fragment() end 005694.425: dtdebug: merge_fragment(/soc/mmcnr@7e300000,/fragment@1/__overlay__) 005699.753: dtdebug: +prop(status) 005704.455: dtdebug: merge_fragment() end 005709.246: brfs: File read: 387 bytes 005714.812: dtdebug: Opened overlay file 'overlays/tc358743.dtbo' 005721.263: brfs: File read: /mfs/sd/overlays/tc358743.dtbo 005743.267: Loaded overlay 'tc358743' 005744.857: dtparam: 4lane=1 005748.713: dtdebug: found override 4lane 005756.541: dtdebug: fragment 2 disabled 005758.800: dtdebug: merge_fragment(/fragment@0/__overlay__/tc358743@0f/port/endpoint,/fragment@3/__overlay__) 005769.160: dtdebug: +prop(data-lanes) 005773.904: dtdebug: merge_fragment() end 005780.712: dtdebug: fragment 7 disabled 005783.891: dtdebug: merge_fragment(/fragment@1/__overlay__/port/endpoint,/fragment@8/__overlay__) 005793.036: dtdebug: +prop(data-lanes) 005797.764: dtdebug: merge_fragment() end 005802.715: dtdebug: fragment 9 disabled 005814.601: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1,/fragment@0/__overlay__) 005819.848: dtdebug: +prop(#address-cells) 005825.409: dtdebug: +prop(#size-cells) 005830.163: dtdebug: +prop(status) 005837.399: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1/tc358743@0f,/fragment@0/__overlay__/tc358743@0f) 005844.739: dtdebug: +prop(compatible) 005849.919: dtdebug: +prop(reg) 005854.022: dtdebug: +prop(status) 005858.374: dtdebug: +prop(clocks) 005862.717: dtdebug: +prop(clock-names) 005870.404: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1/tc358743@0f/port,/fragment@0/__overlay__/tc358743@0f/port) 005881.494: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1/tc358743@0f/port/endpoint,/fragment@0/__overlay__/tc358743@0f/port/endpoint) 005891.264: dtdebug: +prop(data-lanes) 005896.528: dtdebug: +prop(remote-endpoint) 005901.837: dtdebug: +prop(clock-lanes) 005906.609: dtdebug: +prop(clock-noncontinuous) 005912.083: dtdebug: +prop(link-frequencies) 005917.292: dtdebug: +prop(phandle) 005921.493: dtdebug: merge_fragment() end 005925.730: dtdebug: merge_fragment() end 005930.506: dtdebug: merge_fragment() end 005935.303: dtdebug: merge_fragment() end 005950.586: dtdebug: merge_fragment(/soc/csi@7e801000,/fragment@1/__overlay__) 005955.748: dtdebug: +prop(status) 005964.162: dtdebug: merge_fragment(/soc/csi@7e801000/port,/fragment@1/__overlay__/port) 005973.913: dtdebug: merge_fragment(/soc/csi@7e801000/port/endpoint,/fragment@1/__overlay__/port/endpoint) 005981.506: dtdebug: +prop(data-lanes) 005986.587: dtdebug: +prop(remote-endpoint) 005991.903: dtdebug: +prop(phandle) 005996.084: dtdebug: merge_fragment() end 006000.507: dtdebug: merge_fragment() end 006005.294: dtdebug: merge_fragment() end 006010.101: dtdebug: fragment 2 disabled 006014.777: dtdebug: fragment 3 disabled 006026.750: dtdebug: merge_fragment(/soc/i2c@7e205000,/fragment@4/__overlay__) 006031.918: dtdebug: +prop(status) 006036.782: dtdebug: merge_fragment() end 006048.416: dtdebug: merge_fragment(/soc/i2c0mux,/fragment@5/__overlay__) 006053.144: dtdebug: +prop(status) 006058.002: dtdebug: merge_fragment() end 006062.459: dtdebug: merge_fragment(/,/fragment@6/__overlay__) 006076.073: dtdebug: merge_fragment(/bridge-clk,/fragment@6/__overlay__/bridge-clk) 006081.675: dtdebug: +prop(compatible) 006087.129: dtdebug: +prop(#clock-cells) 006092.034: dtdebug: +prop(clock-frequency) 006097.147: dtdebug: +prop(phandle) 006101.564: dtdebug: merge_fragment() end 006105.545: dtdebug: merge_fragment() end 006110.350: dtdebug: fragment 7 disabled 006115.029: dtdebug: fragment 8 disabled 006119.730: dtdebug: fragment 9 disabled 006124.857: brfs: File read: 2493 bytes 006134.931: dtdebug: Opened overlay file 'overlays/i2c-rtc.dtbo' 006140.125: brfs: File read: /mfs/sd/overlays/i2c-rtc.dtbo 006174.729: Loaded overlay 'i2c-rtc' 006176.228: dtparam: pcf85063a=true 006181.026: dtdebug: found override pcf85063a 006186.101: dtparam: i2c_csi_dsi=true 006190.602: dtdebug: found override i2c_csi_dsi 006195.344: dtdebug: override i2c_csi_dsi: cell target target @ offset 0 (size 4) 006208.112: dtdebug: fragment 0 disabled 006210.019: dtdebug: fragment 1 disabled 006214.716: dtdebug: fragment 2 disabled 006219.394: dtdebug: fragment 3 disabled 006224.081: dtdebug: fragment 4 disabled 006228.784: dtdebug: fragment 5 disabled 006233.456: dtdebug: fragment 6 disabled 006238.143: dtdebug: fragment 7 disabled 006242.839: dtdebug: fragment 8 disabled 006247.518: dtdebug: fragment 9 disabled 006252.206: dtdebug: fragment 10 disabled 006256.996: dtdebug: fragment 11 disabled 006261.755: dtdebug: fragment 12 disabled 006266.530: dtdebug: fragment 13 disabled 006271.313: dtdebug: fragment 14 disabled 006276.078: dtdebug: fragment 15 disabled 006283.810: dtdebug: merge_fragment(/fragment@100/__overlay__,/fragment@16/__overlay__) 006289.754: dtdebug: +prop(#address-cells) 006294.837: dtdebug: +prop(#size-cells) 006300.861: dtdebug: merge_fragment(/fragment@100/__overlay__/pcf85063a@51,/fragment@16/__overlay__/pcf85063a@51) 006310.604: dtdebug: +prop(compatible) 006315.306: dtdebug: +prop(reg) 006319.393: dtdebug: merge_fragment() end 006324.136: dtdebug: merge_fragment() end 006329.375: dtdebug: fragment 17 disabled 006333.729: dtdebug: fragment 18 disabled 006338.517: dtdebug: fragment 19 disabled 006350.590: dtdebug: fragment 0 disabled 006352.491: dtdebug: fragment 1 disabled 006357.178: dtdebug: fragment 2 disabled 006361.881: dtdebug: fragment 3 disabled 006366.553: dtdebug: fragment 4 disabled 006371.241: dtdebug: fragment 5 disabled 006375.935: dtdebug: fragment 6 disabled 006380.615: dtdebug: fragment 7 disabled 006385.303: dtdebug: fragment 8 disabled 006390.002: dtdebug: fragment 9 disabled 006394.678: dtdebug: fragment 10 disabled 006399.452: dtdebug: fragment 11 disabled 006404.234: dtdebug: fragment 12 disabled 006409.002: dtdebug: fragment 13 disabled 006413.780: dtdebug: fragment 14 disabled 006418.562: dtdebug: fragment 15 disabled 006423.324: dtdebug: fragment 16 disabled 006428.099: dtdebug: fragment 17 disabled 006432.884: dtdebug: fragment 18 disabled 006437.648: dtdebug: fragment 19 disabled 006450.428: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1,/fragment@100/__overlay__) 006455.851: dtdebug: +prop(#size-cells) 006461.179: dtdebug: +prop(#address-cells) 006466.179: dtdebug: +prop(status) 006474.098: dtdebug: merge_fragment(/soc/i2c0mux/i2c@1/pcf85063a@51,/fragment@100/__overlay__/pcf85063a@51) 006481.779: dtdebug: +prop(reg) 006486.378: dtdebug: +prop(compatible) 006491.045: dtdebug: merge_fragment() end 006495.325: dtdebug: merge_fragment() end 006507.999: dtdebug: merge_fragment(/soc/i2c@7e205000,/fragment@101/__overlay__) 006513.326: dtdebug: +prop(status) 006518.219: dtdebug: merge_fragment() end 006530.421: dtdebug: merge_fragment(/soc/i2c0mux,/fragment@102/__overlay__) 006535.322: dtdebug: +prop(status) 006540.199: dtdebug: merge_fragment() end 006556.264: brfs: File read: 7238 bytes 006558.830: brfs: File read: /mfs/sd/cmdline.txt 006563.434: Read command line from file 'cmdline.txt': 006569.312: 'earlycon=pl011,mmio32,0xfe201000 console=ttyAMA0,115200 elevator=deadline init=/sbin/overlay-init' 006653.228: dtparam: arm_freq=1500000000 006658.042: dtdebug: found override arm_freq 006660.274: dtparam: core_freq=500000000 006667.937: dtdebug: /__overrides__ has no core_freq property 006671.621: Unknown dtparam 'core_freq' - ignored 006689.613: dtdebug: delete_node(/hat) 006697.438: brfs: File read: 98 bytes 006738.297: brfs: File read: /mfs/sd/u-boot.bin 006740.762: Loading 'u-boot.bin' to 0x8000 size 0x6d25c 006746.763: Device tree loaded to 0x2eff2c00 (size 0xd374) 006755.337: uart: Set PL011 baud rate to 103448.300000 Hz 006762.049: uart: Set PL011 baud rate to 103448.300000 Hz 006762.133: uart: Baud rate change done... 006764.190: uart: Baud rate change done... 006769.705: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined 014100.136: vchiq_core: vchiq_init_state: slot_zero = 0xec100000, is_master = 1 ```
JakubVanek commented 2 years ago

Found it! The cam1_clk node still had status = "disabled" when the kernel booted. Adding status = "okay" to the overlay seems to have fixed the problem.

pelwell commented 2 years ago

Cool. We're still very much in holiday mode, but this looks like an easy fix.

BillTec-CyberSec commented 1 year ago

I trying to use a raspberry pi 4 model B running LineageOS 18.1 (Android 11) with HDMI to CSI-2 (C790) but when i add dtoverlay=tc358743,4lane and dtoverlay=tc358743-audio in /boot/config.txt the camera application of LineageOS disappears and the raspberry pi 4 no more recognize the C790

The output of dmesg dont have nothing about tc358743

When i remove dtoverlay=tc358743,4lane and dtoverlay=tc358743-audio the raspberry recognize one camera device (/dev/video0) but the driver dont work

Anyone can help me to solve this?

Sorry about my english i am brasilian...

And sorry if i'm in the wrong channel

6by9 commented 1 year ago

Posting on a closed issue is not the best way to get support. You've also commented on the forums (again on a partially unrelated thread) - please use that thread https://forums.raspberrypi.com/viewtopic.php?p=2088614

BillTec-CyberSec commented 1 year ago

Postar em um problema fechado não é a melhor maneira de obter suporte. Você também comentou nos fóruns (novamente em um tópico parcialmente não relacionado) - use esse tópico https://forums.raspberrypi.com/viewtopic.php?p=2088614

So sorry, I'm new to the forums