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.