Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
a1d4cdb2
Commit
a1d4cdb2
authored
Mar 29, 2012
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: check that sam-ba is found in lsusb for the flashing script
parent
ee2daaaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
flash-wrs
build/flash-wrs
+8
-1
No files found.
build/flash-wrs
View file @
a1d4cdb2
...
...
@@ -8,6 +8,13 @@ if [ -d ./usb-loader ]; then true; else
exit
1
fi
# Check if atmel sam-ba is find by lusb
lsusb |
grep
"at91sam SAMBA"
&> /dev/null
if
[
$?
-gt
"0"
]
;
then
echo
"Did not find the sam-ba bootloader in lsub....
\n
Please check that the Dataflash is short-circuited!"
exit
1
;
fi
err
=
0
;
if
[
-f
./binaries/at91bootstrap.bin
]
;
then
true
;
else
err
=
1
;
fi
if
[
-f
./binaries/barebox.bin
]
;
then
true
;
else
err
=
1
;
fi
...
...
@@ -58,4 +65,4 @@ fi
# flash it (msc...)
(
cd
usb-loader
&&
./mch_flasher
$T
$DEV
)
#rm -f $T
\ No newline at end of file
#rm -f $T
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment