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

    cubieboard5 (aka as cubietruck plus or allwinner h8)

    Scheduled Pinned Locked Moved Help and Support
    installationcubieboard5cubietruck plusallwinner h8
    37 Posts 4 Posters 11.1k 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.
    • Jaapdaniels1984J
      Jaapdaniels1984 @vbs
      last edited by

      @vbs then my __platform is " " that would make it pretty impossible to add to the list.

      vbsV 1 Reply Last reply Reply Quote 0
      • vbsV
        vbs @Jaapdaniels1984
        last edited by

        @Jaapdaniels1984
        This is probably the point where you have to dig into the code and make it work for your platform :) What is the output of uname --machine?

        Jaapdaniels1984J 3 Replies Last reply Reply Quote 0
        • BuZzB
          BuZz administrators
          last edited by

          To adapt RetroPie to work on a new platform requires a good understanding of the retropie-setup code and knowledge of the underlying hardware. EG When I posted it to the ODroid-C1 it required

          • a custom sdl2 library with mali driver.
          • lots of logic changes to modules - eg building retroarch with the mali backend.

          Unless the platform has the same hardware as existing supported targets, it is not going to be trivial and I don't think you will be able to do this via a Q/A thread here. EG if you hardware has hardware opengl support under X, you could use the X11 target which would work - however I think your hardware has gles only, which means you will at least need changes to the retroarch module for it and additional platform code in system.sh

          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

          Jaapdaniels1984J 1 Reply Last reply Reply Quote 0
          • Jaapdaniels1984J
            Jaapdaniels1984 @vbs
            last edited by

            @vbs since the installation is still running... i'll report another day. but it's at least something that is working now, and thanks to you guys i at least got to understand a bit of it all.

            1 Reply Last reply Reply Quote 0
            • Jaapdaniels1984J
              Jaapdaniels1984 @BuZz
              last edited by Jaapdaniels1984

              @BuZz https://imgtec.com/blog/the-powervr-sgx544mp-a-modern-gpu-for-todays-leading-platforms/ might have the info you were thinking about... seems pretty complete to me. SDL2 should already work, at least i thought i used it in my video-player and in scummvm before...
              but i see a really big log turning up, so i imagine there must be something not going as planned... but hey i didn't expect it to turn out this simple... i already made a backup of the official cubietech sourcecode for all my drivers... i don't think i'l make a fully working system anytime soon since i'm working alone and i am a OOB at this... but then again... when i was a kid coding was something i really enjoyed... so i wanna learn something.. i know it'll be a long run to walk alone... but hey i'm learning on my way a lot already... thanks for getting me as far as i am now!

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

                If the underlying os has software support and drivers are available/working. PowerVR support for Linux has been horrible in the past due to buggy closed source drivers 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

                Jaapdaniels1984J 1 Reply Last reply Reply Quote 0
                • Jaapdaniels1984J
                  Jaapdaniels1984 @BuZz
                  last edited by Jaapdaniels1984

                  @BuZz my system is opensource, and so are my drivers... there are 3 versions for desktop enviroment, HDMI linaro (this is the one i use...only HDMI output works here not the PD), PD linaro (only the PD output works here not the HDMI) and there is an android version. the android version works at a lower resolution, and my keyboard didn't work with it. the linux i use is the first they made, seems incomplete but working... all is opensource witch i am allowed to share when there's a need... but i'm still a noob so it takes a lot of time to get through all the codes to undersand the part of the puzzle i need to understand...

                  1 Reply Last reply Reply Quote 0
                  • Jaapdaniels1984J
                    Jaapdaniels1984 @vbs
                    last edited by

                    @vbs uname --machine says armv7l.

                    1 Reply Last reply Reply Quote 0
                    • Jaapdaniels1984J
                      Jaapdaniels1984 @vbs
                      last edited by Jaapdaniels1984

                      @vbs @BuZz @backstander not tested yet, but i think my latest should work allright... as i see it everything should just function since these cards are allready used in other products... where can i post the modded system.sh?

                      mod 1 is:

                      case "$__os_id" in
                      Raspbian|Debian)
                      if compareVersions "$__os_release" lt 8; then
                      __has_binaries=0
                      fi

                              # set a platform flag for osmc
                              if grep -q "ID=osmc" /etc/os-release; then
                                  __platform_flags+=" osmc"
                              fi
                      
                              ;;
                          Ubuntu|LinuxMint|Linaro)
                              __has_binaries=0
                              ;;
                          *)
                              fatalError "Unsupported OS\n\n$(lsb_release -idrc)"
                              ;;
                      esac
                      

                      and mod 2 is:
                      function get_platform() {
                      local architecture=$(uname --machine)
                      if [[ -z "$__platform" ]]; then
                      case $(sed -n '/^Hardware/s/^.: (.)/\1/p' < /proc/cpuinfo) in
                      armv7l)
                      __platform="CB5"
                      BCM2708)
                      _platform="rpi1"
                      ;;
                      mod3 is:
                      platform
                      ${__platform}
                      }

                      function platform_CB5() {
                      __default_cflags="-O2 -march=armv7-a -mtune=cortex-a7 -mcpu=cortex-a7 -mfpu=vfpv4-d32 -mfloat-abi=hard"
                      __default_asflags=""
                      __default_makeflags="-j$(nproc)"
                      __platform_flags="x11"
                      __qemu_cpu=cortex-a15
                      __has_binaries=0
                      }
                      function platform_rpi1() {

                      okay figured most of it out now, setup runs with an eroor before the gui starts now, but setup seems to work like a charm no errors yet and it's already installing for quite some minutes.

                      vbsV 1 Reply Last reply Reply Quote 0
                      • vbsV
                        vbs @Jaapdaniels1984
                        last edited by

                        @Jaapdaniels1984 said in cubieboard5 (aka as cubietruck plus or allwinner h8):

                        @vbs @BuZz @backstander not tested yet, but i think my latest should work allright... as i see it everything should just function since these cards are allready used in other products... where can i post the modded system.sh?

                        The usual way is to clone the RetroPie repository on github and create a branch with your changes in your clone. Then open a PR (pull request) so your changes can be merged upstream by the maintainers.

                        Jaapdaniels1984J 1 Reply Last reply Reply Quote 0
                        • Jaapdaniels1984J
                          Jaapdaniels1984 @vbs
                          last edited by Jaapdaniels1984

                          @vbs i'm not sure if i used the best available gcc settings for my board, since it's also capable for neon, 64 bits, and i'm not sure it needs qemu architecture. could maybe better, but at least this should get it to run... just wished i could get it to understand arm7 is a 64 bits processor, but i already know this would be impossible since python only accepts arm8 and up to be 64 bits designed. i'm not sure about the x11 by the way but it seems to run fine. (it's still installing)...

                          the -mfpu=vfpv4-d32 seems to be legit but causing problems since -d32 add isn't implemented yet in the sub projects, darn... i can however make it -mfpu=neon-vfpv4 if too much failed during install... just too bad, cause this should get it partly running at full 64 bits...

                          vbsV 1 Reply Last reply Reply Quote 0
                          • vbsV
                            vbs @Jaapdaniels1984
                            last edited by vbs

                            @Jaapdaniels1984
                            I don't know much about the ARM details which gcc settings are best but I think if you just use the same settings they used to compile your Ubuntu then it cannot be that wrong?

                            Also if your distro is not 64bit then you won't be able to run 64bit anyway.

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

                              Building is one thing. Running is another. Your changes are the same as building with the generic x11 platform. Don't build everything. First start with emulation station.

                              Can you run that? If not, it's going to require more than just changing some platform args 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

                              Jaapdaniels1984J 1 Reply Last reply Reply Quote 0
                              • Jaapdaniels1984J
                                Jaapdaniels1984 @BuZz
                                last edited by Jaapdaniels1984

                                @BuZz don't worry, i'm not posting it untill i tested it to completely work with at least a snes game. there are still some bugs... i think those are all related to libSDL 1.2, i se 2 gui failed to build, and 2x libsdl not installed correct... but the list isn't a lot shorter than it was so i'm most definetly on the right track... since this is my first tyme using python, i'm happy to undrstand it this far... i understand there's much to do from that point on, but that's okay, as long as you guys don't mind it'll take such a time, i don't mind... i thought getting it to install would take me months, tweaking is no problem... since i'm noob and do this in my spare time, it'll take time...
                                it's installing now... don't know why retropie-setup can't get the SDL sinse just apt-get did the trick. had no time to test the result yet though...

                                1 Reply Last reply Reply Quote 0
                                • Jaapdaniels1984J
                                  Jaapdaniels1984
                                  last edited by

                                  okay, now it fails 128 times not installing much rpi-lib or something is not installed...strange since the installatin earlier gave only 4 faillures... only gui was corrupted it said and libsdl-dev1.2.. now i added the sdl-lib abd it fails a lot more... it has a lot of not could not find file in github... but that can't really be... is there a list of dependecies, or is there a way i could make the program show this? i mean what libaries does it need?

                                  Jaapdaniels1984J 1 Reply Last reply Reply Quote 0
                                  • Jaapdaniels1984J
                                    Jaapdaniels1984 @Jaapdaniels1984
                                    last edited by

                                    @Jaapdaniels1984 nevermind, found out i missed some symbols wichs when retrned the system is again not detected... darn i don't understand why it fails to see my machine's name...

                                    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.