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
61586383
Commit
61586383
authored
Jul 16, 2012
by
Federico Vaga
Committed by
Alessandro Rubini
Jul 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flash-wrs: update memory mode choerently with the manual
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
2db75ae4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
flash-wrs
build/flash-wrs
+2
-2
No files found.
build/flash-wrs
View file @
61586383
...
...
@@ -23,7 +23,7 @@ showhelp()
printf
"DEV:
\t
The usb device (by default it is /dev/ttyACM0)
\n
"
printf
"Options:
\n
"
printf
" -h|--help
\t
Show this help message
\n
"
printf
" -m|--mode
\t
can be: default
, df (dataflash), nf (nandflash), test
.
\n
"
printf
" -m|--mode
\t
can be: default
(df and nf), df (dataflash),
\n\t\t
nf (nandflash), ddr (ddr memories)
.
\n
"
printf
" -e
\t\t
Completely erase the memory (Can erase your configuration)
\n
"
printf
" -b|--build
\t
Use file that you have build in the WRS_OUTPUT_DIR
\n
"
printf
" --test
\t
Use file for testing the switch (not available)
\n
"
...
...
@@ -129,7 +129,7 @@ while [ $# -ge 1 ]; do
-h
|
--help
)
showhelp
;
shift
;;
-m
|
--memmode
)
# verify memory mode
if
[
"
$2
"
!=
"nf"
]
&&
[
"
$2
"
!=
"df"
]
&&
[
"
$2
"
!=
"
test
"
]
&&
[
"
$2
"
!=
"default"
]
;
then
if
[
"
$2
"
!=
"nf"
]
&&
[
"
$2
"
!=
"df"
]
&&
[
"
$2
"
!=
"
ddr
"
]
&&
[
"
$2
"
!=
"default"
]
;
then
echo
"Error: Invalid memory mode"
showhelp
exit
1
...
...
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