Last active
February 7, 2023 22:18
-
-
Save geezyx/148e1f4dc2db1a4a6ab84afe421bd84a to your computer and use it in GitHub Desktop.
Install medusalix/xone on OSMC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Steps to install https://github.com/medusalix/xone on a Raspberry PI 4 running OSMC | |
# 1. Get toolchain | |
sudo apt-get update | |
sudo apt-get install -y aarch64-toolchain-osmc rbp464-headers-$(uname -r) dkms | |
# 2. Set up chroot | |
chROOT="/opt/osmc-tc/aarch64-toolchain-osmc" | |
sudo mkdir -p $chROOT/home | |
sudo mount --bind /home $chROOT/home | |
sudo mkdir -p $chROOT/usr/src | |
sudo mount --bind /usr/src $chROOT/usr/src | |
sudo cp -a /etc/resolv.conf $chROOT/etc/ | |
sudo mount --bind /dev/fd $chROOT/dev/fd | |
sudo mount --bind /proc $chROOT/proc | |
sudo mount --bind /sys $chROOT/sys | |
sudo mkdir -p $chROOT/lib/firmware | |
sudo mount --bind /lib/firmware $chROOT/lib/firmware | |
sudo chroot $chROOT | |
# 3. Install xone | |
apt-get update | |
apt-get install -y dkms git curl rbp464-headers-$(uname -r) cabextract | |
exit | |
sudo mount --bind /lib/modules/$(uname -r) $chROOT/lib/modules/$(uname -r) | |
sudo chroot $chROOT | |
git clone https://github.com/medusalix/xone | |
cd xone | |
./install.sh --release | |
xone-get-firmware.sh | |
exit | |
# 4. Cleanup | |
sudo umount $chROOT/home | |
sudo umount $chROOT/usr/src | |
sudo umount $chROOT/sys | |
sudo umount $chROOT/usr/lib/firmware | |
sudo umount $chROOT/proc | |
sudo umount $chROOT/usr/lib/modules/$(uname -r) | |
sudo apt-get remove --purge aarch64-toolchain-osmc | |
# 5. Reboot | |
sudo reboot | |
# 6. Inspect dmesg to see if the dongle and controller are connected | |
sudo dmesg -w |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment