Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Starting Kit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Starting Kit
Commits
a6c67c6f
Commit
a6c67c6f
authored
Oct 01, 2019
by
manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the spec-vuart tool by the wrpc-vuart tool to access the uart
parent
06b22bbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
vuart.py
test/validation/vuart.py
+8
-1
No files found.
test/validation/vuart.py
View file @
a6c67c6f
...
...
@@ -26,8 +26,15 @@ class Vuart ():
self
.
userName
=
userName
self
.
password
=
password
self
.
busId
=
busId
self
.
command
=
"sudo spec-vuart -b "
+
str
(
busId
)
+
" -c "
self
.
sshCmd
=
SshCmd
()
self
.
command
=
""
parse_dev
=
self
.
vUartCommand
(
"lspci | grep CERN | cut -f2 -d :"
)
.
split
(
"."
)
if
(
len
(
parse_dev
)
>
1
):
self
.
command
=
"sudo wrpc-vuart -f /sys/bus/pci/devices/0000
\
:00
\
:
%02
x.0/0000"
\
"
\
:
%02
x
\
:
%02
x.0/resource0 -o 0x20500 -c "
%
(
int
(
busId
,
16
),
int
(
busId
,
16
),
int
(
parse_dev
[
0
],
16
))
else
:
print
(
"Error: Spec does not detected on host:
%
s"
%
hostName
)
raise
def
setIp
(
self
,
ip
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment