RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Odroid XU4 SDL Problem Emulationstation

    Scheduled Pinned Locked Moved Help and Support
    odroidxu4retropieubuntu
    76 Posts 4 Posters 7.3k Views
    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.
    • mituM
      mitu Global Moderator @aaronouthier
      last edited by

      @aaronouthier It doesn't seem that your system/board is detected correctly. It should detect odroid-xu4 as a platform. Perhaps a more recent kernel has removed the hardware info from /proc/cpuinfo. Can you post the output of the following commands:

      cat /proc/cpuinfo
      cat /proc/device-tree/compatible
      
      1 Reply Last reply Reply Quote 0
      • A
        aaronouthier
        last edited by

        root@odroid:~# cat /proc/cpuinfo
        processor	: 0
        model name	: ARMv7 Processor rev 3 (v7l)
        BogoMIPS	: 84.00
        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
        CPU implementer	: 0x41
        CPU architecture: 7
        CPU variant	: 0x0
        CPU part	: 0xc07
        CPU revision	: 3
        
        processor	: 1
        model name	: ARMv7 Processor rev 3 (v7l)
        BogoMIPS	: 84.00
        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
        CPU implementer	: 0x41
        CPU architecture: 7
        CPU variant	: 0x0
        CPU part	: 0xc07
        CPU revision	: 3
        
        processor	: 2
        model name	: ARMv7 Processor rev 3 (v7l)
        BogoMIPS	: 84.00
        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
        CPU implementer	: 0x41
        CPU architecture: 7
        CPU variant	: 0x0
        CPU part	: 0xc07
        CPU revision	: 3
        
        processor	: 3
        model name	: ARMv7 Processor rev 3 (v7l)
        BogoMIPS	: 84.00
        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
        CPU implementer	: 0x41
        CPU architecture: 7
        CPU variant	: 0x0
        CPU part	: 0xc07
        CPU revision	: 3
        
        processor	: 4
        model name	: ARMv7 Processor rev 3 (v7l)
        BogoMIPS	: 120.00
        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
        CPU implementer	: 0x41
        CPU architecture: 7
        CPU variant	: 0x2
        CPU part	: 0xc0f
        CPU revision	: 3
        
        processor	: 5
        model name	: ARMv7 Processor rev 3 (v7l)
        BogoMIPS	: 120.00
        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
        CPU implementer	: 0x41
        CPU architecture: 7
        CPU variant	: 0x2
        CPU part	: 0xc0f
        CPU revision	: 3
        
        processor	: 6
        model name	: ARMv7 Processor rev 3 (v7l)
        BogoMIPS	: 120.00
        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
        CPU implementer	: 0x41
        CPU architecture: 7
        CPU variant	: 0x2
        CPU part	: 0xc0f
        CPU revision	: 3
        
        processor	: 7
        model name	: ARMv7 Processor rev 3 (v7l)
        BogoMIPS	: 120.00
        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
        CPU implementer	: 0x41
        CPU architecture: 7
        CPU variant	: 0x2
        CPU part	: 0xc0f
        CPU revision	: 3
        
        Hardware	: Samsung Exynos (Flattened Device Tree)
        Revision	: 0000
        Serial		: 0000000000000000
        
        root@odroid:~# cat /proc/device-tree/compatible
        hardkernel,odroid-xu4samsung,exynos5800samsung,exynos5
        
        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @aaronouthier
          last edited by

          @aaronouthier Thanks for the information. The RetroPie detection clearly fails to recognize your device as a odroid-xu, we'll need to amend the detection routine to include the info exposed in /proc/device-tree/compatible also.

          You can bypass the detection by running

          cd $HOME/RetroPie-Setup
          sudo __platform=odroid-xu ./retropie_setup.sh
          

          and perform the re-installation of core packages/depenent packages (including SDL2) and the emulators/core you wish installed. This is a workaround until the detection is fixed in RetroPie-Setup.

          A 1 Reply Last reply Reply Quote 0
          • A
            aaronouthier @mitu
            last edited by

            @mitu I will try in the morning. It's now 30 minutes until Midnight. Turning in for the night.

            1 Reply Last reply Reply Quote 0
            • A
              aaronouthier
              last edited by

              While attempting to (re)install core packages, I get:
              Could not install package(s): Python3-urwid, Python3-uinput, Python3-sdl2. I have run into this before, and was able to install via apt install the listed urwid and sdl2 packages, but have never been able to find the uinput package in the default repos.

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @aaronouthier
                last edited by

                @aaronouthier That's strange, since this is a standard package in both Debian and Ubuntu. What repositories do you have enabled ?

                A 1 Reply Last reply Reply Quote 0
                • A
                  aaronouthier @mitu
                  last edited by

                  @mitu Same as was enabled by default when installed fresh, unless something in Retroarch setup modified it. I haven't changed anything in sources.list . I can't check right this second, as it is still compiling Main packages. I suppose I could use another ssh session though.

                  I'll be back shortly.

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @aaronouthier
                    last edited by

                    @aaronouthier said in Odroid XU4 SDL Problem Emulationstation:

                    I'll be back shortly.

                    There's no rush. When you get to the system, just look up and check what repositories are enabled/used by your system.

                    1 Reply Last reply Reply Quote 0
                    • A
                      aaronouthier
                      last edited by

                      root@odroid:~# cat /etc/apt/sources.list
                      deb http://ports.ubuntu.com/ubuntu-ports/ noble main universe restricted
                      deb-src http://ports.ubuntu.com/ubuntu-ports/ noble main universe restricted
                      
                      deb http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe restricted
                      deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe restricted
                      
                      deb http://ports.ubuntu.com/ubuntu-ports/ noble-backports main restricted
                      deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-backports main restricted
                      
                      deb http://ports.ubuntu.com/ubuntu-ports/ noble-security main restricted
                      deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-security main restricted
                      deb http://ports.ubuntu.com/ubuntu-ports/ noble-security universe
                      deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-security universe
                      deb http://ports.ubuntu.com/ubuntu-ports/ noble-security multiverse
                      deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-security multiverse
                      
                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @aaronouthier
                        last edited by

                        @aaronouthier I see - this is 32bit system ? I think the default Ubuntu repos - and the ports system - don't have these packages, although they're available for 64bit (arm64). Isn't the XU4 a 64bit CPU - shouldn't you be using a 64bit system ?

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          aaronouthier @mitu
                          last edited by

                          @mitu No, the xu3 and xu4 are 32 bit CPUs, to the best of my knowledge.

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            aaronouthier @aaronouthier
                            last edited by aaronouthier

                            @mitu Even if, for some reason, the CPU is 64-bit capable, there is no 64-bit OS available for it.

                            mituM 1 Reply Last reply Reply Quote 0
                            • mituM
                              mitu Global Moderator @aaronouthier
                              last edited by mitu

                              @aaronouthier That explains the lack of Ubuntu packages in recent versions. Maybe use the armhf packages from the previous LTS (22.04) - https://packages.ubuntu.com/jammy/python3-uinput ?

                              A 2 Replies Last reply Reply Quote 0
                              • A
                                aaronouthier @mitu
                                last edited by

                                @mitu Would it be worth the trouble, you suppose, to rework the install from scratch with 22.04 LTS as the OS? If the packages are present, it may be worth a shot. I will try your suggestion 1st however, just for fun and learning.

                                FWIW, I just checked to verify: XU4 uses an Samsung Exynos 5422 CPU, which is definitely 32-bit hardware.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  aaronouthier
                                  last edited by

                                  Just installed python3-urwid. The SDL2 packages were installed from source. Do I still need python3-sdl2, or is that taken care of by the main sdl2 source package? I don't want to mess-up/overwrite anything that was installed manually.

                                  mituM 1 Reply Last reply Reply Quote 0
                                  • A
                                    aaronouthier
                                    last edited by

                                    FWIW, speaking of sources, I was able to download the sources with 'apt source python3-uinput' from current repos. Not too sure how I can incorporate that into the existing build.

                                    I've compiled stuff before, but never via apt-source.

                                    1 Reply Last reply Reply Quote 0
                                    • mituM
                                      mitu Global Moderator @aaronouthier
                                      last edited by

                                      @aaronouthier said in Odroid XU4 SDL Problem Emulationstation:

                                      Do I still need python3-sdl2, ...

                                      Yes, only the SDL library is compiled into a package, the rest are expected to be provided by the distribution's repostories.

                                      A 1 Reply Last reply Reply Quote 0
                                      • A
                                        aaronouthier @mitu
                                        last edited by

                                        @mitu I was pretty sure this was the case, but wanted to be certain.

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          aaronouthier
                                          last edited by

                                          Dang it!

                                          running build
                                          running build_py
                                          running build_ext
                                          building '_libsuinput' extension
                                          arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/usr/include/python3.12 -c libsuinput/src/suinput.c -o build/temp.linux-armv7l-cpython-312/libsuinput/src/suinput.o
                                          libsuinput/src/suinput.c: In function ‘suinput_emit’:
                                          libsuinput/src/suinput.c:48:28: error: ‘struct input_event’ has no member named ‘time’
                                             48 |         gettimeofday(&event.time, 0);
                                                |                            ^
                                          error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
                                          

                                          Trying to build the source package.

                                          Was logged-in as root. I don't think that would make a difference though.

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            aaronouthier @mitu
                                            last edited by

                                            @mitu Not able to install the 22.04 version either. Depends on Python3.10 or below, but Python3.12 is installed.

                                            At this point, I think I'm going to wipe the SD card and try again with 22.04 .

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            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.