Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
NanoSoC Tech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
SoCLabs
NanoSoC Tech
Commits
77ce3e16
Commit
77ce3e16
authored
2 years ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
SOC1-167
: Updated CI Script to reflect refactoring changes
parent
7709570c
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
.gitlab-ci.yml
+14
-14
14 additions, 14 deletions
.gitlab-ci.yml
with
14 additions
and
14 deletions
.gitlab-ci.yml
+
14
−
14
View file @
77ce3e16
...
@@ -34,7 +34,7 @@ build-job-Z2: # This job runs in the build stage, which runs first.
...
@@ -34,7 +34,7 @@ build-job-Z2: # This job runs in the build stage, which runs first.
-
cd ../DMA-230_MicroDMA_Controller/
-
cd ../DMA-230_MicroDMA_Controller/
-
tar -xf PL230-r0p0-02rel2-1.tar.gz
-
tar -xf PL230-r0p0-02rel2-1.tar.gz
# move to fpga_imp directory and run the fpga build script for pynq z2
# move to fpga_imp directory and run the fpga build script for pynq z2
-
cd ../../nanosoc/system
s/mcu
/fpga_imp/
-
cd ../../nanosoc/system/fpga_imp/
-
if source ./build_fpga_pynq_z2.scr; then echo "Vivado Finished"; fi
-
if source ./build_fpga_pynq_z2.scr; then echo "Vivado Finished"; fi
-
FILE=./pynq_export/pz2/pynq/overlays/soclabs/design_1.bit
-
FILE=./pynq_export/pz2/pynq/overlays/soclabs/design_1.bit
-
if test -f "$FILE"; then
-
if test -f "$FILE"; then
...
@@ -49,9 +49,9 @@ build-job-Z2: # This job runs in the build stage, which runs first.
...
@@ -49,9 +49,9 @@ build-job-Z2: # This job runs in the build stage, which runs first.
artifacts
:
artifacts
:
paths
:
paths
:
# Keep the generated bit and hwh file from fpga build script
# Keep the generated bit and hwh file from fpga build script
-
./system
s/mcu
/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.bit
-
./system/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.bit
-
./system
s/mcu
/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.hwh
-
./system/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.hwh
-
./system
s/mcu
/fpga_imp/CI_verification/load_bitfile.py
-
./system/fpga_imp/CI_verification/load_bitfile.py
tags
:
tags
:
-
Vivado2021.1
-
Vivado2021.1
...
@@ -67,7 +67,7 @@ build-job-ZCU104: # This job runs in the build stage, which runs first.
...
@@ -67,7 +67,7 @@ build-job-ZCU104: # This job runs in the build stage, which runs first.
-
cd ../DMA-230_MicroDMA_Controller/
-
cd ../DMA-230_MicroDMA_Controller/
-
tar -xf PL230-r0p0-02rel2-1.tar.gz
-
tar -xf PL230-r0p0-02rel2-1.tar.gz
# move to fpga_imp directory and run the fpga build script for pynq z2
# move to fpga_imp directory and run the fpga build script for pynq z2
-
cd ../../nanosoc/system
s/mcu
/fpga_imp/
-
cd ../../nanosoc/system/fpga_imp/
-
if source ./build_fpga_pynq_zcu104.scr; then echo "Vivado Finished"; fi
-
if source ./build_fpga_pynq_zcu104.scr; then echo "Vivado Finished"; fi
-
FILE=./pynq_export/pz104/pynq/overlays/soclabs/design_1.bit
-
FILE=./pynq_export/pz104/pynq/overlays/soclabs/design_1.bit
-
if test -f "$FILE"; then
-
if test -f "$FILE"; then
...
@@ -82,9 +82,9 @@ build-job-ZCU104: # This job runs in the build stage, which runs first.
...
@@ -82,9 +82,9 @@ build-job-ZCU104: # This job runs in the build stage, which runs first.
artifacts
:
artifacts
:
paths
:
paths
:
# Keep the generated bit and hwh file from fpga build script
# Keep the generated bit and hwh file from fpga build script
-
./system
s/mcu
/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.bit
-
./system/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.bit
-
./system
s/mcu
/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.hwh
-
./system/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.hwh
-
./system
s/mcu
/fpga_imp/CI_verification/load_bitfile.py
-
./system/fpga_imp/CI_verification/load_bitfile.py
tags
:
tags
:
-
VLAB-ZCU
-
VLAB-ZCU
...
@@ -95,9 +95,9 @@ deploy-job-Z2: # This job runs in the deploy stage.
...
@@ -95,9 +95,9 @@ deploy-job-Z2: # This job runs in the deploy stage.
-
echo "Deploying application to Z2"
-
echo "Deploying application to Z2"
# use smbclient to transfer accross the bit, hwh and python script files to the z2 xilinx board
# use smbclient to transfer accross the bit, hwh and python script files to the z2 xilinx board
# could probably set this up as scp with RSA keys in future
# could probably set this up as scp with RSA keys in future
-
smbclient //192.168.2.99/xilinx -m SMB3 -U xilinx%xilinx -c 'cd ./pynq/overlays/soclabs/ ; put ./system
s/mcu
/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.bit ./design_1.bit'
-
smbclient //192.168.2.99/xilinx -m SMB3 -U xilinx%xilinx -c 'cd ./pynq/overlays/soclabs/ ; put ./system/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.bit ./design_1.bit'
-
smbclient //192.168.2.99/xilinx -m SMB3 -U xilinx%xilinx -c 'cd ./pynq/overlays/soclabs/ ; put ./system
s/mcu
/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.hwh ./design_1.hwh'
-
smbclient //192.168.2.99/xilinx -m SMB3 -U xilinx%xilinx -c 'cd ./pynq/overlays/soclabs/ ; put ./system/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.hwh ./design_1.hwh'
-
cd ./system
s/mcu
/fpga_imp/CI_verification
-
cd ./system/fpga_imp/CI_verification
-
smbclient //192.168.2.99/xilinx -m SMB3 -U xilinx%xilinx -c 'put ./load_bitfile.py ./load_bitfile.py'
-
smbclient //192.168.2.99/xilinx -m SMB3 -U xilinx%xilinx -c 'put ./load_bitfile.py ./load_bitfile.py'
# get root access on host machine, this was found to be needed because other screen would not work
# get root access on host machine, this was found to be needed because other screen would not work
# however a more elegant solution would be better
# however a more elegant solution would be better
...
@@ -148,11 +148,11 @@ deploy-job-ZCU104: # This job runs in the deploy stage.
...
@@ -148,11 +148,11 @@ deploy-job-ZCU104: # This job runs in the deploy stage.
-
screen -r zynq -X stuff "./ZCU104_connect.sh \n"
-
screen -r zynq -X stuff "./ZCU104_connect.sh \n"
-
sleep
10
-
sleep
10
# use scp to copy over bit files and python script
# use scp to copy over bit files and python script
-
screen -r zynq -X stuff "scp -i ~/.ssh/id_rsa dwn1c21@soclabs.soton.ac.uk:~/builds/wzndG1mA/0/soclabs/nanosoc/system
s/mcu
/fpga_imp/CI_verification/load_bitfile.py ./ \n"
-
screen -r zynq -X stuff "scp -i ~/.ssh/id_rsa dwn1c21@soclabs.soton.ac.uk:~/builds/wzndG1mA/0/soclabs/nanosoc/system/fpga_imp/CI_verification/load_bitfile.py ./ \n"
-
sleep
2
-
sleep
2
-
screen -r zynq -X stuff "scp -i ~/.ssh/id_rsa dwn1c21@soclabs.soton.ac.uk:~/builds/wzndG1mA/0/soclabs/nanosoc/system
s/mcu
/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.bit ./pynq/overlays/soclabs/design_1.bit \n"
-
screen -r zynq -X stuff "scp -i ~/.ssh/id_rsa dwn1c21@soclabs.soton.ac.uk:~/builds/wzndG1mA/0/soclabs/nanosoc/system/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.bit ./pynq/overlays/soclabs/design_1.bit \n"
-
sleep
2
-
sleep
2
-
screen -r zynq -X stuff "scp -i ~/.ssh/id_rsa dwn1c21@soclabs.soton.ac.uk:~/builds/wzndG1mA/0/soclabs/nanosoc/system
s/mcu
/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.hwh ./pynq/overlays/soclabs/design_1.hwh \n"
-
screen -r zynq -X stuff "scp -i ~/.ssh/id_rsa dwn1c21@soclabs.soton.ac.uk:~/builds/wzndG1mA/0/soclabs/nanosoc/system/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.hwh ./pynq/overlays/soclabs/design_1.hwh \n"
-
sleep
2
-
sleep
2
# Need root access to load the overlay onto the FPGA
# Need root access to load the overlay onto the FPGA
-
screen -r zynq -X stuff "sudo su\n"
-
screen -r zynq -X stuff "sudo su\n"
...
...
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