beautypg.com

Lanner AV-ICE02 User Manual

Page 22

background image

Software User Manual Version 1.0.1

19

Select

the Build Acceleration Sample Code installation option. This option

compiles the Acceleration Sample code for both user space and kernel space. It

also compiles the memory mapping driver used with the user space application.

You will be prompted for a directory location to build the package and the Build

Output Directory. Use the default value for the location to build the package. The

Build Output Directory parameter is ignored.

3. Proceed

to

signOfLife Tests next page for instructions on executing the tests.

To manually compile the acceleration sample code, do the following:

1. The following environment variables must be set to build the modules:

# export ICP_ROOT=/QAT

# export ICP_BUILDSYSTEM_PATH=$ICP_ROOT/quickassist/build_system

# export ICP_ENV_DIR=$ICP_ROOT/quickassist/build_system/build_files/env_files

If the intermediate modules are required, the following variables must also be set:

# export ICP_BUILD_OUTPUT=$ICP_ROOT/build

# export ICP_TOOLS_TARGET=accelcomp

2. The sample code is compiled with the default assumption that the kernel source

header files are located in one of the following directories;

64-bit: /usr/src/kernels/3.1.0-7.fc16.x86_64

32-bit: /usr/src/kernels/3.1.0-7.fc16.i686

3. If the kernel source header files are located in a different directory, create the

environment variable with the directory of desired target kernel sources. For
example:

# export KERNEL_SOURCE_ROOT=/usr/src/kernels/linux

4. You can compile for both Kernel space and User space at the same time using the

following commands:

# cd $ICP_ROOT/quickassist/lookaside/access_layer/src/sample_code

# make perf_all

The generated Linux kernel object and sample application are located at: