cutiepi-io / cutiepi-drivers

Drivers for the CutiePi tablet
https://cutiepi.io
31 stars 13 forks source link

Can't get DSI display driver working on RetroPie image #4

Open geerlingguy opened 2 years ago

geerlingguy commented 2 years ago

I'm running the latest RetroPie image, and can successfully boot it, and when I do, the external HDMI display allows me to see everything, and I can SSH into the CutiePi.

But the internal display doesn't work by default. So I followed the steps in the README:

git clone https://github.com/cutiepi-io/cutiepi-drivers.git && cd cutiepi-drivers

# Build panel driver.
sudo apt install dkms raspberrypi-kernel-headers 
sudo tar xvf Display/panel-nwe080-1.0.tgz -C /usr/src/

sudo dkms add -m panel-nwe080 -v 1.0
sudo dkms build -m panel-nwe080 -v 1.0
sudo dkms install -m panel-nwe080 -v 1.0

# Compile DTS.
cd Display
dtc -I dts -O dtb -o panel-nwe080.dtbo panel-nwe080.dts

# Copy into overlays.
sudo cp panel-nwe080.dts /boot/overlays

# Edit config.txt.
sudo nano /boot/config.txt

And inside /boot/config.txt at the bottom I have added:

# MIPI DSI display
dtoverlay=panel-nwe080
gpio=12=op,dh

# Enable USB
dtoverlay=dwc2,dr_mode=host

I rebooted (and also power cycled) and the internal display still wouldn't come on. I didn't see anything in dmesg that was helpful in debugging:

dmesg | grep nwe080

And if I reboot with the normal CutiePi image, the display works fine, so I know it's not a hardware issue.

AlexanderKiyingi commented 2 years ago

Hi @geerlingguy , I am a newbie to linux kernel building, etc but I am facing the same issue like you did and I tried following your steps. I am running cutiepi os on a CM3. I downloaded and unzipped the old drivers, installed dmks and kernel-headers. But I kept getting an error from dkms of a missing dkms.conf file. Can you please help me out.