Closed romange closed 3 years ago
Hi @romange ,
Please try the following steps to install the driver using the DKMS utility:
sudo apt-get install dkms
git clone git@github.com:amzn/amzn-drivers.git
sudo mv amzn-drivers /usr/src/amzn-drivers-2.5.0
create the file /usr/src/amzn-drivers-2.5.0/dkms.conf with the following content:
PACKAGE_NAME="ena"
PACKAGE_VERSION="1.0.0"
CLEAN="make -C kernel/linux/ena clean"
MAKE="make -C kernel/linux/ena/ BUILD_KERNEL=${kernelver}"
BUILT_MODULE_NAME[0]="ena"
BUILT_MODULE_LOCATION="kernel/linux/ena"
DEST_MODULE_LOCATION[0]="/updates"
DEST_MODULE_NAME[0]="ena"
AUTOINSTALL="yes"
sudo dkms add -m amzn-drivers -v 2.5.0
sudo dkms build -m amzn-drivers -v 2.5.0
sudo dkms install -m amzn-drivers -v 2.5.0
reboot the instance
Thanks, Arthur
Works, like a charm. Thanks a lot! Suggestions: add this recipe to ena README.
os: Ubuntu 21.04
I do all the steps as described in the documentation:
echo ena | sudo tee /etc/modules-load.d/ena.conf
sudo make -C /lib/modules/`uname -r`/build M=`pwd` modules_install
sudo depmod
and rebootI also had to add a signing key for step 2 to succeed:
After all these steps ena module has not been updated after the reboot.