Wireless Sensor Networks
Stargate Developer’s Guide
Page 34
Doc. # 7430-0317-13 Rev. B
If you want to use DHCP for your network configuration, enter the following commands:
set netcfg dhcp
params save
If you want to check to ensure that DHCP works you can use the following command:
ipconfig
This will start the DHCP configuration process and set all the necessary parameters. To save the
parameters so configured, enter the following command to make the DHCP-provided parameters
permanent.
save params
Now you are set to download the required modules via TFTP. Once you have all the IP parameters
setup, you declare your intent to use TFTP with the following command:
set loadmethod tftp
If the
loadmethod
parameter is not set, or is set to "xmodem", the load command will continue to
use xmodem on the serial port for downloading, see section 5.5.2. Again you can use the
params
save
command to make this permanent. The Kernel is loaded by entering the following command:
load kernel
At the end of the output for the TFTP transaction is a checksum that is used to ensure that the file is
copied reliably. For example after loading the Kernel you would see the following message.
boot> load kernel
After receiving file, will automatically uncompress .gz images
loading flash region kernel
using tftp
IP: 10.1.1.171 netmask: 255.255.255.0 gateway: 10.1.1.221
Boot server: 10.1.1.46
TFTP loading 'stargate/zImage' to a0000400
eth addr: 00:b0:d0:4c:f2:74
TFTP from server 10.1.1.46
Filename 'stargate/zImage'.
Load address: 0xa0000400
Loading: 1400
1457 blocks done
Bytes transferred = 745748 (b6114 hex)
setenv called with filesize=b6114
Loaded 745748 bytes
BSD checksum: 28541
000B6114 bytes loaded to A0000400
programming flash...erasing ...
Erasing sector 00080000
Erasing sector 000C0000
Erasing sector 00100000
writing flash..
addr: 00080000 data: E1A00000
addr: 00090000 data: CFF71EC5
addr: 000A0000 data: 25CD7137
addr: 000B0000 data: 4E5B7E82
addr: 000C0000 data: 7F45E8BD
addr: 000D0000 data: 2783DF48
Summary of Contents for Stargate
Page 1: ...Stargate Developer s Guide Rev B January 2006 Document 7430 0317 13 ...
Page 50: ......
Page 51: ......