3 build, 4 simple executive applications, Build – Kontron AM4211 User Manual
Page 70: Simple executive applications
55
www.kontron.com
5 Copy watchdog
# cp watchdog-5.8.tar.gz [OCTEON_SDK]/linux/embedded_rootfs/storage
5.6.3
Build
1 Go to OCTEON SDK directory and configure the SDK environment :
# source env-setup OCTEON_CN66XX_PASS1_2
2 Set the build subversion, here is an example :
# export U_BOOT_BUILD_NUMBER_STR="-KCI 0.34"
# export KONTRON_CONFIG_LOCAL_VERSION=-0.34
3 Build U-boot binary
# cd [OCTEON_SDK]/bootloader/u-boot
# make kontron_t5519_config
# make
The generated file is [OCTEON_SDK]/bootloader/uboot/u-boot-kontron_t5519.bin
4 Build linux kernel and root file system :
# cd [OCTEON_SDK]/linux
# make kernel
# make strip
The generated file is [OCTEON_SDK]/linux/kernel2.6/linux/vmlinux.64
Please refer to the online documentation provided with the Cavium Networks SDK for more detail.
5.6.4
Simple executive applications
Building simple executive applications requires the availability of the Cavium Networks SDK which must be
obtained from Cavium Networks directly. 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 previous section for the procedure to install the SDK.
•Build the ‘passthrough’ sample application
#
make –C examples/passthrough