Skip to content
Snippets Groups Projects
Commit 77ce3e16 authored by dam1n19's avatar dam1n19
Browse files

SOC1-167: Updated CI Script to reflect refactoring changes

parent 7709570c
No related branches found
No related tags found
No related merge requests found
...@@ -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/systems/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
- ./systems/mcu/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.bit - ./system/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.bit
- ./systems/mcu/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.hwh - ./system/fpga_imp/pynq_export/pz2/pynq/overlays/soclabs/design_1.hwh
- ./systems/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/systems/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
- ./systems/mcu/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.bit - ./system/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.bit
- ./systems/mcu/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.hwh - ./system/fpga_imp/pynq_export/pz104/pynq/overlays/soclabs/design_1.hwh
- ./systems/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 ./systems/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 ./systems/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 ./systems/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/systems/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/systems/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/systems/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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment