ReTerminal-DM cant install drivers on Raspbian

Tried following the OS Flashing guide for the Reterminal DM, can install Raspbian, but the install of the drivers for the system always fails. Tried multiple versions of the os and 32 and 64 bit, nothing works.

run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.10.103+ /boot/kernel.img
run-parts: executing /etc/kernel/postinst.d/dkms 5.10.103+ /boot/kernel.img
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.10.103+ /boot/kernel.img
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.10.103-v7+ /boot/kernel7.img
run-parts: executing /etc/kernel/postinst.d/dkms 5.10.103-v7+ /boot/kernel7.img
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.10.103-v7+ /boot/kernel7.img
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.10.103-v7l+ /boot/kernel7l.img
run-parts: executing /etc/kernel/postinst.d/dkms 5.10.103-v7l+ /boot/kernel7l.img
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.10.103-v7l+ /boot/kernel7l.img
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.10.103-v8+ /boot/kernel8.img
run-parts: executing /etc/kernel/postinst.d/dkms 5.10.103-v8+ /boot/kernel8.img
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.10.103-v8+ /boot/kernel8.img
Setting up raspberrypi-kernel-headers (1:1.20230509~buster-1) ...
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.103+
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.103-v7+
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.103-v7l+
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.103-v8+
W: --force-yes is deprecated, use one of the options starting with --allow instead.
KBUILD: /lib/modules/5.10.103-v7l+/build

Creating symlink /var/lib/dkms/ltr30x/0.1/source ->
                 /usr/src/ltr30x-0.1

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.10.103-v7l+ all KVERSION=5.10.103-v7l+....
cleaning build area...

DKMS: build completed.

als_ltr30x.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.103-v7l+/updates/

depmod...

DKMS: install completed.

Creating symlink /var/lib/dkms/ili9881d/0.1/source ->
                 /usr/src/ili9881d-0.1

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.10.103-v7l+ all KVERSION=5.10.103-v7l+....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.103-v7l+ (armv7l)
Consult /var/lib/dkms/ili9881d/0.1/build/make.log for more information.
Can't compile with this kernel, aborting
Please try to compile with the option --compat-kernel
DKMS make.log for ili9881d-0.1 for kernel 5.10.103-v7l+ (armv7l)
Mon  4 Sep 11:39:18 BST 2023
make -C /lib/modules/5.10.103-v7l+/build M=/var/lib/dkms/ili9881d/0.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.103-v7l+'
  CC [M]  /var/lib/dkms/ili9881d/0.1/build/ili9881d.o
/var/lib/dkms/ili9881d/0.1/build/ili9881d.c: In function ‘ili9881d_dsi_probe’:
/var/lib/dkms/ili9881d/0.1/build/ili9881d.c:501:12: error: ‘struct drm_panel’ has no member named ‘prepare_upstream_first’
  ctx->panel.prepare_upstream_first = true;
            ^
make[2]: *** [scripts/Makefile.build:280: /var/lib/dkms/ili9881d/0.1/build/ili9881d.o] Error 1
make[1]: *** [Makefile:1825: /var/lib/dkms/ili9881d/0.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.103-v7l+'
make: *** [Makefile:11: all] Error 2

Hello, thanks for your feedback, we suppose maybe there are some file is downloaded with error, so we recommend you to remove the old file and reinstall it

Hi, I have redownloaded and flashed the OS now 6 times with different images as per the wiki instructions and still get the incompatible kernel error.

Hi,Do you switch to disable eMMC boot mode next to type -C?

I switch the Disable eMMC Boot Mode off while flashing the image as per the instructions, then back on before installing the dkms modules.

It seem that you kernel version to too old for compiling the ili9881 driver for reTerminal DM.
Can you have a try with the latest 32bit official raspberrypi OS.
I just test it with raspbian os 2023-05-03, and it works fine.

1 Like

I will try that, I was using the Raspberry pi imager and the images it has by default and that is the kernel that was installed.

Maybe you should update your raspberrypi image first.

One more thing.Please don’t forget to add arm_64bit=0 to /boot/config.txt when you use the latest 32bit raspbian OS.

This bit was very clear in the documentation, and I even verified that LONGBIT was the correct value afterwards. I will test this and update with how it goes.