Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Recalbox 8.0: (ERROR) : [SDL2] Fatal error initializing SDL2

    Recalbox General
    recalbox 8.0 [sdl2] fatal initializing sdl2
    4
    26
    3784
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fh1105
      fh1105 @fh1105 last edited by

      I changed that to

      # case=PiBoy:1
      

      but to no success, unfortunately.

      /recalbox/var/log/messages
      

      shows:

      Dec 10 21:35:44 RECALBOX user.info kernel: [  156.254230] XPi Gamecon CRC Error: 0000 15143
      Dec 10 21:35:44 RECALBOX user.info kernel: [  156.264208] XPi Gamecon CRC Error: 0000 15144
      Dec 10 21:35:45 RECALBOX user.info kernel: [  156.274228] XPi Gamecon CRC Error: 0000 15145
      Dec 10 21:35:45 RECALBOX user.info kernel: [  156.284203] XPi Gamecon CRC Error: 0000 15146
      Dec 10 21:35:45 RECALBOX user.info kernel: [  156.294195] XPi Gamecon CRC Error: 0000 15147
      Dec 10 21:35:45 RECALBOX user.info kernel: [  156.304211] XPi Gamecon CRC Error: 0000 15148
      Dec 10 21:35:45 RECALBOX user.info kernel: [  156.314212] XPi Gamecon CRC Error: 0000 15149
      Dec 10 21:35:45 RECALBOX user.info kernel: [  156.324202] XPi Gamecon CRC Error: 0000 15150
      Dec 10 21:35:45 RECALBOX user.info kernel: [  156.334194] XPi Gamecon CRC Error: 0000 15151
      

      (The buttons of my arcade cabinet are connected to the RPI's GPIO pins:

      https://raw.githubusercontent.com/DigitalLumberjack/mk_arcade_joystick_rpi/master/wiki/images/mk_joystick_arcade_GPIOsb+.png

      )

      Thanks for your help!

      1 Reply Last reply Reply Quote 0
      • fh1105
        fh1105 @davidb2111 last edited by

        @davidb2111 Oh wow, I'll try that!

        1 Reply Last reply Reply Quote 0
        • fh1105
          fh1105 @davidb2111 last edited by

          I think it didn't enter recovery, even though I did the power-off-power-on-15-second loop at least 4 times ... can I trigger it manually? Also, it doesn't seem to come back to the network (it's LAN connected, but I can't reach the 'recalbox' host from the network anymore).

          The screen shows 'Experimental Pi' twice while booting, then remains black.

          I do have a keyboard connected, which I could use to press something to interrupt the failing boot sequence?

          Thanks! @davidb2111

          davidb2111 3 Replies Last reply Reply Quote 0
          • davidb2111
            davidb2111 Staff @fh1105 last edited by

            @fh1105 said in Recalbox 8.0: (ERROR) : [SDL2] Fatal error initializing SDL2:

            I think it didn't enter recovery, even though I did the power-off-power-on-15-second loop at least 4 times ... can I trigger it manually? Also, it doesn't seem to come back to the network (it's LAN connected, but I can't reach the 'recalbox' host from the network anymore).

            The screen shows 'Experimental Pi' twice while booting, then remains black.

            I do have a keyboard connected, which I could use to press something to interrupt the failing boot sequence?

            Thanks! @davidb2111

            Ok, so you have things connected to GPIO. That may be the reason.
            Could you connect through ssh and execute:

            /usr/bin/piboy-tester
            

            David.

            fh1105 1 Reply Last reply Reply Quote 0
            • davidb2111
              davidb2111 Staff @fh1105 last edited by

              @fh1105
              And to force boot without detecting case, you may:

              1. set case=none:1 in /boot/recalbox-boot.conf
              2. execute rm -rf /overlay/upper/*

              and reboot

              fh1105 1 Reply Last reply Reply Quote 0
              • davidb2111
                davidb2111 Staff @fh1105 last edited by

                @fh1105
                And finally, I've modified the code that detects the piboy. Could you please test it on your setup ?

                Simply put piboy-tester in /tmp of your recalbox and run /tmp/piboy-tester and give me the output.

                Thanks

                fh1105 1 Reply Last reply Reply Quote 0
                • fh1105
                  fh1105 @davidb2111 last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • fh1105
                    fh1105 @davidb2111 last edited by

                    @davidb2111 said in Recalbox 8.0: (ERROR) : [SDL2] Fatal error initializing SDL2:

                    /tmp/piboy-tester

                    Yes, this is it:

                    try 0, CRC error
                    try 1, CRC error
                    try 2, CRC error
                    try 3, CRC error
                    try 4, CRC error
                    try 5, CRC error
                    try 6, CRC error
                    try 7, CRC error
                    try 8, CRC error
                    try 9, CRC error
                    piboy not found
                    
                    1 Reply Last reply Reply Quote 0
                    • fh1105
                      fh1105 @davidb2111 last edited by

                      @davidb2111 said in Recalbox 8.0: (ERROR) : [SDL2] Fatal error initializing SDL2:

                      @fh1105
                      And to force boot without detecting case, you may:

                      1. set case=none:1 in /boot/recalbox-boot.conf
                      2. execute rm -rf /overlay/upper/*

                      and reboot

                      I tried this, but still the screen remains black.

                      fh1105 davidb2111 2 Replies Last reply Reply Quote 0
                      • fh1105
                        fh1105 @fh1105 last edited by

                        Before the modified tester, the output was:

                        CRC error
                        198
                        
                        davidb2111 1 Reply Last reply Reply Quote 0
                        • davidb2111
                          davidb2111 Staff @fh1105 last edited by

                          Hi @fh1105

                          Great news, that helps me a lot. I will include a fixed piboy-tester that will not wrongly detect a PiBoy when something is connected to GPIO.

                          At the moment, you can cleanup overlay and set case=none:1 to disable autodection.
                          The fix will be included in the next release a few days (weeks)

                          David

                          1 Reply Last reply Reply Quote 0
                          • davidb2111
                            davidb2111 Staff @fh1105 last edited by

                            @fh1105

                            Hum, what type of screen do you have ?
                            Could you please execute cat /sys/class/drm/card*/modes and put result here ?

                            fh1105 2 Replies Last reply Reply Quote 0
                            • fh1105
                              fh1105 @davidb2111 last edited by

                              @davidb2111 said in Recalbox 8.0: (ERROR) : [SDL2] Fatal error initializing SDL2:

                              cat /sys/class/drm/card*/modes

                              It's a HDMI-connected HD screen – normal 'office type'.

                              cat /sys/class/drm/card*/modes
                              

                              returns nothing at all.

                              ba74fe43-45e1-4356-9900-eef841019ed4-image.png

                              fh1105 1 Reply Last reply Reply Quote 0
                              • fh1105
                                fh1105 @fh1105 last edited by

                                But here's me exploring that directory:

                                # pwd
                                /sys/class/drm
                                # ls
                                card0           card0-HDMI-A-1  renderD128      version
                                # cd card0-HDMI-A-1
                                # ls
                                device     edid       modes      status     uevent
                                dpms       enabled    power      subsystem
                                # cd modes
                                -bash: cd: modes: Not a directory
                                # ls
                                device     edid       modes      status     uevent
                                dpms       enabled    power      subsystem
                                # cat modes
                                # cd ..
                                # ls
                                card0           card0-HDMI-A-1  renderD128      version
                                # cd card0
                                # ls
                                card0-HDMI-A-1  device          subsystem
                                dev             power           uevent
                                #
                                
                                
                                (modes in card0-HDMI1-A-1 is empty)
                                
                                davidb2111 1 Reply Last reply Reply Quote 0
                                • fh1105
                                  fh1105 @davidb2111 last edited by

                                  By the way: amazing support, @davidb2111! Thank you very much!!

                                  davidb2111 1 Reply Last reply Reply Quote 1
                                  • davidb2111
                                    davidb2111 Staff @fh1105 last edited by

                                    Hi @fh1105

                                    Seems edid does not report modes. Could you force the mode within /boot/recalbox-user-config.txt.

                                    hdmi_group=1
                                    hdmi_mode=X
                                    

                                    where X should be:

                                    • 16 for 1080p
                                    • 4 for 720p
                                    • 1 for VGA mode (640x480, as a fallback)

                                    Once started, if still no display, try adding this setting:

                                    hdmi_ignore_edid=0xa5000080
                                    

                                    Hope this help.

                                    1 Reply Last reply Reply Quote 0
                                    • davidb2111
                                      davidb2111 Staff @fh1105 last edited by davidb2111

                                      @fh1105
                                      Also, do you know the resolution of your TV?

                                      1 Reply Last reply Reply Quote 0
                                      • fh1105
                                        fh1105 last edited by

                                        Hello!

                                        Just a brief update, as I solved it by simply removing everything from my GPIO ports, and wiring my arcade buttons to a

                                        Zero Delay Arcade USB Encoder

                                        – which then connects to the RPi's USB ports.

                                        All good now! Thank you, and keep it up!
                                        Fabian

                                        1 Reply Last reply Reply Quote 1
                                        • Locked by  admin admin 
                                        • First post
                                          Last post

                                        Want to support us ?

                                        69
                                        Online

                                        99.6k
                                        Users

                                        28.1k
                                        Topics

                                        187.1k
                                        Posts

                                        Copyright © 2021 recalbox.com