Waveshare DSI LCD Touchscreen support

I have a waveshare 10.1 inch DSI LCD and I am trying to get it to work with a rasberry pi using balenaos. They seem to require their own drivers but for the life of me, I cannot see how to get these installed. Please see https://www.waveshare.com/wiki/10.1inch_DSI_LCD_(C)

I manage to get the driver software on the boot partition, but obviously it will not run as the system is read only.

root@d972945:/mnt/boot/screen_drivers# bash ./WS_xinchDSI_MAIN.sh 101C I2C1
SCREEN_type=8,I2C_bus=1
The raspberry PI hardware platform is pi4
Driver Start Settings
cp: cannot create regular file '/lib/modules/5.15.92-v8/WS_xinchDSI_Touch.ko': Read-only file system
cp: cannot create regular file '/lib/modules/5.15.92-v8/WS_xinchDSI_Screen.ko': Read-only file system
cp: cannot create regular file '/lib/modules/5.15.92-v8/WS_xinchDSI_Touch_Interface.ko': Read-only file system
cp: cannot create regular file '/lib/modules/5.15.92-v8/WS_xinchDSI_Screen_Interface.ko': Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.dep.9118.973963.1704380267, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.dep.bin.9118.973963.1704380267, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.alias.9118.973963.1704380267, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.alias.bin.9118.973963.1704380267, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.softdep.9118.973963.1704380267, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.symbols.9118.973963.1704380267, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.symbols.bin.9118.973963.1704380267, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.builtin.bin.9118.973963.1704380267, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.builtin.alias.bin.9118.973963.1704380267, 301, 644): Read-only file system
depmod: ERROR: openat(/lib/modules/5.15.92-v8, modules.devname.9118.973963.1704380267, 301, 644): Read-only file system
modprobe: FATAL: Module WS_xinchDSI_Touch not found in directory /lib/modules/5.15.92-v8
modprobe: FATAL: Module WS_xinchDSI_Screen not found in directory /lib/modules/5.15.92-v8
grep: config.txt: No such file or directory
./WS_xinchDSI.sh: line 11: config.txt: Read-only file system
grep: config.txt: No such file or directory
./WS_xinchDSI.sh: line 11: config.txt: Read-only file system
grep: config.txt: No such file or directory
./WS_xinchDSI.sh: line 11: config.txt: Read-only file system
grep: config.txt: No such file or directory
./WS_xinchDSI.sh: line 11: config.txt: Read-only file system
grep: config.txt: No such file or directory
./WS_xinchDSI.sh: line 11: config.txt: Read-only file system
grep: config.txt: No such file or directory
./WS_xinchDSI.sh: line 11: config.txt: Read-only file system

I’ve gone through some of the other articles but not much help. Any direction would be greatly appreciated.

Hello, I just bought similar 5“ display and faces the same issue with driver.

Have you figured it out?

I’m also trying to do the same thing. Anyone have any luck with this?

Hello, there are a few things you can try to get the display working in balenaOS:

  1. Set the device overlays (as shown in step 2 of the Waveshare wiki link in the first post, or use a similar overlay list for other displays) Here is a link for how to set such overlays: Advanced boot settings - Balena Documentation
  2. Since the device overlay for a particular display is probably not included in balenaOS, you may need to compile them to .dtbo format and copy to the Pi. Here is an example of that step:
    Sensors and Data Logging with Embedded Linux - The Ultimate Guide Part 1 - balena Blog - check out the section at the bottom about enabling a device tree overlay at boot on balenaOS.

Also check out this post with a similar question: HyperPixel 2.1 Round Display Support