-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathinstall.bash
29 lines (21 loc) · 1.23 KB
/
install.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
mkdir /usr/share/matrixlabs/matrixio-devices
cp -avr blob cfg sam3-program.bash fpga-program.bash em358-program.bash creator-init.bash radio-init.bash firmware_info mcu_firmware.version matrixlabs_edit_settings.py matrixlabs_remove_console.py
mkdir /usr/share/matrixlabs/matrixio-devices/config
cp -avr boot_modifications.txt /usr/share/matrixlabs/matrixio-devices/config
cp -avr matrix-creator-firmware.service /lib/systemd/system
cp -avr matrix-creator-reset-jtag /usr/bin
cp -avr creator-mics.conf /etc/modules-load.d
cp -avr raspicam.conf /etc/modules-load.d
cp -avr asound.conf /etc/
echo "Enabling firmware loading at startup"
systemctl enable matrix-creator-firmware
# This didn't work due to an unresolved shared library.
# Asking users to reboot after installation.
# echo "Loading firmware..."
# service matrix-creator-firmware start
echo "Enabling SPI"
cp /boot/config.txt /boot/config.txt.bk && /usr/share/matrixlabs/matrixio-devices/matrixlabs_edit_settings.py /boot/config.txt.bk /usr/share/matrixlabs/matrixio-devices/config/boot_modifications.txt > /boot/config.txt
echo "Disable UART console"
/usr/share/matrixlabs/matrixio-devices/matrixlabs_remove_console.py
echo "Please restart your Raspberry Pi after installation"