-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·55 lines (46 loc) · 1.66 KB
/
install.sh
File metadata and controls
executable file
·55 lines (46 loc) · 1.66 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#! /bin/bash
###
# Beaglebone Pru IO
#
# Copyright (C) 2015 Rafael Vega <rvega@elsoftwarehamuerto.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
###
echo ""
echo "1. Fetching dependencies"
cd ..
git submodule update --init --recursive > /dev/null
echo ""
echo "2. Installing beaglebone_pruio library."
cd library
PREFIX=/usr make uninstall > /dev/null
PREFIX=/usr make install > /dev/null
echo ""
echo '3. Disabling HDMI and "universal" cape.'
sed -i.bak 's/#dtb=am335x-boneblack-emmc-overlay.dtb/dtb=am335x-boneblack-emmc-overlay.dtb/' /boot/uEnv.txt
sed -i.bak 's/cape_universal=enable/cape_universal=disable/' /boot/uEnv.txt
echo ""
echo "4. Assigning index zero to USB sound card in ALSA."
echo 'options snd-usb-audio index=0' > /etc/modprobe.d/audio.conf
echo ""
echo "5. Installing the correct version of the Linux kernel. This will take a few minutes."
cd /opt/scripts/tools
git pull
apt-get update
apt-get install linux-headers-4.1.18-bone-rt-r19
./update_kernel.sh --bone-rt-kernel --lts-4_1
echo ""
echo ""
echo ""
echo "Done. Reboot now if there are no error messages above."