A-
2
set gateway 123.45.68.250
set netmask 255.255.255.0
The last step is to inform dBUG of the name and type of the file to download. Prior to giving the name of
the file, keep in mind the following.
Most, if not all, TFTP servers will only permit access to files starting at a particular sub-directory. (This
is a security feature which prevents reading of arbitrary files by unknown persons.) For example, SunOS
uses the directory /tftp_boot as the default TFTP directory. When specifying a filename to a SunOS TFTP
server, all filenames are relative to /tftp_boot. As a result, you normally will be required to copy the file to
download into the directory used by the TFTP server.
A default filename for network downloads is maintained by dBUG. To change the default filename, use the
command:
set filename <filename>
When using the Ethernet network for download, either S-record, COFF, Elf, or Image files may be
downloaded. A default filetype for network downloads is maintained by dBUG as well. To change the
default filetype, use the command:
set filetype <srecord|coff|elf|image>
Continuing with the above example, the compiler produces an executable COFF file, ‘a.out’. This file is
copied to the /tftp_boot directory on the server with the command:
rcp a.out santafe:/tftp_boot/a.out
Change the default filename and filetype with the commands:
set filename a.out
set filetype coff
Finally, perform the network download with the ‘dn’ command. The network download process uses the
configured IP addresses and the default filename and filetype for initiating a TFTP download from the
TFTP server.
A.1.3 Troubleshooting Network Problems
Most problems related to network downloads are a direct result of improper configuration. Verify that all
IP addresses configured into dBUG are correct. This is accomplished via the ‘show’ command.
Using an IP address already assigned to another machine will cause dBUG network download to fail, and
probably other severe network problems. Make certain the client IP address is unique for the board.
Check for proper insertion or connection of the network cable. Are status LEDs lit indicating that network
traffic is present?
Check for proper configuration and operation of the TFTP server. Most Unix workstations can execute a
command named ‘tftp‘which can be used to connect to the TFTP server as well. Is the default TFTP root
directory present and readable?