RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Retropie 4.x on Odroid C2

    Scheduled Pinned Locked Moved Ideas and Development
    odroidbuild
    92 Posts 15 Posters 49.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.
    • BuZzB
      BuZz administrators @roleo
      last edited by BuZz

      @roleo Thanks.

      Are you using the 16.04 aarch64 Ubuntu ? I was wondering as you are targetting aarch32 right ? Are you using an aarch32 targetted gcc ?

      I was planning on targetting aarch64.

      [edit] actually maybe I just misread - you will likely want to remove the "neon" platform flag though though if you have it as that's all aarch32 neon stuff which I don't think will work on aarch64 (without changes).

      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

      roleoR 1 Reply Last reply Reply Quote 0
      • roleoR
        roleo @BuZz
        last edited by roleo

        @BuZz
        aarch64

        odroid@odroid64:~$ uname -a
        Linux odroid64 3.14.79-89 #1 SMP PREEMPT Thu Oct 13 08:42:27 BRT 2016 aarch64 aarch64 aarch64 GNU/Linux
        odroid@odroid64:~$ gcc -v
        Using built-in specs.
        COLLECT_GCC=gcc
        COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/5/lto-wrapper
        Target: aarch64-linux-gnu
        Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-arm64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-arm64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-arm64 --with-arch-directory=aarch64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
        Thread model: posix
        gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)
        

        --- EDIT ---

        I had forgotten. At a later time, I removed neon flag because the gcc doesn't support it.

        function platform_odroid-c2() {
            __default_cflags="-O3 -march=armv8-a+crc -mtune=cortex-a53 -funsafe-math-opt
            __default_asflags=""
            __default_makeflags="-j2"
        #    __platform_flags="arm armv8 neon mali"
            __platform_flags="arm armv8 mali"
            __qemu_cpu=cortex-a9
            __has_binaries=0
        }
        

        As far as I know neon is mandatory for arm64, so no command line flag is needed.

        1 Reply Last reply Reply Quote 0
        • F
          flag
          last edited by

          I've an odroidc2 board too, if there's an image to test.

          1 Reply Last reply Reply Quote 0
          • roleoR
            roleo
            last edited by

            Hi BuzZ.
            When I scroll up/down the game list (for example in MAME menu) I can see a strange screen flickerig due to the chars printed on the back (on the terminal I think).
            Is this a known problem? Is there a solution?
            This doesn't happen in raspberry image.

            BuZzB 1 Reply Last reply Reply Quote 0
            • BuZzB
              BuZz administrators @roleo
              last edited by BuZz

              @roleo to do with the sdl2 driver I guess. Will look into it.

              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

              1 Reply Last reply Reply Quote 0
              • D
                detron @BuZz
                last edited by

                @BuZz

                that is great! actually, had I known you needed one to try to get RetroPie support, I would have put some money towards getting you one.

                I have an ODroid C2, and would LOVE to see RetroPie using that hardware. thank you Buzz and Hardkernel.

                1 Reply Last reply Reply Quote 0
                • D
                  detron
                  last edited by

                  if we get RetroPie working on the C2, I see myself buying more C2s those things are fast!

                  BuZzB 1 Reply Last reply Reply Quote 0
                  • BuZzB
                    BuZz administrators @detron
                    last edited by

                    @detron it will never be supported to the level of the rpi, but it will be source installable. I have a branch, doing some more fixing and I will do PR for testing..

                    WIP is here - https://github.com/joolswills/RetroPie-Setup/tree/odroid_c2

                    To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      detron @BuZz
                      last edited by

                      @BuZz said in Retropie 4.x on Odroid C2:

                      @detron it will never be supported to the level of the rpi, but it will be source installable. I have a branch, doing some more fixing and I will do PR for testing..

                      WIP is here - https://github.com/joolswills/RetroPie-Setup/tree/odroid_c2

                      I know it will not be as well supported as the Raspberry Pi, and I would not expect anything else, I would be happy with any support. thank you very much for your effort (and others involved)

                      1 Reply Last reply Reply Quote 0
                      • BuZzB
                        BuZz administrators
                        last edited by

                        https://github.com/RetroPie/RetroPie-Setup/pull/1795

                        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                        roleoR 1 Reply Last reply Reply Quote 0
                        • roleoR
                          roleo @BuZz
                          last edited by roleo

                          @BuZz
                          Thank You.
                          I'm downloading it.

                          --- EDIT ---

                          I started with a new installation.
                          retroarch doesn't finish the build process, I have an error patching glsym_es2.h:
                          retroarch patch 03_glsym_types.diff failed to apply

                          emulationstation ok
                          lr-beetle-ngp ok
                          lr-beetle-pce-fast ok
                          lr-beetle-supergrafx ok
                          lr-fbalpha ok
                          lr-fceumm ok
                          lr-gpsp ok
                          lr-snes9x2005 ok
                          lr-snes9x2010 ok

                          --- EDIT ---

                          The source code of retroarch has changed and the patch is no longer needed.

                          1 Reply Last reply Reply Quote 0
                          • roleoR
                            roleo
                            last edited by roleo

                            Update.

                            lr-bluemsx ok
                            lr-mame2003 ok
                            lr-nestopia ok
                            lr-stella ok

                            The autostart script doesn't work.
                            The system waits for the login. After a successfull login es starts automatically.

                            BuZzB 1 Reply Last reply Reply Quote 0
                            • E
                              ElementZero
                              last edited by

                              I almost find it funny that just last night I decided to see if I could get retropie running on my c2 and then I find this after I had already run the retropie script. Looks like your changes were already merged in though (probably why everything build successfully). FYI I had to run "sudo MAKEFLAGS="-j1" ./retropie_setup.sh" to build emulation station though.

                              I'm working with the minimal install though so it just fails with an error about mali not working or something (not in front of it ATM so I can't see post the actual message) . I know it's because I need to install lightdm though so I guess that's next.

                              Thanks for your work on this!

                              E 1 Reply Last reply Reply Quote 0
                              • E
                                ElementZero @ElementZero
                                last edited by

                                @ElementZero said in Retropie 4.x on Odroid C2:

                                I'm working with the minimal install though so it just fails with an error about mali not working or something

                                I meant when I try to start emulationstation (that wasn't clear)

                                1 Reply Last reply Reply Quote 0
                                • B
                                  Bahn Yuki @roleo
                                  last edited by

                                  @roleo said in Retropie 4.x on Odroid C2:

                                  @mphil906
                                  During the build, the script has also built and installed libsdl mali-2.04?
                                  Which libsdl2 packages are installed? You should have:

                                  odroid@odroid64:~$ dpkg --list | grep sdl2
                                  ii  libsdl2-2.0-0:arm64                   2.0.4+4mali                                   arm64        Simple DirectMedia Layer
                                  hi  libsdl2-dev:arm64                     2.0.4+4mali                                   arm64        Simple DirectMedia Layer development files
                                  

                                  from this source:
                                  https://github.com/RetroPie/SDL-mirror/tree/mali-2.0.4
                                  and not the original ones of ubuntu.

                                  Hey roleo I'm having the same issue as the above poster and when I run the DPKG command as you have I get the same results as you do. I'm a Linux Noob so I'm not sure what else to do, but I did click on that link and downloaded a zip file called SDL-mirror-mali-2.0.4

                                  Any help from there would be appreciated

                                  roleoR 1 Reply Last reply Reply Quote 0
                                  • roleoR
                                    roleo @Bahn Yuki
                                    last edited by

                                    @Bahn-Yuki
                                    You do not need to download and build manually libsdl.
                                    The script does it for you when you build retroarch and/or emulationstation.
                                    But if you have the 2.0.4+4mali version like me, it's ok.

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      Bahn Yuki
                                      last edited by

                                      I wonder what the issue is then. Out of curiousity, what resolution are you using? I'm using the 2160p:420 mode. It works fine in MATE, but could that be a problem for Emulationstation or KODI? KODI won't run either.

                                      roleoR 1 Reply Last reply Reply Quote 0
                                      • roleoR
                                        roleo @Bahn Yuki
                                        last edited by

                                        @Bahn-Yuki
                                        What is the exact message error?
                                        I'm using 1080p60 and I didn't try Kodi.

                                        B 1 Reply Last reply Reply Quote 0
                                        • B
                                          Bahn Yuki @roleo
                                          last edited by

                                          @roleo
                                          lvl0: Error creating SDL window!
                                          mali-fbdev: Can't create EGL window surface
                                          lvl0: Renderer failed to initialize!
                                          lvl0: Window failed to initialize!

                                          BuZzB E 2 Replies Last reply Reply Quote 0
                                          • BuZzB
                                            BuZz administrators @Bahn Yuki
                                            last edited by

                                            @Bahn-Yuki if you are having an issue on the odroid-c2 I will need some detailed information. How did you install retropie. Are you running from console (After exiting the desktop etc).

                                            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                            1 Reply Last reply Reply Quote -1
                                            • 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.