beautypg.com

4 u-boot access and startup, 5 working with u-boot, 1 general operation – Kontron COMe-bP5020 User Manual

Page 56: 2 using the sconf command, U-boot access and startup, Working with u-boot, General operation, Using the sconf command

background image

www.kontron.com

56

User Guide

COMe-bP5020

6.4 U-Boot Access and Startup

Communication with U-Boot is achieved via a serial console configured for 115200 baud, 8N1, no hardware handshake.

Initially, U-Boot executes the commands defined in the environment variable “preboot”. Then, if not otherwise interrupted,
U-Boot pauses for the time defined in the environment variable “bootdelay” and then executes the statements stored in the
environment variable “bootcmd”. To gain access to the U-Boot command prompt, type in any single character during the boot
delay time.

If required, the boot delay function can be configured in such a way that even when the boot delay is set to “0” to have char-
acters, which are sent over the serial interface prior to the boot wait time, be recognized to allow operator intervention in the
boot process.

6.5 Working with U-Boot

6.5.1 General Operation

Most operations are carried out using the main memory as an intermediate step. It is not possible, for example, to boot a kernel
image directly from a tftp server. Instead, the kernel image is first loaded to memory and then booted from there with another
command.

The same is true when writing new contents to the SPI boot flashes.

This concept is very flexible since it separates the commands which handle the loading of data from the commands that carry
out actions like booting.

6.5.2 Using the sconf Command

In previous board designs, DIP switches were used to configure the fabric interfaces. In response to evolving application re-
quirements, the “sconf” command has been designed to provide increased configuration flexibility.

The COMe-bP5020 is delivered with a default configuration for the external interfaces routed to the COM Express® connectors.
If required, these interfaces may be configured via the “sconf” command according to the application requirements.

The factory default configuration for the COMe-bP5020 is as follows:

» “sconf” base configuration:

0

» SRIO system size:

small

» SRIO interface mode:

agent

» GbE (DTSEC4):

port 1

To obtain information about the currently active configuration, invoke the “sconf status” command.