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
3dcbcb00
Commit
3dcbcb00
authored
9 years ago
by
Menno Norden
Browse files
Options
Downloads
Patches
Plain Diff
Task #8795: Modification in poweruphba.sh script
parent
7c2c4aa7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/Tools/Power/poweruphba.sh
+27
-5
27 additions, 5 deletions
MAC/Tools/Power/poweruphba.sh
with
27 additions
and
5 deletions
MAC/Tools/Power/poweruphba.sh
+
27
−
5
View file @
3dcbcb00
#!/bin/bash
#!/bin/bash
#
#
# V3.
0
, M.J.Norden, 1
0-09
-2015
# V3.
1
, M.J.Norden, 1
7-11
-2015
# usage: ./poweruphba.sh 5 (or 6 or 7)
# usage: ./poweruphba.sh 5 (or 6 or 7)
# Power up of the HBA Tiles needs to be slowed down because of high rush-in current.
# Power up of the HBA Tiles needs to be slowed down because of high rush-in current.
# for rcumode 6 you need to switch the clock seperately (rspctl --clock=160)
# for rcumode 6 you need to switch the clock seperately (rspctl --clock=160)
# from MAC version V2_12 and higher you can directly switch between rcumodes
# from MAC version V2_12 and higher you can directly switch between rcumodes
# The setting of hbadelays with 253 is needed for the new HBA-FE that are default off
# The setting of hbadelays with 253 is needed for the new HBA-FE that are default off
#
#
# - automatic clock switch when needed
# - automatic disble broken tiles from PVSS database
clock
=
`
rspctl
--clock
2>&1|grep
"Sample frequency"
|sed
-e
's/.*clock=\(...\)MHz/\1/'
`
if
[
"
$1
"
!=
""
]
;
then
if
[
"
$1
"
!=
""
]
;
then
if
[
$1
-lt
5
]
;
then
if
[
$1
-lt
5
]
;
then
echo
-e
"Usage: ./poweruphba.sh 5 (or 6 or 7)
\n
"
echo
-e
"Usage: ./poweruphba.sh 5 (or 6 or 7)
\n
"
exit
exit
elif
[
$1
-gt
7
]
;
then
elif
[
$1
-gt
7
]
;
then
echo
-e
"Usage: ./poweruphba.sh 5 (or 6 or 7)
\n
"
echo
-e
"Usage: ./poweruphba.sh 5 (or 6 or 7)
\n
"
exit
exit
else
else
if
[
$clock
=
"160"
]
;
then
echo
"wait 30 seconds for 200MHz clock switch"
rspctl
--clock
=
200
sleep
30
fi
hbamode
=
$1
hbamode
=
$1
fi
fi
else
else
...
@@ -24,14 +34,26 @@ else
...
@@ -24,14 +34,26 @@ else
fi
fi
if
[
$hbamode
-eq
6
]
;
then
if
[
$hbamode
-eq
6
]
;
then
echo
"wait 30 seconds for 160MHz clock switch"
if
[
$clock
=
"200"
]
;
then
rspctl
--clock
=
160
echo
"wait 30 seconds for 160MHz clock switch"
sleep
30
rspctl
--clock
=
160
sleep
30
fi
fi
fi
rspctl
--rcumode
=
$hbamode
rspctl
--rcumode
=
$hbamode
sleep
1
sleep
1
rspctl
--rcuenable
=
1
rspctl
--rcuenable
=
1
sleep
1
sleep
1
DISABLED_RCU_LIST
=
`
/opt/lofar/sbin/disabledRCUlist
$hbamode
2</dev/null
`
if
test
"
$DISABLED_RCU_LIST
"
==
""
;
then
echo
"no disabled HBA tiles"
else
rspctl
--rcumode
=
0
--sel
=
$DISABLED_RCU_LIST
sleep
1
rspctl
--rcuenable
=
0
--select
=
$DISABLED_RCU_LIST
sleep
1
fi
rspctl
--hbadelays
=
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253
rspctl
--hbadelays
=
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253
if
[
$hbamode
-eq
5
]
;
then
if
[
$hbamode
-eq
5
]
;
then
...
...
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