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.
Read current core name from HPS side?
Re: Read current core name from HPS side?
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"
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"
-
- Top Contributor
- Posts: 531
- Joined: Tue May 26, 2020 5:06 am
- Has thanked: 87 times
- Been thanked: 211 times
Re: Read current core name from HPS side?
check file "/tmp/CORENAME" is simpler and less writes to the the SD card for a feature you are disabling....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"
Re: Read current core name from HPS side?
Perfect, that's even better.
I didn't even think to look in arguably the most obvious place. :-/
Thank you.
I didn't even think to look in arguably the most obvious place. :-/
Thank you.