Description, Examples – Comtrol eCos User Manual

Page 136

Advertising
background image

load

Name

Type

Description

Default

-b

location

Number

Address in memory to load
the data. Formatted data
streams will have an
implied load address which
this option may override.

Depends on data format

-c

channel

Number

Specify which I/O channel
to use for download. This
option is only supported
when using either xmodem
or ymodem protocol.

Depends on data format

file_name

String

The name of the file on the
TFTP or HTTP server or
the local disk. Details of
how this is specified for
TFTP are host-specific. For
local disk files, the name
must be in disk: filename
format. The disk portion
must match one of the disk
names listed by the disks
command.

None

Description

The load command is used to download data into the target system. Data can be loaded via a network connection,
using either the TFTP or HTTP protocols, or the console serial connection using the X/Y modem protocol. Files
may also be loaded directly from local filesystems on disk. Files to be downloaded may either be executable images
in ELF executable program format, Motorola S-record (SREC) format or raw data.

Examples

Download a Motorola S-record (or ELF) image, using TFTP, specifying the base memory address.

RedBoot> load redboot.ROM -b 0x8c400000

Address offset = 0x0c400000

Entry point: 0x80000000, address range: 0x80000000-0x8000fe80

Download a Motorola S-record (or ELF) image, using HTTP, specifying the host [server] address.

RedBoot> load /redboot.ROM -m HTTP -h 192.168.1.104

Address offset = 0x0c400000

Entry point: 0x80000000, address range: 0x80000000-0x8000fe80

32

Advertising