Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
MasterFIP - Testing
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
MasterFIP - Testing
Commits
0000fe0b
Commit
0000fe0b
authored
Mar 15, 2017
by
Marek Gumiński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused python code.
Stopped inserting adc modules
parent
59a42e2c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
222 deletions
+16
-222
fmcmasterfip.sh
pts/fmcmasterfip.sh
+2
-2
fmcmasterfip.py
python/fmcmasterfip.py
+8
-214
spec.py
python/spec.py
+2
-2
utilities.py
python/utilities.py
+2
-2
drivers_load.sh
scripts/drivers_load.sh
+2
-2
No files found.
pts/fmcmasterfip.sh
View file @
0000fe0b
...
...
@@ -84,8 +84,8 @@ sleep 1
insmod
"
${
top
}
/
${
projectpath
}
/software/fmc-bus/kernel/fmc.ko"
insmod
"
${
top
}
/
${
projectpath
}
/software/spec-sw/kernel/spec.ko"
"fw_name=../../
${
top
}
/
${
projectpath
}
/gateware/spec-init.bin-2012-12-14"
insmod
"
${
top
}
/
${
projectpath
}
/software/zio/zio.ko"
insmod
"
${
top
}
/
${
projectpath
}
/software/fmc-adc-100m14b4cha-sw/kernel/fmc-adc-100m14b.ko"
"gateware=../../
${
top
}
/
${
projectpath
}
/gateware/syn/spec/spec_top_fmc_masterfip.bin"
#
insmod "${top}/${projectpath}/software/zio/zio.ko"
#
insmod "${top}/${projectpath}/software/fmc-adc-100m14b4cha-sw/kernel/fmc-adc-100m14b.ko" "gateware=../../${top}/${projectpath}/gateware/syn/spec/spec_top_fmc_masterfip.bin"
modprobe usbserial
insmod
"
${
top
}
/
${
projectpath
}
/software/cp210x/cp210x.ko"
...
...
python/fmcmasterfip.py
View file @
0000fe0b
This diff is collapsed.
Click to expand it.
python/spec.py
View file @
0000fe0b
...
...
@@ -42,10 +42,10 @@ class spec:
def
program
(
self
,
firmware
):
self
.
firmware
=
firmware
;
firmware_path
=
self
.
cwd
+
self
.
firmware
firmware_path
=
self
.
projdir
+
self
.
firmware
util
.
info_msg
(
"Firmware loading from
%
s "
%
firmware_path
)
os
.
system
(
"ls -l
%
s"
%
firmware_path
)
#
os.system("ls -l %s" % firmware_path)
if
(
self
.
speclib
.
spec_load_bitstream
(
c_void_p
(
self
.
card
),
c_char_p
(
firmware_path
)
)
==
0
):
util
.
err_msg
(
"Firmware loader failure"
)
return
-
1
...
...
python/utilities.py
View file @
0000fe0b
...
...
@@ -13,7 +13,7 @@ INFO = True
WARRNING
=
True
CRITICAL
=
True
FIRMWARE_PATH
=
'
/
gateware/syn/spec/spec_top_fmc_masterfip.bin'
FIRMWARE_PATH
=
'gateware/syn/spec/spec_top_fmc_masterfip.bin'
TOPDIRNAME
=
"fmcmasterfip"
test03_outputpath
=
'/tmp/'
...
...
@@ -61,7 +61,7 @@ def find_prj_topdir(topdirname):
[
tmppath
,
dirname
]
=
os
.
path
.
split
(
os
.
getcwd
()
);
while
(
tmppath
!=
'/'
):
if
dirname
==
topdirname
:
return
os
.
path
.
join
(
tmppath
,
dirname
)
return
os
.
path
.
join
(
tmppath
,
dirname
)
+
"/"
[
tmppath
,
dirname
]
=
os
.
path
.
split
(
tmppath
);
crit_msg
(
"Top directory path not found
\n
Please make sure that top directory of PtsFmcMastrefip is called
\"
fmcmasterfip
\"
"
)
...
...
scripts/drivers_load.sh
View file @
0000fe0b
...
...
@@ -58,8 +58,8 @@ echo "Identified $top as FMC masterFip top directory"
insmod
"
${
top
}
/
${
projectpath
}
/software/fmc-bus/kernel/fmc.ko"
insmod
"
${
top
}
/
${
projectpath
}
/software/spec-sw/kernel/spec.ko"
"fw_name=../../
${
top
}
/
${
projectpath
}
/gateware/spec-init.bin-2012-12-14"
insmod
"
${
top
}
/
${
projectpath
}
/software/zio/zio.ko"
insmod
"
${
top
}
/
${
projectpath
}
/software/fmc-adc-100m14b4cha-sw/kernel/fmc-adc-100m14b.ko"
"gateware=../../
${
top
}
/
${
projectpath
}
/gateware/syn/spec/spec_top_fmc_masterfip.bin"
#
insmod "${top}/${projectpath}/software/zio/zio.ko"
#
insmod "${top}/${projectpath}/software/fmc-adc-100m14b4cha-sw/kernel/fmc-adc-100m14b.ko" "gateware=../../${top}/${projectpath}/gateware/syn/spec/spec_top_fmc_masterfip.bin"
modprobe usbserial
insmod
"
${
top
}
/
${
projectpath
}
/software/cp210x/cp210x.ko"
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