Bootloader Environment Update; Table 38: Standard Environment Variables - Kontron PITX-IMX8M User Manual

Hide thumbs Also See for PITX-IMX8M:
Table of Contents

Advertisement

env print [-a | name ...]
env run var [...]
env save
env set [-f] name [arg ...]
However, the legacy commands for environment handling are still available:
"setenv",
"editenv",
"printenv"
"saveenv".
U-Boot standard environment variables are set up for the PITX-iMX8M module as shown below.

Table 38: Standard Environment Variables

Variable
Value
baudrate
115200
bootcmd
Run mmcboot || run sdboot || run usbboot ||
run netboot || run bootfailed
bootdelay
3
ethprime
FEC0
loadaddr
0x80800000
A typical user modification would be to set the variable "bootcmd" to change OS boot commands.

7.6. Bootloader Environment Update

On the PITX-iMX8M it is possible to update the U-Boot environment separately.
This enables the user to either update from a previous version of the official Kontron U-Boot environment (default
U-Boot settings), or restore the default in case of problems.
Update procedure:
Download the official U-Boot environment from the Kontron EMD Customer Section.
For Release R10 of the U-Boot, the file is called 'imx8m-env-r10.bin'.
Put the file into the root directory of a FAT or EXT formatted USB drive.
Start the system and stop the boot process at the U-Boot prompt.
Run the following commands to load the file and flash it into the correct flash memory address (example
for R10):
usb start && load usb 0:1 $loadaddr imx8m-env-r10.bin
sf probe && sf update $loadaddr 0x0c0000 $filesize
After reset the updated environment will be active.
print environment
run commands in an environment variable
save environment
pITX-iMX8M – Rev. 0.7 Preliminary
Description
Serial line baudrate
Try booting (in this order) from eMMC, SD
card, USB, network
Wait 3 seconds before executing bootcmd
Use Ethernet port FEC0 as default
Default memory location for OS boot
www.kontron.com
// 56

Advertisement

Table of Contents
loading

Table of Contents