Exec, Name, Synopsis – Comtrol eCos User Manual
Page 177: Arguments, Description
exec
Name
exec
— Execute a Linux kernel
Synopsis
exec
[-w
timeout
] [-r
ramdisk_address
] [-s
ramdisk_length
] [-b
load_address
{-l
load_length
} ] [-c
kernel_command_line
] [
entry_point
]
Arguments
Name
Type
Description
Default
-w
timeout
Number
Time to wait before starting
execution.
0
-r
ramdisk_address
Number
Address in memory of
"initrd"-style ramdisk -
passed to Linux kernel.
None
-s
ramdisk_length
Number
Length of ramdisk image -
passed to Linux kernel.
None
-b
load_address
Number
Address in memory of the
Linux kernel image.
Value set by load or fis
load
-l
load_length
Number
Length of Linux kernel
image.
none
-c
ker-
nel_command_line
String
Command line to pass to
the Linux kernel.
None
entry_address
Number
Starting address for Linux
kernel execution
Implied by architecture
Description
The exec command is used to execute a non-eCos application, typically a Linux kernel. Additional information
may be passed to the kernel at startup time. This command is quite special (and unique from the go command) in
that the program being executed may expect certain environmental setups, for example that the MMU is turned off,
etc.
The Linux kernel expects to have been loaded to a particular memory location which is architecture depen-
dent(0xC0008000 in the case of the SA1110). Since this memory is used by RedBoot internally, it is not possible
to load the kernel to that location directly. Thus the requirement for the "-b" option which tells the command where
the kernel has been loaded. When the exec command runs, the image will be relocated to the appropriate location
before being started. The "-r" and "-s" options are used to pass information to the kernel about where a statically
73