8 programming from an absolute address, 9 bootwaittime, Bootstrap loader – Kontron Bootstrap Loader User Manual

Page 11

Advertising
background image

Bootstrap Loader

2/98

Page 5

© PEP Modular Computers

WARNING !

When programming FLASH memory, *NEVER* press the RESET button or cycle power! This may
damage the Bootstrap Loader and will consequently leave the board unusable due to damaged
FLASH contents. The ABORT button may be used to cancel a running operation.

'-q'

suppresses all messages and warnings except error messages.

Programming over the term

port is also supported, but in this case the loader programs in the background by default and

the propagation of the process cannot be monitored.

It is recommended that by default the programming over the ser0

port should be used.

If the process must be aborted, press the ABORT button and try again.

On CPUs without an ABORT button the process cannot be aborted.

2.8 Programming from an Absolute Address

The second possibility to program FLASH memory is to program it from an absolute address. The image to program must
be located in a visible address range, for example on the VMEbus. A memory card with battery-backup, FLASH or
EPROM can be used to hold the image to program. If we assume that the image is located at 0x87000000 and is 0x123456
bytes large we must type the following at the command prompt of the Bootstrap Loader:

lf -m=87000000 -l=123456

The characters which are displayed now have the same meaning as if we are programming from S-records, but the time
needed for each step to complete may be longer because the loader tries to program with the largest possible block size that
it can manage.

Again, '-c' can be used to clear untouched sectors.

Background operation is not supported and it is also not possible to specify an offset.

The programming cannot be aborted with ABORT.

Note: On CPUs without an ABORT button the process cannot be aborted.

2.9 BootWaitTime

The command bw can be used to display / change the current BootWaitTime. Available delays are 1-2-5-10-20-50 sec-
onds. CPUs without an user LED or without an ABORT button have a BootWaitTime of at least 5 seconds. The Bootstrap
Loader refuses setting a BootWaitTime of 1-2 seconds.

Note: The BootWaitTime is stored in the boot section of the serial EEPROM or RTC. This section is validated with a CRC
code to avoid the setting of random parameters. If the CRC of the Boot section is not valid, changing the BootWaitTime
has no effect because the bw command does not validate an invalid CRC to avoid undesired side effects. In this case, the
default of 5 seconds is always used. On CPU equipped with a RTC which holds the BootWaitTime there is no CRC value
included.

To validate an invalid CRC, the appropriate utility from an operating system must be used (e.g. ee_config from OS-9).

Advertising