beautypg.com

4 motorola s-records, 5 updating the netbootloader, Motorola s-records – Kontron NetBootLoader User Manual

Page 23: Updating the netbootloader, Nbl operation netbootloader

background image

ID 1022-8317, Rev. 2.0

NBL Operation

NetBootLoader

Page 15

2.8.4

Motorola S-Records

The NetBootLoader will also accept Motorola S-Records as an image. The SL command ac-
cepts S1, S2 and S3 records. Operation is terminated by the appropriate S9, S8 or S7 record.
Other types of records are ignored.

The checksum of every record except end records is checked. Bad records are rejected by the
NetBootLoader. The address range of every record is also checked. Records which fall outside
of the internal buffer are rejected.

The records must be 0-based. This means that each record’s address must correspond to the
address where it will be loaded in the data buffer relative to its start. If necessary, the base ad-
dress can be modified with the -o option of the SL command.

The image must start at the absolute address 0x0 and the entry point of the executable PPC
code must be at address 0x0 (FDT enabled) or 0x100 (FDT disabled). If S1 or S2 record input
is preferred, please note that these records only include 16 and 24-bit wide addresses.

For accessing the Motorola S-Records, both the primary and secondary serial interfaces can
be used. If available, the user specific LED (ULED0) blinks green while downloading indicating
that the transfer is in progress. The transfer itself may take several minutes to complete.

Ensure that the XON/XOFF protocol is used on the host side. This is a fixed setting and cannot
be changed. Additionally, ensure that the host does not stop transmission after a number of
lines (e.g. OS-9: use the ‘nopause’ attribute).

The SER0 and SER1 serial interface parameters can be modified with the PF command.

2.8.5

Updating the NetBootLoader

In addition to programming an image to NBL Flash memory, the NetBootLoader itself can be
updated. The image can be downloaded in the same way as any other image to the data buffer,
or, if available, a redundant NBL Flash can also be the source of a NetBootLoader image. The
new version of the NetBootLoader image is then programmed to NBL Flash memory using the
CLONE command.

Note ...

If the data buffer is programmed to NBL Flash memory without the -o option (pro-
gram a startable image) the downloaded image is copied to RAM during startup
and is executed there. For this reason images which require to be programmed
must start at the address 0x0.

Note ...

Neither the SL nor LF command can be used to program Motorola S-Records to
RAM areas.