Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
meta-vesta
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
meta-vesta
Commits
9de528ef
Commit
9de528ef
authored
7 years ago
by
David Mondou
Browse files
Options
Downloads
Patches
Plain Diff
Fixed scripts for vesta-400
parent
6dc4ace1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes-extended/openocd/files/bmd300_program_zephyr.sh
+1
-1
1 addition, 1 deletion
recipes-extended/openocd/files/bmd300_program_zephyr.sh
recipes-extended/openocd/files/load_zephyr
+3
-3
3 additions, 3 deletions
recipes-extended/openocd/files/load_zephyr
with
4 additions
and
4 deletions
recipes-extended/openocd/files/bmd300_program_zephyr.sh
+
1
−
1
View file @
9de528ef
#!/bin/sh
TYPE
=
$(
board_serial_number |
cut
-b
3,
4
)
TYPE
=
$(
board_serial_number |
cut
-b
2-
4
)
if
[
"
$TYPE
"
!=
"083"
]
&&
[
"
$TYPE
"
!=
"081"
]
&&
[
"
$TYPE
"
!=
"077"
]
&&
[
"
$TYPE
"
!=
"120"
]
;
then
logger
-s
"The Zephyr binary is only supported on Vesta 100B, 200B, 300B or 400B units."
...
...
This diff is collapsed.
Click to expand it.
recipes-extended/openocd/files/load_zephyr
+
3
−
3
View file @
9de528ef
#!/bin/sh
#This script will put the gateway in zephyr mode on first boot
TYPE
=
$(
board_serial_number |
cut
-b
3,
4
)
TYPE
=
$(
board_serial_number |
cut
-b
2-
4
)
if
[
"
$TYPE
"
!=
"83"
]
&&
[
"
$TYPE
"
!=
"81"
]
&&
[
"
$TYPE
"
!=
"77"
]
;
then
logger
-s
"load_zephyr: Not a vesta-100B, Vesta-200B or Vesta-
3
00B"
if
[
"
$TYPE
"
!=
"
0
83"
]
&&
[
"
$TYPE
"
!=
"
0
81"
]
&&
[
"
$TYPE
"
!=
"
0
77"
]
&&
[
"
$TYPE
"
!=
"120"
]
;
then
logger
-s
"load_zephyr: Not a vesta-100B, Vesta-200B
, Vesta-300B
or Vesta-
4
00B"
else
/usr/bin/gwmode-zephyr.sh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment