Comtrol eCos User Manual

Page 171

Advertising
background image

Chapter 2. RedBoot Commands and Examples

Persistent State Flash-based Configuration and Control

RedBoot provides flash management support for storage in the flash memory of multiple executable images and of
non-volatile information such as IP addresses and other network information.

RedBoot on platforms that support flash based configuration information will report the following message the first
time that RedBoot is booted on the target:

flash configuration checksum error or invalid key

This error can be ignored if no flash based configuration is desired, or can be silenced by running the fconfig
command as described below. At this point you may also wish to run the fis init command. See other fis commands
in

the Section called Flash Image System (FIS)

.

Certain control and configuration information used by RedBoot can be stored in flash.

The details of what information is maintained in flash differ, based on the platform and the configuration. However,
the basic operation used to maintain this information is the same. Using the fconfig -l command, the information
may be displayed and/or changed.

If the optional flag

-i

is specified, then the configuration database will be reset to its default state. This is also

needed the first time RedBoot is installed on the target, or when updating to a newer RedBoot with different
configuration keys.

If the optional flag

-l

is specified, the configuration data is simply listed. Otherwise, each configuration parameter

will be displayed and you are given a chance to change it. The entire value must be typed - typing just carriage
return will leave a value unchanged. Boolean values may be entered using the first letter (

t

for true,

f

for false).

At any time the editing process may be stopped simply by entering a period (.) on the line. Entering the caret
(^) moves the editing back to the previous item. See “RedBoot Editing Commands”,

the Section called RedBoot

Editing Commands in Chapter 1

.

If any changes are made in the configuration, then the updated data will be written back to flash after getting
acknowledgment from the user.

If the optional flag

-n

is specified (with or without

-l

) then “nicknames” of the entries are used. These are shorter

and less descriptive than “full” names. The full name may also be displayed by adding the

-f

flag.

The reason for telling you nicknames is that a quick way to set a single entry is provided, using the format

RedBoot> fconfig nickname value

If no value is supplied, the command will list and prompt for only that entry. If a value is supplied, then the entry
will be set to that value. You will be prompted whether to write the new information into flash if any change was
made. For example

RedBoot> fconfig -l -n

boot_script: false

bootp: false

bootp_my_ip: 10.16.19.176

bootp_server_ip: 10.16.19.66

dns_ip: 10.16.19.1

gdb_port: 9000

net_debug: false

RedBoot> fconfig bootp_my_ip 10.16.19.177

bootp_my_ip: 10.16.19.176 Setting to 10.16.19.177

Update RedBoot non-volatile configuration - continue (y/n)? y

67

Advertising