The configuration is made using a Minicom session that need to be established between host and target through serial port. To have an operational system been executed just on the power on, configure the right for Boot script. The chooses are shown in Boot Script section.
The main command for beginners is fconfig -l that can be abbreviated as fc -l This command shows the actual configuration of Redboot , like:. The examples below assume that the network settings are as follows:.
The fconfig command is used to set configuration data in RedBoot. When run with no options, fconfig will start an interactive prompt for setting all configuration variables. This is seldom necessary as generally most of the options are left as default.
To see the current configuration, run fconfig -l or fconfig -l -n to trigger using variable names rather than descriptions. The -n flag is handy because the variable names are needed when setting only one variable. The following is an example of the default settings note that some of these settings are board specific :.
Run the following commands to configure RedBoot using the network settings listed above. Replace the values with the correct settings for your local network. Note that if you change a variable from its current value, RedBoot will prompt you to commit the value to non-volatile storage.
Type 'y' and press Enter when this occurs so that the new setting will be stored in flash. RedBoot uses a bootscript that is run automatically on boot to load and execute the Linux kernel. The values specified here are somewhat hardware-specific. In most cases, the default EMAC values should be used.
In general, the commands will perform the following steps:. After the last command above has been entered, a prompt will appear to Enter script , terminate with empty line. Enter the desired boot script line-by-line at the prompts. After the last line of the boot script, leave the next line empty and press enter to signal that all data has been entered.
An example is shown below:. If you are starting with a flash that has not been pre-programmed or want to completely erase the existing image, the flash will need to be formatted. To do this, run the fis init -f command.
Note that this does not erase the RedBoot image or configuration partition. This command will take several minutes to run. The setting of an envirnment variable also differs. For example in the bash shell a variables may be set as follows:. In the windows CMD environment a variable is set as follows:. For the bash shell:. To build RedBoot using the ecosconfig tool in a command line environment:. Create a temporary directory for building RedBoot, and change into it. For example:. Create a partial build tree to instantiate the platform specific configuration files for the chosen platform:.
At this point the eCos configuration in ecos. The resulting RedBoot files will be in the associated install directory, in this example,. Older revisions of eCos or some platforms may not support the etc make target. In these instances please refer to the specific platform HAL documentation for instructions on how to build RedBoot using an appropriate configuration file. While it is possible to rebuild RedBoot from the eCos Configuration Tool , creating a RedBoot configuration is not always simple due to certain behavioural limitations of the eCos Configuration Tool.
It may therefore not be necessary to set this variable. Depending on the platform, a number of conflicts may need to be resolved before the build can be started. As noted above, please also refer to the platform's HAL documentation to determine if there are any additional platform specific instructions that must be followed when rebuilding RedBoot.
0コメント