Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
704affb4
Commit
704affb4
authored
1 year ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Wait for both images to boot, not just user
parent
011b36d5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!722
Station boot patches
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/devices/sdp/firmware.py
+9
-11
9 additions, 11 deletions
...tationcontrol/tangostationcontrol/devices/sdp/firmware.py
with
9 additions
and
11 deletions
tangostationcontrol/tangostationcontrol/devices/sdp/firmware.py
+
9
−
11
View file @
704affb4
...
@@ -262,31 +262,29 @@ class SDPFirmware(OPCUADevice):
...
@@ -262,31 +262,29 @@ class SDPFirmware(OPCUADevice):
# overloaded functions
# overloaded functions
# --------
# --------
def
_power_hardware_on
(
self
):
def
_boot_to_image
(
self
,
image_nr
):
"""
Boot the SDP Firmware user image
"""
# FPGAs that are actually reachable and we care about
# FPGAs that are actually reachable and we care about
wait_for
=
~
(
wait_for
=
~
(
self
.
read_attribute
(
"
TR_fpga_communication_error_R
"
)
self
.
read_attribute
(
"
TR_fpga_communication_error_R
"
)
)
&
self
.
read_attribute
(
"
TR_fpga_mask_R
"
)
)
&
self
.
read_attribute
(
"
TR_fpga_mask_R
"
)
# Order the correct firmare to be loaded
# Order the correct firmare to be loaded
self
.
proxy
.
FPGA_boot_image_RW
=
[
1
]
*
N_pn
self
.
proxy
.
FPGA_boot_image_RW
=
[
image_nr
]
*
N_pn
# Wait for the firmware to be loaded (ignoring masked out elements)
# Wait for the firmware to be loaded (ignoring masked out elements)
self
.
wait_attribute
(
self
.
wait_attribute
(
"
FPGA_boot_image_R
"
,
lambda
attr
:
((
attr
==
1
)
|
~
wait_for
).
all
(),
60
"
FPGA_boot_image_R
"
,
lambda
attr
:
((
attr
==
1
)
|
~
wait_for
).
all
(),
60
)
)
def
_power_hardware_on
(
self
):
"""
Boot the SDP Firmware user image
"""
self
.
_boot_to_image
(
0
)
def
_power_hardware_off
(
self
):
def
_power_hardware_off
(
self
):
"""
Use the SDP Firmware factory image
"""
"""
Use the SDP Firmware factory image
"""
# Save actual mask values
TR_fpga_mask
=
self
.
proxy
.
TR_fpga_mask_RW
self
.
_boot_to_image
(
1
)
# Set the mask to all Trues
self
.
proxy
.
TR_fpga_mask_RW
=
[
True
]
*
N_pn
# Boot the boot image firmware
self
.
proxy
.
FPGA_boot_image_RW
=
[
0
]
*
N_pn
# Restore the mask
self
.
proxy
.
TR_fpga_mask_RW
=
TR_fpga_mask
# --------
# --------
# Commands
# Commands
...
...
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