📄 redboot.cdl
字号:
cdl_option CYGPKG_REDBOOT_MAX_CMD_LINE {
display "Maximum command line length"
flavor data
default_value 256
description "
This option allows control over how long the CLI command line
should be. This space will be allocated statically
rather than from RedBoot's stack."
}
cdl_option CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT {
display "Command processing idle timeout (ms)"
flavor data
default_value 10
description "
This option controls the timeout period before the
command processing is considered 'idle'. Making this
number smaller will cause idle processing to take place
more often, etc. The default value of 10ms is a reasonable
tradeoff between responsiveness and overhead."
}
cdl_option CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS {
display "Validate RAM addresses during load"
flavor bool
default_value 1
description "
This option controls whether or not RedBoot will make
sure that memory being used by the \"load\" command is
in fact in user RAM. Leaving the option enabled makes
for a safer environment, but this check may not be valid
on all platforms, thus the ability to disable it.
** Disable this only with great care **"
}
cdl_component CYGPKG_REDBOOT_FLASH {
display "Allow RedBoot to support FLASH programming"
flavor bool
default_value 1
active_if CYGHWR_IO_FLASH_DEVICE
description "
If this option is enabled then RedBoot will provide commands
to manage images in FLASH memory. These images can be loaded
into memory for execution or executed in place."
compile -library=libextras.a flash.c
cdl_option CYGOPT_REDBOOT_FLASH_BYTEORDER {
display "Byte order used to store info in flash."
flavor data
default_value { "NATURAL" }
legal_values {"NATURAL" "MSBFIRST" "LSBFIRST" }
description "
This option controls the byte ordering used to store
the FIS directory info and flash config info."
}
cdl_option CYGOPT_REDBOOT_FIS {
display "RedBoot Flash Image System support"
default_value 1
doc ref/flash-image-system.html
description "
This option enables the Flash Image System commands
and support within RedBoot. If disabled, simple Flash
access commands such as \"fis write\" will still exist.
This option would be disabled for targets that need simple
FLASH manipulation, but do not have the need or space for
complete image management."
}
cdl_option CYGDAT_REDBOOT_FIS_MAX_FREE_CHUNKS {
display "Max number of chunks of free space to manage"
flavor booldata
default_value 32
description "
If this option is defined then \"fis free\" will
rely on the FIS directory to determine what space is
free within the FLASH. This option controls the
maximum number of free segment which can be handled
(typically this number is small). If this option is
not enabled, the the archaic behaviour of actually
scanning the FLASH for erased sectors (unreliable)
will be used to determine what's free and what's
not."
}
cdl_component CYGPKG_REDBOOT_FIS_CONTENTS {
display "Flash Image System default directory contents"
active_if CYGOPT_REDBOOT_FIS
calculated 1
cdl_option CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK {
display "Flash block containing the Directory"
flavor data
default_value (-1)
description "
Which block of flash should hold the directory
information. Positive numbers are absolute block
numbers. Negative block numbers count backwards
from the last block. eg 2 means block 2, -2
means the last but one block."
}
cdl_component CYGOPT_REDBOOT_REDUNDANT_FIS {
display "Redundant Flash Image System Directory Support"
default_value 0
requires { 0 == CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG }
description "
This option enables the use of a redundant FIS
directory within RedBoot. If enabled a flash block
will be reserved for a second copy of the fis
directory. Doing this allow for power failure safe
updates of the directory by the application."
cdl_option CYGNUM_REDBOOT_FIS_REDUNDANT_DIRECTORY_BLOCK {
display "Flash block containing the backup Directory"
flavor data
default_value (-3)
requires { CYGNUM_REDBOOT_FIS_REDUNDANT_DIRECTORY_BLOCK !=
CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK }
description "
Which block of flash should hold the redundant
directory information. Positive numbers are
absolute block numbers. Negative block numbers
count backwards from the last block. eg 2 means
block 2, -2 means the last but one block."
}
}
cdl_option CYGOPT_REDBOOT_FIS_RESERVED_BASE {
display "Pseudo-file to describe reserved area"
active_if { 0 != CYGNUM_REDBOOT_FLASH_RESERVED_BASE }
default_value 1
description "
If an area of FLASH is reserved, it is informative to
have a fis entry describing it. This option controls
creation of such an entry by default in the fis init
command."
}
cdl_option CYGOPT_REDBOOT_FIS_REDBOOT {
display "File to describe RedBoot boot image"
default_value 1
description "
Normally a ROM-startup RedBoot image is first in the
FLASH, and the system boots using that image. This
option controls creation of an entry describing it in
the fis init command. It might be disabled if a
platform has an immutable boot image of its own, where
we use a POST-startup RedBoot instead, which performs
less board initialization."
}
cdl_component CYGOPT_REDBOOT_FIS_REDBOOT_POST {
display "File to describe RedBoot POST-compatible image"
default_value !CYGOPT_REDBOOT_FIS_REDBOOT
description "
This option controls creation of an entry describing a
POST-startup RedBoot image in the fis init command.
Not all platforms support POST-startup. A platform
might have both for testing purposes, where the
eventual user would substitute their own POST code for
the initial ROM-startup RedBoot, and then jump to the
POST-compatible RedBoot immediately following."
cdl_option CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET {
display "Offset of POST image from FLASH start"
flavor booldata
default_value 0
requires { CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET >= \
CYGBLD_REDBOOT_FLASH_BOOT_OFFSET }
description "
This option specifies the offset for a POST image from
the start of FLASH. If unset, then the fis entry
describing the POST image will be placed where
convenient."
}
}
cdl_option CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP {
display "File to describe RedBoot backup image"
default_value 0
description "
This option controls creation of an entry describing a
backup RedBoot image in the fis init command.
Conventionally a RAM-startup RedBoot image is kept
under this name for use in updating the ROM-based
RedBoot that boots the board."
}
cdl_option CYGOPT_REDBOOT_FIS_DIRECTORY_ARM_SIB_ID {
display "Include ARM SIB ID in FIS"
default_value 0
description "
If set, this option will cause the last 5 words of
the FIS to include the special ID needed for the
flash to be recognized as a reserved area for RedBoot
by an ARM BootRom monitor."
}
cdl_option CYGNUM_REDBOOT_FIS_DIRECTORY_ENTRY_SIZE {
display "Size of FIS directory entry"
flavor data
default_value 256
description "
The FIS directory is limited to one single flash
sector. If your flash has tiny sectors, you may wish
to reduce this value in order to get more slots in
the FIS directory."
}
cdl_option CYGNUM_REDBOOT_FIS_DIRECTORY_ENTRY_COUNT {
display "Number of FIS directory entries"
flavor data
default_value 8
description "
The FIS directory normally occupies a single flash
sector. Adjusting this value can allow for more than
one flash sector to be used, which is useful if your
sectors are very small."
}
cdl_option CYGBLD_REDBOOT_MIN_IMAGE_SIZE {
display "Maximum RedBoot image size"
flavor data
default_value { CYGOPT_REDBOOT_FIS_REDBOOT ? 0x20000 : 0 }
description "
This option controls the maximum length reserved
for the RedBoot boot image in the FIS table.
This should be a multiple of the flash's erase
block size."
}
cdl_option CYGBLD_REDBOOT_FLASH_BOOT_OFFSET {
display "Offset from start of FLASH to RedBoot boot image"
flavor data
default_value CYGNUM_REDBOOT_FLASH_RESERVED_BASE
requires { CYGNUM_REDBOOT_FLASH_RESERVED_BASE <= \
CYGBLD_REDBOOT_FLASH_BOOT_OFFSET }
description "
This option controls where the RedBoot boot image is
located relative to the start of FLASH."
}
cdl_option CYGNUM_REDBOOT_FLASH_RESERVED_BASE {
display "Size of reserved area at start of FLASH"
flavor data
default_value 0
description "
This option reserves an area at the start of
FLASH where RedBoot will never interfere; it is
expected that this area contains
(non-RedBoot-based) POST code or some other boot
monitor that executes before RedBoot."
}
}
cdl_option CYGSEM_REDBOOT_FLASH_LOCK_SPECIAL {
display "Keep all RedBoot FLASH data blocks locked."
flavor bool
default_value 1
active_if { CYGHWR_IO_FLASH_BLOCK_LOCKING != 0 }
description "
When this option is enabled, RedBoot will keep configuration
data and the FIS directory blocks implicitly locked. While
this is somewhat safer, it does add overhead during updates."
}
cdl_option CYGSEM_REDBOOT_FIS_CRC_CHECK {
display "Use CRC checksums on FIS images."
flavor bool
default_value 1
description "
When this option is enabled, RedBoot will use CRC checksums
when reading and writing flash images."
}
cdl_interface CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED {
display "ARM FLASH drivers support SIB flash block structure"
active_if CYGPKG_HAL_ARM
description "This interface is implemented by a flash driver
to indicate that it supports the ARM SIB flash
block structure"
}
cdl_option CYGHWR_REDBOOT_ARM_FLASH_SIB {
display "Use ARM SIB flash block structure"
flavor bool
active_if CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED
default_value 1
description "
This option is used to interpret ARM Flash System
information blocks."
}
}
cdl_component CYGSEM_REDBOOT_FLASH_CONFIG {
display "Keep RedBoot configuration data in FLASH"
flavor bool
default_value { CYGPKG_IO_FLASH != 0 }
compile fconfig.c
description "
When this option is enabled, RedBoot will keep configuration
data in a separate block of FLASH memory. This data will
include such items as the node IP address or startup scripts."
cdl_option CYGNUM_REDBOOT_FLASH_CONFIG_SIZE {
display "Length of configuration data in FLASH"
flavor data
default_value 4096
description "
This option is used to control the amount of memory and FLASH
to be used for configuration options (persistent storage)."
}
cdl_option CYGHWR_REDBOOT_FLASH_CONFIG_MEDIA {
display "Style of media used for persistent data storage"
flavor data
legal_values { "FLASH" "EEPROM" }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -