Rebuilding The Dvevm Software For The Target; Building A New Linux Kernel - Texas Instruments DVEVM Getting Started Manual

Table of Contents

Advertisement

Rebuilding the DVEVM Software for the Target

4.5

Rebuilding the DVEVM Software for the Target

EXEC_DIR=/home/<useracct>/workdir/filesys/opt/dvevm
LINUXKERNEL_INSTALL_DIR=/opt/mv_pro_4.0/montavista/pro/devkit/lsp/ti-davinci
4.6

Building a New Linux Kernel

host $ cd ~
host $ mkdir -p workdir/lsp
host $ cd workdir/lsp
host $ cp -R /opt/mv_pro_4.0/montavista/pro/devkit/lsp/ti-davinci .
4-12
To place demo files in the /opt/dvevm directory, you need to rebuild the
DVEVM software. To do this, follow these steps:
1) Change directory to ~/dvevm_#_##.
2) Edit the ~/dvevm_#_##/Rules.make file. Make sure that EXEC_DIR
points to the opt directory on the NFS exported file system as follows
and that LINUXKERNEL_INSTALL_DIR is defined as follows:
3) While in the same directory that contains Rules.make, use the
following commands to build the DVEVM product and put the
resulting binaries on the target file system (for example, /opt/dvevm).
host $ make
host $ make install
If you modify the target's Linux kernel sources, you will need to rebuild it
and then boot it up by either replacing the kernel that comes installed on
the DVEVM board's flash or by having the U-Boot utility use TFTP to boot
the kernel over a network connection.
Make sure you have completed Section 4.4, Setting Up the
Build/Development Environment and Section 4.4.1, Writing a Simple
Program and Running it on the DVEVM before attempting to build a new
kernel. You must at a minimum have the MontaVista tools in your path:
PATH="/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin:
/opt/mv_pro_4.0/montavista/pro/bin:$PATH"
To rebuild the Linux Kernel, follow these steps:
1) Log in to your user account (not as root).
2) Use commands like the following to make a local working copy of the
MontaVista Linux Support Package (LSP) in your home directory.
This copy contains the embedded Linux 2.6.10 kernel plus the
DaVinci drivers. If you installed in a location other than
/opt/mv_pro_4.0, use your location in the cp command.

Advertisement

Table of Contents
loading

Table of Contents