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

Follow

Issue

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?

Resolution

Tarballs of Cumulus Linux kernel patches are hosted on oss.cumulusnetworks.com. The following example recipe builds a kernel source tree for Cumulus Linux 1.5.2 using oss.cumulusnetworks.com. 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 cumulus_kernel_source.sh file in case you want to script the process. 

  1. Prepare the extraction directory, then get and extract the Debian sources. 
    CL_VERSION=1.5.2
    mkdir cumulus
    cd cumulus
    wget http://oss.cumulusnetworks.com/CumulusLinux-$CL_VERSION.tar.gz
    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 http://ftp.us.debian.org/debian/ wheezy main non-free
    deb-src http://ftp.us.debian.org/debian/ wheezy main non-free
    deb http://security.debian.org/ wheezy/updates main
    deb-src http://security.debian.org/ wheezy/updates main
    ## upstream end
    EOF
  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 .

Comments

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