joemysterio
Posts: 7
Joined: Sat May 06, 2023 1:18 am

RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Sat May 06, 2023 1:44 am

Hello all,
I hope this is okay to post here... I'm about to post what I've posted elsewhere hoping for more eyes on this. I'm having huge trouble trying to combine the use of my RPI 3B+, the official 7" touch display, official CM2 (and 3), with KlipperScreen.

So I've been going crazy with this for several days now and I can't get it to work. Initially I was connecting my Pi Camera Module 3, then I was reading it was not compatible yet with crowsnest, so I picked up a Pi Camera Module 2, and still struggling to get things to work properly. Here's what I'm working with:

*Pi OS Lite 6.1.25-v8+ #1647 SMP PREEMPT Wed Apr 26 17:39:08 BST 2023 aarch64 GNU/Linux (this was after running rpi-update)
*Kiauh: Installed Klipper, Moonraker, Fluidd Web interface, Crowsnest, and KlipperScreen
*Spyglass
*Pastebin of /boot/config.txt: https://pastebin.com/CK4nRedh

I had the camera (V2) work at first after following this: https://robertmarks.cloud/posts/2023/02 ... ainsailos/

One of the many things I read, which I can't find now, said to set dtoverlay to dtoverlay=edt-ft5406, and a few others suggested to use rpi-ft5406. Both worked to get my touchscreen to display KlipperScreen AND touch works on it but now I can't get the camera to start again, even after removing it. I'm not sure how that happened. With or without now, I get:

Code: Select all

~ $ libcamera-hello
Preview window unavailable
[0:03:06.769412387] [1334]  INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:03:06.834423340] [1335]  WARN RPI raspberrypi.cpp:1357 Mismatch between Unicam and CamHelper for embedded data usage!
[0:03:06.836342934] [1335]  INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media0 and ISP device /dev/media1
[0:03:06.837868985] [1334]  INFO Camera camera.cpp:1028 configuring streams: (0) 1640x1232-YUV420
[0:03:06.838591125] [1335]  INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA
[0:03:07.900633861] [1335] ERROR V4L2 v4l2_videodevice.cpp:1906 /dev/video0[12:cap]: Failed to start streaming: Input/output error
ERROR: *** failed to start camera ***
and dmesg shows:

Code: Select all

[  187.901492] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[  187.901529] imx219 10-0010: Failed to write reg 0x47b4. error = -5
[  187.901545] imx219 10-0010: imx219_start_streaming failed to send mfg header
[  187.901651] unicam 3f801000.csi: stream on failed in subdev
I've found out that this dmesg output means that the display/touch capabilities and the camera share i2c (sorry for if I worded that wrong, I'm not an advanced linux user at all) and only one can work at a time? If that's the case, it sounds impossible that anyone at all has been able to use the camera AND the touch display together. Am I going to have to sacrifice one for the other? Or use a second pi for the camera?

I then tried to switch to mainsailOS and mostly having the same issue. Also had to use spyglass. dtoverlay=rpi-ft5406 brings up the display with touch, but no camera. This time around, dtoverlay=edt-ft5406 brings up both camera and display, but NO touch. here's some output from dmesg (using edt-ft5406):

Code: Select all

[    8.660415] i2c i2c-11: Added multiplexed i2c bus 0
[    8.665382] i2c i2c-11: Added multiplexed i2c bus 10
[    8.727711] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    8.762665] bcm2835_audio bcm2835_audio: card created with 8 channels
[    9.194653] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    9.298015] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    9.315011] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    9.583959] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    9.600351] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.629962] usbcore: registered new interface driver brcmfmac
[    9.857924] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Jul 19 2021 03:24:18 version 7.45.98 (TOB) (56df937 CY) FWID 01-8e14b897
[   10.715372] rpi_touchscreen_attiny 10-0045: Unknown Atmel firmware revision: 0xe1
[   10.751350] imx219 10-0010: Consider updating driver imx219 to match on endpoints
[   11.306879] Adding 262140k swap on /var/swap.  Priority:-2 extents:2 across:2129916k SSFS
[   11.405664] 8021q: 802.1Q VLAN Support v1.8
[   11.599306] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[   11.860052] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   11.861608] smsc95xx 1-1.1:1.0 eth0: Link is Down
[   12.853341] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   20.959364] platform 0.panel_disp1: deferred probe pending
[   20.959384] platform 0.reg_bridge: deferred probe pending
[   20.959391] mipi-dsi 3f700000.dsi.0: deferred probe pending
[   24.725825] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
----------------

Since I posted the above 5 hours ago, I've been non stop trying again under mainsailOS and I have had zero luck. The following is where I'm currently at, which has the touch display showing klipperscreen WITH touch, and no camera.

here's a pastebin of my /boot/config.txt: https://pastebin.com/TXvyQfNh
here's a pastebin of dmesg on fresh reboot: https://pastebin.com/paytthFf

Linux blah 6.1.19-v7+ #1637 SMP Tue Mar 14 11:04:52 GMT 2023 armv7l GNU/Linux

I'm drained, it's been 3 days messing with this for 6+ hours every day. I'm just a casual linux gui user so I feel I'm out of my depth here. Any and all help would be hugely appreciated. Also please let me know if I need to provide more info... Thanks!

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 14836
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Sat May 06, 2023 4:40 pm

Code: Select all

dtoverlay=vc4-kms-v3d-pi3,nocomposite,noaudio
From the source Linux tree there is no vc4-kms-v3d-pi3. vc4-kms-v3d (for Pi 0-3) or vc4-kms-v3d-pi4 (for Pi4). If overlay_map.dtb is correctly present on a vaguely recent firmware, then that change will be made automatically when using "dtoverlay=vc4-kms-v3d"

Again if using a vaguely recent firmware, then just having "camera_auto_detect=1" and "display_auto_detect=1" will be sufficient to load the appropriate additional overlays for camera and display.
If you need to load them manually, then "dtoverlay=imx219" and "dtoverlay=vc4-kms-dsi-7inch" are all you need, but the latter requires "dtoverlay=vc4-kms-v3d".
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

joemysterio
Posts: 7
Joined: Sat May 06, 2023 1:18 am

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Sat May 06, 2023 6:10 pm

@6by9

Yes, I actually kept going trying last night and finally found the overlays folder thinking I could easily edit something if needed. Again, as I mentioned, I'm just a casual linux user, most of the time just using the a desktop environment. So I got nowhere with that idea... it's just too advanced for me. Anyway, that's when I discovered there wasn't a vc4-kms-v3d-pi3.

I grabbed a new sd card and took a shot using RaspiOS 32bit with desktop and found that touch and the camera worked together without a problem. I proceeded to install klipper, moonraker, mainsail, and klipperscreen. I excluded crowsnest this time. This mostly worked, I had camera and display only, so I made only one change in /boot/config.txt to:

Code: Select all

# Automatically load overlays for detected DSI displays
# display_auto_detect=1
dtoverlay=vc4-kms-dsi-7inch
Then it worked perfectly fine! I had camera on, display AND touch working. The only issue I had was on reboots, it was not consistent with bringing up klipperscreen. I don't know why but I assumed because of the desktop environment for raspi OS. I tried to turn off the desktop environment with raspi-config, but then klipperscreen never came on.

Out of curiosity, I tried a fresh install of os lite 32bit to try what I did with the desktop version, but ended up in the same unusable situation as earlier, no matter what I tried. So maybe desktop loads something else that helps or allows both touch and the camera to be usable at the same time?

edit: forgot to mention, if it's even helpful for this or someone else in the future, I had to use spyglass again to get the camera to show up within mainsail web interface with the RaspiOS w/ desktop install.

joemysterio
Posts: 7
Joined: Sat May 06, 2023 1:18 am

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Sat May 06, 2023 11:03 pm

Alright, so I don't actually need dtoverlay=vc4-kms-dsi-7inch after all to get all three working together with the raspiOS w/ desktop. I was going to just resign myself to using this set up, but now I'm unable to rotate the display AND maintain proper touch under desktop gui, and no rotation at all when klipperscreen actually comes up. This is the only thing that has worked to get display and touch rotated correctly:

Code: Select all

#dtoverlay=vc4-kms-v3d
dtoverlay=rpi-ft5406,touchscreen-swapped-x-y=1,touchscreen-inverted-x=1
[ALL]
display_lcd_rotate=1
but I lose the camera when I do this. This is dmesg output, it also continues forever repeating the last handful of messages:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.1.21-v7+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP Mon Apr  3 17:20:52 BST 2023
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] random: crng init done
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x37400000, 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-0x000000003b3fffff]
[    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] percpu: Embedded 17 pages/cpu s36884 r8192 d24556 u69632
[    0.000000] pcpu-alloc: s36884 r8192 d24556 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 bcm2708_fb.fbwidth=480 bcm2708_fb.fbheight=800 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=940bb077-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    0.000000] Unknown kernel command line parameters "splash", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 877916K/970752K available (10240K kernel code, 1452K rwdata, 2900K rodata, 1024K init, 613K bss, 27300K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 34800 entries in 103 pages
[    0.000000] ftrace: allocated 102 pages with 4 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Rude variant of Tasks RCU enabled.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000001] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000018] Switching to timer-based delay loop, resolution 52ns
[    0.000387] Console: colour dummy device 80x30
[    0.000463] printk: console [tty1] enabled
[    0.000514] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000537] pid_max: default: 32768 minimum: 301
[    0.000683] LSM: Security Framework initializing
[    0.000903] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000927] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002105] cgroup: Disabling memory control group subsystem
[    0.002339] CPU: Testing write buffer coherency: ok
[    0.002785] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003631] cblist_init_generic: Setting adjustable number of callback queues.
[    0.003649] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.003763] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.003898] Setting up static identity map for 0x100000 - 0x10003c
[    0.004034] rcu: Hierarchical SRCU implementation.
[    0.004044] rcu: 	Max phase no-delay instances is 1000.
[    0.004752] smp: Bringing up secondary CPUs ...
[    0.005677] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.006632] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.007493] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.007595] smp: Brought up 1 node, 4 CPUs
[    0.007617] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.007631] CPU: All CPU(s) started in HYP mode.
[    0.007638] CPU: Virtualization extensions available.
[    0.008395] devtmpfs: initialized
[    0.023498] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.023702] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.023733] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.026436] pinctrl core: initialized pinctrl subsystem
[    0.027640] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.030902] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.035917] audit: initializing netlink subsys (disabled)
[    0.036162] audit: type=2000 audit(0.030:1): state=initialized audit_enabled=0 res=1
[    0.036771] thermal_sys: Registered thermal governor 'step_wise'
[    0.037675] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.037692] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.037953] Serial: AMBA PL011 UART driver
[    0.043406] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.046451] platform 3f801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx708@1a
[    0.060037] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:52:42, variant start
[    0.070046] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
[    0.112788] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    0.117597] bcm2835-dma 3f007000.dma: DMA legacy API manager, dmachans=0x1
[    0.119249] SCSI subsystem initialized
[    0.119485] usbcore: registered new interface driver usbfs
[    0.119549] usbcore: registered new interface driver hub
[    0.119601] usbcore: registered new device driver usb
[    0.119805] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.119972] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[    0.120232] pps_core: LinuxPPS API ver. 1 registered
[    0.120243] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.120270] PTP clock support registered
[    1.998679] clocksource: Switched to clocksource arch_sys_counter
[    2.096318] VFS: Disk quotas dquot_6.6.0
[    2.096410] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.096565] FS-Cache: Loaded
[    2.096839] CacheFiles: Loaded
[    2.105350] NET: Registered PF_INET protocol family
[    2.105635] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    2.108326] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    2.108364] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    2.108389] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    2.108505] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    2.108872] TCP: Hash tables configured (established 8192 bind 8192)
[    2.109018] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.109074] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.109296] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    2.109826] RPC: Registered named UNIX socket transport module.
[    2.109838] RPC: Registered udp transport module.
[    2.109847] RPC: Registered tcp transport module.
[    2.109855] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.111440] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    2.114539] Initialise system trusted keyrings
[    2.114788] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    2.123992] zbud: loaded
[    2.126391] NFS: Registering the id_resolver key type
[    2.126430] Key type id_resolver registered
[    2.126440] Key type id_legacy registered
[    2.126563] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.126575] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.127870] Key type asymmetric registered
[    2.127883] Asymmetric key parser 'x509' registered
[    2.128061] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    2.128076] io scheduler mq-deadline registered
[    2.128086] io scheduler kyber registered
[    2.132999] bcm2708_fb soc:fb: FB found 2 display(s)
[    2.149257] Console: switching to colour frame buffer device 60x50
[    2.157019] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 480x800
[    2.161290] bcm2708_fb soc:fb: Registered framebuffer for display 1, size 720x480
[    2.167216] bcm2835-rng 3f104000.rng: hwrng registered
[    2.167552] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    2.168361] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    2.179546] brd: module loaded
[    2.186870] loop: module loaded
[    2.187449] Loading iSCSI transport class v2.0-870.
[    2.188971] usbcore: registered new interface driver lan78xx
[    2.189033] usbcore: registered new interface driver smsc95xx
[    2.189052] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.917150] Core Release: 2.80a
[    2.917166] Setting default values for core params
[    2.917194] Finished setting default values for core params
[    3.117457] Using Buffer DMA mode
[    3.117467] Periodic Transfer Interrupt Enhancement - disabled
[    3.117475] Multiprocessor Interrupt Enhancement - disabled
[    3.117484] OTG VER PARAM: 0, OTG VER FLAG: 0
[    3.117524] Dedicated Tx FIFOs mode

[    3.118094] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = b7504000 dma = 0xf7504000 len=9024
[    3.118133] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    3.118168] dwc_otg: Microframe scheduler enabled

[    3.118307] WARN::hcd_init_fiq:457: FIQ on core 1

[    3.118324] WARN::hcd_init_fiq:458: FIQ ASM at 807c4360 length 36

[    3.118345] WARN::hcd_init_fiq:497: MPHI regs_base at bb810000
[    3.118367] dwc_otg 3f980000.usb: DWC OTG Controller
[    3.118401] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    3.118440] dwc_otg 3f980000.usb: irq 89, io mem 0x00000000
[    3.118495] Init: Port Power? op_state=1
[    3.118503] Init: Power Port (0)
[    3.118822] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    3.118843] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.118859] usb usb1: Product: DWC OTG Controller
[    3.118871] usb usb1: Manufacturer: Linux 6.1.21-v7+ dwc_otg_hcd
[    3.118883] usb usb1: SerialNumber: 3f980000.usb
[    3.119572] hub 1-0:1.0: USB hub found
[    3.119620] hub 1-0:1.0: 1 port detected
[    3.120319] dwc_otg: FIQ enabled
[    3.120330] dwc_otg: NAK holdoff enabled
[    3.120338] dwc_otg: FIQ split-transaction FSM enabled
[    3.120353] Module dwc_common_port init
[    3.120600] usbcore: registered new interface driver usb-storage
[    3.120854] mousedev: PS/2 mouse device common for all mice
[    3.123306] sdhci: Secure Digital Host Controller Interface driver
[    3.123318] sdhci: Copyright(c) Pierre Ossman
[    3.123568] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.125565] ledtrig-cpu: registered to indicate activity on CPUs
[    3.125920] hid: raw HID events driver (C) Jiri Kosina
[    3.126069] usbcore: registered new interface driver usbhid
[    3.126080] usbhid: USB HID core driver
[    3.131747] Initializing XFRM netlink socket
[    3.131805] NET: Registered PF_PACKET protocol family
[    3.131934] Key type dns_resolver registered
[    3.132698] Registering SWP/SWPB emulation handler
[    3.133409] registered taskstats version 1
[    3.133472] Loading compiled-in X.509 certificates
[    3.134255] Key type .fscrypt registered
[    3.134267] Key type fscrypt-provisioning registered
[    3.145874] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    3.146030] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
[    3.148091] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    3.148367] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    3.149686] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    3.149704] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[    3.176587] sdhost: log_buf @ fac58267 (f7507000)
[    3.228281] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    3.230540] of_cfs_init
[    3.230745] of_cfs_init: OK
[    3.231876] Waiting for root device PARTUUID=940bb077-02...
[    3.248813] Indeed it is in host mode hprt0 = 00021501
[    3.262513] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.267303] mmc0: new high speed SDHC card at address 59b4
[    3.268143] mmcblk0: mmc0:59b4 LX32G 29.5 GiB 
[    3.270967]  mmcblk0: p1 p2
[    3.271650] mmcblk0: mmc0:59b4 LX32G 29.5 GiB
[    3.297711] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    3.297730] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    3.316506] mmc1: new high speed SDIO card at address 0001
[    3.458728] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    3.458891] Indeed it is in host mode hprt0 = 00001101
[    3.553321] EXT4-fs (mmcblk0p2): recovery complete
[    3.556616] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    3.556713] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.557590] devtmpfs: mounted
[    3.563362] Freeing unused kernel image (initmem) memory: 1024K
[    3.563867] Run /sbin/init as init process
[    3.563877]   with arguments:
[    3.563884]     /sbin/init
[    3.563891]     splash
[    3.563899]   with environment:
[    3.563905]     HOME=/
[    3.563912]     TERM=linux
[    3.699006] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
[    3.699047] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.699751] hub 1-1:1.0: USB hub found
[    3.699853] hub 1-1:1.0: 5 ports detected
[    4.018706] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    4.048228] systemd[1]: System time before build time, advancing clock.
[    4.149023] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[    4.149060] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.151815] smsc95xx v2.0.0
[    4.283726] NET: Registered PF_INET6 protocol family
[    4.285201] Segment Routing with IPv6
[    4.285262] In-situ OAM (IOAM) with IPv6
[    4.290576] SMSC LAN8700 usb-001:003:01: attached PHY driver (mii_bus:phy_addr=usb-001:003:01, irq=199)
[    4.291631] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:e1:e5:01
[    4.351415] 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)
[    4.353181] systemd[1]: Detected architecture arm.
[    4.354941] systemd[1]: Set hostname to <blah>.
[    5.257754] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[    5.515386] systemd[1]: Queued start job for default target Graphical Interface.
[    5.562815] systemd[1]: Created slice system-getty.slice.
[    5.564450] systemd[1]: Created slice system-modprobe.slice.
[    5.565559] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    5.566359] systemd[1]: Created slice User and Session Slice.
[    5.567018] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    5.568373] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    5.569796] systemd[1]: Reached target Slices.
[    5.570064] systemd[1]: Reached target Swap.
[    5.571396] systemd[1]: Listening on Syslog Socket.
[    5.572118] systemd[1]: Listening on fsck to fsckd communication Socket.
[    5.572558] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    5.573783] systemd[1]: Listening on Journal Audit Socket.
[    5.574518] systemd[1]: Listening on Journal Socket (/dev/log).
[    5.575405] systemd[1]: Listening on Journal Socket.
[    5.579514] systemd[1]: Listening on udev Control Socket.
[    5.580377] systemd[1]: Listening on udev Kernel Socket.
[    5.581617] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    5.586571] systemd[1]: Mounting POSIX Message Queue File System...
[    5.592401] systemd[1]: Mounting RPC Pipe File System...
[    5.598974] systemd[1]: Mounting Kernel Debug File System...
[    5.605462] systemd[1]: Mounting Kernel Trace File System...
[    5.606276] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    5.619611] systemd[1]: Starting Restore / save the current clock...
[    5.626629] systemd[1]: Starting Set the console keyboard layout...
[    5.633313] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    5.640590] systemd[1]: Starting Load Kernel Module configfs...
[    5.648515] systemd[1]: Starting Load Kernel Module drm...
[    5.655962] systemd[1]: Starting Load Kernel Module fuse...
[    5.663082] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    5.669329] systemd[1]: Starting File System Check on Root Device...
[    5.689211] systemd[1]: Starting Journal Service...
[    5.717264] systemd[1]: Starting Load Kernel Modules...
[    5.724051] systemd[1]: Starting Coldplug All udev Devices...
[    5.737738] systemd[1]: Mounted POSIX Message Queue File System.
[    5.743228] systemd[1]: Mounted RPC Pipe File System.
[    5.747102] fuse: init (API version 7.37)
[    5.747541] systemd[1]: Mounted Kernel Debug File System.
[    5.748797] systemd[1]: Mounted Kernel Trace File System.
[    5.767302] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    5.770686] systemd[1]: [email protected]: Succeeded.
[    5.772157] systemd[1]: Finished Load Kernel Module configfs.
[    5.775347] systemd[1]: [email protected]: Succeeded.
[    5.777181] systemd[1]: Finished Load Kernel Module fuse.
[    5.799495] systemd[1]: Mounting FUSE Control File System...
[    5.807905] systemd[1]: Mounting Kernel Configuration File System...
[    5.818322] systemd[1]: Started File System Check Daemon to report status.
[    5.826043] systemd[1]: Finished Restore / save the current clock.
[    5.865615] systemd[1]: Mounted FUSE Control File System.
[    5.866333] systemd[1]: Mounted Kernel Configuration File System.
[    5.876964] i2c_dev: i2c /dev entries driver
[    5.896875] systemd[1]: Finished Load Kernel Modules.
[    5.952269] systemd[1]: Starting Apply Kernel Variables...
[    5.978904] systemd[1]: [email protected]: Succeeded.
[    5.980390] systemd[1]: Finished Load Kernel Module drm.
[    6.033519] systemd[1]: Finished Apply Kernel Variables.
[    6.079663] systemd[1]: Started Journal Service.
[    6.269602] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[    6.384225] systemd-journald[132]: Received client request to flush runtime journal.
[    6.403974] systemd-journald[132]: File /var/log/journal/3cb5a94fd9954877a0ff4cdd83cc1fbc/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    7.721832] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    7.724859] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    7.724908] [vc_sm_connected_init]: start
[    7.728598] [vc_sm_connected_init]: installed successfully
[    7.736437] mc: Linux media interface: v0.10
[    7.939023] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    8.009127] videodev: Linux video capture interface: v2.00
[    8.142007] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    8.199682] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    8.217473] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    8.218175] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    8.218598] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    8.219028] i2c i2c-11: Added multiplexed i2c bus 0
[    8.221540] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    8.221596] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    8.221693] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    8.221713] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    8.221731] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    8.223123] i2c i2c-11: Added multiplexed i2c bus 10
[    8.226634] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    8.227126] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    8.227711] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    8.228228] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    8.242912] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    8.242971] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    8.243010] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    8.243027] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    8.243044] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    8.261930] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    8.277466] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    8.277527] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    8.288304] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    8.289409] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    8.289467] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    8.302091] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    8.302164] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    8.338751] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    8.338822] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    8.376469] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    8.376525] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[    8.433955] input: raspberrypi-ts as /devices/platform/soc/soc:firmware/soc:firmware:touchscreen/input/input0
[    8.816396] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    9.021859] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    9.047044] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    9.827753] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    9.848439] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.849414] usbcore: registered new interface driver brcmfmac
[   10.102447] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Jul 19 2021 03:24:18 version 7.45.98 (TOB) (56df937 CY) FWID 01-8e14b897
[   10.397020] 8021q: 802.1Q VLAN Support v1.8
[   10.535041] uart-pl011 3f201000.serial: no DMA platform data
[   10.663367] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   10.666954] smsc95xx 1-1.1:1.0 eth0: Link is Down
[   10.829202] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[   11.331937] imx708 10-001a: camera module ID 0x0302
[   11.399772] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   11.633138] systemd-journald[132]: File /var/log/journal/3cb5a94fd9954877a0ff4cdd83cc1fbc/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
[   12.408990] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   12.409041] dw9807 10-000c: I2C write STATUS address fail ret = -110
[   12.409062] dw9807 10-000c: dw9807_ramp I2C failure: -110
[   12.863113] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   13.448783] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   13.448814] dw9807 10-000c: I2C write CTL fail ret = -110
[   13.449240] imx708 10-001a: Consider updating driver imx708 to match on endpoints
[   14.648732] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   14.648769] dw9807 10-000c: I2C write MSB fail ret=-110
[   14.648781] dw9807 10-000c: dw9807_ramp I2C failure: -110
[   16.415817] Bluetooth: Core ver 2.22
[   16.416119] NET: Registered PF_BLUETOOTH protocol family
[   16.416135] Bluetooth: HCI device and connection manager initialized
[   16.416180] Bluetooth: HCI socket layer initialized
[   16.416197] Bluetooth: L2CAP socket layer initialized
[   16.416238] Bluetooth: SCO socket layer initialized
[   16.436660] Bluetooth: HCI UART driver ver 2.3
[   16.436697] Bluetooth: HCI UART protocol H4 registered
[   16.436831] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   16.437049] Bluetooth: HCI UART protocol Broadcom registered
[   17.168280] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   17.168328] Bluetooth: BNEP filters: protocol multicast
[   17.168357] Bluetooth: BNEP socket layer initialized
[   17.183228] Bluetooth: MGMT ver 1.22
[   17.243744] NET: Registered PF_ALG protocol family
[   17.357994] cryptd: max_cpu_qlen set to 1000
[   18.544390] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
[   19.716273] Bluetooth: RFCOMM TTY layer initialized
[   19.716319] Bluetooth: RFCOMM socket layer initialized
[   19.716346] Bluetooth: RFCOMM ver 1.11
[   19.768756] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   19.768791] imx708 10-001a: Failed to write reg 0x0136. error = -5
[   19.768804] imx708 10-001a: imx708_start_streaming failed to set common settings
[   19.768824] unicam 3f801000.csi: stream on failed in subdev
[   19.771238] unicam 3f801000.csi: Runtime PM usage count underflow!
[   26.997107] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
[   28.088891] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   28.088935] imx708 10-001a: Failed to write reg 0x3419. error = -5
[   28.088952] imx708 10-001a: imx708_start_streaming failed to set common settings
[   28.088968] unicam 3f801000.csi: stream on failed in subdev
[   28.090532] unicam 3f801000.csi: Runtime PM usage count underflow!
[   35.180180] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
[   36.248744] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   36.248787] imx708 10-001a: Failed to write reg 0x0136. error = -5
[   36.248800] imx708 10-001a: imx708_start_streaming failed to set common settings
[   36.248820] unicam 3f801000.csi: stream on failed in subdev
[   36.250213] unicam 3f801000.csi: Runtime PM usage count underflow!
[   43.249471] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
[   44.328766] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   44.328805] imx708 10-001a: Failed to write reg 0x0136. error = -5
[   44.328822] imx708 10-001a: imx708_start_streaming failed to set common settings
[   44.328846] unicam 3f801000.csi: stream on failed in subdev
[   44.329520] unicam 3f801000.csi: Runtime PM usage count underflow!
[   51.470191] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
[   52.568796] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   52.568866] imx708 10-001a: Failed to write reg 0x0b8e. error = -5
[   52.568882] imx708 10-001a: imx708_start_streaming failed to set common settings
[   52.568921] unicam 3f801000.csi: stream on failed in subdev
[   52.570460] unicam 3f801000.csi: Runtime PM usage count underflow!
[   59.769779] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
[   60.888722] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   60.888753] imx708 10-001a: Failed to write reg 0xf00f. error = -5
[   60.888764] imx708 10-001a: imx708_start_streaming failed to set common settings
[   60.888782] unicam 3f801000.csi: stream on failed in subdev
[   60.889335] unicam 3f801000.csi: Runtime PM usage count underflow!
[   67.984486] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
[   69.048741] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   69.048774] imx708 10-001a: Failed to write reg 0x5e54. error = -5
[   69.048788] imx708 10-001a: imx708_start_streaming failed to set common settings
[   69.048808] unicam 3f801000.csi: stream on failed in subdev
[   69.049400] unicam 3f801000.csi: Runtime PM usage count underflow!
[   70.328743] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   70.328771] dw9807 10-000c: I2C read STATUS value fail ret = -110
[   70.328781] dw9807 10-000c: dw9807_ramp I2C failure: -110
[   76.199117] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
[   77.290565] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   77.290595] imx708 10-001a: Failed to write reg 0x3062. error = -5
[   77.290606] imx708 10-001a: imx708_start_streaming failed to set common settings
[   77.290627] unicam 3f801000.csi: stream on failed in subdev
[   77.291184] unicam 3f801000.csi: Runtime PM usage count underflow!
[   78.570995] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   78.571023] dw9807 10-000c: I2C write MSB fail ret=-110
[   78.571034] dw9807 10-000c: dw9807_ramp I2C failure: -110
[   84.304669] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3
[   85.372698] i2c-bcm2835 3f205000.i2c: i2c transfer timed out
[   85.372737] imx708 10-001a: Failed to write reg 0x0137. error = -5
[   85.372752] imx708 10-001a: imx708_start_streaming failed to set common settings
[   85.372782] unicam 3f801000.csi: stream on failed in subdev
[   85.375600] unicam 3f801000.csi: Runtime PM usage count underflow!
[   92.538589] bcm2835-codec bcm2835-codec: Failed setting ctrl 00990a67, ret -3

I am not sure what to do anymore. I'm considering trying to find an affordable used pi zero w for camera, and my rpi3b+ for everything else. I've already spent too much time and my sanity is starting to wear thin trying to reach above my skill level to figure this out. I thought/hoped that this would be a lot more plug n play friendly with minor configuration to get going, considering all three are official raspberry pi products plus the OS. :(

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 14836
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Sun May 07, 2023 7:24 am

The key thing is not to mix and match between the firmware and Linux using the I2C controller that is shared between the display/touch and camera.

Case 1:
Legacy camera
Legacy display or vc4-fkms-v3d
rpi-ft5406 as the legacy touch controller

Case 2:
libcamera / dtoverlay=imx219 / camera_auto_detect=1
vc4-kms-v3d with display_auto_detect=1 or vc4-kms-dsi-7inch
edt5x06 which comes as part of vc4-kms-dsi-7inch

Do NOT mix between those 2 cases.

display_lcd_rotate=1 only works in case 1.
vc4-kms-dsi-7inch has invx, invy, and swapxy overrides if you want to rotate the touch. If in X, then using the Screen Configuration app will allow you to rotate the display, and it also updates xinput to rotate the touch overlay to match.

Your title says that you have a V2 camera, but the last log includes references to imx708 failing, and imx708 is the V3 camera module. If you're going to manually load the overlay, then do ensure you load the right one.

We support our products on Raspberry Pi OS, and you've acknowledged it all works there. Choosing to use a third party OS is your decision. TBH I'd never heard of Kilpperscreen before.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

joemysterio
Posts: 7
Joined: Sat May 06, 2023 1:18 am

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Sun May 07, 2023 7:49 am

I'm sorry, I did not mention that since I'm skipping crowsnest and using spyglass to get the camera to display within mainsail web interface, I swapped back to the V3 camera as it's the wide version. My use case is for my 3D printer to monitor my prints. Klipper is the firmware for 3D printers, so klipperscreen is a GUI interface to control that firmware.

I will try once again in the morning to make sure I'm using case #2 from another fresh install, which sounds like what I need to use here. My preference would be to use RaspiOS lite but that's where things did not work for me. On the other hand, the desktop version did work until I needed to rotate the screen, plus the issue of klipperscreen screen only coming up sometimes after reboots. We'll see how it goes after I wake up in the morning. Thanks!

joemysterio
Posts: 7
Joined: Sat May 06, 2023 1:18 am

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Sun May 07, 2023 10:25 pm

Okay, so I did a fresh install of Raspberry Pi OS 32bit Lite.

So far the only thing I did on this fresh install:

1. install git
2. clone repo for kiauh, the utility to install klipperscreen, klipper, etc
3. clone repo for spyglass
4. ran ./spyglass/run.py -b localip then navigated to http://localip:8080/stream to verify camera was streaming. It was.
5. ran the utility, kiauh, and only installed klipperscreen.
6. rebooted.

KlipperScreen loaded up, no touch, but the camera works. I then commented out display_auto_detect and put in dtoverlay=vc4-kms-dsi-7inch. Same thing, display worked but no touch and camera worked.

dmesg output:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.1.21-v7+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP Mon Apr  3 17:20:52 BST 2023
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] random: crng init done
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x1ec00000, size 256 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]   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] percpu: Embedded 17 pages/cpu s36884 r8192 d24556 u69632
[    0.000000] pcpu-alloc: s36884 r8192 d24556 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=Composite-1:720x480@60i vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=cb3e6272-02 rootfstype=ext4 fsck.repair=yes rootwait
[    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] Memory: 680916K/970752K available (10240K kernel code, 1452K rwdata, 2900K rodata, 1024K init, 613K bss, 27692K reserved, 262144K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 34800 entries in 103 pages
[    0.000000] ftrace: allocated 102 pages with 4 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Rude variant of Tasks RCU enabled.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000001] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000018] Switching to timer-based delay loop, resolution 52ns
[    0.000388] Console: colour dummy device 80x30
[    0.001008] printk: console [tty1] enabled
[    0.001071] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001119] pid_max: default: 32768 minimum: 301
[    0.001281] LSM: Security Framework initializing
[    0.001504] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001548] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002736] cgroup: Disabling memory control group subsystem
[    0.002986] CPU: Testing write buffer coherency: ok
[    0.003427] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004289] cblist_init_generic: Setting adjustable number of callback queues.
[    0.004327] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.004454] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.004616] Setting up static identity map for 0x100000 - 0x10003c
[    0.004776] rcu: Hierarchical SRCU implementation.
[    0.004800] rcu: 	Max phase no-delay instances is 1000.
[    0.005521] smp: Bringing up secondary CPUs ...
[    0.006455] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.007413] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.008295] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.008399] smp: Brought up 1 node, 4 CPUs
[    0.008482] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.008509] CPU: All CPU(s) started in HYP mode.
[    0.008528] CPU: Virtualization extensions available.
[    0.009279] devtmpfs: initialized
[    0.024813] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.025058] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.025111] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.035261] pinctrl core: initialized pinctrl subsystem
[    0.036476] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.039643] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.044744] audit: initializing netlink subsys (disabled)
[    0.045006] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.045608] thermal_sys: Registered thermal governor 'step_wise'
[    0.046538] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.046592] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.046860] Serial: AMBA PL011 UART driver
[    0.053890] platform 3f101000.cprman: Fixed dependency cycle(s) with /soc/dsi@7e700000
[    0.054387] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.059171] platform 3f801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx708@1a
[    0.070061] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:52:42, variant start
[    0.080075] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
[    0.122995] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    0.128477] bcm2835-dma 3f007000.dma: DMA legacy API manager, dmachans=0x1
[    0.130195] SCSI subsystem initialized
[    0.130448] usbcore: registered new interface driver usbfs
[    0.130529] usbcore: registered new interface driver hub
[    0.130598] usbcore: registered new device driver usb
[    0.130846] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.131033] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[    0.131318] pps_core: LinuxPPS API ver. 1 registered
[    0.131343] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.131392] PTP clock support registered
[    2.009054] clocksource: Switched to clocksource arch_sys_counter
[    2.106723] VFS: Disk quotas dquot_6.6.0
[    2.106851] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.107040] FS-Cache: Loaded
[    2.107361] CacheFiles: Loaded
[    2.115833] NET: Registered PF_INET protocol family
[    2.116143] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    2.118631] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    2.118693] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    2.118802] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    2.118941] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    2.119316] TCP: Hash tables configured (established 8192 bind 8192)
[    2.119476] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.119549] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.119794] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    2.120350] RPC: Registered named UNIX socket transport module.
[    2.120380] RPC: Registered udp transport module.
[    2.120402] RPC: Registered tcp transport module.
[    2.120422] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.122125] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    2.125287] Initialise system trusted keyrings
[    2.125552] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    2.134816] zbud: loaded
[    2.137206] NFS: Registering the id_resolver key type
[    2.137263] Key type id_resolver registered
[    2.137287] Key type id_legacy registered
[    2.137424] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.137454] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.138739] Key type asymmetric registered
[    2.138767] Asymmetric key parser 'x509' registered
[    2.138960] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    2.138994] io scheduler mq-deadline registered
[    2.139018] io scheduler kyber registered
[    2.144504] simple-framebuffer 3ea81000.framebuffer: framebuffer at 0x3ea81000, 0x177000 bytes
[    2.144567] simple-framebuffer 3ea81000.framebuffer: format=a8r8g8b8, mode=800x480x32, linelength=3200
[    2.149809] Console: switching to colour frame buffer device 100x30
[    2.156802] simple-framebuffer 3ea81000.framebuffer: fb0: simplefb registered!
[    2.164229] bcm2835-rng 3f104000.rng: hwrng registered
[    2.167197] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    2.170683] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    2.184432] brd: module loaded
[    2.194393] loop: module loaded
[    2.197583] Loading iSCSI transport class v2.0-870.
[    2.201572] usbcore: registered new interface driver lan78xx
[    2.204179] usbcore: registered new interface driver smsc95xx
[    2.206690] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.937359] Core Release: 2.80a
[    2.939876] Setting default values for core params
[    2.942380] Finished setting default values for core params
[    3.145088] Using Buffer DMA mode
[    3.147528] Periodic Transfer Interrupt Enhancement - disabled
[    3.150045] Multiprocessor Interrupt Enhancement - disabled
[    3.152524] OTG VER PARAM: 0, OTG VER FLAG: 0
[    3.154976] Dedicated Tx FIFOs mode

[    3.157917] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = 9ed04000 dma = 0xded04000 len=9024
[    3.165188] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    3.176571] dwc_otg: Microframe scheduler enabled

[    3.176690] WARN::hcd_init_fiq:457: FIQ on core 1

[    3.180888] WARN::hcd_init_fiq:458: FIQ ASM at 807c4360 length 36

[    3.184987] WARN::hcd_init_fiq:497: MPHI regs_base at bb810000
[    3.189167] dwc_otg 3f980000.usb: DWC OTG Controller
[    3.191373] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    3.193618] dwc_otg 3f980000.usb: irq 89, io mem 0x00000000
[    3.195837] Init: Port Power? op_state=1
[    3.197994] Init: Power Port (0)
[    3.200318] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    3.202572] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.204801] usb usb1: Product: DWC OTG Controller
[    3.206990] usb usb1: Manufacturer: Linux 6.1.21-v7+ dwc_otg_hcd
[    3.209209] usb usb1: SerialNumber: 3f980000.usb
[    3.212017] hub 1-0:1.0: USB hub found
[    3.214255] hub 1-0:1.0: 1 port detected
[    3.216986] dwc_otg: FIQ enabled
[    3.216996] dwc_otg: NAK holdoff enabled
[    3.217004] dwc_otg: FIQ split-transaction FSM enabled
[    3.217019] Module dwc_common_port init
[    3.217345] usbcore: registered new interface driver usb-storage
[    3.219649] mousedev: PS/2 mouse device common for all mice
[    3.224286] sdhci: Secure Digital Host Controller Interface driver
[    3.226418] sdhci: Copyright(c) Pierre Ossman
[    3.228812] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.233067] ledtrig-cpu: registered to indicate activity on CPUs
[    3.235591] hid: raw HID events driver (C) Jiri Kosina
[    3.237938] usbcore: registered new interface driver usbhid
[    3.240172] usbhid: USB HID core driver
[    3.246474] Initializing XFRM netlink socket
[    3.248726] NET: Registered PF_PACKET protocol family
[    3.251035] Key type dns_resolver registered
[    3.253931] Registering SWP/SWPB emulation handler
[    3.256698] registered taskstats version 1
[    3.258832] Loading compiled-in X.509 certificates
[    3.261720] Key type .fscrypt registered
[    3.263792] Key type fscrypt-provisioning registered
[    3.277706] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    3.280040] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
[    3.286364] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    3.288869] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    3.292446] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    3.294754] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[    3.325326] sdhost: log_buf @ c7545e97 (ded07000)
[    3.339172] Indeed it is in host mode hprt0 = 00021501
[    3.377445] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    3.390948] of_cfs_init
[    3.393345] of_cfs_init: OK
[    3.396773] Waiting for root device PARTUUID=cb3e6272-02...
[    3.413953] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.419496] mmc0: new high speed SDXC card at address 0001
[    3.422718] mmcblk0: mmc0:0001 00000 59.5 GiB 
[    3.428303]  mmcblk0: p1 p2
[    3.431340] mmcblk0: mmc0:0001 00000 59.5 GiB
[    3.473577] mmc1: new high speed SDIO card at address 0001
[    3.479200] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    3.481675] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.491915] devtmpfs: mounted
[    3.499958] Freeing unused kernel image (initmem) memory: 1024K
[    3.519550] Run /sbin/init as init process
[    3.522027]   with arguments:
[    3.522035]     /sbin/init
[    3.522043]   with environment:
[    3.522049]     HOME=/
[    3.522056]     TERM=linux
[    3.549087] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    3.551785] Indeed it is in host mode hprt0 = 00001101
[    3.789366] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
[    3.791924] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.795080] hub 1-1:1.0: USB hub found
[    3.797573] hub 1-1:1.0: 5 ports detected
[    4.028030] systemd[1]: System time before build time, advancing clock.
[    4.119085] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    4.249464] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[    4.252036] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.257225] smsc95xx v2.0.0
[    4.286436] NET: Registered PF_INET6 protocol family
[    4.290585] Segment Routing with IPv6
[    4.293185] In-situ OAM (IOAM) with IPv6
[    4.366763] 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)
[    4.375736] systemd[1]: Detected architecture arm.
[    4.396440] systemd[1]: Set hostname to <blah>.
[    4.415869] SMSC LAN8700 usb-001:003:01: attached PHY driver (mii_bus:phy_addr=usb-001:003:01, irq=199)
[    4.430840] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:e1:e5:01
[    5.520841] systemd[1]: Queued start job for default target Multi-User System.
[    5.582928] systemd[1]: Created slice system-getty.slice.
[    5.590882] systemd[1]: Created slice system-modprobe.slice.
[    5.598273] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    5.605477] systemd[1]: Created slice User and Session Slice.
[    5.612170] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    5.618938] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    5.626721] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    5.636877] systemd[1]: Reached target Local Encrypted Volumes.
[    5.644254] systemd[1]: Reached target Paths.
[    5.651307] systemd[1]: Reached target Slices.
[    5.658038] systemd[1]: Reached target Swap.
[    5.665613] systemd[1]: Listening on Syslog Socket.
[    5.672503] systemd[1]: Listening on fsck to fsckd communication Socket.
[    5.679163] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    5.686651] systemd[1]: Listening on Journal Audit Socket.
[    5.693695] systemd[1]: Listening on Journal Socket (/dev/log).
[    5.700902] systemd[1]: Listening on Journal Socket.
[    5.711493] systemd[1]: Listening on udev Control Socket.
[    5.718215] systemd[1]: Listening on udev Kernel Socket.
[    5.725152] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    5.779504] systemd[1]: Mounting POSIX Message Queue File System...
[    5.790220] systemd[1]: Mounting RPC Pipe File System...
[    5.802112] systemd[1]: Mounting Kernel Debug File System...
[    5.813680] systemd[1]: Mounting Kernel Trace File System...
[    5.820791] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    5.840359] systemd[1]: Starting Restore / save the current clock...
[    5.851947] systemd[1]: Starting Set the console keyboard layout...
[    5.864436] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    5.877876] systemd[1]: Starting Load Kernel Module configfs...
[    5.891054] systemd[1]: Starting Load Kernel Module drm...
[    5.903955] systemd[1]: Starting Load Kernel Module fuse...
[    5.916510] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    5.929340] systemd[1]: Starting File System Check on Root Device...
[    5.948555] systemd[1]: Starting Journal Service...
[    5.984730] systemd[1]: Starting Load Kernel Modules...
[    5.989322] fuse: init (API version 7.37)
[    6.013868] systemd[1]: Starting Coldplug All udev Devices...
[    6.046164] systemd[1]: Mounted POSIX Message Queue File System.
[    6.054281] systemd[1]: Mounted RPC Pipe File System.
[    6.061663] systemd[1]: Mounted Kernel Debug File System.
[    6.068848] systemd[1]: Mounted Kernel Trace File System.
[    6.078492] systemd[1]: Finished Restore / save the current clock.
[    6.087596] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    6.096395] systemd[1]: modprobe@configfs.service: Succeeded.
[    6.101407] systemd[1]: Finished Load Kernel Module configfs.
[    6.109982] systemd[1]: [email protected]: Succeeded.
[    6.113982] systemd[1]: Finished Load Kernel Module fuse.
[    6.122528] systemd[1]: Finished Load Kernel Modules.
[    6.200156] systemd[1]: Mounting FUSE Control File System...
[    6.221797] systemd[1]: Mounting Kernel Configuration File System...
[    6.234202] systemd[1]: Started File System Check Daemon to report status.
[    6.257961] systemd[1]: Starting Apply Kernel Variables...
[    6.272360] systemd[1]: [email protected]: Succeeded.
[    6.276698] systemd[1]: Finished Load Kernel Module drm.
[    6.287910] systemd[1]: Mounted FUSE Control File System.
[    6.295001] systemd[1]: Started Journal Service.
[    6.690061] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[    6.791560] systemd-journald[140]: Received client request to flush runtime journal.
[    6.813617] systemd-journald[140]: File /var/log/journal/e58da1bef21147e6b4a0a681bdd255df/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    8.073892] mc: Linux media interface: v0.10
[    8.088304] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    8.131062] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    8.131098] [vc_sm_connected_init]: start
[    8.149482] [vc_sm_connected_init]: installed successfully
[    8.266050] videodev: Linux video capture interface: v2.00
[    8.376040] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    8.396487] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    8.415490] bcm2835_audio bcm2835_audio: card created with 8 channels
[    8.427273] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    8.468937] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    8.499282] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    8.551825] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    8.552005] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    8.557620] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    8.557777] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    8.563846] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    8.563899] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    8.568314] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    8.568379] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    8.572649] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    8.572699] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[    8.576390] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    8.602192] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    8.602643] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    8.603006] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    8.603304] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    8.603334] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    8.603357] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    8.603374] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    8.603391] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    8.614371] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    8.614892] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    8.615281] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    8.615579] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    8.615610] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    8.615632] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    8.615649] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    8.615666] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    8.628697] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    8.799958] i2c i2c-11: Added multiplexed i2c bus 0
[    8.807175] i2c i2c-11: Added multiplexed i2c bus 10
[    9.093962] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    9.250664] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    9.268018] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    9.548297] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    9.579770] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.582628] usbcore: registered new interface driver brcmfmac
[    9.819445] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Jul 19 2021 03:24:18 version 7.45.98 (TOB) (56df937 CY) FWID 01-8e14b897
[   10.889806] rpi_touchscreen_attiny 10-0045: Unknown Atmel firmware revision: 0xe1
[   10.948033] imx708 10-001a: camera module ID 0x0302
[   10.990304] imx708 10-001a: Consider updating driver imx708 to match on endpoints
[   11.226646] uart-pl011 3f201000.serial: no DMA platform data
[   11.260028] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[   11.405031] 8021q: 802.1Q VLAN Support v1.8
[   11.738993] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   11.990753] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   11.993831] smsc95xx 1-1.1:1.0 eth0: Link is Down
[   12.948630] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   21.609872] platform 0.reg_bridge: deferred probe pending
[   21.609901] platform 0.panel_disp1: deferred probe pending
[   21.609913] mipi-dsi 3f700000.dsi.0: deferred probe pending

I really am trying my best to troubleshoot this but failing miserably still. In case anyone is able to try and replicate, these are the repos for kiauh and spyglass:

https://github.com/th33xitus/kiauh.git
https://github.com/roamingthings/spyglass.git

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 14836
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Wed May 10, 2023 1:22 pm

Followed your instructions with the latest Raspbery Pi OS 32bit install. Installed spyglass and klipperscreen on a Pi3 with 7" DSI screen and IMX708.
Display and touch still working, and "libcamera-hello --list-cameras" still lists the camera, with "libcamera-hello" showing the image fine. I didn't need to change anything in config.txt.

From your kernel log

Code: Select all

[   21.609872] platform 0.reg_bridge: deferred probe pending
[   21.609901] platform 0.panel_disp1: deferred probe pending
[   21.609913] mipi-dsi 3f700000.dsi.0: deferred probe pending
Are unexpected. "sudo cat /sys/kernel/debug/devices_deferred" would list the devices that are deferred and in theory why.
...
Most reboots are bringing the display and touch up just fine, but one reboot I have the same, and it stopped X from starting.
Module rpi_panel_attiny_regulator had failed to register as GPIO supplier, therefore the panel, touch, and others won't complete loading.

Code: Select all

[   10.889806] rpi_touchscreen_attiny 10-0045: Unknown Atmel firmware revision: 0xe1
I thought we'd solved that - it's down to the display's controller being slow to respond on reads. "dtparam=i2c_vc_baudrate=50000" in /boot/config.txt should work around the issue.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

joemysterio
Posts: 7
Joined: Sat May 06, 2023 1:18 am

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Wed May 10, 2023 4:33 pm

Thanks for checking! Was this with desktop or lite? I would prefer to use lite as that's when klipperscreen comes up 100% of the time for me. Anyway, I'll try this out ASAP but make take me a few days to report back.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 14836
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Wed May 10, 2023 6:30 pm

joemysterio wrote:
Wed May 10, 2023 4:33 pm
Thanks for checking! Was this with desktop or lite? I would prefer to use lite as that's when klipperscreen comes up 100% of the time for me. Anyway, I'll try this out ASAP but make take me a few days to report back.
Desktop.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

joemysterio
Posts: 7
Joined: Sat May 06, 2023 1:18 am

Re: RPI 3B+ with RaspiCam V2 and 7" Touch display and KlipperScreen -- not working together

Mon May 22, 2023 7:48 pm

Okay, sorry was occupied for a while with personal matter so I couldn't reply until now. I finally got everything working a while back. For anyone that might be running into same problems as me, this is what I did.

I performed another fresh install of Raspberry Pi OS Lite to start clean, added everything I needed with the kiauh utility as before, still using spyglass instead of crowsnest for now since I want to use my CM3 instead, and I had to do the following in /boot/config.txt:

Code: Select all

display_auto_detect=1
dtoverlay=vc4-kms-dsi-7inch
dtparam=i2c_vc_baudrate=50000
The issue I was having with klipperscreen being inconsistent turned out to be a klipperscreen specific problem, and for me, I had to add this at the end of the /etc/X11/Xwrapper.config:

Code: Select all

needs_root_rights=yes
And I had one hell of a time finding the correct config to rotate the screen AND touch, so this is what I was able to compile for my notes so hopefully it's clear enough:

Code: Select all

# to rotate the screen
sudo vim /etc/X11/xorg.conf
Section "Monitor"
    Identifier "DSI-1"
    Option "Rotate" "right"
EndSection

# to rotate the touch, look for: Identifier "libinput touchscreen catchall" then add Option "xxxxx" "xxxxx" into that section
# 90° = Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
# 180° = Option "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"
# 270° = Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
sudo vim /usr/share/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
	Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
	Driver "libinput"
EndSection

Thanks for all the help, I'm glad to have this working so I can now continue playing around with my 3D printer!!

Return to “Official Display”