4 Configuration Variables
This section provides definitions for all of the configuration
variables used by the BSP configuration tool.
These configuration variables are discussed in three groupings:
- Input Variables.
These are the variables provided in
config.last, or in
the environment, or in the
Command Line Options.
These are the variable input values that determine the
resulting, output BSP configuration.
- Output Variables.
These are the variables generated by the BSP configuration
tool based on the input variables.
These include:
4.1 Input Variables
These are the variables provided in
config.last, or in
the environment, or in the
Command Line Options.
These are the variable input values that determine the
resulting, output BSP configuration.
In order to specify the BSP configuration, three broad classes
of variables must be specified:
-
Platform Identification
-
Memory Resource Description Variables
-
BSP Component Description Variables
If any of these variable settings are omitted from the
config.last, the environment, and the
Command Line Options.
the BSP configuration tool will attempt to provide
suitable default values.
After the BSP configuration tool executes, it will
update the config.last file.
This file can be examined to determine what default
values were selected by the tool.
4.1.1 Platform Identification
Platform Identification
|
-
CADENUX_ARCH
- Identifies the target processor family.
Recognized options: dsc21, dsc24, dsc25,
dm270, c5471, omap1510, dm310,
dm320, at91rm9200, iMX1, and iMX2
-
platform_manufacturer
- A string identifying the board manufacturer.
Recognized manufacturer names include: TI, AmRoad,
Motorola, Cogent, Ittiam, Ingenient,
Appro, and Custom.
This will be prepended to the platform version string to
create the CADENUX_PLATFORM variable
-
platform version
- An arbitrary string identifying the platform configuration.
This will be appended to the platform manufacturer string
to create the CADENUX_PLATFORM variable.
-
CADENUX_PLATFORM
- A string identifying the platform configuration.
It consists of a prefix identifying the board manufacturer
followed by an arbitrary number of characters that can
be used to identify different software configurations on the same
board.
-
CADENUX_HOST
- A string identifying the host development environment.
Recognized options: linux and cygwin
|
4.1.2 Memory Resource Description
These values maybe edited to change the memory configuration the next time Configure is executed.
SDRAM Memory Description
|
-
CADENUX_SDRAM_TYPE
- The type of SDRAM memory installed (if known).
Recognized SDRAM part identifiers include:
- SDRAM_TYPE_UNKNOWN
- SDRAM_TYPE_D4564163 (8 Mbyte/chip),
- SDRAM_TYPE_K4S561632D (32 Mbyte/chip),
- SDRAM_TYPE_TC55V16256 (512 Kbytes/chip),
- SDRAM_TYPE_K4S281633D (16 Mbyte/chip),
- SDRAM_TYPE_K4S643233F (32 Mbyte/chip),
- SDRAM_TYPE_K4M563233D (8 Mbyte/chip),
- SDRAM_TYPE_HY57V653220 (8 Mbyte/chip), and
- SDRAM_TYPE_HY5V52C (32Mbx4/chip).
At present, this setting is only used by the bootloader
in order to correctly configure the SDRAM part at boot-up.
-
CADENUX_SDRAM_BASE
- The address of the beginning of installed SDRAM.
-
CADENUX_SDRAM_SIZE
- The size (in bytes) of the installed SDRAM.
|
FLASH Memory Description
|
-
CADENUX_NFLASH_PARTS
- The number of flash parts installed on the platform.
Only values 1 or 2 are valid.
-
CADENUX_FLASH_TYPE
- The type of FLASH memory installed (if known).
Recognized FLASH memory part identifiers include:
- Unknown,
- SRAMToshiba TC58FB160FT (2Mbyte/chip),
- Fujitsu MBM29DL323B (4Mbyte/chip),
- Intel 28F128 (2Mbyte/chip),
- Intel 28F160 (2Mbyte/chip),
- Intel 28F320 (4Mbyte/chip),
- Two interleaved Intel 28F320 (4Mbyte/chip),
- AMD AM29DL164DT (2Mbyte/chip),
- Two AMD AM29L640D (8Mbyte/chip),
- AMD AM29DL323DT/B,
- Fujitsu 29LV320T (4Mbyte/chip),
- Hynix HY29LD320B (4Mbyte/chip),
- CFI command set 2 compatible flash chip
(usually best choice), and
- Macronix MX29LV160BT (2Mbyte/chip).
-
CADENUX_FLASH_BASE
- The address of the beginning of installed FLASH.
-
CADENUX_FLASH_SIZE
- The size (in bytes) of the installed FLASH part.
-
CADENUX_FLASH_ERASE_SIZE
- The size (in bytes) of a (typical) FLASH erase block.
Actual flash parts may have variably sized erase blocks, particularly
in regions of the flash part intended for bootloader storage.
Here, only the size of the "typical" erase block is
needed. This value is used to control alignment of large
firmware components in the flash memory map.
This value must be an power of two.
-
CADENUX_FLASH_OFFSET
- The offset (in bytes) where flash data begins.
The beginning of some flash parts may contain other information
such interrupt vectors, diagnostic programs, etc.
If this value is non-zero, then all of the flash components will
be offset by this amount in the flash part.
Otherwise, the flash components will be positioned at the
beginning of the flash address space.
-
CADENUX_FLASH2_TYPE
- If the board has two FLASH devices, then this variable
specifies the types of the second flash part.
Options are the same as for CADENUX_FLASH_TYPE.
-
CADENUX_FLASH2_BASE
- The starting address of the second installed FLASH part.
-
CADENUX_FLASH2_SIZE
- The size (in bytes) of the second installed FLASH part.
-
CADENUX_FLASH2_ERASE_SIZE
- The size (in bytes) of a (typical) FLASH erase block in
the second FLASH part.
This value must be an power of two.
It is used to control data alignment in the flash memory map.
|
IRAM Memory Description
|
-
CADENUX_USE_IRAM
- Utilize CPU's internal RAM (IRAM) for key text and data
This option is not meaningful on all processors.
-
CADENUX_IRAM_BASE
- If CADENUX_USE_IRAM is selected, IRAM base provides
the link address for kernel components resident in the processor's
internal RAM (IRAM).
This is not necessarily that base address of the IRAM memory.
CADENUX_IRAM_BASE allows an IRAM memory region to be
reserved for use by a program other than the kernel.
|
4.1.3 BSP Component Description
Bootloader Description
|
-
CADENUX_BTLDR
- A string identifying the bootloader.
Recognized bootloader names include:
CADENUX_BTLDR_RRLOAD,
CADENUX_BTLDR_UMON, and
CADENUX_BTLDR_REDBOOT.
-
CADENUX_BTLDR_TEXT_SIZE
- The size (in bytes) of the "constant" portion of
the bootloader (i.e., the "text" section). This amount of
memory is reserved in both FLASH and SDRAM.
This size may be increased due to FLASH alignment requirements
(see above).
-
CADENUX_BTLDR_PARAMS_SIZE
- The size (in bytes) of memory FLASH memory to reserve
for bootloader parameters.
This size may be increased due to FLASH alignment requirements
(see above).
-
CADENUX_BTLDR_DATA_SIZE
- The size (in bytes) of SDRAM memory to reserve for use
by the bootloader (i.e., ".bss" sections, stack, etc.).
-
CADENUX_BTLDR_FAST_BOOT
- Enables building the rrload bootloader so that it boots as
rapidly as possible.
-
CADENUX_BTLDR_NO_MENUS
- Enables building the rrload bootloader without menus to
minimize its size.
-
CADENUX_BTLDR_IN_HEAP
- NO: The bootloader will be positioned at the
beginning of SDRAM in a region that may be reused as a
framebuffer. YES: The bootloader will be position in
the Linux in a memory area with with be reclaimed for reuse by
Linux. Framebuffer memory will be disabled.
-
CADENUX_USB_CONSOLE
- YES: Enable support for use of USB as the bootloader
console (/dev/ttyUSB0).
-
CADENUX_ALT_SERIAL_CONSOLE
- NO: Use default serial port for rrload and kernel
console IO.
This associates UART0 with /dev/ttyS0.
YES: Use the alternative serial port.
This associates UART1 with /dev/ttyS0.
-
CADENUX_BTLDR_DOC_SUPPORT
- YES: Enable rrload logic to support loading a file
system image onto an M-Systems DiskOnChip FLASH.
-
CADENUX_BTLDR_SMARTMEDIA_SUPPORT
- YES: Enable rrload logic to support utility
functions for Smartmedia cards.
|
|
In the following bootloader debug settings, 0:disables the
debug feature; 1:enables the debug feature.
|
Kernel Description
|
-
CADENUX_USE_MMU
- Utilize CPU's Memory Management Unit (MMU) to control memory
accesses.
This option is not meaningful for processors that do not have an MMU.
-
CADENUX_KERNEL
- A string identifying the Linux kernel version.
Recognized kernel version strings include:
uclinux-2.0 and uclinux-2.4
for ARM7 platforms and
linux-2.4 or linux 2-6
for ARM9 platforms
-
CADENUX_KERNEL_COMPRESSED
- NO: The kernel stored in flash is not compressed.
YES: Compress the kernel and store the compressed image
in flash.
-
CADENUX_KERNEL_SDRAM_SIZE
- The size (in bytes) of the SDRAM memory reserved to hold the
kernel when it executes from SDRAM.
This amount of memory is reserved in both FLASH and
SDRAM.
The FLASH allocation may be increased due to FLASH alignment
requirements (see above).
-
CADENUX_KERNEL_FLASH_SIZE
- The size (in bytes) of the memory reserved to hold the kernel
when the kernel is stored in FLASH.
This size may be increased due FLASH alignment requirements.
-
CADENUX_KERNEL_STACK
- The location of the kernel stack.
This can be an IRAM address or SDRAM address or SRAM address.
The stack will occupy a 4096 (0x1000) range of memory and this
entry is the lower address of that range.
This option applies only to the uclinux-2.0
platform.
This entry is important only for power management options:
The initial kernel stack is used only by the Linux idle process.
Putting the idle process stack in IRAM may support other power
conservation measures when on the IDLE process is running.
-
CADENUX_BOOT_FROM_FLASH
- 0:kernel will run from SDRAM; 1: kernel will run
from flash.
If boot-from-flash is selected, no SDRAM memory will be
reserved for the kernel.
- If selected, the kernel will run in place from FLASH.
Execution from FLASH may not be desired if the FLASH memory
performance is inadequate.
If not selected, the kernel will be copied into SDRAM, then
executed.
If boot-from-flash is selected, no SDRAM memory will be
reserved for the kernel.
You can not use a compressed kernel and boot from FLASH.
|
Root Filesystem Description
|
-
CADENUX_FLASH_FS
- 0:FS resides in SDRAM; 1:FS resides in FLASH.
-
CADENUX_FLASH_FS
- NO: The filesystem resides in SDRAM;
YES: The filesystem FS resides in FLASH.
This option is assumed if a flash filesystem is selected
(such as JFFS or JFFS2).
The option may, however, also be selected for a ROMFS file system.
WARNING: In this case, executables may execute in place in FLASH
with a potential performance degradation.
-
CADENUX_FS_BEFORE_KERNEL
- This setting determines the relative positioning of the
kernel and the SDRAM file system image.
NO: The filesystem will reside after kernel in SDRAM;
YES: The filesystem will reside before kernel in SDRAM.
This value is meaningful only if CADENUX_FS_SDRAM_SIZE
is non-zero and CADENUX_FLASH_FS is NO (meaning
that the filesystem resides in SDRAM) and also if
CADENUX_BOOT_FROM_FLASH is false (meaning that the
kernel also resides in SDRAM).
-
CADENUX_ROOT_FS
- Selects the root file system type.
This is the type of file system that Linux uses when booting.
This may or may not be the same as CADENUX_RRFLASH_FS.
Recognized filesystem options include:
romfs, cramfs, jffs, jffs2,
ext2fs, ext3, and nfs.
-
CADENUX_MAXFS_SIZE
- If CADENUX_ROOT_FS is ext2 or ext3,
then this is the maximum size of the filesystem (in decimal
1024 byte blocks).
-
CADENUX_JOURNAL_SIZE
- If CADENUX_ROOT_FS is ext3, then this is the
size (in decimal 1 megabyte blocks) of the journal to be
allocated in the filesystem.
-
CADENUX_RRFLASH_FS
- Selects the type of file system residing in FLASH that
may require special preparation for RRLOAD.
This may or may not be the same as CADENUX_ROOT_FS.
Recognized filesystem options include:
jffs, jffs2, initrd, and other.
-
CADENUX_USE_RAMDISKS
- Identifies that certain directories should be provided as
soft links into a mounted ramdisk.
This is a required selected for read-only file system (such
as romfs), and optional for performance sensitive file systems
(such as jffs).
This option should NOT be selected if the root filesystem is a
ramdisk!
The effected directories include /tmp, /root,
/var, and /proc.
-
CADENUX_FS_COMPRESSED
- NO: The file system stored in flash is not compressed.
YES: Compress the file system and store the compressed
image in flash. Only set to YES if the root file system type
is romfs.
-
CADENUX_FS_FLASH_SIZE
- The size (in bytes) of the primary FLASH filesystem image.
This value is often the same as the value used for
CADENUX_FS_SDRAM_SIZE.
Exceptions are if the file system is not copied to SDRAM or if
the file system is stored in a compressed format and then
decompressed when copied to SDRAM.
Note that this value is not selectable;
the size of the file system will be caculated from the flash
size minus the bootloader image size, minus the bootloader
parameter size, minus the kernel size, minus the size of the
secondary file system.
-
CADENUX_FS_SDRAM_SIZE
- The size (in bytes) of the primary SDRAM filesystem image.
This value must be zero for flash filesystems that do not
reside in SDRAM.
This value is often the same as the value used for
CADENUX_FS_FLASH_SIZE.
Exceptions are if the file system is not copied to SDRAM or
if the file system is stored in a compressed format and then
decompressed when copied to SDRAM.
-
CADENUX_FS2_FLASH_SIZE
- The size (in bytes) of the optional secondary FLASH filesystem
image.
This value reserves memory for use by the kernel to support a
secondary FLASH filesystem (such as JFFS or JFFS2).
This value should be an even multiple of the FLASH erase blocksize.
-
CADENUX_RAMDISK_SIZE
- The size (in decimal 1024 byte blocks) of the RAMDISK that
must be mounted with the romfs root filesystem type.
|
Device Description
|
-
CADENUX_ETHERNET_TYPE
- The type of Ethernet device installed (if known).
Recognized ethernet identifiers include:
- ETHERNET_TYPE_NONE
- ETHERNET_TYPE_UNKNOWN
- ETHERNET_TYPE_CS8900
- ETHERNET_TYPE_SCM9194
- ETHERNET_TYPE_SCM91C111
-
CADENUX_ETHERNET_PHY
- The type of Ethernet transceiver that provides the physical
layer (if known).
Recognized ethernet transceivers include:
- ETHERNET_PHY_UNKNOWN
- ETHERNET_PHY_LU3X31T_T64
- ETHERNET_PHY_AC101L
Applicable only to the C5471 and AT91RM9200 platforms.
-
CADENUX_ETHERNET_BASE
- The address of the beginning of ethernet device space.
-
CADENUX_ALT_SERIAL_CONSOLE
- NO: Use default serial port for rrload and kernel
console IO. This associates UART0 with /dev/ttyS0.
YES: Use the alternative serial port.
This associates UART1 with /dev/ttyS0.
-
CADENUX_RESERVED_MEMORY_SIZE
- This memory is reserved at the Start of SDRAM and it is not
used by the Linux Kernel.
This memory can be used for Framebuffer in ARM7 and for CCD
in both ARM7 and ARM9.
This size (in bytes) assures that a sufficient amount of memory
is reserved for the framebuffer or CCD.
If the BSP is configured so that the bootloader lies in SDRAM
prior to the kernel, then the memory used by bootloader can
be reclaimed after booting for use as device buffers.
|
|
The following network settings are used by both
rrload for TFTP file transfers
and by the /etc/rc.bss file for configuring
the target device's network parameters.
|
Network Description
|
-
CADENUX_NETWORK_TARGET_IP
-
The IP address used by the target hardware in the form
XXX.XXX.XXX.XXX, for example 10.0.0.20. Used by rrload for
TFTP file transfers and by the kernel as the device's IP address.
-
CADENUX_NETWORK_TARGET_NAME
- The IP network name assigned to the target platform.
-
CADENUX_NETWORK_TARGET_MAC
-
The ethernet physical media access (MAC) address in the form
XX:XX:XX:XX:XX:XX, for example 00:E0:81:10:36:DF.
Used by rrload for TFTP file transfers and by the kernel as the
device's ethernet hardware address.
-
CADENUX_NETWORK_TARGET_MASK
-
The network mask identifies what part of the IP address represents
the network number (or sub-LAN address) and what part represents the
host address of the target device. Used to determine if a
destination device can be reached directly (true when the destination
device is on the same sub-LAN as the target device) or if the packet
needs to be sent to the gateway device to be forwarded to the sub-LAN
containing the destination device. The network mask, when expressed
in binary, is a series of all ones followed by a series of all zeros,
totaling 32 bits. The network mask is expressed in the form
XXX.XXX.XXX.XXX, for example 255.255.255.0. Used
in the /etc/rc.bss file for network configuration via the
ifconfig and route commands. All devices on the
same sub-LAN use the same network mask, therefore checking the
network mask of a configured device (e.g. /sbin/ifconfig
eth0 on your Linux workstation) is an easy way to determine the
correct network mask value to use on the target device.
-
CADENUX_NETWORK_TARGET_BCAST
-
The broadcast address is used as the destination address when the
target device is sending a network packet to all devices on the
sub-LAN. The broadcast address is created by concatenating the
sub-LAN address and a host address with all address bits being one.
The broadcast address is expressed in the form
XXX.XXX.XXX.XXX, for example 10.0.0.255. Used in
the /etc/rc.bss file for network configuration via the
ifconfig command. All devices on the same sub-LAN use the
same broadcast address, therefore checking the broadcast address of a
configured device (e.g. /sbin/ifconfig eth0 on your Linux
workstation) is an easy way to determine the correct broadcast
address to use on the target device.
-
CADENUX_NETWORK_TARGET_GW_IP
-
A network packet being sent to destination devices which reside on a
sub-LAN different than the target device's sub-LAN must be forwarded
to the correct sub-LAN using a router. The gateway address is the
address of the router. The gateway address is expressed in the form
XXX.XXX.XXX.XXX, for example 10.0.0.1. Used in the
/etc/rc.bss file for network configuration via the
route command to set the default route. All devices on the
same sub-LAN generally use the same gateway, therefore checking the
gateway address of a configured device (e.g. /sbin/route on
your Linux workstation) is an easy way to determine the correct
gateway to use on the target device.
-
CADENUX_NETWORK_TARGET_NET_IP
-
The local network address is used to determine if a destination
address exists on the sub-LAN. The local network address is created
by concatenating the sub-LAN address and a host address with all
address bits being zero. The local network address is expressed in
the form XXX.XXX.XXX.XXX, for example 10.0.0.0.
Used in the /etc/rc.bss file for network configuration via
the route command. All devices on the same sub-LAN use the
same local network address, therefore checking the broadcast address
of a configured device (e.g. /sbin/route on your Linux
workstation) is an easy way to determine the correct local network
address to use on the target device.
-
CADENUX_NETWORK_SOURCE_IP
-
The TFTP network source address is used by rrload as the host address
to use when doing a TFTP file transfer. The TFTP network source
address is expressed in the form XXX.XXX.XXX.XXX, for
example 10.0.0.3. Not used by the kernel. You can leave
this field blank if you do not use the rrload TFTP feature.
-
CADENUX_NETWORK_SOURCE_NAME
- The IP network name of the workstation that will be used as
an RRLOAD TFTP client.
-
CADENUX_NETWORK_SOURCE_MAC
-
The TFTP ethernet MAC address is used by rrload as the MAC address to
use when doing a TFTP file transfer. The TFTP MAC address is
expressed in the form XX:XX:XX:XX:XX:XX, for example
00:03:47:7B:28:40. example 10.0.0.3. Not used by
the kernel. You can leave this field blank if you do not use the
rrload TFTP feature.
|
4.2 Output Variables
4.2.1 C Preprocessor Definitions
4.2.1.1 Memory Resource Description
4.2.1.2 BSP Component Description
|
The following network settings are used by both
rrload for TFTP file transfers
and by the /etc/rc.[platform].bss file for configuring
the target device's network parameters.
|
4.2.2 Make Variables
4.2.2.2 Memory Resource Description
4.2.2.3 BSP Component Description
|
The following network settings are used by both
rrload for TFTP file transfers
and by the /etc/rc.[platform].bss file for configuring
the target device's network parameters.
|
|