Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
99
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
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
Projects
White Rabbit Switch - Software
Commits
978907f9
Commit
978907f9
authored
8 years ago
by
Federico Vaga
Committed by
Adam Wujek
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
userspace:startup: verify that the FPGA bitstream has been programmed
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
3d9f88f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userspace/rootfs_override/wr/sbin/startup-mb.sh
+14
-0
14 additions, 0 deletions
userspace/rootfs_override/wr/sbin/startup-mb.sh
with
14 additions
and
0 deletions
userspace/rootfs_override/wr/sbin/startup-mb.sh
+
14
−
0
View file @
978907f9
...
...
@@ -57,6 +57,20 @@ else
echo
"load_error"
>
$LOAD_FPGA_STATUS_FILE
fi
# At this offset there is an ID. Just check that it's there as a
# small proof that we correctly programmed the FPGA
CHK_ADDR
=
0x10030034
CHK_EXP
=
0xcafebabe
CHK_VAL
=
$(
devmem
$CHK_ADDR
|
tr
'[:upper:]'
'[:lower:]'
)
if
[
$CHK_VAL
!=
$CHK_EXP
]
then
echo
"The bitstream
$FP_FILE
is not correct or there something is not working with the FPGA"
echo
"Expected: [
$CHK_ADDR
] =
$CHK_EXP
"
echo
"Current: [
$CHK_ADDR
] =
$CHK_VAL
"
echo
"LM32 program and drivers for the bitstream components will not be loaded"
exit
fi
$WR_HOME
/bin/load-lm32
$LM_FILE
scb_ver
=
${
scb_ver
}
if
[
$?
-eq
0
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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