Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
2de2de0d
Commit
2de2de0d
authored
15 years ago
by
Arno Schoenmakers
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1276: Added password to tbbctl --writeimage and added function to kill running RSPDriver
parent
5816ddef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Firmware/tools/src/flash_tbb.sh
+17
-1
17 additions, 1 deletion
Firmware/tools/src/flash_tbb.sh
with
17 additions
and
1 deletion
Firmware/tools/src/flash_tbb.sh
+
17
−
1
View file @
2de2de0d
...
...
@@ -14,6 +14,18 @@ SyntaxError()
exit
1
}
killRSPDriver
()
{
# Find all RSPDriver processes and kill these with sudo kill
RSP_pid
=(
$(
ps
-ea
|
grep
RSPDriver |
awk
'{print $1}'
)
)
if
[
${#
RSP_pid
[*]
}
>
0
]
;
then
for
pid
in
${
RSP_pid
[*]
}
;
do
echo
"RSPDriver (process
${
pid
}
) will be killed"
sudo kill
$pid
done
fi
}
page
=
-1
m_file
=
""
t_file
=
""
...
...
@@ -61,10 +73,14 @@ read -p "Is this ok [y/n]" answer
if
[[
"
$answer
"
=
~
"([yY])"
]]
;
then
if
[
-e
$m_file
-a
-e
$t_file
]
;
then
killRSPDriver
for
((
ind
=
0
;
ind <
$tbboards
;
ind++
))
do
tbbctl
--writeimage
=
$ind
,
$page
,3.2,
$t_file
,
$m_file
tbbctl
--eraseimage
=
$ind
,
$page
tbbctl
--writeimage
=
$ind
,
$page
,3.2,
$t_file
,
$m_file
,0
done
tbbctl
--config
=
$page
echo
else
echo
"Could not find one of the hex files"
fi
...
...
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