Recalbox Forum

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

    New FBCP instructions

    Recalbox General
    fbcp instructions
    3
    6
    2464
    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.
    • bigbear
      bigbear last edited by

      Hi all

      I tried running through the instructions today to get an adafruit 2.8" TFT going.

      I found a lot of detailed instructions but found that some steps i.e. etc/init.d wasn't needed as there was already a script there.

      The FBCP executable was already in /use/bin/

      I ended up making the suggested changes to the boot and recalbox config files.

      Given all this I still couldn't get the screen to work properly.

      I does show the initial recalbox splash image but after that the screen goes white.

      Are the instructions being updated or is someone able to provide me with some guidance?

      Cheers

      Gerard

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

        @bigbear let's try to summon @ian57 ...

        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 1
        • ian57
          ian57 Staff last edited by

          @bigbear @Substring Yes I need to rewrite the howto, because lots of things are now embedded in Recalbox. Need time to do that

          but briefly :

          1. modify the /boot/config.txt to fit to the resolution of your screen and the right overlay
          2. in recalbox.conf juste activate the fbcp support and restart
          ## fbcp FrameBuffer Copy Program
          ## For small TFT screen on GPIO and SPI
          ## See https://github.com/recalbox/recalbox-os/wiki/Utility---Use-of-fbcp-for-small-TFT-screen-%28EN%29 for details
          ## Needed for Waveshare 3.2" 3.5" TFT screen, 2.8" Adafruit screen
          ## See https://github.com/recalbox/recalbox-os/wiki/TFT-Screen-SPI-Bus-%28EN%29
          ## for support and configuration details needed by /boot/config.txt
          system.fbcp.enabled=1
          

          Hope this helps

          "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

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

            Hi @ian57 - thanks for getting back to me.

            I modified system.fbcp.enabled=1 as suggested.

            I also made the following changes to recalbox.conf:

            #global.videomode=DMT 87 HDMI
            global.videomode=default
            
            #global.ratio=auto
            global.ratio=4/3
            

            I also added the following to the end of /boot/config.txt:

            dtparam=spi=on
            dtparam=i2c1=on
            dtparam=i2c_arm=on
            #forcing HDMI output at TFT screen resolution to be able to make the FB copy
            #resolution configuration
            hdmi_force_hotplug=1
            hdmi_cvt=320 240 60 1 0 0 0
            hdmi_group=2
            hdmi_mode=87
            # working config for speed
            # 900 Mhz -> 48000000
            # 1Ghz -> 35000000
            #modification of the speed   
            dtoverlay=pitft28-resistive,rotate=90,speed=22000000,fps=60
            

            This pretty much matched what I had done before and I'm getting the same results.

            The new xmas boot vid starts but just at the point where the xmas tree is expected to show the screen goes white and doesn't change.

            I've tried a RetroPie install and it worked so I know that the screen is working ok.

            Do you have any suggestions on what I might try next?

            Cheers

            Gerard

            bigbear 1 Reply Last reply Reply Quote 0
            • bigbear
              bigbear @bigbear last edited by

              Hi @ian57 - I figured out what the problem was.

              It probably helps if I provide a bit more background info. I'm working on a PiGRRL 2.0 kit and didn't want to use RetroPie.

              Part of the kit uses a PiGRRL gamepad which effectively piggy backs on the GPIO pins that the AdaFruit TFT uses.

              In the recalbox.conf file I had set controllers.gpio.enabled=1 assuming that this was needed to allow the PiGRRL gamepad to work properly.

              Changing it back to 0 allowed the screen to work as expected.

              # ------------ D2 - GPIO Controllers ------------ #
              ## GPIO Controllers
              ## enable controllers on GPIO with mk_arcarde_joystick_rpi (0,1)
              controllers.gpio.enabled=0
              

              Now I just need to figure out how to make the Gamepad work.

              Gerard

              1 Reply Last reply Reply Quote 0
              • ian57
                ian57 Staff last edited by

                @bigbear thanks for your feedback. Yes some GPIO are use by the screen and the the mk_arcade kernel module. SO if both are activated... the screen driver craches.

                "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

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

                Want to support us ?

                62
                Online

                98.7k
                Users

                28.1k
                Topics

                187.0k
                Posts

                Copyright © 2021 recalbox.com