Building and Installing the Software
64
Getting Started Guide
Use the following commands to cross-compile each QAT1.x driver:
# export ICP_ROOT=<QATdir>
Note:
Where
<QATdir>
is
/QAT/QAT1.6
or
/QAT/QAT1.5
, depending on what hardware support
is required. If building with mux support, always use the QAT1.6 sample code.
# cd quickassist
# export
ICP_ENV_DIR=$ICP_ROOT/quickassist/build_system/build_files/env_files
#
export ICP_BUILDSYSTEM_PATH=$ICP_ROOT/quickassist/build_system
# export ICP_BUILD_OUTPUT=$ICP_ROOT/build
# export
ICP_TOOLS_TARGET=accelcomp
# export LD_LIBRARY_PATH=$ICP_ROOT/build
For i386 machines:
# make ICP_ARCH_USER=i386
For i686 machines:
# make ICP_ARCH_USER=i686
Next, go to the build folder and enter:
# cd ../build
# file *
Here’s a sample output for a non
-mux build (see
for file names in mux build
cases):
adf_ctl: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not
stripped
c2xxx_qa_dev0.conf:
ASCII English text
dh89xxcc_qa_dev0.conf: ASCII English text
dh89xxcc_qa_dev0_single_accel.conf: ASCII English text
dh89xxcc_qa_dev1.conf: ASCII English text
gige_watchdog_service: Bourne-Again shell script, ASCII text
executable
icp_gige_watchdog:
ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux
2.6.32, not
stripped
icp_qa_al.ko:
ELF 64-bit LSB relocatable, x86-64, version 1
(SYSV),
not stripped
libadf_proxy.a: current ar archive
libicp_qa_al.a: current ar archive
libicp_qa_al_s.so:
ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), dynamically linked, not stripped
libosal.a:
current ar archive
mmp_firmware.bin:
data
mmp_firmware_c2xxx.bin: data
mof_firmware.bin:
data
mof_firmware_c2xxx.bin: data
qat_service:
Bourne-Again shell script, ASCII text
executable
As you can see, the user files, adf_ctl and libicp_qa_al_s.so, are 32-bit files while icp_qa_al.ko is
a 64-bit file.