Skip to content

Commit a6957b7

Browse files
author
rogerclarkmelbourne
committed
2 parents e3d460d + f90929b commit a6957b7

9 files changed

Lines changed: 36 additions & 1 deletion

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "tools/src/texane-stlink"]
88
path = tools/src/texane-stlink
99
url = https://github.com/texane/stlink
10+
[submodule "tools/src/dfu-util"]
11+
path = tools/src/dfu-util
12+
url = https://gitorious.org/dfu-util/dfu-util.git

tools/linux/45-maple.rules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ATTRS{idProduct}=="1001", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
2+
ATTRS{idProduct}=="1002", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
3+
ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"
4+
ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"
5+

tools/linux/dfu-util/dfu-prefix

33.7 KB
Binary file not shown.

tools/linux/dfu-util/dfu-suffix

33.9 KB
Binary file not shown.

tools/linux/dfu-util/dfu-util

119 KB
Binary file not shown.

tools/linux/install-udev-rules.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
if sudo [ -w /etc/udev/rules.d ]; then
4+
echo "Copying Maple-specific udev rules..."
5+
sudo cp -v 45-maple.rules /etc/udev/rules.d/45-maple.rules
6+
sudo chown root:root /etc/udev/rules.d/45-maple.rules
7+
sudo chmod 644 /etc/udev/rules.d/45-maple.rules
8+
else
9+
echo "Couldn't copy to /etc/udev/rules.d/; you probably have to run this script as root? Or your distribution of Linux doesn't include udev; try running the IDE itself as root."
10+
fi

tools/linux/maple_upload

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ if [ $# -lt 4 ]; then
88
fi
99
dummy_port=$1; altID=$2; usbID=$3; binfile=$4
1010

11+
#DFU_UTIL=$(dirname $0)/dfu-util/dfu-util
1112
DFU_UTIL=/usr/bin/dfu-util
1213
if [ ! -x ${DFU_UTIL} ]; then
1314
echo "$0: error: cannot find ${DFU_UTIL}" >&2
1415
exit 2
1516
fi
1617

17-
${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile}
18+
${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile}

tools/src/build_dfu-util.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
sudo apt-get build-dep dfu-util
4+
sudo apt-get install build-essentials
5+
sudo apt-get install libusb-1.0-0-dev
6+
sudo apt-get install autoconf automake autotools-dev
7+
8+
cd dfu-util
9+
./autogen.sh
10+
./configure
11+
make
12+
cp src/dfu-util ../../linux/dfu-util
13+
cp src/dfu-suffix ../../linux/dfu-util
14+
cp src/dfu-prefix ../../linux/dfu-util
15+

tools/src/dfu-util

Submodule dfu-util added at 604de4b

0 commit comments

Comments
 (0)