Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SPEC7
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
SPEC7
Merge requests
!2
Moved all tools to the spec7-tools directory. Also added spec7 kernel module to the same directory
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Moved all tools to the spec7-tools directory. Also added spec7 kernel module to the same directory
Pascal_tooling_fix
into
proposed_master
Overview
0
Commits
2
Pipelines
10
Changes
23
Merged
Pascal Bos
requested to merge
Pascal_tooling_fix
into
proposed_master
3 years ago
Overview
0
Commits
2
Pipelines
10
Changes
23
Expand
0
0
Merge request reports
Compare
proposed_master
version 10
a99c2b04
3 years ago
version 9
16c22c72
3 years ago
version 8
f9a4a958
3 years ago
version 7
f9a4a958
3 years ago
version 6
8edd52af
3 years ago
version 5
b68447a2
3 years ago
version 4
51e92992
3 years ago
version 3
0265edba
3 years ago
version 2
b2a15d4c
3 years ago
version 1
dd2f5fd1
3 years ago
proposed_master (base)
and
latest version
latest version
7dd57950
2 commits,
3 years ago
version 10
a99c2b04
4 commits,
3 years ago
version 9
16c22c72
3 commits,
3 years ago
version 8
f9a4a958
5 commits,
3 years ago
version 7
f9a4a958
3 commits,
3 years ago
version 6
8edd52af
2 commits,
3 years ago
version 5
b68447a2
1 commit,
3 years ago
version 4
51e92992
4 commits,
3 years ago
version 3
0265edba
3 commits,
3 years ago
version 2
b2a15d4c
2 commits,
3 years ago
version 1
dd2f5fd1
1 commit,
3 years ago
23 files
+
737
−
1092
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
Search (e.g. *.vue) (Ctrl+P)
sw/spec7-tools/Pcie_load_bitfile/Pcie_load_bitfile.sh
0 → 100755
+
27
−
0
Options
#! /bin/bash
if
[
"
$1
"
=
"-h"
]
;
then
echo
"Copies and loads a bitfile to the spec7 over PCIe. Must be run as root"
echo
"usage:
$0
NAME_OF_BITFILE.bit"
exit
1
fi
if
[[
$EUID
-ne
0
]]
;
then
echo
"This script must be run as root"
exit
1
fi
ID
=
$(
lspci |
grep
"Xilinx Corporation Device 7022"
|
awk
'{print $1}'
)
echo
"removing Pcie entry."
echo
1
>
/sys/bus/pci/devices/0000
\:
$ID
/remove
sleep
0.2
echo
"rescanning Pcie entries."
echo
1
>
/sys/bus/pci/rescan
sleep
0.2
echo
"Pcie entry loaded."
sleep
1
echo
"dcache off"
>
/dev/ttyUSB1
echo
"copying
$1
to Spec7."
cp
$1
/dev/spec7_bar4
echo
"loading bitfile into pCap."
echo
"fpga loadb 0 0x1000000 0x1000000"
>
/dev/ttyUSB1
echo
"done"