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)

awesome, thanks for the test :slight_smile:

so it may come from the tcon value set at 6, patch could be easily done on others OS

let me know if you had any issue on arch, it still the initial image but some things are now backported into dedicated packages, maybe tiny manual fix could be necessary.

2 Likes

How would I change the tcon value, what should it be changed to? At least if I can change it myself I can experiment with a number that works for me (unless that is potentially dangerous?)

1 Like

Theoretically, changing to ā€œunderclockedā€ should set it to stock. Stock is 1008Mhz. It should also set it to kernel 5.3.6 which is also stock.

Otherwise, using the stock os0.5 image, insert it into your computer. A drive called ā€œbootā€ should appear. Copy the entire contents of this directory to your computer.

The DEOT image doesnā€™t mount the same way, due to how the header has been imported/stripped from the stock DEOT image to have the special boot screen.

While booted into the DEOT OS, ssh to the utility directory for the kernel and clockspeed switchers, and find the files that correspond to clockspeed and kernel; which should be 1008 and 5360 or something to that effect.

Rename them to 1008.bak and 5360.bak to have a backup of the files, then rename the files you got from the stock 0.5 card to the original names here. Youā€™ll need to rename sunsomethingetx.dtb to 1008 and boot.img to 5360. Put them in the same directory as the DEOT utilityā€™s files.

Sorry for the broad vagueness of this response - itā€™s just from memory, and a quick post before I go to work! Thereā€™s an easier way to do it, just mounting the boot directory, then su copying the files directly. In fact, thatā€™s the way the switched script works. Open the script to find out.

I can be more specific if you want. But more importantly, I think @r043v might be bang on the money, and have a solution for those with the flickers. If it solves all the problems, then we wonā€™t need to get down to why some boards are affected, and some arenā€™t. I still put it down to user build factors, but thereā€™s no way of really knowing without holding a unit in my hands.

@Shwifty - youā€™ll need to know how to compile/cross compile your own kernel. Itā€™s not that daunting a task, but does require a lot of fiddly files, and command line know how. If you go to @Joao_Manoelā€™s GitHub page for his kernel, you can see his excellent tutorial there.

On a side note, @r043v and @Joao_Manoel have images that are slim line, efficient and built for the user to build on top of, with what they want without any bloat.
The DEOT is the opposite of this, bloated like a beluga whale, but with all of the ā€œhard to installā€ modification and UI fanciness that Iā€™ve seen people have trouble with. Ie, for the beginner. I recommend that people check out the other two custom images, and consider them the way forward.

3 Likes

Yeah, would love to know how to change this, and what to change it to to see if it helps

Probably gonna have to hard pass on that. I donā€™t know any command line, but if there was a tutorial for teh exact kernel/settings I would need to compile then Iā€™d give it a shot

1 Like

compile kernel in arch is pretty easy, arch package build system is near entirely automatized

also convert arch kernel format (zImage) to other OS kernel (uImage) is pretty easy, a single command :

mkimage -A arm -O linux -T kernel -C none -a 0x40008000 -e 0x40008000 -n ā€œLinux kernelā€ -d zImage uImage

i do it for you and up result here > http://gs.dread.fr/gs.kernel.5.6.3.tar.xz
just extract uImage into first partition, and others files into second partition of deot OS, or all into unique partition of debian image

. . .

to recompile kernel from arch here is the step onto your gs by ssh :

  • create a dedicated folder

mkdir ~/dev && cd ~/dev

  • catch all gameshell arch specifics pkgbuild collection

git clone --depth 1 GitHub - r043v/GameShell-PKGBUILDs: pingu repository - PKGBUILDs collection dedicated to GameShell Arch Linux ARM port - http://gs.dread.fr/arch/armv7h/ && cd GameShell-PKGBUILDs/linux-gameshell/

  • call makepkg

makepkg -i

-i mean direct install after compile & package generation, download/patch/compile time will be ~45mn
plug your gs to ac and set it to maximum performance will be better

in arch all package generation steps are resumed into a single file, PKGBUILD
current one could be found here > GameShell-PKGBUILDs/linux-gameshell/PKGBUILD at master Ā· r043v/GameShell-PKGBUILDs Ā· GitHub

in line 122 of the file you could view how tcon divider value is patched to 6 :

ie, just calling sed command to substitute original line with value 6 into kernel source file ā€œ/drivers/gpu/drm/sun4i/sun4i_tcon.cā€

if you want try other values, you will found a ā€œsrcā€ folder into ā€œ~/dev/GameShell-PKGBUILDs/linux-gameshellā€ where you could found kernel source who where downloaded & patched by the makepkg command,
you can directly change kernel source (using vim or whatever) to change the tcon value, after that, to recompile only necessary and not spend 45mn more call makepkg again with -e (no extract source & run prepare function whoā€™s patch source) and -f (force package regeneration)
so :

cd ~/dev/GameShell-PKGBUILDs/linux-gameshell
makepkg -e -f -i

it must recompile changed files and generate the package, and finally install it, after that just reboot to test

when all is ok, you can call the mkimage command in front of this post to create uImage file from the zImage one if need

here is makepkg command manual > makepkg(8)

3 Likes

I get very weird and persistent screen flickering with this image. The whole screen. I have a first batch gameshell. Iā€™m going to try to revert to a the official to check if thatā€™s the issue, but connections seem solid.

For now, go into the utilities folder, then the clockspeed folder. Choose the under clicked option. Underclocked is actually what the stock settings are. This is the stock clockspeed and kernel of the stock image.

The problem is being worked on, when Iā€™ve got some free time. Itā€™s super busy this time!! Meantime, try the suggestions mentioned above.

Itā€™s super hard for me to know whatā€™s going to work, since three of my CPI boards simply donā€™t exhibit the problem.

Iā€™ll collaborate with someone down the track, or get my hands on a unit that has the flickers.

Meantime, scroll up in this thread. Thereā€™s a lot of discussion regarding the flickering.

4 Likes

I added nohup to the load.sh to avoid stalling if you use longer mp3 boot sounds.
I donā€™t really know where to contribute to this build so I made a pull request there.
@javelinface let me know whatā€™s best!

2 Likes

i reflashed to the newest version online 903 version, and my gameshell has been stuck at the welcome engineer screen for about 15 min with the folowing message
32.496382] dc1sw: disablingg
running a 3.1 board with R16 CPU

Also noticed the music player hangs the system and you have to force a reboot

1 Like

Can you try clearing your play lists? See if that works. I managed to force a freeze by deliberately breaking the play lists, adding a redundant reference to a file that doesnā€™t exist, but that was outside of normal use. Your play list could be out of sync.

Perhaps when copying your music over, a stray corrupt track also got copied over. It MPD could be trying to play something that refuses to do so; thus hanging your system.

Try copying batches of music files at a time until you find the culprit, and if you do, please post what it was so we can know for the future.

I recall in the past, you had troubles with file transfers. Perhaps the files didnā€™t get transferred completely, and you have partial files that lack any headers. That would cause the MPD to hang. How are you transferring files these days?

Check your file names for potential ā€œillegalā€ characters. Eg, if youā€™re playing lots of Phantasy Star MP3ā€™s, some of them may contain Katakana/Kanji characters that may not be readable. Also check for extraneously long file/directory names. Try not having subdirectories, and just have the music in the ~/music/ directory.

If itā€™s still freezing, paste the last few entries of ~/.mpd/mpd.log

As for your other problem re: hanging, depending on how youā€™re transferring files etc, you may possibly be forgetting to unmount your card if youā€™re using a Linux system fo transfer files, thus causing file system corruption. If you can SSH info your gameshell when it hangs, try cat /tmp/x.log and paste your findings.

Another thing that causes hangs upon booting is having the SD card filled to the brim. How much free space do you have? Did you and jam every last bit of space with music files?

Iā€™m personally not experiencing any of the problems mentioned, but I also donā€™t have the exact same music files as you. Nor do I know how you use your card re: file transfers, the contents of your card, and potentially anything else you may have done.

Try the above suggestions, and if none of them solve things, try to provide a bit more information.

Just wanted to chime in. Iā€™m having the screen flickering issue with a DEOT install, no settings change. If I change the GPU driver to software rendering, it works fine. If I change the kernel to 5700, it works fine. Changing the clockspeed did nothing.

I am using a kickstarter unit (512mb ram).

1 Like

Yup! Clock speed shouldnā€™t do anything. Itā€™s just the kernel. That said, possibly only some kernels will use proper governors. Thereā€™s too many combinations to list every iteration.

Thanks for mentioning that 5700 is stable and flicked free @Qiangong2. I have no idea what to ever recommend since all three of mine (including a first gen Kickstarter model) work without the flickers.

Javelinface, Iā€™ve really loved all of your work on updating the Gameshell over the last couple of years, especially now that Iā€™ve figured out how to write my own config file for mupen64plusā€¦ ive got all the AKI N64 wrestling games running perfectly. Its amazing. I just have one issue with your latest release though. MAME doesnā€™t seem to work, and there is a lot of slowdown in FBA for Konami beatem ups like X-Men and Turtles in Time. Ive tried updating the cores in RetroArch and using different coresā€¦ but no good.

Its especially weird since I have no issues with the same games on my other SD card with older firmware (0.3 i think)
Any advice would be greatly appreciated.

Aha!! Try using a different kernel combination. Itā€™s super strange.

I remember at one stage having an absolute nightmare of a time with getting any arcade things running without ridiculous stuttering audio.

Another thing. Iā€™m not sure if itā€™s itā€™s some kind of initialisation problems of some parameters in the config, but certain changes to the config made it slow down. Changing it back didnā€™t fix anything. It was at that stage that I made a config from scratch.

In the utilities, thereā€™s a Retroarch recovery shortcut. All that does is restore the Retroarch config with a clean backed up copy. Just in case something was changed.

Which game was if exactly? Do you know if it was specifically from the romset thatā€™s compatible with FBA? Possibly try mame2003 too. Iā€™ll give it a try myself, if I have if that is! Itā€™s funny.

I was actually playing turtles in time just the other day; one of my childhood favourites. It has no problem. But another side scroller; super ninja Batman - or something like that; the audio just runs crappy, but the gameplay is fine.
I used to have problems with other games like Gunbird, but they now work. Try them out too, just to see if youā€™re experiencing my initial problems.

1 Like

Perfect! Thanks for the advice, I was able to play around with the Kernel and Overclocking settings in the DEOT Utilities folder, I also downloaded brand new romsets for my favorite games. (The zips Iā€™d been using have been passed around from device to device for years) Then I used Retroarch to scan the directory and build a playlist. That allowed me to read the details of each rom better to choose the one I wanted to play. Itā€™s running great now!

1 Like

@javelinface, first off, thanks for the amazing image. Been using it for a while, and have very much enjoyed it. Your default configs are always a pleasure to use.

Whatā€™s your kernel compilation setup look like? Iā€™d like to build my own (mainly to add zram support) but I always end up with no wifi/sound. Are there drivers I have to get somewhere?

1 Like

Ah! Re: wifi, I knows exactly what youā€™re talking about! Have a look at this:

As for the config Iā€™m using when compiling, itā€™s dependent on the kernel. Usually Iā€™m using the config of the original author, which I have defined in the first post of this thread. The only modification Iā€™ve done is an adjustment to the boot splash image, and in some cases adding a few additional governors. Iā€™ve left a few of them at completely stock, for people with flickering/compatibility.

I just use the gameshell itself to compile the kernel, just so I donā€™t need to worry about any cross compiler compatibility problems. Iā€™m fairly sure I still have the necessary tools still installed on the custom image.

I have no idea re: sound not working. Iā€™ll dig around my configs etc and post up what Iā€™m using when I have a bit of time.

1 Like

hello @javelinface

I have my gameshell since I backed the campaign during Kickstarter and always found the stock OS very clunky and not user friendly.
Recently, I thought to use the console again since my new found love in PICO8.

Browsing the forums I came across your threads and your custom images.
I know youā€™ve been doing this a long time (I went through all 500 replies on this thread), but I have only now come across your work.
Iā€™d really like to thank you very, very much for all the work youā€™ve been doing and developing the CFW long after the original gameshell company devs have moved onto their new console; it really is a Godsend!

PICO-8 has recently upgraded their version- pico-8_0.2.2_raspi.zip
I changed the config to this:

{
ā€œGameDirā€:ā€œ/home/cpi/games/PICO-8/ā€,
ā€œInstallDirā€:ā€œpico-8ā€,
ā€œNotFoundMsgā€:[ā€œPlease purchase the PICO-8 \n|None|varela16ā€,
ā€œand copy it to the "~/games/PICO-8"|None|varela16ā€],
ā€œMD5ā€:{ā€œpico-8_0.2.2_raspi.zipā€:ā€œe2dba152bf507d337459e9316061411dā€,
ā€œpico-8_0.1.11g_raspi.zipā€:ā€œa3f2995cf117499f880bd964d6a0e1f2ā€,
ā€œpico-8_0.1.11g_amd64.zipā€:ā€œ6726141c784afd4a41be6b7414c1b932ā€,
ā€œpico-8_0.1.12_raspi.zipā€:ā€œ08eda95570e63089a2b9f5531503431eā€,
ā€œpico-8_0.1.12c_raspi.zipā€:ā€œ1a62b0d7d4e4be65f89f23ec9757cb66ā€,
ā€œpico-8_0.1.12c2_raspi.zipā€:ā€œ7a878795472fa39304e9a10128c1f712ā€,
ā€œpico-8_0.2.0e_raspi.zipā€:ā€œ085edfecd111c2b195b878b2197afe7aā€,
ā€œpico-8_0.2.0i_raspi.zipā€:ā€œbe0c708d707fa967c77455512bd456c7ā€,
ā€œpico-8_0.2.1b_raspi.zipā€:ā€œd72968c56b4de8bc3dda84a6d5b6270eā€,
ā€œpico-8.zipā€:ā€œwhatever it takesā€},
ā€œPost-Upā€:ā€œbash Post-Up.shā€
}

Submitted a pull request to the main repo here:

Do you maintain a copy/fork, too? Will submit a PR there, as well then.
I think I found your repo, submitted PR:

I do have a quesion:

  • do the pico8 games (carts?) get downloaded on gameshell? I want to play them offline. How do I download all the games from SPLORE?
1 Like

So a weird thing happened, flashed 200903 on my 64GB micro, everything went perfectly fine, but during boot and after that point the screen shakes non-stop like it is glitching. At first, I thought it was part of it initializing as the booting process looked cool so it gave it an interesting effect, but then it kept doing it no matter what I did on the main menu. Any ideas why? Already flashed it a second time and the same thing happened.

Update: I have tried both etcher and rufus to flash the drive and it still has the screen shake, I put back in my 16gb with the normal OS and everything is running smoothly no screen shake so I know it is not the screen. The drive was working fins before this and had no issues nor did i get any error when flashing on either softwareā€¦still stuckā€¦

Update2: Even tried an older build, same problem, going to try a different download source over google and see if that fixes it, if not then ill try a new driveā€¦

Update3: While waiting for the new download source to complete as it is taking longer than expected, I tried to install the most up to date google drive file to a different micro usb drive and sure enough same shaky screen resultā€¦the other dl of file is almost done, will try that before heading to bed and if that does not work I am lostā€¦

Update4: Alright I also downloaded the mega file and still get the shaky screenā€¦I have troubleshooted as much as I possibly can, hopefully I am missing something simple but any and all help is appreciatedā€¦please and thank youā€¦

1 Like

Hello @7thking and welcome to the forums! Iā€™m surprised you hadnā€™t come here, being an early adopter!

This really means a lot, saying that my image has been useful! Thank you so much!! Seriously!
Since they have moved on, Iā€™m thinking that this will probably be the most complete version of the official image.

I have considered making another image, based on @Joao_Manoelā€™s custom image from the ground up. I just encountered some compatibility problems, being based on a newer version of Debian; at least using the official gameshell launcher installation.

I have also been meaning to make an OS using a fork of Retropie, or at the very least, a custom Emulationstation front end. Iā€™ve got it already running on my day to day machine. Itā€™s just a matter of making it the primary ā€œlauncherā€ on boot.

Thanks for the heads up re: Pico-8. Sounds like you found the repository for the image. Mind you; I commented out being able to update the launcher from the menu as a safeguard against people accidentally updating and hosing their system. You can re-enable if, simply by removing the commented line in the settings page python file. Or just manually perform a git push yourself. I figured if you knew how to do this, you werenā€™t at risk of ruining your OS.

Usually if people have issues, you can either just rename the file to a previous version, or even just
ā€œpico-8.zipā€. If the former, just ignore the hash check. Calling it the latter shouldnā€™t need a MD5 check.

I ended up just releasing entire images every time I did any major updates, opting not to really maintain the fork and/or changes. Ultimately, I made this as an out of box experience, with as little things that could go wrong as possible. I considered just running a diff on my image, but never actually got around to it.

From trying to help people on the forums, I discovered that following instructions can be difficult for some, and at the end of the day, I would have had to have done more trouble shooting in undoing problems people have encountered trying to update something that they themselves have modified beyond recognition.

As for the location of Pico-8 carts, check here:

~/.lexaloffle/pico-8/bbs/

and

~/.lexaloffle/pico-8/carts/

Theyā€™re in ā€œ.p8.pngā€ formats (confusing since itā€™s a similar extension to the image files), and may use a BBS binary as their respective names.

Hello to you too @ajbrensike! Welcome to the forums.
Ahhh the notorious ā€œflickeringā€ problem. If you search up ā€œflickeringā€ on the forums, youā€™ll find a handful of entries. As for downloading different versions, check the MD5 hash for integrity. Iā€™m pretty sure I provided one in the first post? Although I may have forgotten! Either way, they ā€œshouldā€ all be the same.

Itā€™s a weird thing that seems to be a hit and miss scenario where some get the flickers, and some donā€™t. Iā€™ve got 3 CPI boards, (a R16, a R16-J and a first gen kickstarter 512MB board) and two sets of game shells. I cannot replicate the flickering on either of them! Iā€™ve used a considerable number of configuration permutations between the gear; mainly switching out the mainboard and display. I havenā€™t done every cord, speaker, arduino, keys and case since they shouldnā€™t be contributing to the problem.

I have actually experienced some crazy glitching ONCE on my main machine. It was while doing a apt-get full upgrade (or maybe I was updating retroarch, or compiling a kernel? I forget) while overclocking the unit to 1800MHz, using a performance governor, and running -j4 four jobs at once. It over heated like mad, and the screen went crazy! Strangely, the flickering lessened when I applied ā€œpressureā€ to the machine. Hopefully itā€™s not an overheating issue, causing the ball grid array to dissociate on on of the pcb. Or haha hopefully Iā€™m not immune to the issue BECAUSE I overheated my unit, forcing a reflow of the solder. Haha. Doubtful.

I initially thought that perhaps it could have been cable integrity, assembly cleanliness, or batches of LCD. But then I remembered that the one thing that I have replaced on all of my units is the battery. It could possibly be related to battery health! On a simply scale. as internal resistance increases, the output current drops. Of course with modern batteries this shouldnā€™t be a thing, but Iā€™m willing to guess anything at this stage.

The kernel Iā€™m using by default is @Joao_Manoelā€™s work, with many benefits, including a functional sleep mode, over clocked (or rather not underclocked) cpu, and better governors for power efficiency. This is what causes some people some problems. Of course, the ones with problems are the ones who speak up and check the forums. There may be more people without the problem than have reported here.

First and simplest solution is to turn the Gameshell on, then simply restart it from the launcher. This solves it for some people. Mind you, it does mean you need to double boot it every time, but if youā€™re using the suspend function, technically you could just let it sleep, and charge it when it gets low; never turning it off.

The second most effective solution is to change the kernel. I have provided scripts to do this in the utility folder. Check the first post of this thread for info on what each option does. You will lose some features, but you will remedy the flickering problem. This is also a way to get around any other ā€œglitchesā€ that may happen. There is a stock kernel included, if you want to see how a ā€œvanillaā€ os 0.5 would run.

If you can get your hands on a BL-5C battery, try and replace your existing one. Iā€™m curious to see whether or not this is actually the cause of all the problems.

Hopefully that solved your problems with the shaky glitching screen!