Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vesta
meta-vesta
Commits
009c41ad
Commit
009c41ad
authored
Dec 15, 2017
by
David Mondou
Browse files
Merge branch 'fix/scripts-for-400' into 'master'
Fixed scripts for vesta-400 See merge request vesta/meta-vesta!88
parents
6dc4ace1
9de528ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
recipes-extended/openocd/files/bmd300_program_zephyr.sh
View file @
009c41ad
#!/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."
...
...
recipes-extended/openocd/files/load_zephyr
View file @
009c41ad
#!/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
...
...
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