-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build install script name to match the current situation (#75)
* Update file name to match the current situation * Add symbolic link for backward compatibility * Add debug output
- Loading branch information
Showing
10 changed files
with
80 additions
and
45 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Makefile.ubuntu14 | ||
Makefile.header_from_apt |
File renamed without changes.
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build_install_header_from_source_raspi2.bash |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build_install_header_from_apt_raspi2.bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -eu | ||
|
||
SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../; pwd) | ||
|
||
# check kernel headers | ||
[ ! -e /usr/src/linux-headers-$(uname -r) ] && { bash -e $SRC_DIR/utils/print_env.bash "No kernel header files found."; exit 1; } | ||
|
||
# build and install the driver | ||
cd $SRC_DIR/src/drivers/ | ||
rm Makefile | ||
ln -s Makefile.header_from_apt Makefile | ||
make clean | ||
make | ||
sudo insmod rtmouse.ko | ||
|
||
# initialize the driver | ||
sleep 1 | ||
sudo chmod 666 /dev/rt* | ||
echo 0 > /dev/rtmotoren0 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -eu | ||
|
||
SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../; pwd) | ||
|
||
# check kernel headers | ||
[ ! -e /usr/src/linux ] && { bash -e $SRC_DIR/utils/print_env.bash "No kernel header files found."; exit 1; } | ||
|
||
# build and install the driver | ||
cd $SRC_DIR/src/drivers/ | ||
rm Makefile | ||
ln -s Makefile.header_from_source Makefile | ||
make clean | ||
make | ||
sudo insmod rtmouse.ko | ||
|
||
# initialize the driver | ||
sleep 1 | ||
sudo chmod 666 /dev/rt* | ||
echo 0 > /dev/rtmotoren0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash -eu | ||
|
||
SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../; pwd) | ||
|
||
# check kernel headers | ||
[ ! -e /usr/src/linux ] && { bash -e $SRC_DIR/utils/print_env.bash "No kernel header files found."; exit 1; } | ||
|
||
# build and install the driver | ||
cd $SRC_DIR/src/drivers/ | ||
rm Makefile | ||
ln -s Makefile.header_from_source Makefile | ||
make clean | ||
# Update for Raspberry Pi 4 | ||
sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.c | ||
make | ||
sudo insmod rtmouse.ko | ||
|
||
# initialize the driver | ||
sleep 1 | ||
sudo chmod 666 /dev/rt* | ||
echo 0 > /dev/rtmotoren0 |