Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
f03d786a
Commit
f03d786a
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
6397977b
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 @
f03d786a
...
...
@@ -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