Unable to Run hdk_setup script on AMI 1.5

0

Hi Amazon Team,

As requested in the previous thread:https://forums.aws.amazon.com/thread.jspa?messageID=887224&#887224

I am unable to source the hdk_setup script with maintaining the kernel version 3.10.0-862.11.6.el7.x86_64 and AMI version 1.5.

When sourcing the script i get this error:
NFO: Setting up environment variables
ERROR: Please install/enable Vivado.
ERROR: If you are using the FPGA Developer AMI then please request support.

Additional Info: Launching the vivado -mode batch command gives:
$ vivado -mode batch
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
/opt/Xilinx/Vivado/2018.2.op2258646/bin/loader: line 194: 2270 Aborted "$RDI_PROG" "$@"

Information:
Kernel version : 3.10.0-862.11.6.el7.x86_64
AMI version : 1.5.0
hdk version : HDK_VERSION=1.4.6

Please advise.

Thanks,

kl3van
質問済み 5年前214ビュー
2回答
0

Hi,

Here is what I see when I source hdk_setup.sh:

$ source hdk_setup.sh
INFO: Setting up environment variables
INFO: Changing AWS_FPGA_REPO_DIR from /home/centos/src/project_data/aws-fpga to /home/centos/aws-fpga
INFO: Base vivado version is Vivado v2018.2_AR71275_op (64-bit) ; Checking if patch AR71715 needs to be installed
INFO:  SDX patch AR71715 is valid for Vivado v2018.2_AR71275_op (64-bit)
INFO: Downloading the AR71715 patch.
INFO: Extracting the AR71715 patch.
Archive:  AR71715.zip
....
INFO: [Common 17-206] Exiting Vivado at Mon Jan 28 16:30:28 2019...
Copying files to /home/centos/aws-fpga/hdk/common/verif/models/ddr4_model
Copying files to /home/centos/aws-fpga/hdk/common/verif/models/ddr4_rdimm_wrapper
patching ddr4_rdimm_wrapper.sv file
patching ddr4_sdram_model_wrapper.sv file
patching interface.sv file
patching proj_package.sv file
patching ddr4_model.sv file
INFO: DDR4 model build passed.
INFO: ATTENTION: Don't forget to set the CL_DIR variable for the directory of your Custom Logic.
INFO: AWS HDK setup PASSED.

Vivado is installed here:

$ which vivado
/opt/Xilinx/Vivado/2018.2.op2258646/bin/vivado

Do you have enough disk space allocated for download of the developer kit? During hdk_setup, we download a DCP file and build memory models, therefore, you will need to have enough free disk?

What is the instance type and AWS region you are running in? I want to replicate exactly.

Thanks
Kris

AWS
回答済み 5年前
0

Hi Kris,

Thank you for your response, I used to source it while using the SSH connection and without installing the GUI packages and I think that's what caused my problem.

I excluded the kernel from YUM updates and done the rest manually while ignoring the broken packages and I was able to source the HDK setup script after connecting through RDP.

Thank you for your Response, I am sharing the steps so it may help others:

Freezing the Kernel update:

 sudo vi /etc/yum.conf

add or append the following line: exclude=kernel*

then Execute the following commands:

 sudo yum update
sudo yum groupinstall -y "Server with GUI" --skip-broken
sudo systemctl set-default graphical.target
sudo yum -y install epel-release
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum install -y xrdp tigervnc-server
sudo systemctl start xrdp
sudo systemctl enable xrdp
sudo systemctl disable firewalld
sudo systemctl stop firewalld

and then

 sudo reboot

Hope this helps other people.

Thanks again

kl3van
回答済み 5年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ