beautypg.com

2 ethact, 3 ethrotate, 2 contacting the server – Kontron COMe-bP5020 User Manual

Page 59: 5 using sd cards, Ethact, Ethrotate, Contacting the server, Using sd cards

background image

www.kontron.com

59

User Guide

COMe-bP5020

6.5.4.1.2 ethact

“ethact” is used to define the currently active interface and to change the required interface without rebooting. If a reboot or
a power cycle is done, the active Ethernet interface will be set back to the interface defined in “ethprime” or selected by the
“ethrotate” functionality.

Example:

6.5.4.1.3 ethrotate

“ethrotate” can be used to force the selection of the next available interface if, for example, there is no link available for the
selected interface.

If set to “yes” or undefined, U-Boot updates the “ethact” variable accordingly and tries to download the file again. This is re-
peated until either the file is downloaded or all interfaces have been exhausted.

In the event the link is active for the selected interface and “ethrotate” is “yes” or undefined, U-Boot tries to download the
file. If it cannot download the file, it tries the next available interface. If the file is not available on the server, U-Boot stops
trying and issues an error message.

If “ethrotate” is set to “no”, only the interface defined in “ethact” is used.

Please note that the setting of the “ethrotate” is lost after a reset. To retain the environment permanently, use the command
“saveenv”, which saves the complete environment to flash.

6.5.4.2 Contacting the Server

In addition, to be able to transfer files from a tftp server to a module, the module’s IP address (environment variable “ipaddr”)
and the IP address of the server must be set (environment variable “serverip”). Alternatively, it is possible to use the “dhcp”
or “bootp” commands.

They can be set using the “setenv” command. Please note that these settings are lost after a reset. To retain the environment
permanently, use the command “saveenv”, which saves the complete environment to flash.

To transfer a file from a tftp server to memory, the “tftpboot” command is used, for example:

6.5.5 Using SD Cards

SD cards are supported (read only) with the “ext2” or “fat” file system.

In both cases, the card must be rescanned first.

After that, the contents can be verified with:

in case of the ext2 file system, or with

in case of the fat file system.

=> setenv ethact FM1@DTSEC2

=> ping 172.100.100.35

Using FM1DTSEC2 device

host 172.100.100.35 is alive

=>

tftpboot 100000 filename

mmc rescan 0

ext2ls mmc 0

fatls mmc 0