Custom D.E.O.T. V2.0+/Clockwork OS v0.5 image - With customised DEOT interface, Kernel 5.7, Optional 1400MHz OC, Debian 10 Buster, Retroarch 1.9.0, Mupen64+ plus more! (Current build: 200903)

NOTE: THIS IS FOR TESTING! THIS IS FOR ADDRESSING FLICKERING ISSUES!

Okay, try this at your own risk. Backup before trying this. Or wait for someone else to do it and report back.
As mentioned above, I added the sed -i 's/tcon->dclk_min_div = tcon->quirks->dclk_min_div/tcon->dclk_min_div = 6/' ./drivers/gpu/drm/sun4i/sun4i_tcon.c patch, and applied it to the 5.7.0 kernel; making new dtb files while I was at it.

I’ve tested it on my own Gameshell, and well. It boots, and works. Ie, it shouldn’t prevent your system from working.

(this problem was fixed - but I'll keep it here, in case anyone still has the problem)

HOWEVER I’ve tested Mupen and Retroarch Snes9x and they don’t appear to be running. Other standalone do work. I’ll try rebuilding mupen and Retroarch to see if it addresses things. But if you do have the flickering, please try out the standalone emulators that work, and see if it flickers.

The TEST script changes both the kernel AND the generated dtb files. It seems to be the newer dtb files that causes things to stop working. For now, you can restore functionality using one of the “clock speed settings”, such as “governed” or “overclocked”. Both of them will make Mupen and Retroarch run again. Whether or not the flickering gets resolved, I have no idea since I don’t have this problem. (See below for a small hot fix to the “overclocked” clock speed script.)

Mainly try this out to see if it addresses the flickering issues. If you accidentally try this, and some things stop working, you should be able to return to normal using one of the existing kernel changing scripts.

It makes an entry called “Test” in the utilities>kernel section of the launcher. (Oh, I made the translation file change “utilities” to “tools” to be in line with the stock DEOT OS, so look in “Tools>Kernel”)

If you want to go back to the other combinations, they should all still be there.

To install the update, SSH into your gameshell, then just copy paste everything into your session command line. If you do the last line as well, it should run the script, which includes restarting your gameshell with the new kernel applied.

IMPORTANT!! ENSURE THAT THE GAMESHELL IS CONNECTED TO THE INTERNET SO IT CAN DOWNLOAD ALL OF THE NEEDED FILES! IT WILL NOT BOOT UP IF YOU FAIL TO DO THIS! (Thanks @DJC4 for pointing this out!)

wget -O /home/cpi/apps/Menu/60_Utils/08_Kernel/4_Test.sh https://www.dropbox.com/s/vios5l1yl2kks4b/4_Test.sh?dl=1
chmod +x /home/cpi/apps/Menu/60_Utils/08_Kernel/4_Test.sh 

wget -O /home/cpi/apps/Menu/60_Utils/08_Kernel/5.7.0b https://www.dropbox.com/s/3sdh7a7bcefmkdc/uImage?dl=1
chmod +x /home/cpi/apps/Menu/60_Utils/08_Kernel/5.7.0b

wget -O /home/cpi/apps/Menu/60_Utils/08_Kernel/bootb https://www.dropbox.com/s/eerxrdbsdve22dr/boot.scr?dl=1
chmod +x /home/cpi/apps/Menu/60_Utils/08_Kernel/bootb 

wget -O /home/cpi/apps/Menu/60_Utils/07_Clockspeed/1200b https://www.dropbox.com/s/i26h9wlerwhkec8/sun8i-r16-clockworkpi-cpi3.dtb?dl=1
chmod +x /home/cpi/apps/Menu/60_Utils/07_Clockspeed/1200b

wget -O /home/cpi/apps/Menu/60_Utils/07_Clockspeed/1200HDMIb https://www.dropbox.com/s/4cqaixwujvgtcox/sun8i-r16-clockworkpi-cpi3-hdmi.dtb?dl=1
chmod +x /home/cpi/apps/Menu/60_Utils/07_Clockspeed/1200HDMIb 

cd /home/cpi/apps/Menu/60_Utils/08_Kernel/
./4_Test.sh
(this probably isn't a problem - and something I only noticed on my "day to day" machine. It wasn't present in my "deployment" machine, so probably isn't in the uploaded images. Again, i'll leave it here, just incase.)

While I’m here, I just noticed a typo in the “Overclocked” script!
It contains:

#!/bin/bash

sudo mount /dev/mmcblk0p1 /boot
sudo cp /home/cpi/apps/Menu/60_Utils/07_Clockspeed/Governed /boot/sun8i-r16-clockworkpi-cpi3.dtb

and should be

#!/bin/bash

sudo mount /dev/mmcblk0p1 /boot
sudo cp /home/cpi/apps/Menu/60_Utils/07_Clockspeed/1400 /boot/sun8i-r16-clockworkpi-cpi3.dtb

Here’s the fix:

wget -O /home/cpi/apps/Menu/60_Utils/07_Clockspeed/03_Overclocked.sh
https://www.dropbox.com/s/ako44y2o4805ddq/03_Overclocked.sh?dl=1
chmod +x /home/cpi/apps/Menu/60_Utils/07_Clockspeed/03_Overclocked.sh
2 Likes