• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Help with new install on CM4 GPI Case 2

Scheduled Pinned Locked Moved Help and Support
cm4compute modulegpi case 2
30 Posts 5 Posters 5.0k 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.
  • G
    G30FF @rasp_renegade
    last edited by 12 Jul 2022, 04:07

    @rasp_renegade You should use the method you used to install the full image to the CM4. If you were using an SD card, you would flash the card, mount the card (which gives you access to the /boot partition), and then install the Retroflag patch in that directory (which replaces the default config.txt). I'm not sure what method you use to flash the EMMC, but you would need to install it that way.

    Alternatively, if you use an official IO board to flash the CM4, then use the IO board's HDMI to connect to a TV, set up RetroPie, configure WiFi, install the necessary scripts, and then transfer the CM4 to the GPi Case 2.

    R 1 Reply Last reply 12 Jul 2022, 15:19 Reply Quote 0
    • R
      rasp_renegade @G30FF
      last edited by rasp_renegade 7 Dec 2022, 16:58 12 Jul 2022, 15:19

      @G30FF

      That image in the Pi Imager v1.7.2 must not be supported. When running the Basic Install in RetroPie-Setup.sh, ES among some others fails. =( Im like a disappointed kid at Christmas. I am so eager to get this thing running.

      I need to do some research. Here are two of the errors in the output of the Basic Install:

      20220711_233005.jpg 20220711_232937.jpg

      G 1 Reply Last reply 12 Jul 2022, 19:23 Reply Quote 0
      • G
        G30FF @rasp_renegade
        last edited by 12 Jul 2022, 19:23

        @rasp_renegade This is getting a bit out of my wheelhouse, as I've only set up a Pi CM4 Lite with the case before. Sorry!

        1 Reply Last reply Reply Quote 0
        • M
          mitu Global Moderator
          last edited by mitu 13 Jul 2022, 04:29

          @rasp_renegade said in Help with new install on CM4 GPI Case 2:

          That image in the Pi Imager v1.7.2 must not be supported

          Which image did you install ? The latest RPI OS ('bullseye') is not supported by the RetroPie setup script.

          Why not install the RetroPie image and then add the RetroFlag configurations, as @G30FF suggested ? Looking at the files they distribute, it looks like it just adds a few things to the /boot/config.txt. Make a backup of the original config.txt file and use config.txt they provide for RetroPie.

          R 1 Reply Last reply 13 Jul 2022, 07:01 Reply Quote 0
          • R
            rasp_renegade @mitu
            last edited by 13 Jul 2022, 07:01

            @mitu

            Yes it is supported, just not the images I tried. This one seemed to work.

            recallbox.png

            But I am stuck in ES waiting to configure a controller. Gamepad, USB controller, nor keyboard are recognized. Now I have network I can ssh and copy the config file

            M 1 Reply Last reply 13 Jul 2022, 07:49 Reply Quote 0
            • M
              mitu Global Moderator @rasp_renegade
              last edited by 13 Jul 2022, 07:49

              @rasp_renegade said in Help with new install on CM4 GPI Case 2:

              Yes it is supported, just not the images I tried.

              No, 'bullseye' is not supported by RetroPie, hence the errors you posted above.

              This one seemed to work.

              Could be, but that's not RetroPie or RasPI OS.

              R 2 Replies Last reply 13 Jul 2022, 17:37 Reply Quote 0
              • R
                rasp_renegade @mitu
                last edited by 13 Jul 2022, 17:37

                @mitu said in Help with new install on CM4 GPI Case 2:

                Could be, but that's not RetroPie or RasPI OS.

                Sorry that was not what I intended to send! This is the one. Is it correct?

                rp.png

                It is booting into RetroPie just fine but stuck at EmulationStation asking to press F4 or configure a controller. I tried botting with controller and keyboard plugged in and also unplugged and reconnected. And I was wrong, I cannot get network since I was not prompted to connect to the WIFI.

                1 Reply Last reply Reply Quote 0
                • R
                  rasp_renegade @mitu
                  last edited by 14 Jul 2022, 01:04

                  @mitu said in Help with new install on CM4 GPI Case 2:

                  No, 'bullseye' is not supported by RetroPie, hence the errors you posted above.

                  Very strange. I also tried to install these two and like the previous image, I get no response to inputs. Controller, keyboard or onboard gamepad.

                  buster.png

                  Thought something had gone wrong with the dock itself. I installed Bullseye again as a test and the keyboard works. Is it that the Buster image is missing the drivers that is in Bullseye?

                  M G 2 Replies Last reply 14 Jul 2022, 02:36 Reply Quote 0
                  • M
                    mitu Global Moderator @rasp_renegade
                    last edited by 14 Jul 2022, 02:36

                    @rasp_renegade said in Help with new install on CM4 GPI Case 2:

                    Is it that the Buster image is missing the drivers that is in Bullseye?

                    Could be, though RetroFlag advertises is has support for RetroPie 4.7.1, so they must have tested it with the 'buster' release that RetroPie uses.

                    And I was wrong, I cannot get network since I was not prompted to connect to the WIFI.

                    Try using the unattended WiFi configuration method - https://retropie.org.uk/docs/Wifi/#connecting-to-wifi-without-a-keyboard_1. You can also choose the WiFi/SSH options in RPI Imager, using the advanced options menu.

                    R 1 Reply Last reply 14 Jul 2022, 03:44 Reply Quote 0
                    • R
                      rasp_renegade @mitu
                      last edited by 14 Jul 2022, 03:44

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • G
                        G30FF @rasp_renegade
                        last edited by 14 Jul 2022, 04:36

                        @rasp_renegade You'll probably have to set it up without the dock at first. That's how I did mine.

                        To flash the image, you should use this method: https://www.reddit.com/r/retroflag_gpi/comments/s2nd1e/comment/hy6qyz8/

                        To sum it up:

                        1. Install rpiboot
                        2. Plug the GPi case in to your computer with the included micro USB cable, using the port under the cartridge cover. That will allow your computer to see the CM4's EMMC storage as a USB drive.
                        3. Use Etcher or whatever other utility you prefer to flash the EMMC storage with the official RetroPie 4/400 image from retropie.org.uk.
                        4. Reconnect the GPi case after flashing the image. You should see the /boot partition mounted as a drive on your computer.
                        5. Install the Retroflag case patch as per their instructions.
                        6. Unplug your case.
                        7. Boot up the GPi case and perform first time setup for the RetroPie installation. ie, map the controller, set your wifi country, etc.
                        8. Connect to wifi through the RetroPie settings page.
                        9. Connect a keyboard to the USB-C port on the GPi case. You might be able to do this with the dock, otherwise you will need a USB type A to type C adapter most likely, or a bluetooth keyboard.
                        10. Quit ES
                        11. Install the GPi Case Script (https://github.com/RetroFlag/GPiCase2-Script)
                        12. Reboot the GPi
                        13. You're done

                        Booting the Pi up while docked or undocked will cause it to run the case script to determine which config.txt to use and set it up to use HDMI or the built in screen. It will also set up safe shutdown.

                        R 1 Reply Last reply 14 Jul 2022, 21:23 Reply Quote 0
                        • R
                          rasp_renegade @G30FF
                          last edited by rasp_renegade 14 Jul 2022, 21:23

                          @G30FF

                          That is the method I used. Everything works except for input device drivers.

                          Raspberry Pi imager v1.7.2 images just fine. The problem is that only BullsEye is recognizing input devices. I even found the old version of Buster (retropie-buster-4.7.1-rpi4_400) that is supposed to be supported but it does the same thing. Boots all the way into Emulationstation but stuck at the controller config menu. Keyboard, controller, nor onboard gamepad get a response.

                          In this state I have no control since the WIFI is not connected so cannot even SSH in.

                          G 1 Reply Last reply 15 Jul 2022, 14:22 Reply Quote 0
                          • G
                            G30FF @rasp_renegade
                            last edited by 15 Jul 2022, 14:22

                            @rasp_renegade You should try flashing it with the official image from RetroPie instead of Raspberry Pi Imager. I've had luck using that image myself.

                            M 1 Reply Last reply 15 Jul 2022, 15:33 Reply Quote 0
                            • M
                              mitu Global Moderator @G30FF
                              last edited by 15 Jul 2022, 15:33

                              @G30FF The RPI imager downloads the exact same RetroPie image from https://retropie.org.uk/download.

                              G 1 Reply Last reply 15 Jul 2022, 16:20 Reply Quote 0
                              • G
                                G30FF @mitu
                                last edited by 15 Jul 2022, 16:20

                                @mitu My mistake.

                                @rasp_renegade I suggest you try configuring wifi using a wpa_supplicant.conf file. You can add that to the /boot partition. That would get you online. Plugging a USB keyboard into the port on the bottom of the GPi would let you quit ES (F4), and then access RetroPie-Setup, or raspi-config.

                                It is possible that your case is defective, and the controller doesn't actually work. The case's controller is an xinput device, and that should be readily supported OOTB by RetroPie. If you can plug in a keyboard and get to the terminal, try running jstest to see if the controller actually works.

                                R 1 Reply Last reply 15 Jul 2022, 16:40 Reply Quote 0
                                • R
                                  rasp_renegade @G30FF
                                  last edited by rasp_renegade 15 Jul 2022, 16:40

                                  @G30FF said in Help with new install on CM4 GPI Case 2:

                                  @mitu My mistake.

                                  @rasp_renegade I suggest you try configuring wifi using a wpa_supplicant.conf file. You can add that to the /boot partition. That would get you online. Plugging a USB keyboard into the port on the bottom of the GPi would let you quit ES (F4), and then access RetroPie-Setup, or raspi-config.

                                  It is possible that your case is defective, and the controller doesn't actually work. The case's controller is an xinput device, and that should be readily supported OOTB by RetroPie. If you can plug in a keyboard and get to the terminal, try running jstest to see if the controller actually works.

                                  I have no SSH capability to manipulate files, without having network

                                  Keep in mind that the case is perfectly fine, since the keyboard works with BullsEye. In any other OS I cannot press F4 on the keyboard because no input device responds.

                                  Recap:
                                  -Installed Bullseye through Raspberry Pi Imager v1.72. Keyboard works, but nothing else without support of this OS.
                                  -Installed Buster (with and without desktop) through Raspberry Pi Imager v1.72. Boots into RetroPie but no keyboard.
                                  -Installed RetroPie 4.8 (RPI 4/400) through Raspberry Pi Imager v1.72. Boots into RetroPie but no keyboard.
                                  -Installed Buster v4.7.1 with WIN32DiskImager (utility I always used before the CM4). Boots into RetroPie but no keyboard.

                                  Is there another method I should also try?

                                  My CM4 is #CM4108032

                                  G 1 Reply Last reply 15 Jul 2022, 17:15 Reply Quote 0
                                  • G
                                    G30FF @rasp_renegade
                                    last edited by 15 Jul 2022, 17:15

                                    @rasp_renegade How are you connecting your keyboard to the case? Using the dock, or using a USB Type A to Type C connector?

                                    R 1 Reply Last reply 15 Jul 2022, 17:50 Reply Quote 0
                                    • R
                                      rasp_renegade @G30FF
                                      last edited by 15 Jul 2022, 17:50

                                      @G30FF said in Help with new install on CM4 GPI Case 2:

                                      @rasp_renegade How are you connecting your keyboard to the case? Using the dock, or using a USB Type A to Type C connector?

                                      Using the dock. Do you think the USB-A port inside the case will work? Ill need to but an adapter but willing to try anything.

                                      G 1 Reply Last reply 15 Jul 2022, 20:11 Reply Quote 0
                                      • G
                                        G30FF @rasp_renegade
                                        last edited by 15 Jul 2022, 20:11

                                        @rasp_renegade The Micro USB port inside the cartridge cover does not work for anything other than upgrading the case firmware and accessing the EMMC on the Pi CM4.

                                        When I set up my GPi case 2, I found that I couldn't use the dock at all (HDMI or USB) until after I'd installed the case script. If I wanted to use a keyboard, I had to plug it in directly to the case's USB-C port, and ignore the dock until the case script was installed. I'd recommend getting a USB A to USB C adapter and plugging your keyboard in through the USB C port on the bottom of the case, and working with the case screen.

                                        R B 2 Replies Last reply 15 Jul 2022, 21:08 Reply Quote 0
                                        • R
                                          rasp_renegade @G30FF
                                          last edited by 15 Jul 2022, 21:08

                                          @G30FF said in Help with new install on CM4 GPI Case 2:

                                          @rasp_renegade The Micro USB port inside the cartridge cover does not work for anything other than upgrading the case firmware and accessing the EMMC on the Pi CM4.

                                          When I set up my GPi case 2, I found that I couldn't use the dock at all (HDMI or USB) until after I'd installed the case script. If I wanted to use a keyboard, I had to plug it in directly to the case's USB-C port, and ignore the dock until the case script was installed. I'd recommend getting a USB A to USB C adapter and plugging your keyboard in through the USB C port on the bottom of the case, and working with the case screen.

                                          Sounds like a winner and I will give it a shot. Question though, when I connect the case to my PC and run rpiboot, there is a partition accessible in Windows. Can I put the script and run it there?

                                          G 1 Reply Last reply 15 Jul 2022, 23:05 Reply Quote 0
                                          13 out of 30
                                          • First post
                                            13/30
                                            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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received