cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xil_tour
Explorer
Explorer
1,446 Views
Registered: ‎06-14-2018

How to setup SDx for Amazon F1 ?

Hi,

 

I have a working installation of SDx.

I would like to use it to develop an Amazon F1 application, so I have some questions:

 

1- Which PCIe card(s) are available in F1 ?

 

2- What are the files needed for each of these cards ?

 

3- How do I install those files in SDx ?

 

Any help will be appreciated !

 

 

0 Kudos
4 Replies
anatoli
Moderator
Moderator
1,410 Views
Registered: ‎06-14-2010

Hello @xil_tour,

 

Please post this topic on the Amazon Discussion Forums using this link:

 

https://forums.aws.amazon.com/forum.jspa?forumID=243&start=0

 

Thanks in advance and have a nice day.

Kind Regards,
Anatoli Curran,
Xilinx Technical Support
------------------------------------------------------------------------------------------------

Don’t forget to reply, kudo, and accept as solution.

If starting with Versal, take a look at our Versal Design Process Hub and our
Versal Blogs

------------------------------------------------------------------------------------------------
0 Kudos
xil_tour
Explorer
Explorer
1,375 Views
Registered: ‎06-14-2018

xil_tour
Explorer
Explorer
1,346 Views
Registered: ‎06-14-2018

Here's a copy of my AWS forum post where I detail the solution:

 

As the https://github.com/aws/aws-fpga.git stuff simply and amazingly _doesn't work as is_, here's the procedure to make it run smoothly:


git clone https://github.com/aws/aws-fpga.git
cd aws-fpga/



vim ./sdk/userspace/fpga_libs/fpga_pci/fpga_pci.c


Line 214, change this:

char wc_suffix[3] = "\0";
        if (map->resource_burstable[bar_id] && write_combining) {
                strncpy(wc_suffix, "_wc", sizeof(wc_suffix));
        }


Into this:

 char wc_suffix[4] = "\0\0\0\0";
        if (map->resource_burstable[bar_id] && write_combining) {
                strncpy(wc_suffix, "_wc", 4);
        }


Next:

vim ./SDAccel/tools/awssak2/Makefile


Line 53, add -lpthread like this:

LDFLAGS += -L$(AWS_FPGA_MGMTLIB_DIR) -lpthread


Next:

vim ./sdk/linux_kernel_drivers/xocl/xocl_bo.c


Lines 36 and 54, change

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0) ||    \
    (defined(RHEL_RELEASE_CODE) && \
    RHEL_RELEASE_CODE >=RHEL_RELEASE_VERSION(7,5)))


into

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0))


Next:

vim ./sdk/linux_kernel_drivers/xocl/xocl_drv.c


Do the same previous change at lines 315 and 587

Run

source sdaccel_setup.sh


You can safely ignore the

WARNING:  ocl-icd not installed - please run: sudo yum install ocl-icd
...



warnings, it seems the script was made to be compatible only with redhat/centos/stupiddistro/fedora alikes.

I has to be noted that SDx/SDAccel op (on premise) doesn't come with any platform, the the next move is to copy:

./SDAccel/aws_platform/xilinx_aws-vu9p-f1_dynamic_5_0/



into (create the platforms folder if not present):

./Xilinx/SDx/2017.4.op/platforms/



Hope this will help.


 

0 Kudos
sinatv52
Observer
Observer
812 Views
Registered: ‎09-09-2018

NOT working with 2018.3 version

0 Kudos