Download EMU Software Manual

Transcript
IV.
Finding Hardware
When Emu starts it will attempt to reconnect to the last known board [This behavior can be suppressed
with the –m option, or by editing the emu.ini file]. If the board was not found, or there is no last known
board, it will open with no board selected. Choose “Board->Select Board” from the menus and Emu will
scan Ethernet, PCIe, and USB for supported Dini Group hardware. You will then be prompted to select a
board from the list of detected boards. Choose your board based on its type, serial number, and
interface. Once a board is selected, all of Emu’s features become available to set clocks, configure
FPGA’s, and transfer data.
Ethernet
KEY POINTS:
 The default configuration uses DHCP to acquire network settings
 Static IP is supported but must be manually configured before use (see below)
 No special device drivers or root privileges are required
 Gigabit Ethernet is fully supported and recommended (1000BaseT)
 Avoid disconnecting or powering down devices while Emu is connected to them.
The Emu “Select Board” option uses a broadcast command to detect boards on the local network. The
broadcast goes out on port 4950 to IP Address “255.255.255.255”. Responses come back from boards
on port 4951. Make sure your host machine’s firewall allows tcp packets out on 4950 and tcp packets in
on port 4951 so that Ethernet board discovery can work. Regular board communication takes place on
port 3490. TCP traffic must be allowed in both directions on this port for Ethernet communication to
work at all. In some network environments Emu may be unable to find connected boards with its
Broadcast command. In this case it will be necessary to select the board directly by its IP address. Use
the “Board->Select by IP” menu option. By default the board acquires its IP address using DHCP. To
determine the board’s IP address, connect to its “marvell serial port” with a terminal program
(19200bps, no parity, no flow control) and at the linux prompt type ‘ifconfig’ to discover what IP address
your board was assigned. If your network does not support DHCP then you will need to set your board
up for Static IP. Use a USB cable to connect to the board, or run “emu_mv” from the Marvell terminal in
order to configure the board for Static IP. Use the “Board->Set Board Info” option in Emu. Be careful
not to change the board type or any of the FPGA stuffing information in these dialogs! Uncheck the box
for “Use DHCP”, and set the Static IP, network mask, gateway IP, and DNS as appropriate for your
network. Uncheck the box for setting the realtime clock, if it is checked. Accept all other defaults. Emu
will disconnect from the board and the board will automatically reboot with the new settings. Once the
board is booted you can check that it was configured with the new IP Address by using ‘ifconfig’ at the
Linux prompt as described above. Then use either the ‘Board->Select Board’, or ‘Board->Select by IP”
menu option to connect to the board in Emu.
Ethernet is “hotpluggable” meaning that you can connect or disconnect the Ethernet cable at any time.
If the board is booted with the Ethernet cable connected (recommended), then it will bring up the
interface right away and acquire a network address with DHCP if enabled. If the cable is connected after
bootup it may take up to 30 seconds before the interface is ready, because the udhcpc daemon
periodically polls the interface for a connection. The Marvell serial port may be monitored to see what
is happening or to debug connectivity issues.