About Yocto
This document explains how Yocto 2.0 serves as the foundation for Cisco NX-OS Release 9.2(1). It details how Yocto facilitates the installation of additional applications by enabling users to download, build, and deploy custom software onto network switches.
Installing Yocto: A Step-by-Step Guide
The guide provides a practical, step-by-step procedure for setting up and utilizing Yocto 2.0. This is illustrated through an example of building and installing Ruby version 2.2.2 within an Ubuntu 16.04 virtual machine environment.
Key Installation Steps:
- Prerequisites: Install necessary packages on Ubuntu 16.04 using
apt-get
. - Download Yocto: Acquire the Yocto 2.0 release (e.g.,
poky-jethro-14.0.0.tar.bz2
) and extract its contents. - Environment Setup: Source the
oe-init-build-env
script to prepare the build environment. - Configuration: Modify the
conf/local.conf
file to define build parameters like machine type (e.g.,MACHINE = "genericx86-64"
). - Build Process: Execute the
bitbake
command to compile the target application, such as Ruby. - Deployment: Transfer the compiled RPM packages (e.g., Ruby, libyaml) to the switch's bootflash via SCP.
- Installation: Install the transferred RPMs onto the switch using commands like
yum install
.
The process involves executing various command-line instructions, including dependency checks and user confirmations.