This is an unapproved draft. It is currently in progress and under review.

12.1 Introduction

This chapter defines the arguments and exit status codes of the RCE-specific RTEMS shell commands:

For descriptions of the built-in RTEMS shell commands, consult The RTEMS Shell manual (http, pdf).

burnContainer

To be implemented.

Load data from a file on a mounted file system, then write the data to a configuration memory container, along with user-specified metadata. The rce supports 4 container types: TASK (for runnable modules), DATA (for library modules), CONFIGURATION (for generic data, like port settings and Ethernet configuration), and SYSTEM (for system images).

burnContainer is a general command. It can be used to burn arbitrary data to configuration memory, including runnable elf modules and their associated metadata; however, for runnables, the convenience command burnTask (Section 12.4) is more appropriate.

burnContainer
    -T <type>
    -I <containerName>
    [-F1 <field1>]
    [-F2 <field2>]
    [-F3 <field3>]
    [-F4 <field4>]
    [-F5 <field5>]
    [-F6 <field6>]
    [-F7 <field7>]
    <filePath>

Arguments

Exit Status

Remarks

burnSystem

Load a bootstrap from a file on a mounted file system, then write it to a configuration memory container. burnSystem is used to burn runnable ELF executables.

burnSystem
    -I <containerName>
    -A <loadAddr>
    <filePath>

Arguments

Exit Status

Remarks

burnTask

Load a runnable module image from a mounted file system, then write the image to a configuration memory TASK container and store the corresponding metadata.

burnTask
    -I <containerName>
    -N <taskName>
    [-P <priority>]
    [-S <stacksize>]
    [-M <mode>]
    [-A <attribute>]
    <filePath>

Arguments

Exit Status

Remarks

freeBlocks

Display a block usage report for rce configuration memory.

freeBlocks

Arguments

None.

Exit Status

lsSystem

Display the metadata for each system image stored in rce configuration memory: load address, transfer address, and image size.

lsSystem

Arguments

None.

Exit Status

Remarks

Image size is reported in units of blocks (16K).

lsTask

Display the metadata for each task image stored in rce configuration memory: rtems taskname , stack size, load address, rtems task mode bitmask and rtems task attribute bitmask.

lsTask

Arguments

None.

Exit Status

mount

Mount a remote file system, allowing task images and other data to be transferred to the rce.
This is a built-in rtems shell command.

mount
    -t <type>
    <host>:<export>
    <local>

Arguments

Exit Status

reboot

Initiate a warm reboot of the rce using the configuration currently stored in the rce Restart Options register. Optionally, modify the value in the Restart options field of this register to point to a new system image/task image pair, then reboot.

reboot
    [ -S <containerName> ]
    [ -I <containerName> ]

Arguments

Exit Status

Remarks

The rce Restart Options register defines a mapping between the front-panel rotary switch and a system image/task image pair. This command effectively assigns the specified image pair to the currently-selected switch position.

The contents of the rce Restart Options register are cleared on a hard reset.

rmContainer

Remove a container of any type from rce configuration memory.

rmContainer
    -T <type>
    -I <containerName>

Arguments

Exit Status

Remarks

{span:class=jim}Note to Editor: Looks from the code like we built to tool to remove SYSTEM images as well. We have to strip this out before releasing into the wild.{span}

{span:class=jim}Note to Editor: TBS what to recommend if the command fails with -2 and the container cannot be removed.{span}

rmTask

Remove a task image stored in rce configuration memory, along with its corresponding metadata.

rmTask
    -I <containerName>

Arguments

Exit Status

runTask (local)

The runTask command provides two usage options: remote and local.

For local usage, the command loads a task image from rce configuration memory and executes it using its stored task metadata.

runTask
    -I <containerName>

Arguments

Exit Status

runTask (remote)

The runTask command provides two usage options: remote and local.

For remote usage, the command loads a task image from a mounted file system, and executes the module in an rtems task with the user-specified rtems task name. Since the image is stored remotely, task metadata are not available in rce configuration memory and must be specified as arguments.

runTask 
    -N <taskName>
    [-P <priority>]
    [-S <stacksize>]
    [-M <mode>]
    [-A <attribute>]
    <filePath>

Arguments

Exit Status

Remarks

stopTask

Stop a task.

stopTask
    [-I <taskID>]
    [-N <taskName>]

Arguments

Exit Status

Remarks

Either a task id or task name must be specified.

This command calls the rtems_task_delete directive to stop the specified task. The task's name and id become invalid, and its control block, resource claims, and stack are deleted.

Though the rtems_task_delete directive stops the specified task, it does not call any shutdown routines defined by the task; thus, not all of the task's dynamically allocated resources are necessarily freed. This command should be used for stopping unresponsive tasks, not as a tool for general task management.

See XXX for additional information on the rtems_task_delete directive.

syslog

Show or clear the rce system log.

syslog
    [ -l <n> ]
    [ -f <n> ]
    [ -c ]

Arguments

Arguments -l, -n and -c are mutually exclusive

Exit Status