AWS AWSEC2 documentation change
Summary
Updated AMD driver installation instructions with kernel version changes (4.14→5.4 for AL2), added Ubuntu 20.04/22.04/24.04 support, restructured installation steps, and modified package installation commands
Security assessment
Changes focus on updating supported kernel versions, OS distributions, and installation procedures. No mention of vulnerabilities, CVEs, or security patches. Modifications appear to be routine documentation updates for compatibility and process clarity.
Diff
diff --git a/AWSEC2/latest/UserGuide/install-amd-driver.md b/AWSEC2/latest/UserGuide/install-amd-driver.md index 4c5ae34e0..99f2b0944 100644 --- a//AWSEC2/latest/UserGuide/install-amd-driver.md +++ b//AWSEC2/latest/UserGuide/install-amd-driver.md @@ -53 +53 @@ If you aren't using an AMI with the AMD driver installed, you can download the A - * Amazon Linux 2 with kernel version 4.14 + * Amazon Linux 2 with kernel version 5.4 @@ -55 +55 @@ If you aren't using an AMI with the AMD driver installed, you can download the A -###### Note + * Ubuntu 20.04 @@ -57 +57,3 @@ If you aren't using an AMI with the AMD driver installed, you can download the A -AMD driver version **amdgpu-pro-20.20-1184451** and newer driver releases require kernel version 5.15 or higher. + * Ubuntu 22.04 + + * Ubuntu 24.04 @@ -78 +80 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - 3. Install **gcc** and **make** , if they are not already installed. + 3. Install kernel 5.4 @@ -80 +82,5 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - $ sudo yum install gcc make + $ sudo amazon-linux-extras disable kernel-5.10 + $ sudo amazon-linux-extras enable kernel-5.4 + $ sudo yum install -y kernel + + 4. Install **gcc** and **make** , if they are not already installed. @@ -82 +88 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - 4. Update your package cache and get the package updates for your instance. + $ sudo yum install gcc make @@ -84 +90 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - * For Amazon Linux 2: + 5. Update your package cache and get the package updates for your instance. @@ -89 +95,3 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - * For Ubuntu 22.04: + 6. Reboot the instance. + + $ sudo reboot @@ -91,3 +99 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - $ wget https://repo.radeon.com/.preview/a0e4ef1dffbc95b4abb54e891f265e61/amdgpu-install/5.5.02.05.2/ubuntu/jammy/amdgpu-install_5.5.02.05.50502-1_all.deb - $ sudo apt install ./amdgpu-install_5.5.02.05.50502-1_all.deb - $ sudo sed -i 's#repo.radeon.com#&/.preview/a0e4ef1dffbc95b4abb54e891f265e61#' /etc/apt/sources.list.d/{amdgpu.list,rocm.list,amdgpu-proprietary.list} + 7. Reconnect to the instance after it reboots. @@ -95 +101 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - * For other Ubuntu versions: + 8. Download the latest AMD driver. @@ -97,2 +103 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - $ sudo dpkg --add-architecture i386 - $ sudo apt-get update -y && sudo apt upgrade -y + $ aws s3 cp --recursive s3://ec2-amd-linux-drivers/latest/ . @@ -100 +105 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - * For CentOS: + 9. Extract the file. @@ -102,2 +107 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - $ sudo yum install epel-release -y - $ sudo yum update -y + $ tar -xf amdgpu-pro-*rhel*.tar.xz @@ -105 +109 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - 5. Reboot the instance. + 10. Change to the folder for the extracted driver. @@ -107 +111 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - $ sudo reboot + 11. Run the self install script to install the full graphics stack. @@ -109 +113,3 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - 6. Reconnect to the instance after it reboots. + $ ./amdgpu-pro-install -y --opencl=pal,legacy + + 12. Reboot the instance. @@ -111 +117 @@ Your user or role must have the permissions granted that contains the **AmazonS3 - 7. Download the latest AMD driver. + $ sudo reboot @@ -113 +119 @@ Your user or role must have the permissions granted that contains the **AmazonS3 -###### Note + 13. Confirm that the driver is functional. @@ -115 +121 @@ Your user or role must have the permissions granted that contains the **AmazonS3 -Skip this step for Ubuntu 22.04. + $ sudo dmesg | grep amdgpu @@ -117 +123 @@ Skip this step for Ubuntu 22.04. - $ aws s3 cp --recursive s3://ec2-amd-linux-drivers/latest/ . +The response should look like the following: @@ -119 +125 @@ Skip this step for Ubuntu 22.04. - 8. Extract the file. + Initialized amdgpu @@ -121 +126,0 @@ Skip this step for Ubuntu 22.04. - * For Amazon Linux 2 and CentOS: @@ -123 +127,0 @@ Skip this step for Ubuntu 22.04. - $ tar -xf amdgpu-pro-*rhel*.tar.xz @@ -125 +128,0 @@ Skip this step for Ubuntu 22.04. - * For Ubuntu: @@ -127 +130 @@ Skip this step for Ubuntu 22.04. -###### Note + 1. Connect to your Linux instance. @@ -129 +132 @@ Skip this step for Ubuntu 22.04. -Skip this step for Ubuntu 22.04. + 2. Update your package cache and get the package updates for your instance. @@ -131 +134 @@ Skip this step for Ubuntu 22.04. - $ tar -xf amdgpu-pro*ubuntu*.xz + $ sudo apt-get update --fix-missing && sudo apt-get upgrade -y @@ -133 +136 @@ Skip this step for Ubuntu 22.04. - 9. Change to the folder for the extracted driver. + 3. Install **gcc** and **make** , if they are not already installed. @@ -135 +138 @@ Skip this step for Ubuntu 22.04. - 10. Add the missing modules for the driver installation. + $ sudo apt install build-essential -y @@ -137 +140 @@ Skip this step for Ubuntu 22.04. - * For Amazon Linux 2 and CentOS: + 4. Install Linux firmware and kernel modules @@ -139 +142 @@ Skip this step for Ubuntu 22.04. -Skip this step. + $ sudo apt install linux-firmware linux-modules-extra-aws -y @@ -141 +144 @@ Skip this step. - * For Ubuntu: + 5. Reboot instance @@ -143 +146 @@ Skip this step. -###### Note + $ sudo reboot @@ -145 +148 @@ Skip this step. -Skip this step for Ubuntu 22.04. + 6. Reconnect to the instance after it reboots. @@ -147 +150 @@ Skip this step for Ubuntu 22.04. - $ sudo apt install linux-modules-extra-$(uname -r) -y + 7. Install the AMD Linux driver package @@ -148,0 +152 @@ Skip this step for Ubuntu 22.04. + * For Ubuntu 20.04: @@ -150 +154,3 @@ Skip this step for Ubuntu 22.04. - 11. Run the self install script to install the full graphics stack. + $ wget https://repo.radeon.com/.preview/afe3e25b8f1beff0bb312e27924d63b5/amdgpu-install/5.4.02.01/ubuntu/focal/amdgpu-install_5.4.02.01.50402-1_all.deb + $ sudo dpkg --add-architecture i386 + $ sudo apt install ./amdgpu-install_5.4.02.01.50402-1_all.deb @@ -152 +158 @@ Skip this step for Ubuntu 22.04. - * For Ubuntu 22.04: + * For later Ubuntu versions go to [Linux® Drivers for AMD Radeon™ Graphics](https://www.amd.com/en/support/download/linux-drivers.html) and download download the latest Ubuntu package and install it. @@ -154 +160 @@ Skip this step for Ubuntu 22.04. - $ sudo amdgpu-install --usecase=workstation --vulkan=pro --opencl=rocr,legacy -y + $ sudo apt install ./amdgpu-install_{version-you-downloaded}.deb @@ -156 +162 @@ Skip this step for Ubuntu 22.04. - * For Amazon Linux 2 and CentOS and other Ubuntu versions: + 8. Run the self install script to install the full graphics stack. @@ -158 +164 @@ Skip this step for Ubuntu 22.04. - $ ./amdgpu-pro-install -y --opencl=pal,legacy + $ amdgpu-install --usecase=workstation --vulkan=pro -y @@ -160 +166 @@ Skip this step for Ubuntu 22.04. - 12. Reboot the instance. + 9. Reboot the instance. @@ -164 +170 @@ Skip this step for Ubuntu 22.04. - 13. Confirm that the driver is functional. + 10. Confirm that the driver is functional. @@ -166 +172 @@ Skip this step for Ubuntu 22.04. - $ dmesg | grep amdgpu + $ sudo dmesg | grep amdgpu