Ettus E3XX Getting Started Guide ANGRYVIPER Team
7 Configuring the runtime environment on the platform
7.1 Network Mode
1. Plug in an Ethernet cable to a network configured for DHCP
2. Ensure a micro-USB to USB cable is connected between the E310’s serial port and development host
3. Apply power to the E310
4. Use a serial terminal application to establish a serial connection, for example:
$ sudo screen /dev/ttyUSB0 115200
5. After a successful boot to PetaLinux, login to the system, using “root” for user name and password
6. Setup the OpenCPI environment on remote system
Each time the SDR is booted, the OpenCPI environment must be setup. By sourcing the mynetsetup.sh
script, the remote system’s environment is configured for OpenCPI and NFS directories are mounted for
Network mo de .
3
. The user must provide the network address of the development system to the script as its
only argument:
$ . /mnt/card/opencpi/mynetsetup.sh XX.XX.XX.XX
where XX.XX.XX.XX is the IP address of the NFS host (i.e. that development host, e.g. 192.168.1.10). A
successful run should output the following:
An IP address was detected.
Setting the time from time server: time.nist.gov
My IP address is: XX.XX.XX.XX, and my hostname is: zynq
Running login script. OCPI_CDK_DIR is now /mnt/net/cdk.
Executing /home/root/.profile
No reserved DMA memory found on the linux boot command line.
The mdev config has no OpenCPI rules. We will add them to /etc/mdev.conf
NET: Registered protocol family 12
Driver loaded successfully.
OpenCPI ready for zynq.
Discovering available containers...
Available containers:
# Model Platform OS OS-Version Arch Name
0 hdl e3xx PL:0
1 rcc xilinx13_4 linux x13_4 arm rcc0
Note: If the output includes:
Attempting to set the time from time server
Alarm clock
ntp was unable to set time using servers in ntp.conf. For more information see Section 5.2
3
This script calls the zynq_net_setup.sh script, which should not be modifiable by the user.
12