This knowledge base has moved to the documentation site. Please visit the knowledge base here for the most up to date content. This site is no longer maintained.

How to Build a Cumulus Linux Kernel Source Tree



Cumulus Linux does not currently ship with kernel source, which I need for development purposes. How can I build a kernel source tree that contains Cumulus Linux patches?


Tarballs of Cumulus Linux kernel patches are hosted on The following example recipe builds a kernel source tree for Cumulus Linux 1.5.2 using This recipe was developed on a switch running Cumulus Linux 1.5.2, but it should be adaptable to any Debian Wheezy based installation.

The recipe is also available in the attached file in case you want to script the process. 

  1. Prepare the extraction directory, then get and extract the Debian sources. 
    mkdir cumulus
    cd cumulus
    tar xvf CumulusLinux-$CL_VERSION.tar.gz
  2. Examine the installation instructions.
    cat patches/README
  3. Install the required developer tools from the Cumulus repository.
    apt-get install dpkg-dev gcc
  4. Allow access to the Debian repositories.
    cat << EOF >> /etc/apt/sources.list 
    ## upstream start
    deb wheezy main non-free
    deb-src wheezy main non-free
    deb wheezy/updates main
    deb-src wheezy/updates main
    ## upstream end
  5. Install the developer tools from the Debian and Debian kernel source.
    apt-get update
    apt-get install quilt
    apt-get source linux=3.2.46-1+deb7u1
  6. Remove access to the Debian repositories.
    sed -i '/upstream start/,/ustream end/d' /etc/apt/sources.list
  7. Apply Cumulus Linux patches.
    cd linux-3.2.46/
    ../scripts/apply-patch-series ../patches/kernel/series .


This support portal has moved

Cumulus Networks is now part of the NVIDIA Networking Business Unit! The NVIDIA Cumulus Global Support Services (GSS) team has merged its operations with the NVIDIA Mellanox support services team.

You can access NVIDIA Cumulus support content from the Mellanox support portal.

You open and update new cases on the Mellanox support portal. Any previous cases that have been closed have been migrated to the Mellanox support portal.

Cases that are still open on the Cumulus portal will continue to be managed on the Cumulus portal. Once these cases close, they will be moved to the Mellanox support portal.

Powered by Zendesk