Vmp3 netbootloader – Kontron VMP3 User Manual

Page 97

Advertising
background image

VMP3

NetBootLoader

ID 29230, Rev. 01

© 2005 Kontron Modular Computers GmbH

Page 5 - 13

29230

.01.UG.VC.050727/091439

P R E L I M I N A R Y

5.4.5.2

Programming an Application

The application image itself must be compiled and linked to run from the SDRAM base address
0x0 of the CPU. The image must contain executable PPC code at offset 0x100 which is the
usual case with ROM/Flash images.

Gaining access to the image for programming to FLASH depends on where it is located. The
NetBootLoader can access four different sources for images:

• tftp server
• ftp server
• Motorola S-Records
• memory within the visible address range of the CPU board

The NetBootLoader uses a single data buffer for downloading an image from a tftp server, ftp
server, or an image as Motorola S-Records. These images must first be downloaded to the data
buffer prior to being programmed to FLASH. An image located within the visible address range
of the CPU board is directly accessible for programming.

To access an image located on an tftp server, the “tftp” command is used. To access an image
located on an ftp server, the “get” command is used. To perform Motorola S-Record acquisition,
the “sl” (SLoad) command is used. Once the image is in the data buffer, the FLASH is pro-
grammed using the “lf” (Load Flash) command. For an image within visible memory, the “lf”
(LoadFlash) command is used to program directly to FLASH.

5.4.5.3

Accessing tftp and ftp Servers

To gain access to an application image file stored on a tftp or ftp server the Ethernet port FCC1
(FE) is used. Images are downloaded to the data buffer using the ftp protocol. To use this
interface the Ethernet port parameters must first be set and the operator must have control of
the NetBootLoader.

To download an application image from a tftp server, the command "tftp" is used. The tftp server
IP and file name of the application must be known and provided to the "tftp" command or be
provided by the dhcp server via the "dhcp" command.

To perform a download from an ftp server, the operator must first login to the ftp server. After a
successful login, the operator then locates the image file required and downloads it to the data
buffer. As with any type of server session, the operator should logout when the session is fin-
ished.

5.4.5.4

Motorola S-Records

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

Note ...

The commands "tftp", “get”, and “ls” use the same data buffer. Therefore if an “ls”
command is issued after a "tftp" or “get” command the data buffer will be over-
written. If an “lf” command follows the “ls” the NetBootLoader refuses to program
the overwritten data buffer to the FLASH.

Advertising