Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elf game could not run in retropie image load(game_file.elf must be executable) #17

Closed
shaojun opened this issue Jul 13, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@shaojun
Copy link

shaojun commented Jul 13, 2021

Hi,
I created another similar issue by install the retropie on top of latest resbian, repo owner provided some greate suggestions to help for fix, but for simplify my procedure, I now prefer to install the retropie os image, but still failed to run the elf game.

I'm using retropie-buster-4.7.1-rpi4_400.img.gz from official website, and install the McAirpos by command curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install.sh | bash -
I did't do any system update in whole process.

copied into some elf games, run them one by one in retro pie, all show black screen without any error message and then quit.

Then i quit the retro pie to CLI, using ~/McAirpos/McAirpos/launCharc/launCharc ~/RetroPie/roms/makecode/_gamefile.elf_ got the same sympton, all show black screen without any error message.

any idea?

@Vegz78
Copy link
Owner

Vegz78 commented Jul 13, 2021

No, sorry. Not except keep following up on the 2 outstanding points from your previous issue:

  1. Check executable permissions for game files, and
  2. Upload the /tmp/McAirpos.log file right after you experience a game that exits after showing only a black screen.

For the sake of thoroughness, I just downloaded and installed the same RetroPie image, and everything worked out of the box playing your Pizza War game with sound and controller(8bitDo) in 5 quick steps;

  1. Burn and boot RetroPie 4.7.1-rpi4_400 image
  2. Configure controller in RetroPie to be able to move around menus and exit RetroPie to CLI
  3. Install McAirpos with the quick installer script
  4. Activate ssh(raspi-config), then scp games into the /home/pi/RetroPie/roms/makecode folder(checked executable permissions ok)
  5. Relaunch emulationstation and play MCA games.

Update:
There should be no major differences between installing a RetroPie image directly and installing RetroPie on top of RPi OS, except taking care not to launch RetroPie and MCA games from within a running X-Windows session, and maybe some sound/config isssues. The readymade RetroPie image is testetd to work and supported by RetroPie, on-top installations are not.

I run RetroPie installed on top of RPi OS on all my devices, and the only times I have encountered trouble, is with version discrepencies between RPi OS and RetroPie(for instance, updating RetroPie before updating RPi OS to the same version as in the image, where RetroPie is not downgradeable if it breaks. Important to back up before updates and major changes in such a setup).

Update2:
Both sound and image through HDMI 0 on my setup(the micro hdmi output port closest to the power input port). Using the other HDMI 1 port is known to cause various issue, e.g. among many others: https://www.raspberrypi.org/forums/viewtopic.php?t=243899

@shaojun
Copy link
Author

shaojun commented Jul 13, 2021

the problem resolved by set +x permission to elf files, thank u very much for the support!

@Vegz78
Copy link
Owner

Vegz78 commented Jul 13, 2021

Very happy to hear that, @shaojun!

Happy retro game making and playing!

@Vegz78 Vegz78 closed this as completed Jul 13, 2021
@Vegz78 Vegz78 added the help wanted Extra attention is needed label Jul 13, 2021
@Vegz78 Vegz78 changed the title elf game could not run in retropie(via full image load) elf game could not run in retropie image load(game_file.elf must be executable) Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants