User guide
MOTOROLA MPC184/MPC185 Security Co-Processor Software User’s Guide 75
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Linux Environment
8 Linux Environment
Before starting with the drivers installation, refer to the Readme file included in the Linux package to
understand kernel building and board dependencies.
8.1 Installation
To install the software drivers, copy the source files into the build directory of choice.
8.2 Building the Interface Modules
Throughout the remainder of the installation instructions, the variable provided in Table 49 is used:
The following step is used to build drivers and test programs:
1. Run make in the /crypto directory by typing these command lines:
make SP=securityProcessor
(example: make SP=MPC184SP_8xx)
All of the components, which are the driver, the library, and the test application (testDrv.o), will be built.
In addition there is a makefile called des.mk for the user mode program which creates an executable named
testDes.
8.3 Integration
Once the modules are built, they may be integrated into the Linux kernel.
8.4 Distribution Archive
For this release, the distribution archive consists of the source files listed in this section. These are the same
files as VxWorks plus four additional files, pciLinux.h, RTLinux, mpc18xisr.c, and pciLinux.h.
/board/pci.h —pci service routines defines
/board/sysPci.c —pci service routines
/crypto/RTLinux.h —Linux—VxWorks.h replacement
/crypto/mpc18xisr.c —Linux—interrupt service routine
/crypto/makefile
Table 49. Linus Interface Module Variable
Variable Definition
SecurityProcessor Specifies the target security processor, such as MPC184SP_8xx
1
, MPC184SP_pci, or
MPC185SP
1
If SP is not specified, MPC184SP_8xx will be the default value.










