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

    Installation of Xpad driver failed.

    Scheduled Pinned Locked Moved Help and Support
    xpadxpad fail
    16 Posts 4 Posters 1.7k 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.
    • mituM
      mitu Global Moderator
      last edited by mitu

      @windg said in Installation of Xpad driver failed.:

      System: rpi4 (aarch64)

      Seems the kernel is 64bit, while the the rest of the system is 32 bit. Add arm_64bit=0 to config.txt and reboot, then try again to install the driver.

      EDIT: did you add yourelf arm_64bit=1 to config.txt by any chance ?

      windgW M 2 Replies Last reply Reply Quote 2
      • windgW
        windg @mitu
        last edited by windg

        @mitu Thanks you, now the installation was succesful with arm_64bit=0. I didn't add anything to the config.txt file.
        It looks that something changed from the Raspberry OS.: https://forums.raspberrypi.com/viewtopic.php?t=349291

        Edit: i try with arm_64bit=1 and it's failing too.

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @windg
          last edited by mitu

          @windg said in Installation of Xpad driver failed.:

          It looks that something changed from the Raspberry OS.: https://forums.raspberrypi.com/viewtopic.php?t=349291

          Yes, that happened some time ago on the Raspi OS bullseye release when the kernel was upgraded to 6.1, but RetroPie uses the old (buster) release, which still uses the old LTS kernel (5.10.x).
          Seems like this change was added also to the legacy Raspi OS, which is unfortunate and a poor move for a system which should get only security updates.

          EDIT: I've asked in the RPI forums if the change was an error or the bootloader upgrade was intended. We'll see how we tackle this depending on the response.

          S 1 Reply Last reply Reply Quote 2
          • mituM mitu referenced this topic on
          • mituM mitu pinned this topic on
          • mituM mitu referenced this topic on
          • S
            stabicron @mitu
            last edited by

            @mitu I am not sure if this helps very much and yeah I am new but. Same issue and I think the issue is more that the recent update is failing to install the headers. When I look at the file system both folder /lib/modules/5.10.103-v8+/build or /lib/modules/5.10.103-v8+/source are not there. Attempting to reinstall the raspberrypi-kernel-headers package errors out (after a long time but it eventually gives up). Example error that happen are "Error! Bad return status for module build on kernel: 5.10.103-v8+ (aarch64)" and says to consult the make.log. Does this for both xpad and xpadneo. Other errors are the exact same however referencing different kernel numbers. When looking at the log for xpad that specially is for this kernel:

            IMG_1998.jpg

            The end result seems to be that after this retroarch no longer recognizes the old controller combos to both exit or go to retroarch menu (my controller still works thankfully). Workaround for that for me has been to manually set hotkey button combos inside of retroarch and save the config

            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator
              last edited by

              @stabicron said in Installation of Xpad driver failed.:

              Same issue and I think the issue is more that the recent update is failing to install the headers
              ...

              The headers are installed, but they're not properly configured for the 64bit kernel:

              pi@retropie:~ $ dpkg -l | grep kernel-headers
              ii  raspberrypi-kernel-headers           1:1.20230425~buster-1                    armhf        Header files for the Raspberry Pi Linux kernel
              
              pi@retropie:~ $ ls -ld /lib/modules/5.10.103-v8+/build
              ls: cannot access '/lib/modules/5.10.103-v8+/build': No such file or directory
              
              pi@retropie:~ $ ls -ld /lib/modules/5.10.103-v7l+/build
              lrwxrwxrwx 1 root root 36 Mar  8  2022 /lib/modules/5.10.103-v7l+/build -> /usr/src/linux-headers-5.10.103-v7l+
              

              Just apply the workaround I posted above and reboot, then the drivers can be installed without the build errors.

              S 1 Reply Last reply Reply Quote 0
              • windgW
                windg
                last edited by windg

                It looks that is affect and the building of lr-swanstation from Retropie-Extra repo. So, if someone want to install this emulator add the arm_64bit=0 to config.txt file, reboot and then try again.

                log from fail building : https://pastebin.com/yCkm9L2U

                mituM 1 Reply Last reply Reply Quote 0
                • S
                  stabicron @mitu
                  last edited by

                  @mitu Forgive me if this seems obvious but I do not see where the config.txt file is stored in this thread. Where is it?

                  windgW mituM 2 Replies Last reply Reply Quote 0
                  • windgW
                    windg @stabicron
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • mituM
                      mitu Global Moderator @stabicron
                      last edited by

                      @stabicron It's on the boot partition of the sdcard and you also can find it at /boot/config.txt from your running system. You can run

                      sudo nano /boot/config.txt
                      

                      to edit the file after you exit EmulationStation.

                      S 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @windg
                        last edited by

                        @windg said in Installation of Xpad driver failed.:

                        It looks that is affect and the building of lr-swanstation from Retropie-Extra repo

                        It's going to affect more than one package, there are quite a few emulators that use uname -m to determine if the system is 32 or 64bit and set the build parameters accordingly. There's no point in keeping track of them, since running a mixed 64/32bit kernel/userspace is not a very common configuration.

                        1 Reply Last reply Reply Quote 0
                        • S
                          stabicron @mitu
                          last edited by

                          @mitu Thank you. Just tried it and worked for xpad and a couple of the others that were running into the same thing

                          1 Reply Last reply Reply Quote 0
                          • M
                            MaXxOnRP @mitu
                            last edited by MaXxOnRP

                            @mitu Thanks for your help. Read it yesterday, tried it and it helped my build too. Best Regards

                            1 Reply Last reply Reply Quote 1
                            • windgW
                              windg
                              last edited by

                              It looks that the change that was added to Raspi Buster Lite, was a mistake. Soon an update will fix this.

                              M 1 Reply Last reply Reply Quote 2
                              • mituM mitu referenced this topic on
                              • mituM
                                mitu Global Moderator
                                last edited by

                                @windg said in Installation of Xpad driver failed.:

                                Soon an update will fix this

                                The updated packages (kernel/firmware-bootloader) for have been released for Buster, the modifications suggested earlier to config.txt should not be needed anymore.

                                1 Reply Last reply Reply Quote 2
                                • M
                                  MaXxOnRP @windg
                                  last edited by

                                  @windg Nice.

                                  1 Reply Last reply Reply Quote 0
                                  • mituM mitu unpinned this topic on
                                  • 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.