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
b7ef7bdd
Commit
b7ef7bdd
authored
6 months ago
by
Harvey Leicester
Committed by
Adam Wujek
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[FEATURE:
#335
] rootfs/wr/sbin/startup-mb.sh: add urv to startup script
parent
a5f49cfd
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
+11
-11
11 additions, 11 deletions
userspace/rootfs_override/wr/sbin/startup-mb.sh
with
11 additions
and
11 deletions
userspace/rootfs_override/wr/sbin/startup-mb.sh
+
11
−
11
View file @
b7ef7bdd
...
...
@@ -8,7 +8,7 @@ if [ -e /proc/sys/net/ipv4/conf/eth1 ]; then
fi
LOAD_FPGA_STATUS_FILE
=
"/tmp/load_fpga_status"
LOAD_
LM32
_STATUS_FILE
=
"/tmp/load_
lm32
_status"
LOAD_
URV
_STATUS_FILE
=
"/tmp/load_
urv
_status"
#files for monit's restart reason
MONIT_RR_FLASH
=
"/update/monit_restart_reason"
MONIT_RR_TMP
=
"/tmp/monit_restart_reason"
...
...
@@ -49,16 +49,16 @@ if [ "$scb_ver" = "UNKNOWN" ]; then
echo
"Warning: UNKNOWN scb version! default to 3.3"
>
& 2
scb_ver
=
33
fi
LM
_FILE
=
"
$WR_HOME
/lib/firmware/rt_cpu.elf"
SOFT_CPU
_FILE
=
"
$WR_HOME
/lib/firmware/rt_cpu.elf"
if
!
[
-f
"
$FP_FILE
"
]
;
then
echo
"Fatal: can't find
\"
$FP_FILE
\"
"
>
& 2
echo
"load_file_not_found"
>
$LOAD_FPGA_STATUS_FILE
exit
1
;
fi
if
!
[
-f
"
$
LM
_FILE
"
]
;
then
echo
"Fatal: can't find
\"
$
LM
_FILE
\"
"
>
& 2
echo
"load_file_not_found"
>
$LOAD_
LM32
_STATUS_FILE
if
!
[
-f
"
$
SOFT_CPU
_FILE
"
]
;
then
echo
"Fatal: can't find
\"
$
SOFT_CPU
_FILE
\"
"
>
& 2
echo
"load_file_not_found"
>
$LOAD_
URV
_STATUS_FILE
exit
1
;
fi
...
...
@@ -77,13 +77,13 @@ fi
# before doing anything else. We do not know yet the reson but without
# the following step the FPGA cannot be access properly
$WR_HOME
/bin/load-
lm32
$LM
_FILE
scb_ver
=
${
scb_ver
}
$WR_HOME
/bin/load-
urv
$SOFT_CPU
_FILE
scb_ver
=
${
scb_ver
}
if
[
$?
-eq
0
]
;
then
echo
"load_ok"
>
$LOAD_
LM32
_STATUS_FILE
echo
"load_ok"
>
$LOAD_
URV
_STATUS_FILE
else
echo
"Fatal: load
LM32
failed"
>
& 2
echo
"load_error"
>
$LOAD_
LM32
_STATUS_FILE
echo
"Fatal: load
uRV
failed"
>
& 2
echo
"load_error"
>
$LOAD_
URV
_STATUS_FILE
fi
# FIXME also this sleep is necessary because the LM32 does some magic
sleep
1
...
...
@@ -95,12 +95,12 @@ CHK_EXP=0xcafebabe
CHK_VAL
=
$(
devmem
$CHK_ADDR
|
tr
'[:upper:]'
'[:lower:]'
)
if
[
$CHK_VAL
==
$CHK_EXP
]
then
echo
"The FPGA and the
LM32
are programmed"
echo
"The FPGA and the
uRV
are programmed"
else
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"
echo
"
uRV
program and drivers for the bitstream components will not be loaded"
exit
fi
...
...
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