3.5.5. Installing the Required Kernel Version for Ubuntu v24.04 - 2026-01-07

Multi Channel DMA IP for PCI Express* Design Example User Guide

Version
25.3.1
Ubuntu 24.04.2 runs on kernel v6.8 while the supported kernel version is up to v6.6. If the current kernel version is not v6.6 (can be checked with the uname -r command), then follow the steps below to install kernel v6.6.
  1. Get the following files from https://kernel.ubuntu.com/mainline/v6.6.65/ and copy them into the /root directory.
    • linux-headers-6.6.65-060665-generic_6.6.65-060665.202412111549_amd64.deb
    • linux-headers-6.6.65-060665_6.6.65-060665.202412111549_all.deb
    • linux-image-unsigned-6.6.65-060665-generic_6.6.65-060665.202412111549_amd64.deb
    • linux-modules-6.6.65-060665-generic_6.6.65-060665.202412111549_amd64.deb
  2. Run the following command to install the kernel package.

    $ sudo dpkg -i linux-*.deb

  3. Run the following commands to update the bootloader and reboot the machine to load the new kernel version.

    $ sudo update-grub

    $ sudo reboot

  4. If the system does not boot up Ubuntu with kernel v6.6.65, set the GRUB_DEFAULT as shown below in /etc/default/grub:

    GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 6.6.65-060665-generic"

  5. Update the bootloader and reboot by running the following commands:

    $ sudo update-grub

    $ sudo reboot

  6. Run the following commands to check the kernel version:

    $ sudo uname -r

    Expected output: 6.6.65-060665-generic

  7. Check the gcc version using the command below:

    $ gcc --version

  8. If the gcc version is not installed, gcc-13 can be installed using these commands:

    $ sudo apt-get update

    $ sudo apt install gcc-13

  9. To switch between the installed gcc versions, use the update-alternatives tool and select gcc-13.

    $ sudo update-alternatives --config gcc