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.8k 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.
    • 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.