Recalbox Forum

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

    Importing Odroid XU4 WiringPi and executing sh script at startup

    Recalbox General
    importing odroid xu4 wiringpi executing
    3
    6
    2909
    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.
    • stigzler
      stigzler last edited by

      First off - awesomeness - loving this so far - stable, rounded and great.

      I was using another distro previous to trying this - but think I'm sticking with this.

      However, I'm a bit stuck on one bit. Disclaimer: I'm a linux newb, so still struggling with the translations.

      Hardware: Odroid XU4
      rcb Vers: 5.1.0

      So previously, i had a simple bash script that ran on startup:

      #!/bin/bash
      echo Ataroid Startup Script
      echo ------- ------- ------
      echo
      echo Sending button pulses to USB3 Hub - Pin 8
      gpio mode 8 out
      gpio write 8 0
      gpio write 8 1
      gpio write 8 0
      echo Done.
      echo Reading inputs:
      gpio mode 12 in
      echo Left Difficulty - && gpio read 12
      

      In order to get this up and running, I first had to import the odroid wiringpi library via:

      git clone https://github.com/hardkernel/wiringPi
      cd wiringPi
      ./build
      

      now, I've manged to find how to get the script running at startup via this guide here:

      https://forum.recalbox.com/topic/4370/help-with-starting-an-automatic-script-on-start-up

      However, of course the script doesn't run because the xu4 wpi library isn't installed? All the gpio commands aren't recognised

      Additionally, I don't seem to be able to install the library as the git cmd isn't recognised in putty (as aren't lots of other shell commands?)

      It's a bit of a deal breaker as this script powers on my external storage.

      Any advice for a newb?

      voljega 1 Reply Last reply Reply Quote 0
      • voljega
        voljega Banned @stigzler last edited by

        @stigzler you're using Batocera not Recalbox you should look for help on its forum

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

          Oh sorry.. I just followed a link from a setup vid for recalbox. I just assumed it had changed its name. Is batocera a fork?

          Substring 1 Reply Last reply Reply Quote 0
          • Substring
            Substring @stigzler last edited by

            @stigzler Batocera is a fork. So for batocera related questions, please ask its dev

            concerning wiringPi on the real genuine Recalbox, i haven't included it yet for C2 and XU4, but that's something i'm really looking forward to

            So I'll do my best to add it in the 4.1 release. But we have very much work these days on the 4.1, and there is an issue concerning wiringPi

            Former dev - Please reply with @substring so that i am notified when you answer me
            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

            stigzler 1 Reply Last reply Reply Quote 0
            • stigzler
              stigzler @Substring last edited by

              @Substring thanks for the reply! Don't really understand the difference between Batocera and RecalBox, but good to know things are being covered in different bases.

              Substring 1 Reply Last reply Reply Quote 0
              • Substring
                Substring @stigzler last edited by

                @stigzler let's say some people decided to go their own way instead of staying with the mainline team ...

                Former dev - Please reply with @substring so that i am notified when you answer me
                Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

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

                Want to support us ?

                84
                Online

                98.6k
                Users

                28.1k
                Topics

                187.0k
                Posts

                Copyright © 2021 recalbox.com