3 cavium linux bsp, 1 rebuilding the cavium linux bsp, Cavium linux bsp – Kontron AM4204 User Manual

Page 71

Advertising
background image

56

AM4204

www.kontron.com

5.3.3

Cavium Linux BSP

5.3.3.1

Rebuilding the Cavium Linux BSP

Cavium Networks provides a SDK that includes Linux kernel and root file system along with the necessary
toolchain, library and extensions for the Octeon CPUs. Kontron has added some patches for the SDK to
support the AM4204 AMC module properly. These patches are supplied with each software release and
areavailable for different versions of the SDK. Thus, the user can add his own extensions and rebuild the
Cavium Networks Linux for the AM4204 easily.

Prerequisites: Either the CNUSERS SDK or the Cavium Networks SDK from Cavium Networks must be installed.
The CNUSERS SDK allows rebuild of kernel and root file system, the Cavium Networks SDK has additional
support for simple executive application development.

The patches supplied in uniformed diff format. A “series” file specifies the names and order of the patch set.
The optional tool ‘quilt’ may be used to apply the patches. Thus it is recommended to install ‘quilt’ on the
build host. For additional information about quilt, see

http://savannah.nongnu.org/projects/quilt

.

Installation of the patches described below can be done with quilt with one single command.

However it is also possible to apply the patches one after another using the ‘patch’ tool. In addition the
‘fakeroot’ RPM must be installed. This is necessary to build the target root filesystem with proper root
permissions.

Rebuilding the Cavium Linux BSP for the AM4204 can be done with the following procedure:

• Install the SDK delivered from Cavium Networks

#

rpm --prefix /usr/local/cavium/ -iv OCTEON-SDK-1.8.1-294.i386.rpm

• Install the Linux package delivered from Cavium Networks

#

rpm --prefix /usr/local/cavium/sdk-1.8.1 -iv OCTEON-LINUX-1.8.1.i386.rpm

• Make a local copy of the SDK on your home directory

#

cp -rp /usr/local/cavium/sdk-1.8.1/OCTEON-SDK /home/<username>

• Unpack the patches provided by Kontron into your home directory

#

tar xzf am42xx-patches-OCTEON-SDK-1.8.1-GA-2.05.tar.gz -C OCTEON-SDK

• Apply the patches to your local copy of the Cavium Networks SDK

#

cd OCTEON-SDK

#

quilt push -a

Note:

In case the CNUSERS SDK is used, the user has to delete the ‘examples-passthrough’ entry from the
series file after unpacking the patches. Otherwise, applying the patches will break because the
examples directory will not be found.

Advertising