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 10.9k 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 found the code, is there a way for me to print/show what platform it detects? since this could be helpfull for progress later, and maybe for each progress step i could offer the modded sourcecode to someone here to look if it's the right way to go for public.

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

        @Jaapdaniels1984
        There might also be better way but you could add debug outputs to the script that write into a text file.

        Also for really working with the code and make it available you should fork Retropie-Setup on github to your own account. Then you can make your changes in your own branch and make it available to others.

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

          @vbs i'll be on vacancy next week so i won't be able to check for some days, will let you know if i make some progress.

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

            @vbs somehow i can't get the debug to report what's __platform... it gaves me just __platform instead of what is found in the label... might be doing it wrong... used echo __platform just before error discription...
            like i said it's first time i try something like python/c i only know how html (only the basics), (visual) basic, assembly and turbo pascal works.

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

              @vbs it seems function get __platform() { seems to be incompitable with my OS:
              Distributor ID: Linaro
              Description: Linaro 14.0.4
              Release: 14.04
              Codename: trusty

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

                @Jaapdaniels1984
                Yes I understand. Making RetroPie work on your platform is probably quite a bunch of work. Will require changes at many places and permanently checking what does work and what does not and then trying to fix it. If you are going to go on that journey then feel free to ask questions if you get stuck. But be prepared to invest a good heap of time into digging and understanding how RetroPie works.

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

                  @vbs i can get it to get pass the platform, but then it says my os is incompitable...
                  my os is a modded lubuntu, just minor modded, though kernel is ehh... lets say not really how i expected it to be...
                  i'm willing to go through a painstaking pile of work... buti can't get it to show wht's in __platform... i expect the function tries to read a file that simply is never made in my linux. that's how much i understood of python 2.7 explenation... fixating it to be rpi3-64 gives me the eroor of incapable os... wich seems to be an error i'll have to face a lot... it seems they didn't just mod the OS to work with other hardware, they removed a lot of things too... the software centre was missing... and i'm missing a lot of libaries that i thought were standard with lubuntu (they said it was ubuntu but it's more like lubuntu).

                  1 Reply Last reply Reply Quote 0
                  • B
                    backstander
                    last edited by backstander

                    @Jaapdaniels1984
                    Try something like sudo __platform=whatever ./retropie-setup.sh for now but later you'll need to figure out how to add your platform to the code once you get a lot of it working :)

                    I learned this trick when trying to get the Raspberry Pi version of RetroPie to install in QEMU but EmulationStation didn't work because QEMU doesn't emulator the graphics card.

                    Jaapdaniels1984J 2 Replies Last reply Reply Quote 0
                    • Jaapdaniels1984J
                      Jaapdaniels1984 @backstander
                      last edited by Jaapdaniels1984

                      @backstander thanks, now i got the installer to work... adding Linaro to the same line as ubuntu was in system.sh and using your manual command... using rpi3-64 instead of whatever.

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

                        @backstander i forgot... the script for reading my pltform is just not working for my OS... it'll respond with emptyness... i think that my OS missing some txt and cfg files, had this problem before with setting up audio... there was just no default alsa mixer set, nor was the file there with the info... if someone could tell me where lubuntu/ubuntu stores this information i can make a patch for the cubieboard5... like i said for some reason it is as if the software for this board is stopped developping when it worked for the basics...it's missing quite some stuff i thought to be standard with ubuntu... then again, i knew that it would need some polishing...

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

                          @Jaapdaniels1984
                          I mentioned it already but the code you are looking for is in the function get_platform in RetroPie-Setup/scriptmodules/system.sh. It invokes uname --machine and parses its output to fill __platform.

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