
Arcom Embedded Linux Technical Manual RedBoot
For example, to configure the static IP address 10.2.2.4 with a network mask of
255.255.0.0 (hence length 16) and default server of 10.2.1.1:
RedBoot> ip_address –l 10.2.2.4/16 –h 10.2.1.1
Alternatively, to configure an IP address via BOOTP or DHCP and override the supplied
server address with 10.2.1.1:
RedBoot> ip_address –b –h 10.2.1.1
When run with no parameters, the ip_address command reports the current IP
configuration:
RedBoot> ip_address
IP: 10.2.40.120/255.255.0.0, Gateway: 10.2.1.1
Default server: 10.2.1.1
Loading images into RAM
An image may be loaded into RAM over the serial line (not recommended for large
images as it is slow), over the Ethernet connection or from a JFFS2 file system in the
on-board Flash. When loading over the serial line, the X- or Y-modem protocol may be
used. When loading via Ethernet, the TFTP or HTTP protocols can be used. Before an
image can be loaded via Ethernet, an IP address must be configured using either the
fconfig or ip_address commands. Before an image can be loaded from a JFFS2 file
system it must be mounted using the mount command, as described in the next
section.
When downloading an image via any method, you must provide an address in RAM
where there is enough free space to contain the image. You can see the free regions of
RAM in the output of the version command. Alternatively, the macro %{FREEMEMLO}
evaluates to the base of free memory. This is useful because it avoids the need to
hardcode addresses in your boot scripts. The following examples use the
%{FREEMEMLO} macro.
Images are loaded into RAM using the load command. When entering the load
command, you can specify the following parameters:
load [-r] [-b <base address>] [-h <hostname>] [-m <method>] <filename>
© 2006 Arcom Issue G 57
Comentarios a estos manuales