5 simple executive applications, 6 using the nfs root fs, Simple executive applications – Kontron AM4204 User Manual

Page 77: Using the nfs root fs

Advertising
background image

62

AM4204

www.kontron.com

This will update flash image0 firmware to GA 2.05, but not MMC firmware and FRU data of the board. However,
after rebooting to image0, the update procedure is continued with all the steps described for the standard
update procedure and the new kex-flashimage tool installed in the previous step will also update MMC
firmware and FRU data.

• Activate image0 and reboot to WindRiver Linux prompt

#

ipmitool raw 0x3e 0x20 0 0

#

reboot

• Proceed with the update procedure as described in chapter 5.3.4.2.

5.3.5

Simple executive applications

Building simple executive applications requires the availability of the Cavium Networks SDK which must be
obtained from Cavium Networks directly. The CNUSERS SDK which can be downloaded at

http://www.cnuser.org

does not include support for SE application development.

The Cavium Networks SDK includes Octeon Executive Library as well as documentation and examples for
Octeon simple executive development. The Octeon Executive Library provides runtime support, hardware
abstraction, memory management, and synchronization routines for the Octeon processor. It is composed of
the libcvmx.a library as well as header files that provide a lot of functionality with inline functions. The
Executive is designed to provide an efficient environment for developing data plane code for Octeon. It
supports a single thread of execution per cnMIPS core.

Simple executive applications can be used without the support of an OS, however, memory TLBs for each core
must have been set up correctly before starting a SE. This is done by the bootloader ‘bootoct’ command which
is part of the Octeon u-boot port.

Please refer to the online documentation provided with the Cavium Networks SDK for more detail.

Refer to section 5.3.3.1 for the procedure to install the SDK.

• Build the ‘passthrough’ sample application

#

make –C examples/passthrough

5.3.6

Using the NFS Root FS

For development purposes, a NFS mounted root filesystem is often more convenient than a flash or ramdisk
based one. Changes can be applied quickly on the development host and tested on the target. Below the
setup necessary to use a NFS root file system is described.

Prerequisites: Development host with DHCP and TFTP protocols enabled and a NFS exported tree including
the root file system to mount.

• Rebuild the Cavium Linux or WindRiver Linux BSP including kernel and root filesystem as described

above

Advertising