Page 1 of 1

Read current core name from HPS side?

Posted: Wed Sep 09, 2020 8:32 pm
by eflanery
Is it possible to somehow get the name of the running core via Linux on the HPS side?

I'm contemplating an arcade cabinet with button illumination and marquee artwork controlled by an additional device some kind (Pi-whatever probably), but it would need something to key off of.

It appears possible to externally cause a core to load via /dev/MiSTer_cmd, but I'd rather stick to the menu system for user interaction; and keep the cabinet management system non-interactive.

Re: Read current core name from HPS side?

Posted: Thu Sep 10, 2020 6:20 pm
by eflanery
FWIW, I found a way:

enable "bootcore=lastcore" in MiSTer.ini, so that the core name shows up in /media/fat/config/lastcore.dat, and periodically check that file.

Then, to work around the actual bootcore=lastcore functionality, on startup execute: "echo load_core /media/fat/menu.rbf > /dev/MiSTer_cmd"

Re: Read current core name from HPS side?

Posted: Sat Sep 12, 2020 3:42 am
by bbond007
eflanery wrote: Wed Sep 09, 2020 8:32 pm Is it possible to somehow get the name of the running core via Linux on the HPS side?
eflanery wrote: Thu Sep 10, 2020 6:20 pm FWIW, I found a way:

enable "bootcore=lastcore" in MiSTer.ini, so that the core name shows up in /media/fat/config/lastcore.dat, and periodically check that file.

Then, to work around the actual bootcore=lastcore functionality, on startup execute: "echo load_core /media/fat/menu.rbf > /dev/MiSTer_cmd"
check file "/tmp/CORENAME" is simpler and less writes to the the SD card for a feature you are disabling....

Re: Read current core name from HPS side?

Posted: Mon Sep 14, 2020 4:04 pm
by eflanery
Perfect, that's even better.

I didn't even think to look in arguably the most obvious place. :-/

Thank you. :-)