5 using sd cards 6.5.6 using usb devices – Kontron COMe-cP2020 User Manual

Page 95

Advertising
background image

www.kontron.com

COMe-P2020 User Guide

95

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 environ-
ment 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.
To load a file into memory, the commands “ext2load” or “fatload” can be used, for example:

which loads the file “kernel.bin” from the SD card to memory address 0x100000.

6.5.6

Using USB Devices

USB devices are supported (read only) with the “ext2” or “fat” file system.
In both cases, the USB devices must be initialized first.

=> tftpboot 100000 filename
=>

=> mmc rescan 0
=>

=> ext2ls mmc 0
=>

=> fatls mmc 0
=>

=> ext2load mmc 0 100000 kernel.bin
=>

=> usb start
=>

Advertising