Please do not post a support request without first reading and following the advice in

ELF header invalid when loading emulationstation

  • Hi everyone :) I am in need of some assistance. I have a retropie with emulationstation on a 128GB SDXC memory card and it works fine on my own retropie.

    My brother wants a retropie and bought everything he needed for me to build it for him. I used win32diskimager to make a backup of my 128GB microsd card image, and used the same program to write the image to his 128GB microSD card. I set up the system and powered it on and it starts loading, but then after the Retropie icon appears, it loads for a while then goes to the black screen with an error at the top: emulationstation: error loading shared libraries: /usr/lib/arm-linux-gnueabihf/ invalid ELF header. emulationstation will not start and i'm left at the command line.

    Does it have something to do with the image being used on my pi, and the image being configured for only my pi and that is why the image doesnt work on a separate pi?

    I don't know what is wrong and how to fix it. I am a complete newbie at all this and would really appreciate some advice on what i can do to fix it.

    I've filled out the template but I am not sure of some of the answers.
    Pi Model or other hardware: (B, B+, 2 B, 3, X86 PC etc..): 3B Plus
    Power Supply used: (If using a Pi) Pi-Branded power brick (5v/2.5 amp)
    RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest): I don't know how to check?
    Built From: (Pre made SD Image on RetroPie website, Berryboot, or on top of existing OS etc.. - please provide the filename of any image used): I am not sure, honestly. I am sorry. I have no expertise with custom images.. the one that is on the memory card file says BOOT
    USB Devices connected: xb one controller (wired) and a USB wireless keyboard dongle
    Controller used: xb one wired
    Error messages received: see above
    Log found in /dev/shm/runcommand.log (if relevant): Is it relevant?
    Guide used: (Mention if you followed a guide): ETA Prime on Youtube
    File: (File with issue - with FULL path) see above
    Emulator: (Name of emulator - if applicable): Emulationstation
    Attachment of config files: (PLEASE USE PASTEBIN.COM FOR LARGE LOGS)
    How to replicate the problem: I just turn it on and it loads to a point and then it stops on the command line with the above error.

    Any help that you can provide would be great. I'm not too Linux savvy but i am a quick learner. Thank you all for your time and assistance!!! :):)

  • Global Moderator

    Looks like a corrupted file, either the image was not written correctly (less likely) or the SD card capacity is a bit less than yours.
    Try writing it again - with verify - or use the 2nd backup method to transfer the data - as explained in the docs.

  • @mitu thank you, Mitu! I bought another memory card and it works!! You're the best :)

Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.