Both sides previous revisionPrevious revisionNext revision | Previous revision |
public:docs:2021:singularity_vivado [2021/08/15 01:09] – [실행하기] Junghwan Goh | public:docs:2021:singularity_vivado [2022/01/24 11:30] (current) – [주의점] Junwon Oh |
---|
====== Singularity를 이용해 vivado 설치하기 ====== | ====== Singularity를 이용해 vivado 설치하기 ====== |
<alert>이 문서는 2021년 8월 15일 작성되었습니다. ubuntu 18.04, vivado 2020.1버전 설치를 기준으로 합니다. </alert> | <alert>이 문서는 2021년 8월 15일 작성되었습니다. ubuntu 18.04, vivado 2020.1버전 설치를 기준으로 합니다. </alert> |
| <alert class="alert-danger">Xilinx 라이센스상 계정에 가입되어 있어야 설치 프로그램을 다운로드할 수 있습니다. 따라서 singularity 이미지 자체를 배포하는 것은 문제의 소지가 있습니다.</alert> |
<alert>Alveo U200 카드 활용을 위한 내용이 포함되어 있습니다.</alert> | <alert>Alveo U200 카드 활용을 위한 내용이 포함되어 있습니다.</alert> |
| |
아래 링크로 들어갑니다. | 아래 링크로 들어갑니다. |
* https://www.xilinx.com/products/boards-and-kits/alveo/u200.html#gettingStarted | * https://www.xilinx.com/products/boards-and-kits/alveo/u200.html#gettingStarted |
| {{ :public:docs:2021:singularity_vivado:untitled_1_.png?direct&600 |}} |
| |
아래쪽에서 Archive를 클릭하면, 과거 버전들이 보입니다. 여기에서 2020.1을 선택합니다. | 아래쪽에서 Archive를 클릭하면, 과거 버전들이 보입니다. 여기에서 2020.1을 선택합니다. |
| {{ :public:docs:2021:singularity_vivado:untitled_2_.png?direct&400 |}} |
| {{ :public:docs:2021:singularity_vivado:untitled_3_.png?direct&400 |}} |
| |
정리하면 아래와 같이 선택합니다. | 정리하면 아래와 같이 선택합니다. |
| {{ :public:docs:2021:singularity_vivado:untitled_4_.png?direct&400 |}} |
| |
아래쪽 다운로드 가능한 것들은 받아둡니다. | 아래쪽 다운로드 가능한 것들은 받아둡니다. |
| {{ :public:docs:2021:singularity_vivado:untitled_5_.png?direct&400 |}} |
| |
Vitis 2020.1 버전을 다운로드 받습니다. 아래쪽 링크 Donload Vitis Software 링크 사용하거나, 바로 아래 링크를 방문합니다. 들어가면 아래 화면과 같이 나타납니다. Version에서 2020.1을 선택해 들어갑니다. | Vitis 2020.1 버전을 다운로드 받습니다. 아래쪽 링크 Donload Vitis Software 링크 사용하거나, 바로 아래 링크를 방문합니다. 들어가면 아래 화면과 같이 나타납니다. Version에서 2020.1을 선택해 들어갑니다. |
[[https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vitis.html]] | [[https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vitis.html]] |
| {{ :public:docs:2021:singularity_vivado:untitled_6_.png?direct&600 |}} |
| |
스크롤해서 내려가서 Xilinx Unified Installer 2020.1: Linux Self Extracting Web Installer를 선택해 다운로드 받습니다. 아래쪽 링크를 이용해도 됩니다. | 스크롤해서 내려가서 Xilinx Unified Installer 2020.1: Linux Self Extracting Web Installer를 선택해 다운로드 받습니다. 아래쪽 링크를 이용해도 됩니다. |
| |
링크 들어가면 로그인 해야 합니다. | 링크 들어가면 로그인 해야 합니다. |
| {{ :public:docs:2021:singularity_vivado:untitled_7_.png?direct&200 |}} |
| |
로그인 하고 나면 주소 등의 정보를 자세히 적게 되어 있고, 경우에 따라서는 별도로 동의 버튼을 클릭해야 할 수 있습니다. | 로그인 하고 나면 주소 등의 정보를 자세히 적게 되어 있고, 경우에 따라서는 별도로 동의 버튼을 클릭해야 할 수 있습니다. |
| {{ :public:docs:2021:singularity_vivado:untitled_8_.png?direct&400 |}} |
| |
파일들을 준비했으면 한 디렉토리에 모아둡니다. 여기에서는 /store/sw/install/xilinx/2020.1 디렉토리를 준비해 넣었다고 합시다. | 파일들을 준비했으면 한 디렉토리에 모아둡니다. 여기에서는 /store/sw/install/xilinx/2020.1 디렉토리를 준비해 넣었다고 합시다. |
| |
===== Singularity로 이미지 만들기 ===== | ===== Singularity로 이미지 만들기 ===== |
vivado 설치 과정에서 graphic interface를 이용해 마우스를 클릭해가며 옵션을 선택하고 유저 로그인 정보를 다시 입력해야 하기 때문에, 일반적인 컨테이너 이미지를 만드는 과정과는 다르게 직접 조작해 가는 과정이 필요합니다. | vivado 설치 과정에서 graphic interface를 이용해 마우스를 클릭해가며 옵션을 선택하고 유저 로그인 정보를 다시 입력해야 하기 때문에, 일반적인 컨테이너 이미지를 만드는 과정과는 다르게 직접 조작해 가는 과정이 필요합니다. 여기에서는 **singularity sandbox이미지를 만들어 필요한 설치 작업을 완료한 뒤 sif파일로 다시 export** 하는 방법을 이용했습니다. |
| |
전체적으로 보면, | 전체적으로 보면, |
| |
<code> | <code> |
#** singularity run -w xilinx_2020.1.1_u200_ubuntu18.04** | # singularity run -w xilinx_2020.1.1_u200_ubuntu18.04 |
WARNING: Skipping mount /etc/localtime [binds]: /etc/localtime doesn't exist in container | WARNING: Skipping mount /etc/localtime [binds]: /etc/localtime doesn't exist in container |
source: open /store/sw/Xilinx/Vivado/2021.1/settings64.sh: no such file or directory | source: open /store/sw/Xilinx/Vivado/2021.1/settings64.sh: no such file or directory |
Singularity> **cd /install/** | Singularity> cd /install/ |
Singularity> **ls** | Singularity> ls |
Xilinx_Unified_2020.1_0602_1208_Lin64.bin xilinx-u200-xdma-201830.2-dev-2580015_18.04.deb | Xilinx_Unified_2020.1_0602_1208_Lin64.bin xilinx-u200-xdma-201830.2-dev-2580015_18.04.deb |
Xilinx_Vivado_Vitis_Update_2020.1.1_0805_2247.tar.gz xrt_202010.2.6.655_18.04-amd64-xrt.deb | Xilinx_Vivado_Vitis_Update_2020.1.1_0805_2247.tar.gz xrt_202010.2.6.655_18.04-amd64-xrt.deb |
xilinx-u200-xdma-201830.2-2580015_18.04.deb | xilinx-u200-xdma-201830.2-2580015_18.04.deb |
Singularity> .**/Xilinx_Unified_2020.1_0602_1208_Lin64.bin** | Singularity> ./Xilinx_Unified_2020.1_0602_1208_Lin64.bin |
Verifying archive integrity... All good. | Verifying archive integrity... All good. |
Uncompressing Xilinx Installer........................................................................................................... | Uncompressing Xilinx Installer........................................................................................................... |
</code> | </code> |
| |
오른쪽과 같은 창이 뜹니다. | | 오른쪽과 같은 창이 뜹니다. \\ 2020.2 버전이 새로 나왔다고 안내가 나오지만 여기에서는 선택하지 않고 continue를 눌러 다음 단계로 진행합니다. Next> 버튼을 눌러 다음으로 진행합니다. | {{:public:docs:2021:singularity_vivado:untitled_9_.png?direct|}} | |
| | 유저 인증이 필요합니다. \\ xilinx 홈페이지 아이디 (이메일주소)와 암호를 입력해 다음 단계로 진행합니다. | {{:public:docs:2021:singularity_vivado:untitled_10_.png?direct|}} | |
2020.2 버전이 새로 나왔다고 안내가 나오지만 여기에서는 선택하지 않고 continue를 눌러 다음 단계로 진행합니다. Next> 버튼을 눌러 다음으로 진행합니다. | | 동의하고 다음으로 진행.| {{:public:docs:2021:singularity_vivado:untitled_11_.png?direct|}} | |
| |
 | |
| |
유저 인증이 필요합니다. | |
| |
xilinx 홈페이지 아이디 (이메일주소)와 암호를 입력해 다음 단계로 진행합니다. | |
| |
 | |
| |
동의하고 다음으로 진행. | |
| |
 | |
| |
설치 옵션을 선택합니다. 여기에서는 vitis 전체를 설치하도록 했습니다. | 설치 옵션을 선택합니다. 여기에서는 vitis 전체를 설치하도록 했습니다. |
| | | {{:public:docs:2021:singularity_vivado:untitled_12_.png?direct|}} | {{:public:docs:2021:singularity_vivado:untitled_13_.png?direct|}} | |
| https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d4f18372-e165-4af0-8d18-0b2ccc864899/Untitled.png | https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c0ae2cf0-51e5-4d55-9254-6bf2c5fb1a0f/Untitled.png | | |
| |
설치 경로를 선택하고 Next> Install 버튼을 클릭해 설치를 시작합니다. | 설치 경로를 선택하고 Next> Install 버튼을 클릭해 설치를 시작합니다. |
| | | {{:public:docs:2021:singularity_vivado:untitled_14_.png?direct|}} | {{:public:docs:2021:singularity_vivado:untitled_15_.png?direct|}} | |
| https://s3-us-west-2.amazonaws.com/secure.notion-static.com/de3972f7-7407-4ec5-a0c1-f2031814f47e/Untitled.png | https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d403fbb6-3c01-4ff0-a462-bd380274b275/Untitled.png | | | | {{:public:docs:2021:singularity_vivado:untitled_16_.png?direct|}} | {{:public:docs:2021:singularity_vivado:untitled_17_.png?direct|}} | |
| https://s3-us-west-2.amazonaws.com/secure.notion-static.com/684eeffd-cc3d-4e9c-b29e-86cf6145eb0d/Untitled.png] | https://s3-us-west-2.amazonaws.com/secure.notion-static.com/68990f7e-e9c9-4444-af69-f2937c02e3e1/Untitled.png | | |
| |
설치까지 오랜 시간이 걸립니다. (10MB/s 기준 1시간 소요) | 설치까지 오랜 시간이 걸립니다. (10MB/s 기준 1시간 소요) |
| |
<code> | <code> |
Singularity> **cd /install** | Singularity> cd /install |
Singularity> **tar xzf Xilinx_Vivado_Vitis_Update_2020.1.1_0805_2247.tar.gz** | Singularity> tar xzf Xilinx_Vivado_Vitis_Update_2020.1.1_0805_2247.tar.gz |
Singularity> **ls -alh** | Singularity> ls -alh |
total 11G | total 11G |
drwxr-xr-x 3 root root 4.0K Jul 20 17:34 . | drwxr-xr-x 3 root root 4.0K Jul 20 17:34 . |
-rw-r--r-- 1 root root 541M Jul 20 16:59 xilinx-u200-xdma-201830.2-dev-2580015_18.04.deb | -rw-r--r-- 1 root root 541M Jul 20 16:59 xilinx-u200-xdma-201830.2-dev-2580015_18.04.deb |
-rw-r--r-- 1 root root 7.8M Jul 20 16:59 xrt_202010.2.6.655_18.04-amd64-xrt.deb | -rw-r--r-- 1 root root 7.8M Jul 20 16:59 xrt_202010.2.6.655_18.04-amd64-xrt.deb |
Singularity> **cd Xilinx_Vivado_Vitis_Update_2020.1.1_0805_2247** | Singularity> cd Xilinx_Vivado_Vitis_Update_2020.1.1_0805_2247 |
Singularity> **ls** | Singularity> ls |
bin data lib payload scripts tps xsetup xsetup.exe | bin data lib payload scripts tps xsetup xsetup.exe |
Singularity> **./xsetup** | Singularity> ./xsetup |
</code> | </code> |
| |
https://s3-us-west-2.amazonaws.com/secure.notion-static.com/91b339a6-b80c-43b3-b521-19e41f1901da/Untitled.png | | | {{:public:docs:2021:singularity_vivado:untitled_16_.png?direct|}} | {{:public:docs:2021:singularity_vivado:untitled_17_.png?direct|}} | |
| | | {{:public:docs:2021:singularity_vivado:untitled_18_.png?direct|}} | {{:public:docs:2021:singularity_vivado:untitled_19_.png?direct|}} | |
https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4247f916-11d2-499e-88bf-822a798b20ec/Untitled.png | |
| |
https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e88020cf-43a4-4bef-802d-76a05246954a/Untitled.png | |
| |
https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f8571db7-850a-4da9-add6-f64d9ce9252b/Untitled.png | |
| |
==== 4. 임시파일 정리하고 배포용 sif 이미지 만들기 ==== | ==== 4. 임시파일 정리하고 배포용 sif 이미지 만들기 ==== |
| |
<code> | <code> |
Singularity> **rm -rf /install** | Singularity> rm -rf /install |
Singularity> **exit** | Singularity> exit |
# **singularity build xilinx_2020.1.1_u200_ubuntu18.04.sif xilinx_2020.1.1_u200_ubuntu18.04** | # **singularity build xilinx_2020.1.1_u200_ubuntu18.04.sif xilinx_2020.1.1_u200_ubuntu18.04** |
INFO: Starting build... | INFO: Starting build... |
hw_server 나 hardware manager등을 이용해 장치를 연결하고 개발 환경을 구동할 수 있습니다. | hw_server 나 hardware manager등을 이용해 장치를 연결하고 개발 환경을 구동할 수 있습니다. |
| |
https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8b5ebe05-74f6-4df2-9739-0450370e8c63/Untitled.png | {{ :public:docs:2021:singularity_vivado:untitled_20_.png?direct&600 }} |
| |
===== 주의점 ===== | ===== 주의점 ===== |
start_gui | start_gui |
</code> | </code> |
| |
| * Singularity로 Alveo를 빌드할 때 문제점 |
| |
| - ho-oh서버에 Alveo U200의 License파일은 /opt/xilinx/dsa폴더 속에 존재한다. 하지만 singularity를 통해 작업환경을 구축할 경우, Alveo License파일이 존재하지 않아 빌드할 수 없다. |
| |
| * Vitis Serial Terminal에서의 Port 인식 문제 및 해결 |
| |
| - 일반 User권한으로 Vitis Serial Terminal에서 Alveo와 통신을 시도하면 권한에 의해 Port검색이 되지 않음. |
| |
| - root권한으로 Vitis를 실행하거나, /dev하위의 ttyUSB폴더에 일반 User권한 부여 |
| |
| * Singularity 파일 실행 시 Display Error |
| |
| - singularity run 실행 전 터미널에서 xhost + |
| |
| - singularity run 실행 후 터미널에서 xhost + 입력 후, xclock으로 디스플레이 확인 |
| |
| * 구 버전 Vivado Singularity파일 생성 시 주의점 (2018.x) |
| |
| - 최신 버전 Vivado(2020.x 이후 버전 확인)는 설정에서 Board File들의 위치를 지정해 줄 수 있지만, 구버전의 경우 설치 경로에 보드 파일이 존재해야함. (~/Xilinx/Vivado/2018.x/data/board/board_files) |
| |
| - Singularity build 전 위 경로에 미리 Borad Files(XilinxBoardStore)를 미리 넣어 놔야 함. |
| |
| |
===== 참고자료 ===== | ===== 참고자료 ===== |