Hello,
I am in the process of upgrading the OS version of a system that was already working well on the Bullseye version to the Bookworm version.
Currently, I am using a Raspberry Pi CM4 module and a custom IO board.
I have successfully managed to display the screen using the FKMS driver, but I have not been able to get the touch functionality working yet.
I have tried various things, but it is not easy...
Any assistance would be greatly appreciated.
Here are the errors that can be seen through dmesg.
Here is the content of my /boot/firmware/config.txt.
The interrupt pin connected to the touchscreen is number 5, and the reset pin is number 16.
Here is the content that can be seen using raspi-gpio get.I can confirm the connection using i2cdetect -y 4
Here is.
Here is the content that can be seen using vclog -m.
many thanks.
I am in the process of upgrading the OS version of a system that was already working well on the Bullseye version to the Bookworm version.
Currently, I am using a Raspberry Pi CM4 module and a custom IO board.
I have successfully managed to display the screen using the FKMS driver, but I have not been able to get the touch functionality working yet.
I have tried various things, but it is not easy...
Any assistance would be greatly appreciated.
Here are the errors that can be seen through dmesg.
Code:
[ 4.390090] Goodix-TS 1-0014: supply AVDD28 not found, using dummy regulator[ 4.390233] Goodix-TS 1-0014: supply VDDIO not found, using dummy regulator[ 4.493774] Goodix-TS 1-0014: Error reading 1 bytes from 0x8140: -5[ 4.520005] Goodix-TS 1-0014: Error reading 1 bytes from 0x8140: -5[ 4.551709] Goodix-TS 1-0014: I2C communication failure: -5[ 4.627115] Goodix-TS 1-0014: probe with driver Goodix-TS failed with error -5The interrupt pin connected to the touchscreen is number 5, and the reset pin is number 16.
Code:
# Uncomment some or all of these to enable the optional hardware interfacesdtparam=i2c_arm=on#dtparam=i2s=ondtparam=spi=ondtparam=i2c=on# uncomment if hdmi display is not detected and composite is being outputhdmi_force_hotplug=1# uncomment to force a specific HDMI mode (this will force VGA)# hdmi_group : 0 auto, 1 CEA, 2 DMThdmi_cvt=1024 600 70 0 0 0hdmi_group=2hdmi_mode=87display_hdmi_rotate=1#lcd_rotate=1# uncomment to force a HDMI mode rather than DVI. This can make audio work in# DMT (computer monitor) modeshdmi_drive=1# Uncomment some or all of these to enable the optional hardware interfaces#dtparam=i2c_arm=offdtoverlay=i2c1,pins_44_45=1 # RS485, GPIOdtoverlay=i2c3,pins_2_3=1 # rtcdtoverlay=i2c4,pins_6_7=1 # touch#RS485, GPIOdtoverlay=sc16is752-i2c,int_pin=25,addr=0x4c,xtal=14745600 # without gpiodtoverlay=sc16is752-i2c,int_pin=22,addr=0x4d,xtal=14745600 # include gpio# RTCdtoverlay=i2c-rtc-gpio,ds1307,addr=0x68,i2c_gpio_sda=2,i2c_gpio_scl=3# Touch#sudo dtc -I dts -O dtb -o /boot/overlays/goodix-i2c4.dtbo goodix-i2c4-overlay.dtsdtoverlay=goodix,interrupt=5,reset=16#dtparam=i2s=on#dtparam=spi=on# CANdtoverlay=mcp2515-can0,oscillator=16000000,interrupt=17dtoverlay=mcp2515-can1,oscillator=16000000,interrupt=27dtoverlay=spi0-2cs,cs0_pin=13,cs1_pin=8# NVSRAMdtoverlay=spi1-1cs,cs0_pin=18# Uncomment this to enable infrared communication.#dtoverlay=gpio-ir,gpio_pin=17#dtoverlay=gpio-ir-tx,gpio_pin=18# Enable audio (loads snd_bcm2835)#dtparam=audio=on# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected cameras#camera_auto_detect=1# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-fkms-v3dmax_framebuffers=2# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.#disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscandisable_overscan=1# disable wifi and bluetoothdtoverlay=disable-wifidtoverlay=disable-bt#rainbow screen no showdisable_splash=1# Run as fast as firmware / board allows#arm_boost=1[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.#otg_mode=1dtoverlay=dwc2,dr_mode=host[cm5]#dtoverlay=dwc2,dr_mode=host[all]#enable_uart=1#dtoverlay=w1-gpio# LCD ONgpio=24=op,pd#Ethernet# sudo dtc -I dts -O dtb -o /boot/overlays/lan7800-usb.dtbo lan7800-usb-overlay.dts#dtoverlay=lan7800-usb#dtdebug=1dtoverlay=vl805Here is the content that can be seen using raspi-gpio get.
Code:
BANK0 (GPIO 0 to 27):GPIO 0: level=1 func=INPUT pull=UPGPIO 1: level=1 func=INPUT pull=UPGPIO 2: level=1 func=INPUT pull=UPGPIO 3: level=1 func=INPUT pull=UPGPIO 4: level=0 func=INPUT pull=UPGPIO 5: level=0 func=INPUT pull=UPGPIO 6: level=1 alt=5 func=SDA4 pull=UPGPIO 7: level=1 alt=5 func=SCL4 pull=UPGPIO 8: level=1 func=OUTPUT pull=UPGPIO 9: level=0 alt=0 func=SPI0_MISO pull=DOWNGPIO 10: level=0 alt=0 func=SPI0_MOSI pull=DOWNGPIO 11: level=0 alt=0 func=SPI0_SCLK pull=DOWNGPIO 12: level=0 func=INPUT pull=DOWNGPIO 13: level=1 func=OUTPUT pull=DOWNGPIO 14: level=1 alt=0 func=TXD0 pull=NONEGPIO 15: level=1 alt=0 func=RXD0 pull=UPGPIO 16: level=1 func=INPUT pull=UPGPIO 17: level=1 func=INPUT pull=DOWNGPIO 18: level=1 func=OUTPUT pull=DOWNGPIO 19: level=0 alt=4 func=SPI1_MISO pull=DOWNGPIO 20: level=0 alt=4 func=SPI1_MOSI pull=DOWNGPIO 21: level=0 alt=4 func=SPI1_SCLK pull=DOWNGPIO 22: level=1 func=INPUT pull=DOWNGPIO 23: level=1 func=INPUT pull=DOWNGPIO 24: level=0 func=OUTPUT pull=DOWNGPIO 25: level=1 func=INPUT pull=DOWNGPIO 26: level=0 func=INPUT pull=DOWNGPIO 27: level=1 func=INPUT pull=DOWNBANK1 (GPIO 28 to 45):GPIO 28: level=1 alt=5 func=RGMII_MDIO pull=UPGPIO 29: level=0 alt=5 func=RGMII_MDC pull=DOWNGPIO 30: level=1 func=INPUT pull=UPGPIO 31: level=1 func=INPUT pull=NONEGPIO 32: level=0 func=INPUT pull=DOWNGPIO 33: level=0 func=INPUT pull=DOWNGPIO 34: level=1 func=INPUT pull=UPGPIO 35: level=1 func=INPUT pull=UPGPIO 36: level=1 func=INPUT pull=UPGPIO 37: level=0 func=INPUT pull=DOWNGPIO 38: level=0 func=INPUT pull=DOWNGPIO 39: level=0 func=INPUT pull=DOWNGPIO 40: level=1 func=INPUT pull=DOWNGPIO 41: level=0 func=INPUT pull=DOWNGPIO 42: level=0 func=OUTPUT pull=DOWNGPIO 43: level=1 func=INPUT pull=DOWNGPIO 44: level=1 alt=2 func=SDA1 pull=UPGPIO 45: level=1 alt=2 func=SCL1 pull=UPBANK2 (GPIO 46 to 53):GPIO 46: level=0 func=INPUT pull=UPGPIO 47: level=0 func=INPUT pull=UPGPIO 48: level=0 alt=0 func=SD0_CLK pull=DOWNGPIO 49: level=0 alt=0 func=SD0_CMD pull=DOWNGPIO 50: level=0 alt=0 func=SD0_DAT0 pull=DOWNGPIO 51: level=0 alt=0 func=SD0_DAT1 pull=DOWNGPIO 52: level=0 alt=0 func=SD0_DAT2 pull=DOWNGPIO 53: level=0 alt=0 func=SD0_DAT3 pull=DOWN[ raspi-gpio is deprecated - try `pinctrl` instead ]Here is.
Code:
0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- --10: -- -- -- -- 14 -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --Here is the content that can be seen using vclog -m.
Code:
003109.057: arasan: arasan_emmc_open003109.228: arasan: arasan_emmc_set_clock C0: 0x00800000 C1: 0x000e0047 emmc: 200000000 actual: 390625 div: 0x00000100 target: 400000 min: 400000 max: 400000 delay: 5003214.011: arasan: arasan_emmc_set_clock C0: 0x00800000 C1: 0x000e0047 emmc: 200000000 actual: 390625 div: 0x00000100 target: 400000 min: 400000 max: 400000 delay: 5003214.097: arasan: arasan_emmc_set_clock C0: 0x00800f00 C1: 0x000e0047 emmc: 200000000 actual: 390625 div: 0x00000100 target: 400000 min: 390000 max: 400000 delay: 5003249.381: boot-part: 1 fs-type: 0003249.392: boot-part: 1 fs-type: 3003249.528: arasan: arasan_emmc_set_clock C0: 0x00800f02 C1: 0x000e0407 emmc: 200000000 actual: 25000000 div: 0x00000004 target: 25000000 min: 0 max: 25000000 delay: 1003402.158: brfs: File read: /mfs/sd/config.txt003403.599: brfs: File read: 2955 bytes003426.276: HDMI0:EDID error reading EDID block 0 attempt 0003432.302: HDMI0:EDID error reading EDID block 0 attempt 1003438.324: HDMI0:EDID error reading EDID block 0 attempt 2003444.349: HDMI0:EDID error reading EDID block 0 attempt 3003450.372: HDMI0:EDID error reading EDID block 0 attempt 4003456.397: HDMI0:EDID error reading EDID block 0 attempt 5003462.419: HDMI0:EDID error reading EDID block 0 attempt 6003468.443: HDMI0:EDID error reading EDID block 0 attempt 7003474.466: HDMI0:EDID error reading EDID block 0 attempt 8003480.491: HDMI0:EDID error reading EDID block 0 attempt 9003481.504: HDMI0:EDID giving up on reading EDID block 0003493.558: HDMI1:EDID error reading EDID block 0 attempt 0003494.575: HDMI1:EDID giving up on reading EDID block 0003498.592: brfs: File read: /mfs/sd/config.txt003500.013: gpioman: gpioman_get_pin_num: pin DISPLAY_SDA not defined003500.033: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined003994.968: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined003996.250: *** Restart logging003996.268: brfs: File read: 2955 bytes004002.985: hdmi: HDMI0:EDID error reading EDID block 0 attempt 0004009.011: hdmi: HDMI0:EDID error reading EDID block 0 attempt 1004015.038: hdmi: HDMI0:EDID error reading EDID block 0 attempt 2004021.062: hdmi: HDMI0:EDID error reading EDID block 0 attempt 3004027.089: hdmi: HDMI0:EDID error reading EDID block 0 attempt 4004033.114: hdmi: HDMI0:EDID error reading EDID block 0 attempt 5004039.141: hdmi: HDMI0:EDID error reading EDID block 0 attempt 6004045.165: hdmi: HDMI0:EDID error reading EDID block 0 attempt 7004051.192: hdmi: HDMI0:EDID error reading EDID block 0 attempt 8004057.217: hdmi: HDMI0:EDID error reading EDID block 0 attempt 9004058.235: hdmi: HDMI0:EDID giving up on reading EDID block 0004063.278: hdmi: HDMI0:EDID error reading EDID block 0 attempt 0004069.303: hdmi: HDMI0:EDID error reading EDID block 0 attempt 1004075.330: hdmi: HDMI0:EDID error reading EDID block 0 attempt 2004081.354: hdmi: HDMI0:EDID error reading EDID block 0 attempt 3004087.380: hdmi: HDMI0:EDID error reading EDID block 0 attempt 4004093.405: hdmi: HDMI0:EDID error reading EDID block 0 attempt 5004099.432: hdmi: HDMI0:EDID error reading EDID block 0 attempt 6004105.456: hdmi: HDMI0:EDID error reading EDID block 0 attempt 7004111.483: hdmi: HDMI0:EDID error reading EDID block 0 attempt 8004117.508: hdmi: HDMI0:EDID error reading EDID block 0 attempt 9004118.526: hdmi: HDMI0:EDID giving up on reading EDID block 0004132.775: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0004133.792: hdmi: HDMI1:EDID giving up on reading EDID block 0004138.834: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0004139.853: hdmi: HDMI1:EDID giving up on reading EDID block 0004139.870: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead004139.882: HDMI0: hdmi_pixel_encoding: 300000000004139.896: HDMI1: hdmi_pixel_encoding: 300000000006782.259: brfs: File read: /mfs/sd/initramfs8006782.293: Loaded 'initramfs8' to 0x0 size 0xcadf5f006796.566: initramfs loaded to 0x2e352000 (size 0xcadf5f)006806.352: dtb_file 'bcm2711-rpi-cm4.dtb'006806.388: brfs: File read: 13295455 bytes006818.734: brfs: File read: /mfs/sd/bcm2711-rpi-cm4.dtb006818.769: Loaded 'bcm2711-rpi-cm4.dtb' to 0x100 size 0xdd9c006853.151: brfs: File read: 56732 bytes006869.479: brfs: File read: /mfs/sd/overlays/overlay_map.dtb006927.914: CM4: Enable vl805 support006929.196: brfs: File read: 2347 bytes006950.273: brfs: File read: /mfs/sd/overlays/vl805.dtbo006966.380: Loaded overlay 'vl805'006976.188: brfs: File read: 352 bytes006979.378: brfs: File read: /mfs/sd/config.txt006979.545: dtparam: i2c_arm=on007001.822: dtparam: spi=on007022.446: dtparam: i2c=on007046.246: brfs: File read: 2955 bytes007055.308: brfs: File read: /mfs/sd/overlays/i2c1.dtbo007076.925: Loaded overlay 'i2c1'007076.949: dtparam: pins_44_45=1007111.588: brfs: File read: 1004 bytes007120.952: brfs: File read: /mfs/sd/overlays/i2c3.dtbo007143.376: Loaded overlay 'i2c3'007143.400: dtparam: pins_2_3=1007178.865: brfs: File read: 907 bytes007188.299: brfs: File read: /mfs/sd/overlays/i2c4.dtbo007210.821: Loaded overlay 'i2c4'007210.843: dtparam: pins_6_7=1007247.474: brfs: File read: 907 bytes007264.568: brfs: File read: /mfs/sd/overlays/sc16is752-i2c.dtbo007282.450: Loaded overlay 'sc16is752-i2c'007282.473: dtparam: int_pin=25007283.009: dtparam: addr=0x4c007284.133: dtparam: xtal=14745600007347.452: brfs: File read: 1353 bytes007348.525: brfs: File read: /mfs/sd/overlays/sc16is752-i2c.dtbo007366.603: Loaded overlay 'sc16is752-i2c'007366.626: dtparam: int_pin=22007367.161: dtparam: addr=0x4d007368.284: dtparam: xtal=14745600007431.885: brfs: File read: 1353 bytes007442.808: brfs: File read: /mfs/sd/overlays/i2c-rtc-gpio.dtbo007490.806: Loaded overlay 'i2c-rtc-gpio'007490.830: dtparam: ds1307=true007492.682: dtparam: addr=0x68007512.517: dtparam: i2c_gpio_sda=2007518.839: dtparam: i2c_gpio_scl=3007584.621: brfs: File read: 7706 bytes007590.933: brfs: File read: /mfs/sd/overlays/goodix.dtbo007609.792: Loaded overlay 'goodix'007609.816: dtparam: interrupt=5007611.181: dtparam: reset=16007670.512: brfs: File read: 1437 bytes007682.624: brfs: File read: /mfs/sd/overlays/mcp2515-can0.dtbo007707.686: Loaded overlay 'mcp2515-can0'007707.711: dtparam: oscillator=16000000007708.619: dtparam: interrupt=17007822.714: brfs: File read: 1793 bytes007834.859: brfs: File read: /mfs/sd/overlays/mcp2515-can1.dtbo007860.224: Loaded overlay 'mcp2515-can1'007860.248: dtparam: oscillator=16000000007861.151: dtparam: interrupt=27007975.956: brfs: File read: 1793 bytes007994.683: brfs: File read: /mfs/sd/overlays/spi0-2cs.dtbo008022.468: Loaded overlay 'spi0-2cs'008022.490: dtparam: cs0_pin=13008023.089: dtparam: cs1_pin=8008054.713: brfs: File read: 1045 bytes008073.459: brfs: File read: /mfs/sd/overlays/spi1-1cs.dtbo008098.402: Loaded overlay 'spi1-1cs'008098.424: dtparam: cs0_pin=18008189.794: brfs: File read: 1523 bytes008211.008: brfs: File read: /mfs/sd/overlays/vc4-fkms-v3d-pi4.dtbo008259.426: Loaded overlay 'vc4-fkms-v3d-pi4'008354.419: brfs: File read: 1446 bytes008359.412: brfs: File read: /mfs/sd/overlays/disable-wifi.dtbo008382.912: Loaded overlay 'disable-wifi'008419.459: brfs: File read: 387 bytes008424.709: brfs: File read: /mfs/sd/overlays/disable-bt.dtbo008464.315: Loaded overlay 'disable-bt'008552.627: brfs: File read: 1073 bytes008558.231: brfs: File read: /mfs/sd/overlays/dwc2.dtbo008574.724: Loaded overlay 'dwc2'008574.746: dtparam: dr_mode=host008603.713: brfs: File read: 801 bytes008624.877: brfs: File read: /mfs/sd/overlays/vl805.dtbo008641.951: Loaded overlay 'vl805'008695.739: brfs: File read: 352 bytes008697.979: brfs: File read: /mfs/sd/cmdline.txt008698.066: Read command line from file 'cmdline.txt':008698.095: 'console=tty1 root=PARTUUID=80c739bf-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=KR'009034.482: brfs: File read: 154 bytes011012.207: brfs: File read: /mfs/sd/kernel8.img011012.246: Loaded 'kernel8.img' to 0x200000 size 0x947d31014234.562: Device tree loaded to 0x2e343200 (size 0xed35)014241.230: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined014346.723: sdram: sdram refresh 1562->3124 (2)015721.553: XHCI_RESET: vendor: 1106 device: 3483 pcie-base: 00004000015829.523: MCU FW: 10faf400 3ebd0000015829.576: VLI firmware load complete status 0015838.701: vchiq_core: vchiq_init_state: slot_zero = 0xce480000, is_master = 1015840.753: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead015844.986: TV service:host side not connected, dropping notification 0x00000002, 0x00000002, 0x00000057018470.507: gpioman: gpioman_get_pin_num: pin FLASH_0_ENABLE not defined018470.525: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not defined018470.558: gpioman: gpioman_get_pin_num: pin FLASH_0_ENABLE not defined018470.573: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not definedmany thanks.
Statistics: Posted by KevinSeo — Tue Apr 01, 2025 8:25 am — Replies 1 — Views 33