Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/guysoft/OctoPi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillmac16 <willmaccormack@gmail.com>2021-02-28 21:02:34 +0300
committerGitHub <noreply@github.com>2021-02-28 21:02:34 +0300
commit8e9fa779ec7a9f82015281fa420773cc86f2fa8d (patch)
treed10e98c8d705eff1f1b8a6440240869119fe619b
parentd7e5121251b733878e4f52e31a8c9fe10c581b5e (diff)
Compatibility for ws281x on Ubuntu 64 (#724)
* Compatibility for ws281x on Ubuntu 64 * full paths for ws281x compatibility changes * remove the file touch
-rw-r--r--src/variants/ubuntu_arm64/filesystem/root/etc/udev/rules.d/50-spi.rules1
-rw-r--r--src/variants/ubuntu_arm64/post_chroot_script5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/variants/ubuntu_arm64/filesystem/root/etc/udev/rules.d/50-spi.rules b/src/variants/ubuntu_arm64/filesystem/root/etc/udev/rules.d/50-spi.rules
new file mode 100644
index 0000000..c7d5c8b
--- /dev/null
+++ b/src/variants/ubuntu_arm64/filesystem/root/etc/udev/rules.d/50-spi.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="spidev", GROUP="spi", MODE="0660"
diff --git a/src/variants/ubuntu_arm64/post_chroot_script b/src/variants/ubuntu_arm64/post_chroot_script
index 918c8bc..b6c0ac8 100644
--- a/src/variants/ubuntu_arm64/post_chroot_script
+++ b/src/variants/ubuntu_arm64/post_chroot_script
@@ -15,3 +15,8 @@ apt-get update
apt-get -y --force-yes install libraspberrypi-bin rpi.gpio-common
apt-get clean
apt-get autoremove -y
+
+# Compatibility for ws281x
+sudo ln /boot/config-5.8.0-1006-raspi /boot/config.txt
+sudo groupadd spi
+sudo adduser pi spi