Comtrol eCos User Manual

Page 172

Advertising
background image

Chapter 2. RedBoot Commands and Examples

... Unlock from 0x507c0000-0x507e0000: .

... Erase from 0x507c0000-0x507e0000: .

... Program from 0x0000a8d0-0x0000acd0 at 0x507c0000: .

... Lock from 0x507c0000-0x507e0000: .

RedBoot>

Additionally, nicknames can be used like aliases via the format %{nickname}. This allows the values stored by

fconfig

to be used directly by scripts and commands.

Depending on how your terminal program is connected and its capabilities, you might find that you are unable
to use line-editing to delete the ‘old’ value when using the default behaviour of fconfig

nickname

or just plain

fconfig, as shown in this example:

RedBoot> fco bootp

bootp: false_

The user deletes the word “false;” and enters “true” so the display looks like this:

RedBoot> fco bootp

bootp: true

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

... Unlock from ...

RedBoot> _

To edit when you cannot backspace, use the optional flag

-d

(for “dumb terminal”) to provide a simpler interface

thus:

RedBoot> fco -d bootp

bootp: false ? _

and you enter the value in the obvious manner thus:

RedBoot> fco -d bootp

bootp: false ? true

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

... Unlock from ...

RedBoot> _

One item which is always present in the configuration data is the ability to execute a script at boot time. A sequence
of RedBoot commands can be entered which will be executed when the system starts up. Optionally, a time-
out period can be provided which allows the user to abort the startup script and proceed with normal command
processing from the console.

RedBoot> fconfig -l

Run script at boot: false

Use BOOTP for network configuration: false

Local IP address: 192.168.1.29

Default server IP address: 192.168.1.101

DNS server IP address: 192.168.1.1

68

Advertising