CONFIDENTIAL
DOC-USR-0014-03
___________________________________________________________________________________________
Z3 Technology, LLC
♦
100 N 8
th
ST, STE 250
♦
Lincoln, NE 68508-1369 U.S.A.
♦
+1.402.323.0702
12
CONFIGURING THE TARGET FOR YOUR OWN DEVELOPMENT ENVIRONMENT
The best way to develop for the Z3-DM8168-DVR-RPS system is to use the HDD of a Linux PC to serve as the
root file system for the target. It is also productive to allow the DM8168 system to fetch the Linux kernel
from the PC using the network, so all the software that is being run by the DM8168 is in effect coming from
the PC. To accomplish this, follow the steps below.
(1)
Run a TFTP server on the Linux PC. The target system will need to access files from the "images"
directory via TFTP. Depending on your Linux distribution you will need to download and set up the
server.
(2)
The DM8168 module is pre-setup so that it will TFTP from the path "z3/z3-netra/images". This path
is defined in the target by the u-boot environment variable "tftp_root".
(3)
Enable NFS on the Linux PC. The target DM8168 will need to mount the root file system using NFS.
Usually it is sufficient to add the desired path in the /etc/exports file, and restart the NFS service
(as root) with:
# service nfs restart
(4)
Copy the file .../u-boot/u-boot-env-netra.txt to the Windows PC running Teraterm. Edit the file and
change the following variables to match your own system and network. Note: Use a Windows
editor; it is important to Teraterm to have CR-LF instead of just LF.
setenv ipaddr 192.168.0.56
IP address of the target system
setenv gatewayip 192.168.0.1
Usually the router in your network
setenv netmask 255.255.0.0
As per your network parameters
setenv serverip 192.168.0.6
The computer with the TFTP server
setenv tftp_root z3/z3-netra/images
Loc of the images folder in TFTP space
setenv nfs_root /home/z3/z3-netra/filesys/fs
Loc of the root file system
(5)
Reboot the DM8168-MOD and press the space bar to make it stop in the u-boot prompt.
Make sure that your terminal is pausing for 120ms or more at the end of each line. This is
important because the serial port does not have hardware flow control.
(6)
Go into the Teraterm "Setup" menu, select "Serial port...".
Set the "Baud rate" to 115200, "Data" to 8 bit, "Parity" to none, 1 stop bit and flow control to
"none." At "Transmit delay", enter 120 in the box next to "msec/line", then click OK.
(7)
Now upload the new environment variables to the board.
In Teraterm, go to the "File" menu and click on "Send file...". Select the file with the variables
that was just edited.