Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
SPEC7
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
SPEC7
Commits
b91e9536
Commit
b91e9536
authored
Oct 05, 2021
by
Pascal Bos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tool to flash QSPI over PCIe, still a WIP.
parent
cbaff7e9
Pipeline
#2344
failed with stage
in 2 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
Pcie_flash_boot_bin.sh
sw/spec7-tools/Pcie_load_bitfile/Pcie_flash_boot_bin.sh
+26
-0
No files found.
sw/spec7-tools/Pcie_load_bitfile/Pcie_flash_boot_bin.sh
0 → 100755
View file @
b91e9536
#! /bin/bash
if
[
"
$1
"
=
"-h"
]
;
then
echo
"Copies and loads a BOOT.bin to the spec7 qspi flash memory over PCIe."
echo
"usage:
$0
NAME_OF_BOOT_BIN"
exit
1
fi
echo
"dcache off"
>
/dev/ttyUSB1
echo
"sf probe 0 0 0"
>
/dev/ttyUSB1
echo
"sf erase 0 0x1cc0000"
>
/dev/ttyUSB1
echo
"erasing QSPI memory"
sleep
20
echo
""
echo
"copying first 16 MiB of
$1
to Spec7."
dd
bs
=
128k
count
=
128
if
=
$1
of
=
/dev/spec7_bar4
echo
"sf write 0x01000000 0x00000000 0x01000000"
>
/dev/ttyUSB1
sleep
30
echo
""
echo
"copying last sectors of
$1
to Spec7."
dd
bs
=
128k
skip
=
128
if
=
$1
of
=
/dev/spec7_bar4
echo
"sf write 0x01000000 0x01000000 0x01000000"
>
/dev/ttyUSB1
sleep
30
echo
"done, you should probably do a POR action now."
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