2 contacting the server, 4 using sd cards, Contacting the server – Kontron AM4140 U-Boot Bootloader User Manual

Page 41: Using sd cards, Am4140 u-boot bootloader u-boot usage

Advertising
background image

AM4140 U-Boot Bootloader

U-Boot Usage

ID 1052-0281, Rev. 1.0

Page 41

P R E L I M I N A R Y

6.3.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 vari-
able “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.4

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

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.

tftpboot 100000 filename

mmc rescan 0

ext2ls mmc 0

fatls mmc 0

ext2load mmc 0 100000 kernel.bin

Advertising