Adding reTerminal mipi touch display drivers to Kernel or Gadget snap

Hi there, just getting started with snapcraft and ubuntu core. I’m trying to create a custom ubuntu core image to run on a raspberry pi CM4 based reTerminal device by Seeed Studio. https://wiki.seeedstudio.com/reTerminal/

Seeed Studio publishes its drivers and dtoverlays here: GitHub - Seeed-Studio/seeed-linux-dtoverlays: Device Tree Overlays for Seeed boards

My thought is that I need to build a kernel snap to include these drivers in order to make the display on the device operational in ubuntu core. I’ve tried using the raspberry pi ubuntu core image and that results in a device accessible by ssh and with hdmi outputs that work but the mipi display is inactive.

I’ve read the tutorials but I cannot find a good example of a kernel snap where additional extra drivers are added into the kernel and then compiled. I’m hoping that someone can provide some guidance on how to accomplish this. Any assistance or examples would be greatly appreciated.

@ogra wondering if you have any guidance on this topic? I see you are quite helpful around the forums :smiley: