Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VP FPGA Error: "modprobe: ERROR: could not insert 'edma_drv': Exec format error" #61

Open
Hassan313 opened this issue May 18, 2020 · 14 comments

Comments

@Hassan313
Copy link

Hassan313 commented May 18, 2020

I am following steps of 3.4.2 Setup AWS SDK and edma driver of the below link:

http://nvdla.org/vp_fpga.html

I get the below error:

[centos@ip-172-31-68-107 edma]$ sudo modprobe edma-drv
modprobe: ERROR: could not insert 'edma_drv': Exec format error

If I run the below command, the error goes away:

sudo rmmod xocl

Is the above command the right thing to do? Anybody can help me?

Thank you.

@taog2018
Copy link

I'v already created a new AWS instance(based on AMI - ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20180308 (ami-38708b45)) to flush the flow. I do not meet such a issue. Please make sure you have already installed AWS SDK and move the driver to the right place.

@taog2018
Copy link

What's more, we need to make sure we are using the right AMI and AWS instance
Choose an Amazon Machine Image (AMI): we recommend the “nvdla_vp_fpga_ami_ubuntu”

Choose an instance type: we recommend the “f1.2xlarge”.

@Hassan313
Copy link
Author

Hassan313 commented May 19, 2020

I'v already created a new AWS instance(based on AMI - ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20180308 (ami-38708b45)) to flush the flow. I do not meet such a issue. Please make sure you have already installed AWS SDK and move the driver to the right place.

I am using the other AMI recommendation which the http://nvdla.org/vp_fpga.html has stated:

FPGA Developer AMI” (CentOS)

image

You are saying the SDK will not be installed properly on this type?

@Hassan313
Copy link
Author

I'v already created a new AWS instance(based on AMI - ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20180308 (ami-38708b45)) to flush the flow. I do not meet such a issue. Please make sure you have already installed AWS SDK and move the driver to the right place.

I followed the instructions stated all in the below image one by one:

image

Should I do something else to make the SDK to be installed?

@taog2018
Copy link

Not sure, I do not tried this AMI.

@Hassan313
Copy link
Author

Not sure, I do not tried this AMI.

Sure, I will go with the same instance as you said shortly (in an hour).

Thank you very much.

@taog2018
Copy link

I'v already created a new AWS instance(based on AMI - ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20180308 (ami-38708b45)) to flush the flow. I do not meet such a issue. Please make sure you have already installed AWS SDK and move the driver to the right place.

I followed the instructions stated all in the below image one by one:

image

Should I do something else to make the SDK to be installed?
Make sure You have follow below to install aws-fpga sdk
https://github.com/aws/aws-fpga/tree/master/sdk

@Hassan313
Copy link
Author

Hassan313 commented May 19, 2020

I'v already created a new AWS instance(based on AMI - ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20180308 (ami-38708b45)) to flush the flow. I do not meet such a issue. Please make sure you have already installed AWS SDK and move the driver to the right place.

I followed the instructions stated all in the below image one by one:
image
Should I do something else to make the SDK to be installed?
Make sure You have follow below to install aws-fpga sdk
https://github.com/aws/aws-fpga/tree/master/sdk

@taog2018

So I should not checkout the version v1.4.0 of the aws-fpga? Because in the below image it is saying that we have to go with version 1.4.0.

image

@taog2018
Copy link

I'v already created a new AWS instance(based on AMI - ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20180308 (ami-38708b45)) to flush the flow. I do not meet such a issue. Please make sure you have already installed AWS SDK and move the driver to the right place.

I followed the instructions stated all in the below image one by one:
image
Should I do something else to make the SDK to be installed?
Make sure You have follow below to install aws-fpga sdk
https://github.com/aws/aws-fpga/tree/master/sdk

@taog2018

So I should not checkout the version v1.4.0 of the aws-fpga? Because in the below image it is saying that we have to go with version 1.4.0.

image

Yes, we need v1.4.0

@Hassan313
Copy link
Author

I'v already created a new AWS instance(based on AMI - ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20180308 (ami-38708b45)) to flush the flow. I do not meet such a issue. Please make sure you have already installed AWS SDK and move the driver to the right place.

I followed the instructions stated all in the below image one by one:
image
Should I do something else to make the SDK to be installed?
Make sure You have follow below to install aws-fpga sdk
https://github.com/aws/aws-fpga/tree/master/sdk

@taog2018
So I should not checkout the version v1.4.0 of the aws-fpga? Because in the below image it is saying that we have to go with version 1.4.0.
image

Yes, we need v1.4.0

so there is nothing I have to follow from the below link;

https://github.com/aws/aws-fpga/tree/master/sdk

I have to follow the instructions in the below image:

image

Am I right?

@Hassan313
Copy link
Author

@taog2018

I just ran the command setup sdk_setup.sh

image

It is saying the below:

Build complete.

Root privileges are required to install. You may be asked for your password...
Executing as root...

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
AWS FPGA: Copying Amazon FPGA Image (AFI) Management Tools to /usr/local/bin
AWS FPGA: Installing shared library to /usr/local/lib
libfpga_mgmt.so.1 (libc6,x86-64) => /usr/local/lib/libfpga_mgmt.so.1
AWS FPGA: Done with Amazon FPGA Image (AFI) Management Tools install.
Done with SDK install.
INFO: sdk_setup.sh PASSED

Moreover, the lsmod | grep edma is not showing anything. It means I have to follow the next steps. Am I right?

@Hassan313
Copy link
Author

@taog2018 When I follow the next steps, I get the following error:

ubuntu@ip-172-31-69-50:~/aws-fpga/sdk/linux_kernel_drivers/edma$ echo 'edma' | sudo tee --append /etc/modules-load.d/edma.conf
tee: /etc/modules-load.d/edma.conf: No such file or directory
edma

@taog2018
Copy link

@taog2018 When I follow the next steps, I get the following error:

ubuntu@ip-172-31-69-50:~/aws-fpga/sdk/linux_kernel_drivers/edma$ echo 'edma' | sudo tee --append /etc/modules-load.d/edma.conf
tee: /etc/modules-load.d/edma.conf: No such file or directory
edma

Yes, you can create this path /etc/modules-load.d

@Hassan313
Copy link
Author

Dear @taog2018 ,

Thank you for your help. I was able to successfully do "make" and "make install". The VP is up now.

Thank you very much again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants