2021-10-10 16:43:08 +01:00
|
|
|
= aw-lights
|
2021-07-31 14:29:21 -04:00
|
|
|
|
2021-10-10 16:43:08 +01:00
|
|
|
== Setup
|
|
|
|
|
|
|
|
[source,bash]
|
2021-07-31 14:29:21 -04:00
|
|
|
----
|
|
|
|
xbps-install fake-hwclock
|
|
|
|
ln -s /etc/sv/fake-hwclock/ /var/service/
|
|
|
|
|
|
|
|
# Enable SPI
|
|
|
|
echo 'dtparam=spi=on' >>/boot/config.txt
|
2021-08-01 23:55:43 +01:00
|
|
|
|
|
|
|
# Allow big buf for SPI
|
|
|
|
echo 'options spidev bufsiz=65536' > /etc/modprobe.d/spidev.conf
|
2021-07-31 14:29:21 -04:00
|
|
|
----
|
2021-10-10 16:43:08 +01:00
|
|
|
|
|
|
|
Set CPU clock
|
|
|
|
|
|
|
|
* RPI3
|
|
|
|
+
|
|
|
|
[title='/boot/config.txt']
|
|
|
|
----
|
|
|
|
core_freq=250
|
|
|
|
----
|
|
|
|
* RPI4
|
|
|
|
+
|
|
|
|
[title='/boot/config.txt']
|
|
|
|
----
|
|
|
|
core_freq=500
|
|
|
|
core_freq_min=500
|
|
|
|
----
|
2021-10-16 07:36:15 -04:00
|
|
|
|
|
|
|
== Cross Compiling
|
|
|
|
|
|
|
|
----
|
|
|
|
xbps-install -y cross-armv7l-linux-gnueabihf
|
|
|
|
rustup target add armv7-unknown-linux-gnueabihf
|
|
|
|
make deploy
|
|
|
|
----
|