Help: fpga-clear-local-image not found

0

I am following the HDK getting started guide, in particular I am trying to execute the " https://github.com/aws/aws-fpga/blob/master/hdk/README.md#how-to-create-an-amazon-fpga-image-afi-from-one-of-the-cl-examples-step-by-step-guide" for the hello world example.

I have successfully executed the first part - building the custom logic and publishing my new AFI. I have obtained the AFI ID and the AGFI ID. I have confirmed by executing aws ec2 describe-fpga-images my AFI is available and I have verified it is in the bucket.

The second part of the guide is about "how to load and test a registered AFI from withing an F1 instance".

I have created an f1.2xlarge instance using the Centos FPGA Developer AMI. The welcome message is

> login as: centos  
> Authenticating with public key "imported-openssh-key"  
> Last login: Thu Feb 25 15:40:14 2021 from 72-21-196-65.amazon.com  
>   ___ ___  ___   _     ___  _____   __    _   __  __ ___  
>  | __| _ \/ __| /_\   |   \| __\ \ / /   /_\ |  \/  |_ _|  
>  | _||  _/ (_ |/ _ \  | |) | _| \ V /   / _ \| |\/| || |  
>  |_| |_|  \___/_/ \_\ |___/|___| \_/   /_/ \_\_|  |_|___|  
>  AMI Version:        1.10.0  
>  Xilinx Version:     2020.2  
>  Readme:             /home/centos/src/README.md  
>  AMI Release Notes:  /home/centos/src/RELEASE_NOTES.md  
>  GUI/Cluster setup:  https://github.com/aws/aws-fpga/blob/master/developer_resources  
>  Developer Support:  https://github.com/aws/aws-fpga/blob/master/README.md#developer-    support  
>  Centos Common code: /srv/git/centos-git-common  
>  Xilinx XRT source:  https://github.com/Xilinx/XRT  

Now, the instructions read:

> git clone https://github.com/aws/aws-fpga.git $AWS_FPGA_REPO_DIR  
> cd $AWS_FPGA_REPO_DIR  
> source sdk_setup.sh  

(small aside: it would be best IMHO to provide the snipped with the definition of $AWS_FPGA_REPO_DIR again; the wording instructs to launch a new VM so I think definition cannot be assumed).

So far everything look ok.

I also ran aws configure as instructed.

OK.

Next step would be sudo fpga-clear-local-image -S 0

This is what happens in reality:

> \[centos@fpgadevc aws-fpga] sudo fpga-clear-local-image -S 0  
> sudo: fpga-clear-local-image: command not found  

Related FPGA commands don't seem to work either. I don't really know where to find them but I was more focused in going by the book for now. I have tried to understand why those commands don't work and I am so far out of clues. What did I miss?

Edited by: MaxDZ8 on Jul 4, 2021 9:02 AM - fix some layout

Edited by: fixed more formatting woes.

MaxDZ8
gefragt vor 3 Jahren293 Aufrufe
2 Antworten
0

Dear customer

Thank you for contacting AWS. Can you please verify if you re-ran source sdk_setup.sh on your F1 instance before running the calls to FPGA specific functions.

Thanks

AWS
beantwortet vor 3 Jahren
0

Hello thank you for helping.
I connected and ran:

> cd src/project_data/aws-fpga  
> source sdk_setup.sh  

Then

> \[centos@ip-172-31-41-160 ~]$ sudo fpga-describe-local-image-slots  
> AFIDEVICE    0       0x1d0f      0xf010      0000:00:1d.0  

Wow! It works! Thank you!

What did it go wrong? Maybe I forgot to call the script?

I have looked at the bash history and it indeed was there (???) well, I'll just move on. Kudos!

MaxDZ8
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen