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
47cdf0bc
Commit
47cdf0bc
authored
16 years ago
by
Arno Schoenmakers
Browse files
Options
Downloads
Patches
Plain Diff
bug 1285: Removed firmware version check directly after flash as this hangs
parent
86e952f2
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/APL/APLCommon/src/swlevel
+2
-6
2 additions, 6 deletions
MAC/APL/APLCommon/src/swlevel
with
2 additions
and
6 deletions
MAC/APL/APLCommon/src/swlevel
+
2
−
6
View file @
47cdf0bc
...
@@ -64,14 +64,10 @@ selectImage1()
...
@@ -64,14 +64,10 @@ selectImage1()
boardHex
=
`
echo
16 o
$board
p q | dc
`
boardHex
=
`
echo
16 o
$board
p q | dc
`
let
version
=
`
sudo
${
BINDIR
}
/../sbin/rsuctl3
-m
10:fa:00:00:0
$boardHex
:00
-qV
2>&1 |
grep
BP |
cut
-d
':'
-f2
|
sed
's/ //g'
|
cut
-d
'.'
-f1
`
let
version
=
`
sudo
${
BINDIR
}
/../sbin/rsuctl3
-m
10:fa:00:00:0
$boardHex
:00
-qV
2>&1 |
grep
BP |
cut
-d
':'
-f2
|
sed
's/ //g'
|
cut
-d
'.'
-f1
`
# if board has reset itself to image 0, load image 1 again
# if board has reset itself to image 0, load image 1 again
if
[
$version
-le
1
]
;
then
if
[
$version
-le
4
]
;
then
echo
"Loading image 1 on RSPboard
$board
..."
echo
"Loading image 1 on RSPboard
$board
..."
sudo
${
BINDIR
}
/../sbin/rsuctl3
-m
10:fa:00:00:0
$boardHex
:00
-q
-x
-p
1 1>/dev/null 2>&1
sudo
${
BINDIR
}
/../sbin/rsuctl3-reset
-m
10:fa:00:00:0
$boardHex
:00
-q
-x
-p
1 1>/dev/null 2>&1
sleep
3
fi
fi
# show version of the firmware that is loaded.
version
=
`
sudo
${
BINDIR
}
/../sbin/rsuctl3
-m
10:fa:00:00:0
$boardHex
:00
-qV
2>&1 |
grep
BP |
cut
-d
':'
-f2
|
sed
's/ //g'
`
echo
$board
" : "
$version
let
board
=
$board
+1
let
board
=
$board
+1
done
done
}
}
...
...
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